Re: snmpwalk and -Ox parameter to force Hex Output

Lee <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <CAD8GWssw1pMXDLEHyCDcwqoOi23TKPLiXqSL+ezmF_WGPqqz1g@mail.gmail.com>
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


On 3/31/16, Pisani Giovanni <[email protected]> wrote:
> 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
>
>
>
>

------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785471&iu=/4140
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.