Hi All, I generated sub agent code for scalars in HOST-RESOURCES_MIB using: env MIBS="+HOST-RESOURCES-MIB" mib2c -c mib2c.scalar.conf hrSystem
It generates hrSystem.c and hrSystem.h. Inside the .c file there are two kind of functions: a) init_hrSystem (to be called from the sub agent) b) handler functions for scalars like, handle_hrSystemDate, which I suppose will be called when GET/SET arrives for this scalar. I want to initialize some value to, say, hrSystemDate, during subagent initialization, before any GET/SET request comes. Can it be done? Which data structure I can access calling netsnmp_create_handler_registration in init_hrSystem to get to the variable for hrSystemDate? Please let me know if it is possible. Thanks, Avnindra ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
