[mrtg] Re: Referencing interfaces on Cisco's
Jason Frisvold
Jason.Frisvold at corp.ptd.net
Thu Jul 6 15:21:37 MEST 2000
The problem I see with that is that I need this to be automated... That's
going to require a lot of extra code that I don't want to write..
---------------------------
Jason H. Frisvold
Head ATM Engineer
Engineering Dept.
Penteledata
friz at corp.ptd.net
---------------------------
"Only two things are infinite, the universe and human stupidity, and I'm not
sure about the former." - Albert Einstein
-----Original Message-----
From: Luke Dudney [mailto:luke.dudney at wn.com.au]
Sent: Tuesday, July 04, 2000 3:25 AM
To: 'mrtg at list.ee.ethz.ch'
Cc: 'Jason.Frisvold at corp.ptd.net'
Subject: [mrtg] Re: Referencing interfaces on Cisco's
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
--
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