snmptable

obtain and print an SNMP table 

Command


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 7. Windows Server 2008 R2. Windows 8. Windows Server 2012. Windows 10. Windows Server 2016.


AVAILABILITY

PTC MKS Toolkit for System Administrators
PTC MKS Toolkit for Developers
PTC MKS Toolkit for Interoperability
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Miscellaneous:
snmp_variables, snmpcmd


PTC MKS Toolkit 10.1 Documentation Build 15.