Re: Interface Descriptions for Avaya/Nortel 5510 in cfgmaker

"Courtney, Wrolf" <[email protected]>
Newsgroups gmane.network.mrtg.devel,gmane.network.mrtg.user
Message-ID <C22DA43300E0E24F8BCA9A53CE460F2E23C98188@NYCTLPDCEXMB61.transit.nyct.com>
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:[email protected]] On Behalf Of Courtney, Wrolf
Sent: Wednesday, October 01, 2014 11:27 AM
To: [email protected]
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:[email protected]] On Behalf Of Courtney, Wrolf
Sent: Wednesday, October 01, 2014 10:27 AM
To: [email protected]<mailto:[email protected]>
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

_______________________________________________
mrtg-developers mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg-developers
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.