> -----Original Message-----
> From: Andrew Werbowy [mailto:[EMAIL PROTECTED]
> Sent: Monday, May 03, 2004 11:31 AM
> To: [EMAIL PROTECTED]
> 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.

Andrew,

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,
etc...

Good Luck!

Tim

--
Unsubscribe mailto:[EMAIL PROTECTED]
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

Reply via email to