This is a discussion on odd return oids within the SNMP Coders forums, part of the Networking and Network Related category; So, I implemented a module for my table using the iterator conf for mib2c. It works except that the index ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
So, I implemented a module for my table using the iterator conf for mib2c. It
works except that the index oids seem to have an extra octet in them that I'm not providing, and I don't know where it's coming from. [root@vmware-msoulier root]# env MIBS=ALL snmpwalk -v 2c -c public localhost .1.3.6.1.4.1.1027.4.1.2.1.1.1 MITEL-APPCMN-MIB::mitelAppTblProductOid.10.1.3.6.1.4.1.1027.1.7 .1 = OID: MITEL-APPLIST-MIB::mitelIdAppMasTeleworker MITEL-APPCMN-MIB::mitelAppTblProductManufacturer.10.1.3.6.1.4.1 .1027.1.7.1 = STRING: Mitel Corporation MITEL-APPCMN-MIB::mitelAppTblProductName.10.1.3.6.1.4.1.1027.1. 7.1 = STRING: Teleworker solution MITEL-APPCMN-MIB::mitelAppTblProductVersion.10.1.3.6.1.4.1.1027 .1.7.1 = STRING: 4.0.0 MITEL-APPCMN-MIB::mitelAppTblProductDescr.10.1.3.6.1.4.1.1027.1 .7.1 = STRING: A gateway for Mitel Teleworker phones, to access the corporate phone network via the internet. MITEL-APPCMN-MIB::mitelAppTblAppAlrmStatus.10.1.3.6.1.4.1.1027. 1.7.1 = INTEGER: indeterminate(2) ^^ || The return values are correct, except for the 10s in the above return oids. The app table is registered at oid static oid mitelAppTable_oid[] = { 1, 3, 6, 1, 4, 1, 1027, 4, 1, 2, 1, 1 }; ....and the index is static oid mitelIdAppMasTeleworker_oid[] = { 1, 3, 6, 1, 4, 1, 1027, 1, 7, 1 }; Any hints? Mike -- Michael P. Soulier <michael_soulier@mitel.com>, 613-592-2122 x2522 6000/6010/60* Development, Mitel Corporation "...the word HACK is used as a verb to indicate a massive amount of nerd-like effort." -Harley Hahn, A Student's Guide to Unix ------------------------------------------------------- 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 Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/...et-snmp-coders |