<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style>
<!--
@font-face
        {font-family:Calibri}
@font-face
        {font-family:Tahoma}
@font-face
        {font-family:Arial-BoldMT}
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif"}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif"}
span.EmailStyle17
        {font-family:"Calibri","sans-serif";
        color:windowtext}
span.BalloonTextChar
        {font-family:"Tahoma","sans-serif"}
.MsoChpDefault
        {font-family:"Calibri","sans-serif"}
@page WordSection1
        {margin:1.0in 1.0in 1.0in 1.0in}
-->
</style><style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1" lang="EN-US" link="blue" vlink="purple">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">You need to modify your if-filter option.<br>
<br>
<span style="font-size:8.0pt">--if-filter=(($if_is_ethernet || $if_is_ciscovlan) && $if_admin && $if_oper)"<br>
</span>
<div><br>
To exclude interfaces with a description starting NDE_, do something like:<br>
<br>
<span style="font-size:8.0pt">--if-filter=(($if_is_ethernet || $if_is_ciscovlan) && $if_admin && $if_oper && ($if_description !~ /^NDE_/))"</span><br>
<br>
There are a number of other variables available for testing in the filter.  The filter should be a Perl code snippet that evaluates to true/false.<br>
<br>
HTH<br>
<br>
Steve<br>
<br>
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px"><strong>Steve Shipway</strong></div>
<div style="font-family:Tahoma; font-size:13px">University of Auckland ITS</div>
<div style="font-family:Tahoma; font-size:13px"><em>UNIX Systems Design Lead</em></div>
<div style="font-family:Tahoma; font-size:13px"><a href="mailto:s.shipway@auckland.ac.nz">s.shipway@auckland.ac.nz</a></div>
<div style="font-family:Tahoma; font-size:13px">Ph: +64 9 373 7599 ext 86487</div>
<div style="font-family:Tahoma; font-size:13px"><em></em> </div>
</div>
</div>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF294699"><font color="#000000" face="Tahoma" size="2"><b>From:</b> mrtg [mrtg-bounces+s.shipway=auckland.ac.nz@lists.oetiker.ch] on behalf of Stephen D. Rasmussen [srasmussen@sfasu.edu]<br>
<b>Sent:</b> Tuesday, 21 April 2015 3:40 a.m.<br>
<b>To:</b> mrtg@lists.oetiker.ch<br>
<b>Subject:</b> [mrtg] Need help trying to figure out how to filter out a certain type of interface<br>
</font><br>
</div>
<div></div>
<div>
<div class="WordSection1">
<p class="MsoNormal">All,</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">We are running MRTG and every time we run it the script I am running renders all of the interfaces I WANT it to, but also a couple which I don’t want.  I am hoping someone can tell me how to alter my current cfgmaker script to automatically
 ignore these interfaces.  My current script looks like this:<br>
<br>
</p>
<p class="MsoNormal"><span style="font-size:8.0pt">perl cfgmaker --ifdesc=alias --global WriteExpires:Yes --global "RunAsDaemon: yes" --global "options[_]: growright,bits" --global "WorkDir: c:\inetpub\wwwroot\mrtg" --output mrtg.cfg --subdirs=HOSTNAME --snmp-options=:::::2
 "--if-filter=(($if_is_ethernet || $if_is_ciscovlan) && $if_admin && $if_oper)" <a href="mailto:XXXXXXXX@##.##.##.##" target="_blank">
XXXXXXXX@##.##.##.##</a></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt"> </span></p>
<p class="MsoNormal"><span style="font-size:8.0pt"> </span></p>
<p class="MsoNormal">What I would like to do is put a filter in which automatically ignores interfaces with a DESCRIPTION like NDE_##.  Can anyone tell me what filter expression I could add to our cfgmaker script to ignore these automatically instead of having
 to comment them out of the config file after creation?</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Thanks in advance,</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
<table class="MsoNormalTable" style="width:265.5pt" border="0" cellpadding="0" width="354">
<tbody>
<tr style="height:96.0pt">
<td style="padding:1.5pt 1.5pt 1.5pt 1.5pt; height:96.0pt" valign="top">
<p class="MsoNormal"><span style="font-size:12.0pt; color:#1F497D"><img id="Picture_x0020_1" src="cid:image001.png@01D07B55.A9B6F200" alt="logo" border="0" height="100" width="108"></span></p>
</td>
<td style="width:212.15pt; padding:1.5pt 1.5pt 1.5pt 1.5pt; height:96.0pt" valign="top" width="283">
<p class="MsoNormal"><b><span style="font-size:10.0pt; font-family:"Arial","sans-serif"; color:#522398">Stephen Rasmussen</span></b><span style="font-size:10.0pt; font-family:"Arial","sans-serif"; color:#522398"><br>
<b>System Network Administrator<br>
</b></span><span style="font-size:10.0pt; font-family:"Arial","sans-serif"; color:black">Telecommunications and Networking</span><span style="color:#1F497D"></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:"Arial","sans-serif"; color:black">Stephen F. Austin State University</span><span style="color:#1F497D"></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:"Arial","sans-serif"; color:black">P.O. Box 6095, SFA Station</span><span style="color:#1F497D"></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:"Arial","sans-serif"; color:black">Nacogdoches, Texas 75962-6095</span></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:"Arial","sans-serif"; color:black">936-468-1246</span><span style="color:#1F497D"></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:10.0pt; font-family:"Arial","sans-serif"; color:black"><a href="mailto:srasmussen@sfasu.edu" target="_blank"><span style="color:blue">srasmussen@sfasu.edu</span></a></span><span style="font-size:10.0pt; font-family:"Arial","sans-serif"; color:#522398"> 
 |  </span><span style="font-size:10.0pt; font-family:"Arial","sans-serif"; color:black"><a href="http://www.sfasu.edu/" target="_blank"><span style="color:blue">www.sfasu.edu</span></a></span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal" style=""><b><span style="font-size:10.0pt; font-family:Arial-BoldMT; color:#5F497A">“The views and opinions expressed in this message are my own and do not necessarily reflect the views and opinions of Stephen F. Austin State University,
 its Board of Regents, or the State of Texas.”</span></b><b><span style="font-size:12.0pt; color:#5F497A"></span></b></p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
</div>
</div>
</div>
</div>
</body>
</html>