Hi, I wrote an extension agent that deals with a single integer object defined in my MIB file by referencing the sample of scalar_int.c (http://www.net-snmp.org/dev/agent/scalar__int_8c-example.html)
The problem is I keep getting the error, "(noSuchName) There is no such variable name in the MIB" when getting the value from this variable or setting the value for it. The fact is the variable does exist in the MIB file and I have assigned the read-write access right to it. Can anyone tell me the reason for this? I also try to understand how net-snmp agent works in terms of interpreting the management server's request. According to the scalar_int sample code, it does nothing but register a new int variable to the agent using netsnmp_register_int_instance. The question is how does the agent know where to get/set the integer variable when it receives a snmpget/set request querying my integer object or how does my init function (initIntegerSalar(void)) get called? How does the code tell is it a snmpget or snmpset request? If I have the value of my variable stored in another application and it can be manipulated through a series of commands, how do I get/set it (More particularly where should I insert the code using exec). Thanks for guiding me through. /Pan ------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ 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
