Logo
Home page Net-SNMP

Archive Search:

Require all words?

Site Search:
Google
Net-SNMP Tutorial -- snmptable

Net-SNMP Tutorial -- snmptable

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):

But you can adjust the width of the table
% snmptable -v 2c -c demopublic -Cw 80 test.net-snmp.org 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

Valid CSS!


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.