[mrtg] Re: Interface

Alex van den Bogaerdt alex at slot.hollandcasino.nl
Sat Sep 25 00:49:07 MEST 1999


> 
> Hi, I found the following OID at the mrtg documentation in order
> to measure packets dropped.
> 
> 1.3.6.1.2.1.2.2.1.19..<interface>
> 
> How is the interface numbered?.
> 
If you run cfgmaker on it, it will show you which is which.

You could also use snmpwalk and do

  snmpwalk cisco public .1.3.6.1.2.1.2.2.1.2

to get something like
  interfaces.ifTable.ifEntry.ifDescr.1 = "BRI0: B-Channel 1"
  interfaces.ifTable.ifEntry.ifDescr.2 = "BRI0: B-Channel 2"
  interfaces.ifTable.ifEntry.ifDescr.3 = "BRI0" Hex: 42 52 49 30
  interfaces.ifTable.ifEntry.ifDescr.4 = "Ethernet0"
  interfaces.ifTable.ifEntry.ifDescr.5 = "Loopback0"
  interfaces.ifTable.ifEntry.ifDescr.6 = "Tunnel0"
  interfaces.ifTable.ifEntry.ifDescr.7 = "Async1"

In my case it is four for the ethernet ifIn and ifOut. The same
number (4) is valid for the other stats such as packets dropped.

Output of "snmpwalk cisco public .1.3.6.1.2.1.2.2.1 | grep '\.4 = '" :

interfaces.ifTable.ifEntry.ifIndex.4 = 4
interfaces.ifTable.ifEntry.ifDescr.4 = "Ethernet0"
interfaces.ifTable.ifEntry.ifType.4 = ethernet-csmacd(6)
interfaces.ifTable.ifEntry.ifMtu.4 = 1500
interfaces.ifTable.ifEntry.ifSpeed.4 = Gauge: 10000000
interfaces.ifTable.ifEntry.ifPhysAddress.4 =  Hex: 00 60 5C F4 48 43
interfaces.ifTable.ifEntry.ifAdminStatus.4 = up(1)
interfaces.ifTable.ifEntry.ifOperStatus.4 = up(1)
interfaces.ifTable.ifEntry.ifLastChange.4 = Timeticks: (456648) 1:16:06
interfaces.ifTable.ifEntry.ifInOctets.4 = 3967528604
interfaces.ifTable.ifEntry.ifInUcastPkts.4 = 6751834
interfaces.ifTable.ifEntry.ifInNUcastPkts.4 = 327137
interfaces.ifTable.ifEntry.ifInDiscards.4 = 1
interfaces.ifTable.ifEntry.ifInErrors.4 = 0
interfaces.ifTable.ifEntry.ifInUnknownProtos.4 = 1
interfaces.ifTable.ifEntry.ifOutOctets.4 = 1174262249
interfaces.ifTable.ifEntry.ifOutUcastPkts.4 = 4842351
interfaces.ifTable.ifEntry.ifOutNUcastPkts.4 = 2589074
interfaces.ifTable.ifEntry.ifOutDiscards.4 = 0
interfaces.ifTable.ifEntry.ifOutErrors.4 = 0
interfaces.ifTable.ifEntry.ifOutQLen.4 = Gauge: 0
interfaces.ifTable.ifEntry.22.4 = OID: .ccitt.0

Regards,
Alex

--
* To unsubscribe from the mrtg mailing list, send a message with the
  subject: unsubscribe to mrtg-request at list.ee.ethz.ch
* The mailing list archive is at http://www.ee.ethz.ch/~slist/mrtg


More information about the mrtg mailing list