<HTML>
<HEAD>
<TITLE>RE: IfName and MPLS interfaces</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Ok, so it’s already been fixed upstream.... I’m running 2.16.0, so I’ll see about testing a newer version and using the —ifref=”name,ip’ syntax.<BR>
<BR>
I believe type 166 are currently ignored as is, so no worries there. 166 counters are only interesting if you are running traffic engineering tunnels and your device supports type 150 interfaces as well.<BR>
<BR>
--<BR>
Dan<BR>
<BR>
<BR>
On 6/11/13 4:55 PM, "Steve Shipway" <<a href="s.shipway@auckland.ac.nz">s.shipway@auckland.ac.nz</a>> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><FONT COLOR="#1F497D">You could just add --if-filter=’$if_type!=166’ to the cfgmaker command line, this will cause cfgmaker to ignore type 166 interfaces (though you’ll need to also use --ifref=’name,nr’ to make it fall back to using the interface number for the unique identifier since name is not unique).<BR>
<BR>
The ifref and ifdesc options of cfgmaker (after MRTG 2.16.something) allow multiple option to be specified in comma-separated form as alternative options if the first one is nonunique (My patch! My patch!)<BR>
<BR>
Or is the problem that you want one graph from the type 6 and one form the type 166? In this case, you might be able to achieve it with an interface template that tests the iftype and uses the default for type 6 but a different setup for the type 166.<BR>
<BR>
Steve<BR>
<BR>
</FONT>
</SPAN></FONT>
<P ALIGN=CENTER>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><FONT COLOR="#1F497D"><HR ALIGN=CENTER SIZE="2" WIDTH="100%"></FONT></SPAN></FONT>
<P>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><FONT COLOR="#1F497D"><B>Steve Shipway<BR>
</B></FONT></SPAN><FONT COLOR="#1F497D"><FONT SIZE="2"><SPAN STYLE='font-size:10pt'>ITS Unix Services Design Lead<BR>
University of Auckland, New Zealand<BR>
Floor 1, 58 Symonds Street, Auckland<BR>
</SPAN></FONT></FONT><FONT SIZE="2"><SPAN STYLE='font-size:10pt'><FONT COLOR="#595959"><I>Phone: +64 (0)9 3737599 ext 86487<BR>
DDI: +64 (0)9 923 6487<BR>
Mobile: +64 (0)21 753 189<BR>
Email: <a href="s.shipway@auckland.ac.nz">s.shipway@auckland.ac.nz</a> <<a href="mailto:s.shipway@auckland.ac.nz">mailto:s.shipway@auckland.ac.nz</a>> <BR>
</I></FONT></SPAN></FONT></FONT><FONT COLOR="#008000"><FONT SIZE="5"><FONT FACE="Webdings"><SPAN STYLE='font-size:18pt'>P</SPAN></FONT></FONT></FONT><FONT COLOR="#0000FF"><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'> </SPAN></FONT></FONT><FONT COLOR="#008000"><FONT SIZE="2"><FONT FACE="Arial Narrow"><SPAN STYLE='font-size:10pt'>Please consider the environment before printing this e-mail</SPAN></FONT></FONT></FONT><FONT COLOR="#0000FF"><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'> : </SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><FONT COLOR="#008000"><FONT SIZE="2"><SPAN STYLE='font-size:10pt'>打印本邮件,将减少一棵树存活的机会<BR>
</SPAN></FONT></FONT><FONT COLOR="#1F497D"><SPAN STYLE='font-size:11pt'> <BR>
</SPAN></FONT><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT><FONT SIZE="2"><FONT FACE="Tahoma, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:10pt'><B>From:</B> <a href="mrtg-bounces+s.shipway=auckland.ac.nz@lists.oetiker.ch">mrtg-bounces+s.shipway=auckland.ac.nz@lists.oetiker.ch</a> [<a href="mailto:mrtg-bounces+s.shipway=auckland.ac.nz@lists.oetiker.ch">mailto:mrtg-bounces+s.shipway=auckland.ac.nz@lists.oetiker.ch</a>] <B>On Behalf Of </B>Daniel McDonald<BR>
<B>Sent:</B> Wednesday, 12 June 2013 9:42 a.m.<BR>
<B>To:</B> mrtg<BR>
<B>Subject:</B> [mrtg] IfName and MPLS interfaces<BR>
</SPAN></FONT></FONT><FONT FACE="Times New Roman"><SPAN STYLE='font-size:12pt'> <BR>
</SPAN></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>In general, we use ifName to identify interfaces monitored by mrtg. However, on MPLS PE or P routers, there are two instances with the same ifName – one with ifType 6 for the physical characteristics, and one with ifType 166 for the MPLS counters. Without a lot of hacking to ignore ifType 166 interfaces, I think I’ll need to come up with another way to identify those interfaces.<BR>
<BR>
Cfgmaker doesn’t appear to have any sort of fallback to change ifref if the criteria specified by —ifref is unavailable. I tried a bunch of ways to work around it, but short of creating a new configuration option, it’s pretty insistent on not allowing it.<BR>
<BR>
Would anyone find that a useful option for cfgmaker? Perhaps a name like —ifref2? I imagine for consistency I would also need --ifdesc2....<BR>
<BR>
<BR>
</SPAN></FONT></BLOCKQUOTE>
</BODY>
</HTML>