[mrtg] MRTG for specific Interfaces on Cisco Device

Thiel, Mark MThiel at Limitedbrands.com
Thu Jun 4 15:41:25 CEST 2009

Thanks Dan.

I have been looking over that in detail and am unable to find a variable for a specific name of an interface.

I can see that:


would grab ethernet interfaces, but I only need 2 of them from a particular switch.

Is there a variable (possibly not documented), where I could do something like this:

Switch #1

'--if-filter=$if_name=gigabit5/1 || $if_name=gigabit5/2'

Switch #2

'--if-filter=$if_name=gigabit6/3 || $if_name=gigabit6/4'


Mark Thiel

-----Original Message-----
From: mrtg-bounces at lists.oetiker.ch [mailto:mrtg-bounces at lists.oetiker.ch] On Behalf Of McDonald, Dan
Sent: Thursday, June 04, 2009 9:37 AM
To: mrtg at lists.oetiker.ch
Subject: Re: [mrtg] MRTG for specific Interfaces on Cisco Device

On Thu, 2009-06-04 at 09:07 -0400, Thiel, Mark wrote:
> Is there a way to build a config file that will allow you to choose
> specific interfaces on a Cisco device (ie gi5/1 & gi5/2), and ignore
> everything else on the device?

Yes.  cfgmaker has an --if-filter option.  Please see the cfgmaker guide for complete details.

Daniel J McDonald, CCIE # 2495, CISSP # 78281, CNX www.austinenergy.com

Notice:  This communication may contain privileged and/or confidential information. If you are not the intended recipient, please notify the sender by email, and immediately delete the message and any attachments without copying or disclosing them. LBI may, for any reason, intercept, access, use, and disclose any information that is communicated by or through, or which is stored on, its networks, applications, services, and devices.

More information about the mrtg mailing list