[mrtg-developers] FW: cfgmaker for arista and ifAlias

Tobias Oetiker tobi at oetiker.ch
Fri Jun 11 17:34:16 CEST 2010


Hi John,

thanks
tobi

Mar 16 belshaw, john wrote:

>
> I added support for Arista and got the ifAlias working,
> For a some reason html_escape removes the alias entry for me so I just don't use it for the if_descr entry,
>
> Here is a diff from cfgmaker 2.16.3
>
> 173c173
> <     } elsif ( $routers->{$router}{deviceinfo}{Vendor} =~ /(?:hp|juniper|foundry|dellLan|force10|3com|extremenetworks|arista)/) {
> ---
> >     } elsif ( $routers->{$router}{deviceinfo}{Vendor} =~ /(?:hp|juniper|foundry|dellLan|force10|3com|extremenetworks)/) {
> 698,699c698
> <                                    $if_snmp_alias = $$i{ifAlias};
> <                                      last };
> ---
> >                                     last };
> 718a718
> >
> 721c721
> <                 #my $html_if_snmp_alias = html_escape($if_snmp_alias);
> ---
> >                 my $html_if_snmp_alias = html_escape($if_snmp_alias);
> 995,996c995
> <           '1.3.6.1.4.1.2272.30' =>    'nortel',
> <           '1.3.6.1.4.1.30065' =>      'arista',
> ---
> >           '1.3.6.1.4.1.2272.30' =>    'nortel'
>
> John Belshaw
>
> IT Architecture advisor : Network
>
>

-- 
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
http://it.oetiker.ch tobi at oetiker.ch ++41 62 775 9902 / sb: -9900



More information about the mrtg-developers mailing list