Martin T
2015-07-10 15:15:54 UTC
Hi,
I am aware that MIB files in NMS are used to translate OID integers in
SNMP GetResponse messages into meaningful names. For example here I
can see that string "Vl290" is an VLAN-interface name:
$ snmpget -Of -v 2c -c public 10.10.10.1 .1.3.6.1.2.1.31.1.1.1.1.290
.iso.org.dod.internet.mgmt.mib-2.ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifName.290
= STRING: Vl290
$
Without Cisco MIBs I would see:
$ snmpget -m /dev/null -Of -v 2c -c public 10.10.10.1
.1.3.6.1.2.1.31.1.1.1.1.290
.iso.3.6.1.2.1.31.1.1.1.1.290 = STRING: "Vl290"
$
However, are MIB files also used for converting SNMP GetResponse
values? I mean for example "snmpwalk -Ov -v 2c -c public 10.10.10.1
sysUpTimeInstance" returns "Timeticks: (88920401) 10 days,
7:00:04.01", but this conversion is done in snmpget/snmpwalk utility
itself. For example is it possible to define in MIB files that for
example 1099 integer32 value in SNMP GetResponse message should be
understood as 10cm and 99mm and then snmpget/snmpwalk utility will do
such conversions automatically? I tried to find such SNMP objects, but
did not find any.
thanks,
Martin
I am aware that MIB files in NMS are used to translate OID integers in
SNMP GetResponse messages into meaningful names. For example here I
can see that string "Vl290" is an VLAN-interface name:
$ snmpget -Of -v 2c -c public 10.10.10.1 .1.3.6.1.2.1.31.1.1.1.1.290
.iso.org.dod.internet.mgmt.mib-2.ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifName.290
= STRING: Vl290
$
Without Cisco MIBs I would see:
$ snmpget -m /dev/null -Of -v 2c -c public 10.10.10.1
.1.3.6.1.2.1.31.1.1.1.1.290
.iso.3.6.1.2.1.31.1.1.1.1.290 = STRING: "Vl290"
$
However, are MIB files also used for converting SNMP GetResponse
values? I mean for example "snmpwalk -Ov -v 2c -c public 10.10.10.1
sysUpTimeInstance" returns "Timeticks: (88920401) 10 days,
7:00:04.01", but this conversion is done in snmpget/snmpwalk utility
itself. For example is it possible to define in MIB files that for
example 1099 integer32 value in SNMP GetResponse message should be
understood as 10cm and 99mm and then snmpget/snmpwalk utility will do
such conversions automatically? I tried to find such SNMP objects, but
did not find any.
thanks,
Martin