Here are some examples around how I use the --if-filter option:
 
 
This command...
./cfgmaker --if-filter='$default && $if_is_ethernet' pub...@router
...will only build configs for ethernet (type 6,7,26,62,69,117)
interfaces.
 
This command...
./cfgmaker --if-filter='$if_type==136 || $if_type==23' pub...@router
...will only build configs for interfaces of type 136 (layer 3 vlan) or
type 23 (ppp).
 
This command...
./cfgmaker --if-filter='$default && $if_is_wan' pub...@router
...will build configs for WAN (type 22,30,32,39,44,46) interfaces only.
 
 
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. 
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.
 
 
 



 
 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.  If you no longer wish to receive e-mail from Edward 
Jones, please send this request to [email protected].  You must include 
the e-mail address that you wish not to receive e-mail communications.  For 
important additional information related to this e-mail, visit 
www.edwardjones.com/US_email_disclosure
 
________________________________
 


        From: [email protected]
[mailto:[email protected]] On
Behalf Of Asif Rajan
        Sent: Thursday, June 03, 2010 4:08 AM
        To: [email protected]
        Subject: [mrtg] Need help with --if-filter=f option
        
        
        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 :)
        
        Regards
        
         

        Asif Rajan | Engineer Data Core

         

        Mobilink - Data Core Networks

        T +92 21 3402 1855 EXT5797 |C +92 302 822 5933

        
        

        SAVE PAPER - Do you really need to printthis email?
        Thinkbefore you print. Over 115 Billion sheets of paper are
printed from PC's annually.
_______________________________________________
mrtg mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg

Reply via email to