UCD-SNMP Tutorial -- snmpwalk
Note: Much of this tutorial requires ucd-snmp-4.2.2 or higher!,
so make sure you get it before running the commands found in
this tutorial.
Note: A new tutorial for net-snmp 5.0 and above is available as well. The commands is
the ucd-snmp specific tutorial will not work as expected if you
are using net-snmp and not ucd-snmp.
The snmpwalk command essentially performs a whole series
of getnexts automatically for you, and stops when it returns
results that are no longer inside the range of the OID that you
originally specified. If you wanted to get all of the
information stored on a machine in the system MIB group, for
instance, you could use this command to do so:
% snmpwalk test.net-snmp.org demopublic system
system.sysDescr.0 = HP-UX ucd-snmp B.10.20 A 9000/715
system.sysObjectID.0 = OID: enterprises.ucdavis.ucdSnmpAgent.hpux10
system.sysUpTime.0 = Timeticks: (586998396) 67 days, 22:33:03.96
system.sysContact.0 = Wes Hardaker wjhardaker@ucdavis.edu
system.sysName.0 = ucd-snmp
system.sysLocation.0 = UCDavis
system.sysORLastChange.0 = Timeticks: (0) 0:00:00.00
system.sysORTable.sysOREntry.sysORIndex.1 = 1
system.sysORTable.sysOREntry.sysORIndex.2 = 2
system.sysORTable.sysOREntry.sysORIndex.3 = 3
system.sysORTable.sysOREntry.sysORIndex.4 = 4
system.sysORTable.sysOREntry.sysORIndex.5 = 5
system.sysORTable.sysOREntry.sysORID.1 = OID: .iso.org.dod.internet.snmpV2.snmpModules.snmpMIB
system.sysORTable.sysOREntry.sysORID.2 = OID: .iso.org.dod.internet.snmpV2.snmpModules.snmpVacmMIB.vacmMIBConformance.vacmMIBGroups.vacmBasicGroup
system.sysORTable.sysOREntry.sysORID.3 = OID: .iso.org.dod.internet.snmpV2.snmpModules.snmpFrameworkMIB.snmpFrameworkMIBConformance.snmpFrameworkMIBCompliances.snmpFrameworkMIBCompliance
system.sysORTable.sysOREntry.sysORID.4 = OID: .iso.org.dod.internet.snmpV2.snmpModules.snmpMPDMIB.snmpMPDMIBConformance.snmpMPDMIBCompliances.snmpMPDCompliance
system.sysORTable.sysOREntry.sysORID.5 = OID: .iso.org.dod.internet.snmpV2.snmpModules.snmpUsmMIB.usmMIBConformance.usmMIBCompliances.usmMIBCompliance
system.sysORTable.sysOREntry.sysORDescr.1 = The Mib module for SNMPv2 entities.
system.sysORTable.sysOREntry.sysORDescr.2 = View-based Access Control Model for SNMP.
system.sysORTable.sysOREntry.sysORDescr.3 = The SNMP Management Architecture MIB.
system.sysORTable.sysOREntry.sysORDescr.4 = The MIB for Message Processing and Dispatching.
system.sysORTable.sysOREntry.sysORDescr.5 = The management information definitions for the SNMP User-based Security Model.
system.sysORTable.sysOREntry.sysORUpTime.1 = Timeticks: (0) 0:00:00.00
system.sysORTable.sysOREntry.sysORUpTime.2 = Timeticks: (0) 0:00:00.00
system.sysORTable.sysOREntry.sysORUpTime.3 = Timeticks: (0) 0:00:00.00
system.sysORTable.sysOREntry.sysORUpTime.4 = Timeticks: (0) 0:00:00.00
system.sysORTable.sysOREntry.sysORUpTime.5 = Timeticks: (0) 0:00:00.00