1 .\" /***********************************************************
2 .\" Copyright 1988, 1989 by Carnegie Mellon University
4 .\" All Rights Reserved
6 .\" Permission to use, copy, modify, and distribute this software and its
7 .\" documentation for any purpose and without fee is hereby granted,
8 .\" provided that the above copyright notice appear in all copies and that
9 .\" both that copyright notice and this permission notice appear in
10 .\" supporting documentation, and that the name of CMU not be
11 .\" used in advertising or publicity pertaining to distribution of the
12 .\" software without specific, written prior permission.
14 .\" CMU DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
15 .\" ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
16 .\" CMU BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
17 .\" ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
18 .\" WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
19 .\" ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
21 .\" ******************************************************************/
22 .TH SNMPTRANSLATE 1 "21 Jun 2001"
25 snmptranslate - translate SNMP objects into more useful information
29 [-D <TOKEN[,TOKEN,...]>]
38 Snmptranslate is an application that translates an SNMP object (SMI value or
39 symbolic form) into another form of information. With no other options, an
40 SNMP object will be translated to its SMI value.
42 The options have the following meanings:
48 Print version message and exit
50 .B \-D <TOKEN[,TOKEN,...]>
51 Enable debugging output. See the \fIsnmpcmd\fR man page for more information.
54 See the \fIsnmpcmd\fR man page for a description of the OID input options
57 See the \fIsnmpcmd\fR man page for a description of the OID output options
60 See the \fIsnmpcmd\fR man page for a description of the MIB parsing options
63 Translate an SNMP object to its symbolic form. The following TRANSOPTS
67 print full details of the specified OID
70 print a graphical tree, rooted at the specified OID
73 dump the loaded MIB in a trivial form
76 dump a labeled form of all objects
79 dump a numeric form of all objects
82 dump a symbolic form of all objects
85 dump a tree form of the loaded mibs (mostly useful for debugging)
88 specify width of -Tp and -Td output. Default is very large
91 .I snmptranslate -On -IR sysDescr
93 will translate "sysDescr" to a more qualified form:
97 .I snmptranslate -Onf -IR sysDescr
99 will translate "sysDecr" to
101 .iso.org.dod.internet.mgmt.mib-2.system.sysDescr
103 .I snmptranslate -Td -OS system.sysDescr
105 will translate "sysDecr" into
111 -- TEXTUAL CONVENTION DisplayString
116 DESCRIPTION "A textual description of the entity. This value should
117 include the full name and version identification of the
118 system's hardware type, software operating-system, and
119 networking software."
120 ::= { iso(1) org(3) dod(6) internet(1) mgmt(2) mib-2(1) system(1) 1 }
123 .I snmptranslate -Tp -OS system
125 will print the following tree:
130 +-- -R-- String sysDescr(1)
131 | Textual Convention: DisplayString
133 +-- -R-- ObjID sysObjectID(2)
134 +-- -R-- TimeTicks sysUpTime(3)
135 +-- -RW- String sysContact(4)
136 | Textual Convention: DisplayString
138 +-- -RW- String sysName(5)
139 | Textual Convention: DisplayString
141 +-- -RW- String sysLocation(6)
142 | Textual Convention: DisplayString
144 +-- -R-- Integer sysServices(7)
145 +-- -R-- TimeTicks sysORLastChange(8)
146 | Textual Convention: TimeStamp
152 +-- ---- Integer sysORIndex(1)
153 +-- -R-- ObjID sysORID(2)
154 +-- -R-- String sysORDescr(3)
155 | Textual Convention: DisplayString
157 +-- -R-- TimeTicks sysORUpTime(4)
158 Textual Convention: TimeStamp
162 .I snmptranslate -Ta | head
164 will produce the following dump:
167 dump DEFINITIONS ::= BEGIN
170 internet ::= { dod 1 }
171 directory ::= { internet 1 }
172 mgmt ::= { internet 2 }
173 experimental ::= { internet 3 }
174 private ::= { internet 4 }
175 security ::= { internet 5 }
176 snmpV2 ::= { internet 6 }
179 .I snmptranslate -Tl | head
181 will produce the following dump:
185 .iso(1).org(3).dod(6)
186 .iso(1).org(3).dod(6).internet(1)
187 .iso(1).org(3).dod(6).internet(1).directory(1)
188 .iso(1).org(3).dod(6).internet(1).mgmt(2)
189 .iso(1).org(3).dod(6).internet(1).mgmt(2).mib-2(1)
190 .iso(1).org(3).dod(6).internet(1).mgmt(2).mib-2(1).system(1)
191 .iso(1).org(3).dod(6).internet(1).mgmt(2).mib-2(1).system(1).sysDescr(1)
192 .iso(1).org(3).dod(6).internet(1).mgmt(2).mib-2(1).system(1).sysObjectID(2)
193 .iso(1).org(3).dod(6).internet(1).mgmt(2).mib-2(1).system(1).sysUpTime(3)
196 .I snmptranslate -To | head
198 will produce the following dump
213 .I snmptranslate -Ts | head
215 will produce the following dump
220 .iso.org.dod.internet
221 .iso.org.dod.internet.directory
222 .iso.org.dod.internet.mgmt
223 .iso.org.dod.internet.mgmt.mib-2
224 .iso.org.dod.internet.mgmt.mib-2.system
225 .iso.org.dod.internet.mgmt.mib-2.system.sysDescr
226 .iso.org.dod.internet.mgmt.mib-2.system.sysObjectID
227 .iso.org.dod.internet.mgmt.mib-2.system.sysUpTime
230 .I snmptranslate -Tt | head
232 will produce the following dump
242 sysDescr(1) type=2 tc=0 hint=255a
243 sysObjectID(2) type=1
247 snmpcmd(1), variables(5), RFC 2578-2580.