[mrtg] Re: filtering _vlxxx

Tim Sheets TSheets at illinois.net
Mon May 3 20:46:31 MEST 2004

> -----Original Message-----
> From: Andrew Werbowy [mailto:Andrew_Werbowy at cbc.ca]
> Sent: Monday, May 03, 2004 11:31 AM
> To: mrtg at list.ee.ethz.ch
> Subject: [mrtg] filtering _vlxxx
> Easy question: how do I filter out VLAN configs from CISCO
> switches being created via Cfgmaker? I tried to use * filter 
> option, but it did not work for me... I must be doing 
> something wrong. Could someone post a sample of config with 
> --if-filter= implementation.


The example from the cfgmaker doc works well.

'--if-filter=($default_iftype && $if_admin)'

I have these filtered out, so am not sure what the type number is for
the VLANs off the top of my head.  You can find it in the top of the
page that is generated, or in the .cfg file that is built before
filtering it out.

As an example, if you wanted to filter out ATM sub interfaces and
frame-relay, you could use:
'--if-filter=($if_type!=134 && $if_type!=32)'

You may also want to do some other checking like $if_ok, $if_admin,

Good Luck!


Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi

More information about the mrtg mailing list