Get the dotted numeric notation of an object ID from the symbolic name or vice versa.
snmptranslate [-d] [-n] [-r] variable_name
The snmptranslate utility is used to obtain the symbolic name from the dotted numeric notation or vice versa - to obtain the dotted numeric notation from the symbolic name of an object identifier.
You can specify one fully qualified object identifier in the format specified in the file mib.txt.
Obtain the dotted numeric notation of the system subtree:
snmptranslate system
The output is similar to:
.1.3.6.1.2.1.1
Obtain the symbolic name for the object ID .1.3.6.1.2.1.1:
snmptranslate -n .1.3.6.1.2.1.1
The output is similar to:
system
This ID:
system.syscontact.0
will be printed as:
syscontact.0
This ID:
udp.udpTable.udpEntry.udpLocalAddress.0.0.0.161
will be printed as:
udpLocalAddress.0.0.0.161
The snmptranslate utility has an error processing the request; an error message is returned to help pinpoint how the request was malformed.
snmpd,
snmpgetnext,
snmpnetstat,
snmpstatus,
snmptest,
snmptrap,
snmptrapd,
snmpwalk
/etc/mib.txt file
RFC 1065, RFC 1066, RFC 1067, ISO 8824 (ASN.1)
RFC 1441, RFC 1445, RFC 1446, RFC 1448, RFC 1449
Marshall T. Rose, The Simple Book: An Introduction to
Internet Management, Revised 2nd ed. (Prentice-Hall,
1996, ISBN 0-13-451659-1)