SYNOPSIS
snmptable [COMMON_OPTIONS] TABLE-OID
DESCRIPTION
The snmptable utility is an SNMP application that repeatedly uses the SNMP GETNEXT or GETBULK requests to query for information on a network entity. The parameter TABLE-OID must specify an SNMP table.
Options
-Cb -
Displays only a brief heading. Any common prefix of the table field names will be deleted.
-CB -
Does not use GETBULK requests to retrieve data, only GETNEXT.
-Cf STRING-
Uses the string STRING to separate table columns. With this option, each table entry will be printed in compact form, just with the string given to separate the columns (useful if you want to import it into a database). Otherwise it is printed in nicely aligned columns.
-Ch -
Displays only the column headings.
-CH -
Does not display the column headings.
-Ci -
Prepends the index of the entry to all printed lines.
-Cw WIDTH-
Specifies the width of the lines when the table is printed. If the lines will be longer, the table will be printed in sections of at most WIDTH characters.
In addition to these options, snmptable takes the common options described in the snmpcmd reference page.
EXAMPLES
$ snmptable -c public localhost at.attable
SNMP table: at.atTable
atIfIndex atPhysAddress atNetAddress
1 8:0:20:20:0:ab 130.225.243.33
$ snmptable -c public localhost -Cf + at.attable SNMP table: at.atTable atIfIndex+atPhysAddress+atNetAddress 1+8:0:20:20:0:ab+130.225.243.33
BUGS
The test for TABLE-OID actually specifying a table is rather heuristic. Note also that the test requires the defining MIB file to be loaded.
PORTABILITY
All UNIX systems. Windows 2000. Windows XP. Windows Server 2003. Windows Vista.
AVAILABILITY
MKS Toolkit for System Administrators
MKS Toolkit for Developers
MKS Toolkit for Interoperability
MKS Toolkit for Professional Developers
MKS Toolkit for Enterprise Developers
MKS Toolkit for Enterprise Developers 64-Bit Edition
SEE ALSO
- Miscellaneous:
- snmp_variables, snmpcmd
MKS Toolkit 9.2 Documentation Build 16.