Dear all, I'm in the process of writing a sub-agent for learning purposes. Basically I'm initializing the sub-agent through the init function, registering an oid and setting it to a particular value according to a variable named memoryUsage which is constantly changing its value. This was done using the function netsnmp_register_long_instance.
Given that memoryUsage is constantly changing its value, how would I be able to update the oid's value to show the most recent one? Note: When I perform an snmpget operation, the original value of memoryUsage is being retrieved, when in fact I require the most recent one. I appreciate your help. Best Regards, Chris __________________________________________________________________________________________ cchetc...@hobsoft.com.mt<mailto:cchetc...@hobsoft.com.mt> www.hobsoft.com<http://www.hobsoft.com/> HOB Software Ltd www.hobsoft.com<http:/www.hobsoft.com> [HOB][HSM25] ______________________________________________________________ Disclaimer: This message may contain confidential and legally privileged information. If you are not the addressee notify the sender immediately and delete it (do not copy, forward, disclose or use any part of it). Internet communications cannot be garanteed to be timely, secure, error or virus-free. The company does not accept liability for any errors or omissions. ______________________________________________________________
------------------------------------------------------------------------------
_______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders