Table of content

Listing management data

List IPv6 interfaces
1
2
3
4
$ snmpwalk -Os -v 2c -c community-string host.example.com IPV6-MIB::ipv6IfDescr
ipv6IfDescr.1 = STRING: net0
ipv6IfDescr.2 = STRING: lo0
ipv6IfDescr.3 = STRING: pflog0

Translation name ↔ oid

Print the OID numerically
1
2
$ snmptranslate -On -IR system
.1.3.6.1.2.1.1
Print the OID with the full list of MIB objects
1
2
$ snmptranslate -Onf -IR system
.iso.org.dod.internet.mgmt.mib-2.system
Print full details
1
2
3
4
5
$ snmptranslate -Td -IR system
SNMPv2-MIB::system
system OBJECT-TYPE
  -- FROM       SNMPv2-MIB, RFC1213-MIB
::= { iso(1) org(3) dod(6) internet(1) mgmt(2) mib-2(1) 1 }