VoyForums
[ Show ]
Support VoyForums
[ Shrink ]
VoyForums Announcement: Programming and providing support for this service has been a labor of love since 1997. We are one of the few services online who values our users' privacy, and have never sold your information. We have even fought hard to defend your privacy in legal cases; however, we've done it with almost no financial support -- paying out of pocket to continue providing the service. Due to the issues imposed on us by advertisers, we also stopped hosting most ads on the forums many years ago. We hope you appreciate our efforts.

Show your support by donating any amount. (Note: We are still technically a for-profit company, so your contribution is not tax-deductible.) PayPal Acct: Feedback:

Donate to VoyForums (PayPal):

Login ] [ Contact Forum Admin ] [ Main index ] [ Post a new message ] [ Search | Check update time | Archives: 1[2] ]


[ Next Thread | Previous Thread | Next Message | Previous Message ]

Date Posted: 02:09:40 01/19/07 Fri
Author: Anandan
Subject: snmpbulkwalk
In reply to: Anandan 's message, "Net Snmp Commands" on 22:59:39 01/15/07 Mon

snmpbulkwalk command uses the get-bulk command sequence to retrieve parts of a MIB. It walks the entire tre until it reaches the end or retrieves all the requested objects. Its syntax is:
snmpbulkwalk -v2c options hostname community objectID.

In my system it worked like this:
$snmpbulkwalk -v2c -cpublic localhost interfaces
IF-MIB::ifNumber.0 = INTEGER: 10
IF-MIB::ifIndex.1 = INTEGER: 1
IF-MIB::ifIndex.2 = INTEGER: 2
IF-MIB::ifIndex.3 = INTEGER: 3
IF-MIB::ifIndex.4 = INTEGER: 4
IF-MIB::ifIndex.5 = INTEGER: 5
IF-MIB::ifIndex.6 = INTEGER: 6
IF-MIB::ifIndex.7 = INTEGER: 7
IF-MIB::ifIndex.8 = INTEGER: 8
IF-MIB::ifIndex.9 = INTEGER: 9
IF-MIB::ifIndex.10 = INTEGER: 10
IF-MIB::ifDescr.1 = STRING: FastEthernet0/0
IF-MIB::ifDescr.2 = STRING: FastEthernet1/0
IF-MIB::ifDescr.3 = STRING: FastEthernet0/1
IF-MIB::ifDescr.4 = STRING: Loopback1
IF-MIB::ifDescr.5 = STRING: FastEthernet0/0
IF-MIB::ifDescr.6 = STRING: FastEthernet0/0
IF-MIB::ifDescr.7 = STRING: FastEthernet0/0
IF-MIB::ifDescr.8 = STRING: FastEthernet0/0
IF-MIB::ifDescr.9 = STRING: FastEthernet0/0
IF-MIB::ifDescr.10 = STRING: FastEthernet0/0
IF-MIB::ifType.1 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.2 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.3 = INTEGER: rfc877x25(5)
IF-MIB::ifType.4 = INTEGER: ddnX25(4)
IF-MIB::ifType.5 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.6 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.7 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.8 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.9 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.10 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifMtu.1 = INTEGER: 1500
IF-MIB::ifMtu.2 = INTEGER: 1500
IF-MIB::ifMtu.3 = INTEGER: 1500
IF-MIB::ifMtu.4 = INTEGER: 1500
IF-MIB::ifMtu.5 = INTEGER: 1500
IF-MIB::ifMtu.6 = INTEGER: 1500
IF-MIB::ifMtu.7 = INTEGER: 1500
IF-MIB::ifMtu.8 = INTEGER: 1500
IF-MIB::ifMtu.9 = INTEGER: 1500
IF-MIB::ifMtu.10 = INTEGER: 1500
IF-MIB::ifSpeed.1 = Gauge32: 100000000
IF-MIB::ifSpeed.2 = Gauge32: 100000000
IF-MIB::ifSpeed.3 = Gauge32: 100000000
IF-MIB::ifSpeed.4 = Gauge32: 100000000
IF-MIB::ifSpeed.5 = Gauge32: 100000000
IF-MIB::ifSpeed.6 = Gauge32: 100000000
IF-MIB::ifSpeed.7 = Gauge32: 100000000
IF-MIB::ifSpeed.8 = Gauge32: 100000000
IF-MIB::ifSpeed.9 = Gauge32: 100000000
IF-MIB::ifSpeed.10 = Gauge32: 100000000
IF-MIB::ifPhysAddress.1 = STRING: 30:3a:62:3a:34:36:3a:35:61:3a:32:66:3a:38:30
IF-MIB::ifPhysAddress.2 = STRING: 30:3a:62:3a:34:36:3a:35:61:3a:32:66:3a:38:30
IF-MIB::ifPhysAddress.3 = STRING: 30:3a:62:3a:34:36:3a:35:61:3a:32:66:3a:38:30
IF-MIB::ifPhysAddress.4 = STRING: 30:3a:62:3a:34:36:3a:35:61:3a:32:66:3a:38:30
IF-MIB::ifPhysAddress.5 = STRING: 30:3a:62:3a:34:36:3a:35:61:3a:32:66:3a:38:30
IF-MIB::ifPhysAddress.6 = STRING: 30:3a:62:3a:34:36:3a:35:61:3a:32:66:3a:38:30
IF-MIB::ifPhysAddress.7 = STRING: 30:3a:62:3a:34:36:3a:35:61:3a:32:66:3a:38:30
IF-MIB::ifPhysAddress.8 = STRING: 30:3a:62:3a:34:36:3a:35:61:3a:32:66:3a:38:30
IF-MIB::ifPhysAddress.9 = STRING: 30:3a:62:3a:34:36:3a:35:61:3a:32:66:3a:38:30
IF-MIB::ifPhysAddress.10 = STRING: 30:3a:62:3a:34:36:3a:35:61:3a:32:66:3a:38:30
IF-MIB::ifAdminStatus.1 = INTEGER: up(1)
IF-MIB::ifAdminStatus.2 = INTEGER: up(1)
IF-MIB::ifAdminStatus.3 = INTEGER: up(1)
IF-MIB::ifAdminStatus.4 = INTEGER: up(1)
IF-MIB::ifAdminStatus.5 = INTEGER: up(1)
IF-MIB::ifAdminStatus.6 = INTEGER: up(1)
IF-MIB::ifAdminStatus.7 = INTEGER: up(1)
IF-MIB::ifAdminStatus.8 = INTEGER: up(1)
IF-MIB::ifAdminStatus.9 = INTEGER: up(1)
IF-MIB::ifAdminStatus.10 = INTEGER: up(1)
IF-MIB::ifOperStatus.1 = INTEGER: up(1)
IF-MIB::ifOperStatus.2 = INTEGER: up(1)
IF-MIB::ifOperStatus.3 = INTEGER: up(1)
IF-MIB::ifOperStatus.4 = INTEGER: up(1)
IF-MIB::ifOperStatus.5 = INTEGER: up(1)
IF-MIB::ifOperStatus.6 = INTEGER: up(1)
IF-MIB::ifOperStatus.7 = INTEGER: up(1)
IF-MIB::ifOperStatus.8 = INTEGER: up(1)
IF-MIB::ifOperStatus.9 = INTEGER: up(1)
IF-MIB::ifOperStatus.10 = INTEGER: up(1)
IF-MIB::ifLastChange.1 = Timeticks: (1) 0:00:00.01
IF-MIB::ifLastChange.2 = Timeticks: (1) 0:00:00.01
IF-MIB::ifLastChange.3 = Timeticks: (1) 0:00:00.01
IF-MIB::ifLastChange.4 = Timeticks: (1) 0:00:00.01
IF-MIB::ifLastChange.5 = Timeticks: (1) 0:00:00.01
IF-MIB::ifLastChange.6 = Timeticks: (1) 0:00:00.01
IF-MIB::ifLastChange.7 = Timeticks: (1) 0:00:00.01
IF-MIB::ifLastChange.8 = Timeticks: (1) 0:00:00.01
IF-MIB::ifLastChange.9 = Timeticks: (1) 0:00:00.01
IF-MIB::ifLastChange.10 = Timeticks: (1) 0:00:00.01
IF-MIB::ifInOctets.1 = Counter32: 38908
IF-MIB::ifInOctets.2 = Counter32: 38466
IF-MIB::ifInOctets.3 = Counter32: 38466
IF-MIB::ifInOctets.4 = Counter32: 38466
IF-MIB::ifInOctets.5 = Counter32: 38466
IF-MIB::ifInOctets.6 = Counter32: 38024
IF-MIB::ifInOctets.7 = Counter32: 38024
IF-MIB::ifInOctets.8 = Counter32: 38024
IF-MIB::ifInOctets.9 = Counter32: 38024
IF-MIB::ifInOctets.10 = Counter32: 38024
IF-MIB::ifInUcastPkts.1 = Counter32: 2644195
IF-MIB::ifInUcastPkts.2 = Counter32: 2644195
IF-MIB::ifInUcastPkts.3 = Counter32: 2644195
IF-MIB::ifInUcastPkts.4 = Counter32: 2644195
IF-MIB::ifInUcastPkts.5 = Counter32: 2644195
IF-MIB::ifInUcastPkts.6 = Counter32: 2644195
IF-MIB::ifInUcastPkts.7 = Counter32: 2644195
IF-MIB::ifInUcastPkts.8 = Counter32: 2644195
IF-MIB::ifInUcastPkts.9 = Counter32: 2644195
IF-MIB::ifInUcastPkts.10 = Counter32: 2644195
IF-MIB::ifInNUcastPkts.1 = Counter32: 2644195
IF-MIB::ifInNUcastPkts.2 = Counter32: 2644195
IF-MIB::ifInNUcastPkts.3 = Counter32: 2644195
IF-MIB::ifInNUcastPkts.4 = Counter32: 2644195
IF-MIB::ifInNUcastPkts.5 = Counter32: 2644195
IF-MIB::ifInNUcastPkts.6 = Counter32: 2644195
IF-MIB::ifInNUcastPkts.7 = Counter32: 2644195
IF-MIB::ifInNUcastPkts.8 = Counter32: 2644195
IF-MIB::ifInNUcastPkts.9 = Counter32: 2644195
IF-MIB::ifInNUcastPkts.10 = Counter32: 2644195
IF-MIB::ifInDiscards.1 = Counter32: 0
IF-MIB::ifInDiscards.2 = Counter32: 0
IF-MIB::ifInDiscards.3 = Counter32: 0
IF-MIB::ifInDiscards.4 = Counter32: 0
IF-MIB::ifInDiscards.5 = Counter32: 0
IF-MIB::ifInDiscards.6 = Counter32: 0
IF-MIB::ifInDiscards.7 = Counter32: 0
IF-MIB::ifInDiscards.8 = Counter32: 0
IF-MIB::ifInDiscards.9 = Counter32: 0
IF-MIB::ifInDiscards.10 = Counter32: 0
IF-MIB::ifInErrors.1 = Counter32: 0
IF-MIB::ifInErrors.2 = Counter32: 0
IF-MIB::ifInErrors.3 = Counter32: 0
IF-MIB::ifInErrors.4 = Counter32: 0
IF-MIB::ifInErrors.5 = Counter32: 0
IF-MIB::ifInErrors.6 = Counter32: 0
IF-MIB::ifInErrors.7 = Counter32: 0
IF-MIB::ifInErrors.8 = Counter32: 0
IF-MIB::ifInErrors.9 = Counter32: 0
IF-MIB::ifInErrors.10 = Counter32: 0
IF-MIB::ifInUnknownProtos.1 = Counter32: 0
IF-MIB::ifInUnknownProtos.2 = Counter32: 0
IF-MIB::ifInUnknownProtos.3 = Counter32: 0
IF-MIB::ifInUnknownProtos.4 = Counter32: 0
IF-MIB::ifInUnknownProtos.5 = Counter32: 0
IF-MIB::ifInUnknownProtos.6 = Counter32: 0
IF-MIB::ifInUnknownProtos.7 = Counter32: 0
IF-MIB::ifInUnknownProtos.8 = Counter32: 0
IF-MIB::ifInUnknownProtos.9 = Counter32: 0
IF-MIB::ifInUnknownProtos.10 = Counter32: 0
IF-MIB::ifOutOctets.1 = Counter32: 46470
IF-MIB::ifOutOctets.2 = Counter32: 45936
IF-MIB::ifOutOctets.3 = Counter32: 45936
IF-MIB::ifOutOctets.4 = Counter32: 45936
IF-MIB::ifOutOctets.5 = Counter32: 45936
IF-MIB::ifOutOctets.6 = Counter32: 45936
IF-MIB::ifOutOctets.7 = Counter32: 45936
IF-MIB::ifOutOctets.8 = Counter32: 45936
IF-MIB::ifOutOctets.9 = Counter32: 45936
IF-MIB::ifOutOctets.10 = Counter32: 45936
IF-MIB::ifOutUcastPkts.1 = Counter32: 2644195
IF-MIB::ifOutUcastPkts.2 = Counter32: 2644195
IF-MIB::ifOutUcastPkts.3 = Counter32: 2644195
IF-MIB::ifOutUcastPkts.4 = Counter32: 2644195
IF-MIB::ifOutUcastPkts.5 = Counter32: 2644195
IF-MIB::ifOutUcastPkts.6 = Counter32: 2644195
IF-MIB::ifOutUcastPkts.7 = Counter32: 2644195
IF-MIB::ifOutUcastPkts.8 = Counter32: 2644195
IF-MIB::ifOutUcastPkts.9 = Counter32: 2644195
IF-MIB::ifOutUcastPkts.10 = Counter32: 2644195
IF-MIB::ifOutNUcastPkts.1 = Counter32: 2644195
IF-MIB::ifOutNUcastPkts.2 = Counter32: 2644195
IF-MIB::ifOutNUcastPkts.3 = Counter32: 2644195
IF-MIB::ifOutNUcastPkts.4 = Counter32: 2644195
IF-MIB::ifOutNUcastPkts.5 = Counter32: 2644195
IF-MIB::ifOutNUcastPkts.6 = Counter32: 2644195
IF-MIB::ifOutNUcastPkts.7 = Counter32: 2644195
IF-MIB::ifOutNUcastPkts.8 = Counter32: 2644195
IF-MIB::ifOutNUcastPkts.9 = Counter32: 2644195
IF-MIB::ifOutNUcastPkts.10 = Counter32: 2644195
IF-MIB::ifOutDiscards.1 = Counter32: 0
IF-MIB::ifOutDiscards.2 = Counter32: 0
IF-MIB::ifOutDiscards.3 = Counter32: 0
IF-MIB::ifOutDiscards.4 = Counter32: 0
IF-MIB::ifOutDiscards.5 = Counter32: 0
IF-MIB::ifOutDiscards.6 = Counter32: 0
IF-MIB::ifOutDiscards.7 = Counter32: 0
IF-MIB::ifOutDiscards.8 = Counter32: 0
IF-MIB::ifOutDiscards.9 = Counter32: 0
IF-MIB::ifOutDiscards.10 = Counter32: 0
IF-MIB::ifOutErrors.1 = Counter32: 0
IF-MIB::ifOutErrors.2 = Counter32: 0
IF-MIB::ifOutErrors.3 = Counter32: 0
IF-MIB::ifOutErrors.4 = Counter32: 0
IF-MIB::ifOutErrors.5 = Counter32: 0
IF-MIB::ifOutErrors.6 = Counter32: 0
IF-MIB::ifOutErrors.7 = Counter32: 0
IF-MIB::ifOutErrors.8 = Counter32: 0
IF-MIB::ifOutErrors.9 = Counter32: 0
IF-MIB::ifOutErrors.10 = Counter32: 0
IF-MIB::ifOutQLen.1 = Gauge32: 56
IF-MIB::ifOutQLen.2 = Gauge32: 56
IF-MIB::ifOutQLen.3 = Gauge32: 56
IF-MIB::ifOutQLen.4 = Gauge32: 56
IF-MIB::ifOutQLen.5 = Gauge32: 56
IF-MIB::ifOutQLen.6 = Gauge32: 56
IF-MIB::ifOutQLen.7 = Gauge32: 56
IF-MIB::ifOutQLen.8 = Gauge32: 56
IF-MIB::ifOutQLen.9 = Gauge32: 56
IF-MIB::ifOutQLen.10 = Gauge32: 56
IF-MIB::ifSpecific.1 = OID: iso.1.3
IF-MIB::ifSpecific.2 = OID: iso.1.3
IF-MIB::ifSpecific.3 = OID: iso.1.3
IF-MIB::ifSpecific.4 = OID: iso.1.3
IF-MIB::ifSpecific.5 = OID: iso.1.3
IF-MIB::ifSpecific.6 = OID: iso.1.3
IF-MIB::ifSpecific.7 = OID: iso.1.3
IF-MIB::ifSpecific.8 = OID: iso.1.3
IF-MIB::ifSpecific.9 = OID: iso.1.3
IF-MIB::ifSpecific.10 = OID: iso.1.3

Compare this output with output of snmpbulkget
snmpbulkget -v2c -cpublic localhost interfaces
IF-MIB::ifNumber.0 = INTEGER: 10
IF-MIB::ifIndex.1 = INTEGER: 1
IF-MIB::ifIndex.2 = INTEGER: 2
IF-MIB::ifIndex.3 = INTEGER: 3
IF-MIB::ifIndex.4 = INTEGER: 4
IF-MIB::ifIndex.5 = INTEGER: 5
IF-MIB::ifIndex.6 = INTEGER: 6
IF-MIB::ifIndex.7 = INTEGER: 7
IF-MIB::ifIndex.8 = INTEGER: 8
IF-MIB::ifIndex.9 = INTEGER: 9

[ Next Thread | Previous Thread | Next Message | Previous Message ]


Replies:

  • snmpnetstat -- Anandan, 21:31:43 01/28/07 Sun
    [ Contact Forum Admin ]


    Forum timezone: GMT-8
    VF Version: 3.00b, ConfDB:
    Before posting please read our privacy policy.
    VoyForums(tm) is a Free Service from Voyager Info-Systems.
    Copyright © 1998-2019 Voyager Info-Systems. All Rights Reserved.