On Wed, 9 Mar 2005 11:08:14 -0500 Michael wrote:
MPS> So, I implemented a module for my table using the iterator conf for mib2c.
MPS> It works except that the index oids seem to have an extra octet in them
MPS> that I'm not providing, and I don't know where it's coming from. 
MPS> 
MPS> [EMAIL PROTECTED] root]# env MIBS=ALL snmpwalk -v 2c -c public
MPS> localhost .1.3.6.1.4.1.1027.4.1.2.1.1.1
MPS> MITEL-APPCMN-MIB::mitelAppTblAppAlrmStatus.10.1.3.6.1.4.1.1027.1.7.1 =
MPS> INTEGER: indeterminate(2)
MPS>                                            ^^
MPS>                                            ||
MPS> 
MPS> The return values are correct, except for the 10s in the above return
MPS> oids. 

As I mentioned in IRC, variable length indexes (strings and oids) are
automatically prefixed with a legnth. If the index is defined as IMPLIED in the
MIB, you can get rid of the length. If it isn't defined as IMPLIED in the MIB,
then the length has to be there.

-- 
Robert Story; NET-SNMP Junkie
Support: <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp>
Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-coders>

You are lost in a twisty maze of little standards, all different. 


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to