Dave (cc: Fulko, etc)

When I tried to remove the RFC1213-MIB the apps fail.
ip.ipNetToMediaTable.ipNetToMediaEntry.ipNetToMediaPhysAddress.443: Unknown 
Object Identifier (Sub-id not found: (top) -> ip)

The only DISPLAY-HINT I can find in IP-MIB to use as an example is for 
Ipv6AddressIfIdentifierTC

I tried to add a hint to the RFC1213-MIB under ipNetToMediaPhysAddress and it 
also reminds me that I do not know what I am doing.
Bad format of optional clauses (DISPLAY-HINT): At line 1314 in 
/usr/local/net-snmp/5.5/share/snmp/mibs/RFC1213-MIB.txt
Bad parse of OBJECT-TYPE: At line 1314 in 
/usr/local/net-snmp/5.5/share/snmp/mibs/RFC1213-MIB.txt
ip.ipNetToMediaTable.ipNetToMediaEntry.ipNetToMediaPhysAddress.443: Unknown 
Object Identifier (Sub-id not found: (top) -> ip)

But I really have attempted each of your valued suggestions. (And I have been 
scanning the documentation in earnest also).

Thank you for helping.

Randy

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf 
Of Dave Shield
Sent: Wednesday, July 14, 2010 2:43 PM
To: Fulko Hew
Cc: Randall C Grimshaw; [email protected]
Subject: Re: snmpget and snmpwalk return corrupt string instead of hex string 
when MAC address starts with non zero

On 14 July 2010 18:11, Fulko Hew <[email protected]> wrote:
>  poking around on my system I tried:
>
> # snmpwalk -c public -v1 localhost ipNetToMediaPhysAddress
> IP-MIB::ipNetToMediaPhysAddress.2.10.20.101.1 = STRING: 0:13:60:d:3d:90

Note that you are picking up the definition of the ipNetToMediaTable objects
from IP-MIB.  This references the type PhysAddress from SNMPv2-TC,
which does include the necessary display hint.

Randall is picking up definitions of ipNetToMediaTable from the older
RFC1213 MIB, which does not include this hint.   So the library has to
fall back on guessing whether a given string is printable or not - and
this decision depends on the exact value it receives.


That's why I suggested he try removing the RFC1213 MIB, and
using the IP-MIB (plus supporting infrastructure).
(Which was promptly dismissed as "not being a solution" - hmmm....)

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
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to