is there a function to free memory from get_tree?

2016-08-16 Thread Ron Swiernik
I am writing an application that gets some object from UPS's. One is the status which I am using get_tree to pull out the formated string. It works but the application seems to be using more memory as time goes on. I do not use memory allocation function in my code. I am closing the the other obj

time in snmptraps

2016-08-16 Thread Pushpa Thimmaiah
Hi Folks, SnmpDaemon running on my desktop and using 'snmptrap' to send traps out from desktop Value of object DISMAN-EVENT-MIB::sysUpTimeInstance in snmptraps and in 'snmpget -m ALL -M ~/mibs -v 2c -c public localhost DISMAN-EVENT-MIB::sysUpTimeInstance' differs. After debugging, 1. net-snmp-

Re: how to fetch values from MY-MIB

2016-08-16 Thread Pushpa Thimmaiah
Hi Deepak, You need to update/recompile your snmpagent code with MY-MIB module Ref: http://www.net-snmp.org/wiki/index.php/TUT:Writing_a_MIB_Module http://www.net-snmp.org/wiki/index.php/TUT:Writing_a_Dynamically_Loadable_Object Following may be steps for reference not exact 1. Use tool 'mib2c'