Re: Interface Descriptions for Avaya/Nortel 5510 in cfgmaker
"Courtney, Wrolf" <[email protected]> Wed, 1 Oct 2014 16:45:27 +0000
| Newsgroups | gmane.network.mrtg.devel,gmane.network.mrtg.user |
|---|---|
| Message-ID | <C22DA43300E0E24F8BCA9A53CE460F2E23C98188@NYCTLPDCEXMB61.transit.nyct.com> |
--===============5245911633738344562==
Content-Language: en-US
Content-Type: multipart/alternative;
boundary="_000_C22DA43300E0E24F8BCA9A53CE460F2E23C98188NYCTLPDCEXMB61t_"
--_000_C22DA43300E0E24F8BCA9A53CE460F2E23C98188NYCTLPDCEXMB61t_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
OK, so I patched cfgmaker on my MRTG 2.16.2 to get interface descriptions w=
orking 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 =3D~ m/Passport-8610/ ) {
push @Variables, "ppPortName";
}
+ if ($descr =3D~ m/Ethernet Routing Switch 55/ ) {
+ push @Variables, "ifAlias";
+ }
foreach my $var (@Variables) {
debug('base',"Walking $var");
This works if I set --ifdesc=3Dalias.
It would be even better if cfgmaker used ifAlias whenever --ifdesc=3Dalias =
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 cfgmake=
r
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 =3D STRING:
IF-MIB::ifAlias.2 =3D 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 descr=
iptions 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
--_000_C22DA43300E0E24F8BCA9A53CE460F2E23C98188NYCTLPDCEXMB61t_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
<meta name=3D"Generator" content=3D"Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Balloon Text Char";
margin:0in;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";}
span.EmailStyle17
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.EmailStyle18
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.BalloonTextChar
{mso-style-name:"Balloon Text Char";
mso-style-priority:99;
mso-style-link:"Balloon Text";
font-family:"Tahoma","sans-serif";}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3D"EN-US" link=3D"blue" vlink=3D"purple">
<div class=3D"WordSection1">
<p class=3D"MsoNormal"><span style=3D"color:#1F497D">OK, so I patched cfgma=
ker on my MRTG 2.16.2 to get interface descriptions working on Avaya Enterp=
rise Routing Switch 55xxs:<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D"><o:p> </o:p></spa=
n></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D">$ rpm -q mrtg<o:p></o:=
p></span></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D">mrtg-2.16.2-7.el6.x86_=
64<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D">$ diff -u /usr/bin/cfg=
maker cfgmaker<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D">--- /usr/bin/cfgmaker&=
nbsp; 2012-11-12 06:44:43.000000000 -0500<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D">+++ cfgmak=
er 2014-10-01 11:53:25.896216255 -0400<o:p></o:p></span><=
/p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D">@@ -187,6 +187,9 @=
@<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D"> &nbs=
p; if ($descr =3D~ m/Passport-8610/ ) {<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D"> &nbs=
p; push @Variables, "ppPortName";<o=
:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D"> &nbs=
p; }<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D">+  =
; if ($descr =3D~ m/Ethernet Routing Switch 55/ ) {<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D">+  =
; push @Variables, "ifAlias";<o:p></o:p><=
/span></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D">+  =
; }<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D"><o:p> </o:p></spa=
n></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D"> &nbs=
p; foreach my $var (@Variables) {<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D"> &nbs=
p; debug('base',"Walking $var");<o:p></o:=
p></span></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D"><o:p> </o:p></spa=
n></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D">This works if I set --=
ifdesc=3Dalias.<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D"><o:p> </o:p></spa=
n></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D">It would be even bette=
r if cfgmaker used ifAlias whenever --ifdesc=3Dalias is set, without having=
the Avaya ERS 55xx special cased in.<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D"><o:p> </o:p></spa=
n></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D">Please include in the =
next (upstream) release of MRTG.<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D"><o:p> </o:p></spa=
n></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D">Thanks,<o:p></o:p></sp=
an></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D"><o:p> </o:p></spa=
n></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D">Wrolf Courtney<o:p></o=
:p></span></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D"><o:p> </o:p></spa=
n></p>
<div>
<div style=3D"border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in =
0in 0in">
<p class=3D"MsoNormal"><b><span style=3D"font-size:10.0pt;font-family:"=
;Tahoma","sans-serif"">From:</span></b><span style=3D"font-s=
ize:10.0pt;font-family:"Tahoma","sans-serif""> mrtg [ma=
ilto:mrtg-bounces+[email protected]]
<b>On Behalf Of </b>Courtney, Wrolf<br>
<b>Sent:</b> Wednesday, October 01, 2014 11:27 AM<br>
<b>To:</b> [email protected]<br>
<b>Subject:</b> Re: [mrtg] Interface Descriptions for Avaya/Nortel 5510 in =
cfgmaker<o:p></o:p></span></p>
</div>
</div>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D">The ifAlias is set for=
port 2, but it never shows up in cfgmaker:<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D"><o:p> </o:p></spa=
n></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D">$ snmpwalk -v2c -c pub=
lic 10.1.1.1 ifAlias | head -2<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D">IF-MIB::ifAlias.1 =3D =
STRING:<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D">IF-MIB::ifAlias.2 =3D =
STRING: ISP<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D"><o:p> </o:p></spa=
n></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D">Wrolf<o:p></o:p></span=
></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D"><o:p> </o:p></spa=
n></p>
<div>
<div style=3D"border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in =
0in 0in">
<p class=3D"MsoNormal"><b><span style=3D"font-size:10.0pt;font-family:"=
;Tahoma","sans-serif"">From:</span></b><span style=3D"font-s=
ize:10.0pt;font-family:"Tahoma","sans-serif""> mrtg [<a=
href=3D"mailto:mrtg-bounces+[email protected]=
">mailto:mrtg-bounces+[email protected]</a>]
<b>On Behalf Of </b>Courtney, Wrolf<br>
<b>Sent:</b> Wednesday, October 01, 2014 10:27 AM<br>
<b>To:</b> <a href=3D"mailto:[email protected]">[email protected]</=
a><br>
<b>Subject:</b> [mrtg] Interface Descriptions for Avaya/Nortel 5510 in cfgm=
aker<o:p></o:p></span></p>
</div>
</div>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal">Does anyone know how to get interface names for Avay=
a/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.<o=
:p></o:p></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal">Thanks,<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal"><span style=3D"color:#365F91">Wrolf Courtney<o:p></o=
:p></span></p>
</div>
</body>
</html>
--_000_C22DA43300E0E24F8BCA9A53CE460F2E23C98188NYCTLPDCEXMB61t_--
--===============5245911633738344562==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
mrtg-developers mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg-developers
--===============5245911633738344562==--