[mrtg] Interface Descriptions for Avaya/Nortel 5510 in cfgmaker

Courtney, Wrolf Wrolf.Courtney at nyct.com
Wed Oct 1 18:45:27 CEST 2014


OK, so I patched cfgmaker on my MRTG 2.16.2 to get interface descriptions working on Avaya Enterprise Routing Switch 55xxs:

$ rpm -q mrtg
mrtg-2.16.2-7.el6.x86_64
$ diff -u /usr/bin/cfgmaker cfgmaker
--- /usr/bin/cfgmaker   2012-11-12 06:44:43.000000000 -0500
+++ cfgmaker    2014-10-01 11:53:25.896216255 -0400
@@ -187,6 +187,9 @@
     if ($descr =~ m/Passport-8610/ ) {
         push @Variables,  "ppPortName";
     }
+    if ($descr =~ m/Ethernet Routing Switch 55/ ) {
+        push @Variables, "ifAlias";
+    }

     foreach my $var (@Variables) {
         debug('base',"Walking $var");

This works if I set --ifdesc=alias.

It would be even better if cfgmaker used ifAlias whenever --ifdesc=alias is set, without having the Avaya ERS 55xx special cased in.

Please include in the next (upstream) release of MRTG.

Thanks,

Wrolf Courtney

From: mrtg [mailto:mrtg-bounces+wrolf.courtney=nyct.com at lists.oetiker.ch] On Behalf Of Courtney, Wrolf
Sent: Wednesday, October 01, 2014 11:27 AM
To: mrtg at lists.oetiker.ch
Subject: Re: [mrtg] Interface Descriptions for Avaya/Nortel 5510 in cfgmaker

The ifAlias is set for port 2, but it never shows up in cfgmaker:

$ snmpwalk -v2c -c public 10.1.1.1 ifAlias | head -2
IF-MIB::ifAlias.1 = STRING:
IF-MIB::ifAlias.2 = STRING: ISP

Wrolf

From: mrtg [mailto:mrtg-bounces+wrolf.courtney=nyct.com at lists.oetiker.ch] On Behalf Of Courtney, Wrolf
Sent: Wednesday, October 01, 2014 10:27 AM
To: mrtg at lists.oetiker.ch<mailto:mrtg at lists.oetiker.ch>
Subject: [mrtg] Interface Descriptions for Avaya/Nortel 5510 in cfgmaker

Does anyone know how to get interface names for Avaya/Nortel 5510s in descriptions for cfgmaker? I have no problem with 8600s, just the 5510s. I have tried all parameters in the man page for --ifdesc.

Thanks,

Wrolf Courtney
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.oetiker.ch/pipermail/mrtg/attachments/20141001/436a8ca3/attachment.html>


More information about the mrtg mailing list