On 31/05/07, Shivani Garg <[EMAIL PROTECTED]> wrote: > When I do a snmpget on any OID pertaining to any object in my MIB, I observe > that OID passed by the master agent is always > 1.3.6.1.4.1.6305.1.10.1.2.1.2.2.1.1.1.
The OID passed in the vp paramter is the OID of the MIB object (and hence will be the same every time). The OID from the request itself is passed via the parameters 'name' and 'length'. > The master agent always calls the > var_callTypeStatsNotfyAttrTable() with OID of the very > first element in my table. I found out that in the code generated by mib2c, > the array of OID was defined using variable4 and while calling REGISTER_MIB, > datatype passed was variable7. I tried passing the same datatype also at > both the places, yet I am not getting the right values using snmpgetnext. Are you using "snmpget" or "snmpgetnext" ? What is the exact command you are trying? What are the full parameters passed to this routine? Dave ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
