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 snmptable command nicely displays a SNMP table for you in an easy to read column based fashion. Consider the sysORTable, which you saw all the data from in the last section. It's hard to get a good feel about the correlation of data when its displayed in a long list, like the output of snmpwalk gives you. Instead, snmptable nicely formats it for you (though sometimes it can be a bit wide, like in this example):
% snmptable -w 80 ucd-snmp.ucadvis.edu demopublic sysORTable SNMP table: system.sysORTable sysORIndex sysORID 1 .iso.org.dod.internet.snmpV2.snmpModules.snmpMIB 2 .iso.org.dod.internet.snmpV2.snmpModules.snmpVacmMIB.vacmMIBConformance.vacmMIBGroups.vacmBasicGroup 3 .iso.org.dod.internet.snmpV2.snmpModules.snmpFrameworkMIB.snmpFrameworkMIBConformance.snmpFrameworkMIBCompliances.snmpFrameworkMIBCompliance 4 .iso.org.dod.internet.snmpV2.snmpModules.snmpMPDMIB.snmpMPDMIBConformance.snmpMPDMIBCompliances.snmpMPDCompliance 5 .iso.org.dod.internet.snmpV2.snmpModules.snmpUsmMIB.usmMIBConformance.usmMIBCompliances.usmMIBCompliance SNMP table: system.sysORTable, part 2 sysORDescr sysORUpTime The Mib module for SNMPv2 entities. 0:0:00:00.00 View-based Access Control Model for SNMP. 0:0:00:00.00 The SNMP Management Architecture MIB. 0:0:00:00.00 The MIB for Message Processing and Dispatching. 0:0:00:00.00 The management information definitions for the SNMP User-based Security Model. 0:0:00:00.00
Last modified: Wednesday, 01-Aug-2018 04:41:28 UTC
For questions regarding web content and site functionality, please write to the net-snmp-users mail list.