[mrtg] Re: ifinoctets, ifoutoctets
Andreas Nolte
anolte at ccietac.de
Thu Apr 11 11:14:54 MEST 2002
Hi,
the best way is to do a snmpwalk ip-address public interfaces.
Then you get the values of all interfaces which are available within the system.
Example:
*****************************************************************
nsdxanno at castor:~ > snmpwalk 10.0.1.1 public interfaces
interfaces.ifNumber.0 = 3
interfaces.ifTable.ifEntry.ifIndex.1 = 1
interfaces.ifTable.ifEntry.ifIndex.2 = 2
interfaces.ifTable.ifEntry.ifIndex.3 = 3
interfaces.ifTable.ifEntry.ifDescr.1 = FastEthernet0/0
interfaces.ifTable.ifEntry.ifDescr.2 = FastEthernet0/1
interfaces.ifTable.ifEntry.ifDescr.3 = Null0
interfaces.ifTable.ifEntry.ifType.1 = ethernetCsmacd(6)
interfaces.ifTable.ifEntry.ifType.2 = ethernetCsmacd(6)
interfaces.ifTable.ifEntry.ifType.3 = other(1)
interfaces.ifTable.ifEntry.ifMtu.1 = 1500
interfaces.ifTable.ifEntry.ifMtu.2 = 1500
interfaces.ifTable.ifEntry.ifMtu.3 = 1500
interfaces.ifTable.ifEntry.ifSpeed.1 = Gauge32: 10000000
interfaces.ifTable.ifEntry.ifSpeed.2 = Gauge32: 10000000
interfaces.ifTable.ifEntry.ifSpeed.3 = Gauge32: 4294967295
interfaces.ifTable.ifEntry.ifPhysAddress.1 = 0:7:50:a7:1c:40
interfaces.ifTable.ifEntry.ifPhysAddress.2 = 0:7:50:a7:1c:41
interfaces.ifTable.ifEntry.ifPhysAddress.3 =
interfaces.ifTable.ifEntry.ifAdminStatus.1 = up(1)
interfaces.ifTable.ifEntry.ifAdminStatus.2 = up(1)
interfaces.ifTable.ifEntry.ifAdminStatus.3 = up(1)
interfaces.ifTable.ifEntry.ifOperStatus.1 = up(1)
interfaces.ifTable.ifEntry.ifOperStatus.2 = up(1)
interfaces.ifTable.ifEntry.ifOperStatus.3 = up(1)
interfaces.ifTable.ifEntry.ifLastChange.1 = Timeticks: (1389166) 3:51:31.66
interfaces.ifTable.ifEntry.ifLastChange.2 = Timeticks: (1389165) 3:51:31.65
interfaces.ifTable.ifEntry.ifLastChange.3 = Timeticks: (0) 0:00:00.00
interfaces.ifTable.ifEntry.ifInOctets.1 = Counter32: 3644691929
interfaces.ifTable.ifEntry.ifInOctets.2 = Counter32: 3243199890
interfaces.ifTable.ifEntry.ifInOctets.3 = Counter32: 0
interfaces.ifTable.ifEntry.ifInUcastPkts.1 = Counter32: 150949014
interfaces.ifTable.ifEntry.ifInUcastPkts.2 = Counter32: 160025294
interfaces.ifTable.ifEntry.ifInUcastPkts.3 = Counter32: 0
interfaces.ifTable.ifEntry.ifInNUcastPkts.1 = Counter32: 9418054
interfaces.ifTable.ifEntry.ifInNUcastPkts.2 = Counter32: 30548476
interfaces.ifTable.ifEntry.ifInNUcastPkts.3 = Counter32: 0
interfaces.ifTable.ifEntry.ifInDiscards.1 = Counter32: 63
interfaces.ifTable.ifEntry.ifInDiscards.2 = Counter32: 469
interfaces.ifTable.ifEntry.ifInDiscards.3 = Counter32: 0
interfaces.ifTable.ifEntry.ifInErrors.1 = Counter32: 0
interfaces.ifTable.ifEntry.ifInErrors.2 = Counter32: 0
interfaces.ifTable.ifEntry.ifInErrors.3 = Counter32: 0
interfaces.ifTable.ifEntry.ifInUnknownProtos.1 = Counter32: 911419
interfaces.ifTable.ifEntry.ifInUnknownProtos.2 = Counter32: 25754012
interfaces.ifTable.ifEntry.ifInUnknownProtos.3 = Counter32: 0
interfaces.ifTable.ifEntry.ifOutOctets.1 = Counter32: 1149711933
interfaces.ifTable.ifEntry.ifOutOctets.2 = Counter32: 2908061695
interfaces.ifTable.ifEntry.ifOutOctets.3 = Counter32: 0
interfaces.ifTable.ifEntry.ifOutUcastPkts.1 = Counter32: 160001468
interfaces.ifTable.ifEntry.ifOutUcastPkts.2 = Counter32: 151270044
interfaces.ifTable.ifEntry.ifOutUcastPkts.3 = Counter32: 0
interfaces.ifTable.ifEntry.ifOutNUcastPkts.1 = Counter32: 25675
interfaces.ifTable.ifEntry.ifOutNUcastPkts.2 = Counter32: 27276
interfaces.ifTable.ifEntry.ifOutNUcastPkts.3 = Counter32: 0
interfaces.ifTable.ifEntry.ifOutDiscards.1 = Counter32: 0
interfaces.ifTable.ifEntry.ifOutDiscards.2 = Counter32: 0
interfaces.ifTable.ifEntry.ifOutDiscards.3 = Counter32: 0
interfaces.ifTable.ifEntry.ifOutErrors.1 = Counter32: 185
interfaces.ifTable.ifEntry.ifOutErrors.2 = Counter32: 29
interfaces.ifTable.ifEntry.ifOutErrors.3 = Counter32: 0
interfaces.ifTable.ifEntry.ifOutQLen.1 = Gauge32: 0
interfaces.ifTable.ifEntry.ifOutQLen.2 = Gauge32: 0
interfaces.ifTable.ifEntry.ifOutQLen.3 = Gauge32: 0
interfaces.ifTable.ifEntry.ifSpecific.1 = OID: .ccitt.zeroDotZero
interfaces.ifTable.ifEntry.ifSpecific.2 = OID: .ccitt.zeroDotZero
interfaces.ifTable.ifEntry.ifSpecific.3 = OID: .ccitt.zeroDotZero
nsdxanno at castor:~ >
********************************************************
I hope this helps you.
Regards
Andreas
On 11 Apr 2002 04:31:19 -0000
"tarik singh" <tarik at rediffmail.com> wrote:
>
> Hi everybody,
> I tried figuring out the two values-
> ifInoctets and IfOutoctets
> in the cfgmaker which forms the basis for the mrtg.cfg file
> generated by it. I could only figure out the ifinoctets & not
> ifoutoctets. I am new to this perl programming infact still
> learning it. Can anybody please tell me how does the mrtg monitors
> both the mibs by specifying only one.
>
> thanx
>
> regards
>
> tarik
> Network Programmer
> STPI
>
>
> --
> 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
>
--
******************
Andreas Nolte
Email: anolte at ccietac.de
--
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