Discussion:
snmpwalk and -Ox parameter to force Hex Output
(too old to reply)
Pisani Giovanni
2016-03-31 16:47:42 UTC
Permalink
Hi All,

I am using an "old" net-snmp version (net-snmp-5.5.0-1.x86.exe) to get information from stacked switches via the snmpwalk command, but can't figure out why snmpwalk behaves slightly different in 2 different systems.

I try to explain : I need to get Mac Addresses of devices connected to 3 stacked switches and the std output should be as usual something like this :
snmpwalk -c public -v1 10.14.1.253 .1.3.6.1.2.1.17.4.3.1.1
...

This command works fine at a company site :
snmpwalk -c public -v1 10.14.1.253 .1.3.6.1.2.1.17.4.3.1.1

but...here at my company site I need to add the "-Ox" parameter to get the MAC address in Hex format like this :
snmpwalk -Ox -c public -v1 10.14.1.253 .1.3.6.1.2.1.17.4.3.1.1


I suppose the Switches brand does not affect this behavior and the co-workers ensure they use the same net-snmp version. Do you think is it worth I investigate on net-snmp version difference?

Thanks a lot for your help

Giovanni
Lee
2016-03-31 23:05:33 UTC
Permalink
My guess is one machine has the MIB with a display hint & the other doesn't.

$ oid2name .1.3.6.1.2.1.17.4.3.1.1
BRIDGE-MIB::dot1dTpFdbAddress

on my machine the bridge mib has this:
dot1dTpFdbAddress OBJECT-TYPE
SYNTAX MacAddress

MacAddress is pulled in from SNMPv2-TC with a display hint:
MacAddress ::= TEXTUAL-CONVENTION
DISPLAY-HINT "1x:"

Regards,
Lee
Post by Pisani Giovanni
Hi All,
I am using an "old" net-snmp version (net-snmp-5.5.0-1.x86.exe) to get
information from stacked switches via the snmpwalk command, but can't figure
out why snmpwalk behaves slightly different in 2 different systems.
I try to explain : I need to get Mac Addresses of devices connected to 3
stacked switches and the std output should be as usual something like this
snmpwalk -c public -v1 10.14.1.253 .1.3.6.1.2.1.17.4.3.1.1
...
snmpwalk -c public -v1 10.14.1.253 .1.3.6.1.2.1.17.4.3.1.1
but...here at my company site I need to add the "-Ox" parameter to get the
snmpwalk -Ox -c public -v1 10.14.1.253 .1.3.6.1.2.1.17.4.3.1.1
I suppose the Switches brand does not affect this behavior and the
co-workers ensure they use the same net-snmp version. Do you think is it
worth I investigate on net-snmp version difference?
Thanks a lot for your help
Giovanni
Loading...