Hi Dave,
Thanks a lot!. I started using the binary string and it works fine now.
Regards,
Malathi
--- On Fri, 7/16/10, Dave Shield <d.t.shi...@liverpool.ac.uk> wrote:
From: Dave Shield <d.t.shi...@liverpool.ac.uk>
Subject: Re: ifPhysAddress value shown wrong on NetSNMP client for ifTable
To: "Malathi Panyam" <malathipan...@yahoo.com>
Cc: net-snmp-users@lists.sourceforge.net, "Mike Ayers"
<mike_ay...@tva.tvworks.com>
Date: Friday, July 16, 2010, 11:56 AM
On 16 July 2010 19:50, Malathi Panyam <malathipan...@yahoo.com> wrote:
> node> snmpgetnext -v2c -c public <ip address> ifPhysAddress.8
> IF-MIB::ifPhysAddress.9 = STRING:
> 30:30:3a:31:30:3a:32:33:3a:63:30:3a:34:32:3a:35:64
I presume you were expecting to see a value of
00:10:23:c0:42:5d
?
Because I'd suggest that it is the agent (and the other MIB browser)
that is at fault here. The value you list above is a hex dump of the
string "00:10:23:c0:42:5d" - i.e. the agent seems to be returning the
ifPhysAddress as a printable string.
But if you check the specification of the MIB object, it's should actually
be *binary* string (of six octets). The snmpgetnext command is
interpreting the value as such a binary string (overlength, but it
doesn't worry about that).
Dave
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users