<HTML >
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<STYLE type=text/css>DIV {
        MARGIN: 0px
}
</STYLE>
<META name=GENERATOR content="MSHTML 8.00.6001.18904"></HEAD>
<BODY >
<DIV>
<DIV dir=ltr align=left><SPAN class=717272912-03062010><FONT color=#0000ff
size=2 face=Arial>Here are some examples around how I use the --if-filter
option:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=717272912-03062010><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=717272912-03062010><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=717272912-03062010><FONT color=#0000ff
size=2 face=Arial>This command...</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=717272912-03062010><FONT color=#0000ff
size=2 face=Arial>./cfgmaker --if-filter='$default && $if_is_ethernet'
<A href="mailto:public@router">public@router</A></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=717272912-03062010><FONT color=#0000ff
size=2 face=Arial>...will only build configs for ethernet (type
6,7,26,62,69,117) interfaces.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=717272912-03062010><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=717272912-03062010></SPAN><SPAN
class=717272912-03062010><FONT color=#0000ff size=2 face=Arial>This
command...</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=717272912-03062010><FONT color=#0000ff
size=2 face=Arial><SPAN class=717272912-03062010><FONT color=#0000ff size=2
face=Arial>./cfgmaker --if-filter='$if_type==136 || $if_type==23' <A
href="mailto:public@router">public@router</A></FONT></SPAN></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=717272912-03062010><FONT color=#0000ff
size=2 face=Arial><SPAN class=717272912-03062010>...will only build configs for
interfaces of type 136 (layer 3 vlan) or type 23
(ppp).</SPAN></DIV></FONT></SPAN>
<DIV dir=ltr align=left><SPAN class=717272912-03062010><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=717272912-03062010><FONT color=#0000ff
size=2 face=Arial>This command...</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=717272912-03062010><FONT color=#0000ff
size=2 face=Arial>./cfgmaker --if-filter='$default && $if_is_wan' <A
href="mailto:public@router">public@router</A></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=717272912-03062010><FONT color=#0000ff
size=2 face=Arial>...will build configs for WAN (type 22,30,32,39,44,46)
interfaces only.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=717272912-03062010><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=717272912-03062010><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=717272912-03062010><FONT color=#0000ff
size=2 face=Arial>I have found that not all devices properly support the ifType
values, so you may have to do some snmpwalk'ing of the interfaces table if
you're not getting what you expect. </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=717272912-03062010><FONT color=#0000ff
size=2 face=Arial>For a full list of numeric ifType values, open up cfgmaker
with an editor and search for "sub IfType". That should take you to a list of
supported types.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=717272912-03062010><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=717272912-03062010></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=717272912-03062010><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV><BR>
<BLOCKQUOTE
style="BORDER-LEFT: #0000ff 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
<DIV dir=ltr lang=en-us class=OutlookMessageHeader align=left>
</DIV></BLOCKQUOTE></BR></DIV>
<DIV> </DIV>
<DIV> <SPAN STYLE="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Arial; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA"><FONT SIZE="1">If you are not the intended recipient of this message (including attachments), or if you have received this message in error, immediately notify us and delete it and any attachments.<SPAN STYLE="mso-spacerun: yes"> </SPAN>If you no longer wish to receive e-mail from Edward Jones, please send this request to messages@edwardjones.com.<SPAN STYLE="mso-spacerun: yes"> </SPAN>You must include the e-mail address that you wish not to receive e-mail communications. <SPAN STYLE="FONT-SIZE: 8pt; FONT-FAMILY: Arial; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA"><FONT SIZE="1">For important</FONT> <FONT SIZE="1">additional information related to this e-mail, visit </FONT><A HREF="http://www.edwardjones.com/US_email_disclosure"><FONT SIZE="1">www.edwardjones.com/US_email_disclosure</FONT></A></SPAN></FONT></SPAN></DIV>
<DIV><SPAN STYLE="FONT-SIZE: 11pt; FONT-FAMILY: Arial; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA"></SPAN> </DIV>
<DIV><SPAN STYLE="FONT-SIZE: 11pt; FONT-FAMILY: Arial; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA"><BR><BLOCKQUOTE
style="BORDER-LEFT: #0000ff 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px"><DIV dir=ltr lang=en-us class=OutlookMessageHeader align=left><HR tabIndex=-1></DIV></BLOCKQUOTE></BR></SPAN></DIV>
<DIV><SPAN STYLE="FONT-SIZE: 11pt; FONT-FAMILY: Arial; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA"></SPAN> </DIV>
<DIV><SPAN STYLE="FONT-SIZE: 11pt; FONT-FAMILY: Arial; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA"><BR><BLOCKQUOTE
style="BORDER-LEFT: #0000ff 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px"><DIV dir=ltr lang=en-us class=OutlookMessageHeader align=left>
<FONT size=2 face=Tahoma><B>From:</B>
mrtg-bounces+greg.volk=edwardjones.com@lists.oetiker.ch
[mailto:mrtg-bounces+greg.volk=edwardjones.com@lists.oetiker.ch] <B>On Behalf
Of </B>Asif Rajan<BR><B>Sent:</B> Thursday, June 03, 2010 4:08
AM<BR><B>To:</B> mrtg@lists.oetiker.ch<BR><B>Subject:</B> [mrtg] Need help
with --if-filter=f option<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV
style="FONT-FAMILY: times new roman,new york,times,serif; COLOR: #000000; FONT-SIZE: 12pt">We
need to pole multiple routers but we require to stop few interfaces from being
polled. cfgmaker script help shows that --if-filter=f option can be used to
attain the required result. But we need help to implement it. Please throw in
your replies :)<BR><BR>Regards<BR>
<DIV> </DIV>
<STYLE>filtered {
        FONT-FAMILY: "Cambria Math"; panose-1: 2 4 5 3 5 4 6 3 2 4
}
filtered {
        FONT-FAMILY: Calibri; panose-1: 2 15 5 2 2 2 4 3 2 4
}
filtered {
        FONT-FAMILY: Webdings; panose-1: 5 3 1 2 1 5 9 6 7 3
}
P.MsoNormal {
        MARGIN: 0in 0in 0pt; FONT-FAMILY: "sans-serif"; FONT-SIZE: 11pt
}
LI.MsoNormal {
        MARGIN: 0in 0in 0pt; FONT-FAMILY: "sans-serif"; FONT-SIZE: 11pt
}
DIV.MsoNormal {
        MARGIN: 0in 0in 0pt; FONT-FAMILY: "sans-serif"; FONT-SIZE: 11pt
}
.MsoChpDefault {
        FONT-SIZE: 10pt
}
filtered {
        MARGIN: 1in
}
DIV.Section1 {
        
}
</STYLE>
<STYLE>filtered {
        FONT-FAMILY: "Cambria Math"; panose-1: 2 4 5 3 5 4 6 3 2 4
}
filtered {
        FONT-FAMILY: Calibri; panose-1: 2 15 5 2 2 2 4 3 2 4
}
filtered {
        FONT-FAMILY: Verdana; panose-1: 2 11 6 4 3 5 4 4 2 4
}
filtered {
        FONT-FAMILY: Webdings; panose-1: 5 3 1 2 1 5 9 6 7 3
}
filtered {
        FONT-FAMILY: "Century Gothic"; panose-1: 2 11 5 2 2 2 2 2 2 4
}
P.MsoNormal {
        MARGIN: 0in 0in 0pt; FONT-FAMILY: "sans-serif"; FONT-SIZE: 11pt
}
LI.MsoNormal {
        MARGIN: 0in 0in 0pt; FONT-FAMILY: "sans-serif"; FONT-SIZE: 11pt
}
DIV.MsoNormal {
        MARGIN: 0in 0in 0pt; FONT-FAMILY: "sans-serif"; FONT-SIZE: 11pt
}
.MsoChpDefault {
        FONT-SIZE: 10pt
}
filtered {
        MARGIN: 1in
}
DIV.Section1 {
        
}
</STYLE>
<P style="COLOR: rgb(96,0,191)" class=MsoNormal><SPAN
style="FONT-SIZE: 10pt">Asif Rajan | Engineer Data Core</SPAN></P>
<P class=MsoNormal><B><SPAN style="FONT-SIZE: 10pt"></SPAN></B> </P>
<P class=MsoNormal><B style="COLOR: rgb(96,0,191)"><SPAN
style="FONT-SIZE: 10pt">Mobilink - Data Core Networks</SPAN></B><SPAN
style="FONT-SIZE: 10pt"></SPAN></P>
<P class=MsoNormal><SPAN style="COLOR: rgb(128,0,255); FONT-SIZE: 10pt">T
</SPAN><SPAN style="FONT-SIZE: 10pt">+92 21 3402 1855 </SPAN><SPAN
style="COLOR: rgb(96,0,191); FONT-SIZE: 10pt">EXT</SPAN><SPAN
style="FONT-SIZE: 10pt">5797 |</SPAN><SPAN
style="COLOR: rgb(96,0,191); FONT-SIZE: 10pt">C</SPAN><SPAN
style="FONT-SIZE: 10pt"> +</SPAN><SPAN style="FONT-SIZE: 10pt">92 302 822
5933</SPAN></P>
<P class=MsoNormal><BR><SPAN
style="FONT-FAMILY: Webdings; COLOR: green; FONT-SIZE: 18pt"
lang=EN-GB></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: Webdings; COLOR: green; FONT-SIZE: 18pt"
lang=EN-GB></SPAN><SPAN style="FONT-SIZE: 10pt" lang=EN-GB></SPAN><SPAN
style="COLOR: rgb(64,127,0); FONT-SIZE: 7.5pt" lang=EN-GB>SAVE PAPER - Do you
really need to printthis email?<BR></SPAN><SPAN
style="COLOR: rgb(64,127,0); FONT-SIZE: 10pt" lang=EN-GB></SPAN><SPAN
style="COLOR: rgb(64,127,0); FONT-SIZE: 7.5pt" lang=EN-GB>Thinkbefore you
print. Over 115 Billion sheets of paper are printed from PC's
annually.</SPAN><SPAN style="FONT-SIZE: 10pt" lang=EN-GB> </SPAN><SPAN
style="FONT-SIZE: 10pt"></SPAN></P>
<DIV><STRONG></STRONG> </DIV>
<DIV><BR></DIV></DIV><BR></BLOCKQUOTE></SPAN></DIV></BODY></HTML>