snmptranslate - Man Page

translate MIB OID names between numeric and textual forms

Synopsis

snmptranslate [Options] OID [OID]...
snmptranslate [Options] -

Description

snmptranslate is an application that translates one or more SNMP object identifier values from their symbolic (textual) forms into their numerical forms (or vice versa).  

OID is either a numeric or textual object identifier.

The special - argument is used to translate multiple object IDs in one run. Input is taken from stdin, and output is written to stdout. The input format can be a single object ID per line, or can be the output of snmpwalk or snmpget .

Options

-D[TOKEN[,...]]

Turn on debugging output for the given TOKEN(s). Try ALL for extremely verbose output.

-h

Display a brief usage message and then exit.

-m MIBLIST

Specifies a colon separated list of MIB modules to load for this application.  This overrides the environment variable MIBS.

The special keyword ALL is used to specify all modules in all directories when searching for MIB files.  Every file whose name does not begin with "." will be parsed as if it were a MIB file.

-M DIRLIST

Specifies a colon separated list of directories to search for MIBs. This overrides the environment variable MIBDIRS.

-T TRANSOPTS

Provides control over the translation of the OID values.  The following TRANSOPTS are available:

-TB

Print all matching objects for a regex search.

-Td

Print full details of the specified OID.

-Tp

Print a graphical tree, rooted at the specified OID.

-Ta

Dump the loaded MIB in a trivial form.

-Tl

Dump a labeled form of all objects.

-To

Dump a numeric form of all objects.

-Ts

Dump a symbolic form of all objects.

-Tt

Dump a tree form of the loaded MIBs (mostly useful for debugging).

-Tz

Dump a numeric and labeled form of all objects (compatible with MIB2SCHEMA format).

-V

Display version information for the application and then exit.

-w WIDTH

Specifies the width of -Tp and -Td output. The default is very large.

In addition to the above options, snmptranslate takes the OID input (-I), MIB parsing (-M) and OID output (-O) options described in the INPUT OPTIONS, MIB PARSING OPTIONS and OUTPUT OPTIONS sections of the snmpcmd(1) manual page.

Examples

See Also

snmpcmd(1), variables(5), RFC 2578-2580.

Info

13 Nov 2013 V5.9.4.pre2 Net-SNMP