[mrtg] Re: Referencing interfaces on Cisco's

Luke Dudney luke.dudney at wn.com.au
Tue Jul 4 09:24:39 MEST 2000


Jason
Just do an snmpwalk on the interfaces of your router.
You'll get something like this:

interfaces.ifTable.ifEntry.ifDescr.1 = "FastEthernet0/0"
interfaces.ifTable.ifEntry.ifDescr.2 = "Serial1/0"
interfaces.ifTable.ifEntry.ifDescr.3 = "Serial1/1"
interfaces.ifTable.ifEntry.ifDescr.4 = "Serial1/2"
interfaces.ifTable.ifEntry.ifDescr.5 = "Serial1/3"
interfaces.ifTable.ifEntry.ifDescr.6 = "Ethernet2/0"
interfaces.ifTable.ifEntry.ifDescr.7 = "Ethernet2/1"
interfaces.ifTable.ifEntry.ifDescr.8 = "Ethernet2/2"

i.e. interface 1 is FastEtheret0/0 etc.

Cheers
Luke

> -----Original Message-----
> From: Jason Frisvold [mailto:Jason.Frisvold at corp.ptd.net]
> Sent: Tuesday, July 04, 2000 3:19 PM
> To: mrtg at list.ee.ethz.ch
> Subject: [mrtg] Referencing interfaces on Cisco's
> 
> 
> 
> Hi all,
> 
> 	I have a need to manually create the .cfg files for 
> mrtg.  I have a
> full scripting system built for this purpose and it works 
> great for ATM
> switches and with routers provided it calls the cfgmaker 
> program.  I will be
> adding threshold checking in the next few days and because of 
> this, I need
> to create the .cfg files for the routers without the aid of 
> cfgmaker.  How
> do I reference the interface back to a number (eg. 
> 4:foo at bar.com) so that
> MRTG can properly retrieve the stats on that port.  For 
> instance, is every
> Ethernet0 mapped automatically to 3?  Is it per router type?  
> (ie. 7200 vs
> 4500)  Or is it by some sort of algorithm?  Any help on this 
> would be much
> appreciated.
> 
> Thanks,

--
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