1
.\" Portions of this file are subject to the following copyright. See
2
.\" the Net-SNMP's COPYING file for more details and other copyrights
4
.\" /***********************************************************
5
.\" Copyright 1988, 1989 by Carnegie Mellon University
7
.\" All Rights Reserved
9
.\" Permission to use, copy, modify, and distribute this software and its
10
.\" documentation for any purpose and without fee is hereby granted,
11
.\" provided that the above copyright notice appear in all copies and that
12
.\" both that copyright notice and this permission notice appear in
13
.\" supporting documentation, and that the name of CMU not be
14
.\" used in advertising or publicity pertaining to distribution of the
15
.\" software without specific, written prior permission.
17
.\" CMU DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
18
.\" ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
19
.\" CMU BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
20
.\" ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
21
.\" WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
22
.\" ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
24
.\" ******************************************************************/
25
.\" Portions of this file are copyrighted by:
26
.\" Copyright Copyright 2003 Sun Microsystems, Inc. All rights reserved.
27
.\" Use is subject to license terms specified in the COPYING file
28
.\" distributed with the Net-SNMP package.
29
.\" ******************************************************************/
30
.TH SNMPTRANSLATE 1 "25 Jul 2003" VVERSIONINFO "Net-SNMP"
33
snmptranslate - translate SNMP OID values into more useful information
36
[OPTIONS] OID [OID]...
39
is an application that translates one or more SNMP object identifier
40
values from their symbolic (textual) forms into their numerical forms
43
OID is either a numeric or textual object identifier.
47
Turn on debugging output for the given
51
for extremely verbose output.
54
Display a brief usage message and then exit.
57
Specifies a colon separated list of MIB modules to load for this
58
application. This overrides the environment variable MIBS.
62
is used to specify all modules in all directories when searching for MIB
63
files. Every file whose name does not begin with "." will be parsed as
64
if it were a MIB file.
67
Specifies a colon separated list of directories to search for MIBs.
68
This overrides the environment variable MIBDIRS.
71
Provides control over the translation of the OID values. The
78
Print full details of the specified OID.
81
Print a graphical tree, rooted at the specified OID.
84
Dump the loaded MIB in a trivial form.
87
Dump a labeled form of all objects.
90
Dump a numeric form of all objects.
93
Dump a symbolic form of all objects.
96
Dump a tree form of the loaded MIBs (mostly useful for debugging).
100
Display version information for the application and then exit.
103
Specifies the width of
107
output. The default is very large.
109
In addition to the above options,
117
options described in the
118
.BR "INPUT OPTIONS" ", " "MIB PARSING OPTIONS" " and " "OUTPUT OPTIONS"
124
snmptranslate -On -IR sysDescr
126
will translate "sysDescr" to a more qualified form:
130
snmptranslate -Onf -IR sysDescr
132
will translate "sysDecr" to:
134
.RI .iso.org.dod.internet.mgmt.mib-2.system.sysDescr
136
snmptranslate -Td -OS system.sysDescr
138
will translate "sysDecr" into:
144
-- TEXTUAL CONVENTION DisplayString
145
SYNTAX OCTET STRING (0..255)
149
DESCRIPTION "A textual description of the entity. This
150
value should include the full name and
151
version identification of the system's
152
hardware type, software operating-system,
153
and networking software."
154
::= { iso(1) org(3) dod(6) internet(1) mgmt(2) mib-2(1) system(1) 1 }
157
snmptranslate -Tp -OS system
159
will print the following tree:
164
+-- -R-- String sysDescr(1)
165
| Textual Convention: DisplayString
167
+-- -R-- ObjID sysObjectID(2)
168
+-- -R-- TimeTicks sysUpTime(3)
169
+-- -RW- String sysContact(4)
170
| Textual Convention: DisplayString
172
+-- -RW- String sysName(5)
173
| Textual Convention: DisplayString
175
+-- -RW- String sysLocation(6)
176
| Textual Convention: DisplayString
178
+-- -R-- Integer sysServices(7)
179
+-- -R-- TimeTicks sysORLastChange(8)
180
| Textual Convention: TimeStamp
186
+-- ---- Integer sysORIndex(1)
187
+-- -R-- ObjID sysORID(2)
188
+-- -R-- String sysORDescr(3)
189
| Textual Convention: DisplayString
191
+-- -R-- TimeTicks sysORUpTime(4)
192
Textual Convention: TimeStamp
197
snmptranslate -Ta | head
199
will produce the following dump:
202
dump DEFINITIONS ::= BEGIN
205
internet ::= { dod 1 }
206
directory ::= { internet 1 }
207
mgmt ::= { internet 2 }
208
experimental ::= { internet 3 }
209
private ::= { internet 4 }
210
security ::= { internet 5 }
211
snmpV2 ::= { internet 6 }
215
snmptranslate -Tl | head
217
will produce the following dump:
221
.RI .iso(1).org(3).dod(6)
222
.RI .iso(1).org(3).dod(6).internet(1)
223
.RI .iso(1).org(3).dod(6).internet(1).directory(1)
224
.RI .iso(1).org(3).dod(6).internet(1).mgmt(2)
225
.RI .iso(1).org(3).dod(6).internet(1).mgmt(2).mib-2(1)
226
.RI .iso(1).org(3).dod(6).internet(1).mgmt(2).mib-2(1).system(1)
227
.RI .iso(1).org(3).dod(6).internet(1).mgmt(2).mib-2(1).system(1).sysDescr(1)
228
.RI .iso(1).org(3).dod(6).internet(1).mgmt(2).mib-2(1).system(1).sysObjectID(2)
229
.RI .iso(1).org(3).dod(6).internet(1).mgmt(2).mib-2(1).system(1).sysUpTime(3)
233
snmptranslate -To | head
235
will produce the following dump
251
snmptranslate -Ts | head
253
will produce the following dump
258
.RI .iso.org.dod.internet
259
.RI .iso.org.dod.internet.directory
260
.RI .iso.org.dod.internet.mgmt
261
.RI .iso.org.dod.internet.mgmt.mib-2
262
.RI .iso.org.dod.internet.mgmt.mib-2.system
263
.RI .iso.org.dod.internet.mgmt.mib-2.system.sysDescr
264
.RI .iso.org.dod.internet.mgmt.mib-2.system.sysObjectID
265
.RI .iso.org.dod.internet.mgmt.mib-2.system.sysUpTime
269
snmptranslate -Tt | head
271
will produce the following dump
281
sysDescr(1) type=2 tc=4 hint=255a
282
sysObjectID(2) type=1
286
snmpcmd(1), variables(5), RFC 2578-2580.