how to prevent memory leak in the sub agent

2005-01-24 Thread sharath ramegowda
hi all.. i have written a sub-agent which handles 6 mib variables. if i bring up my agent and kill it immediately, the valgrind report says 44 bytes lost. ==13825== LEAK SUMMARY: ==13825==definitely lost: 44 bytes in 5 blocks. if i send requests to my agent the the loss goes up: ==13095=

how to prevent "Connection from callback: 1 on fd 10" from appearing on console??

2005-01-24 Thread sharath ramegowda
hi team .. can any one tell me how i can redirect "Connection from callback: 1 on fd 10" message which appears on the screen for each request my subagent processes ??? where is this message coming from?? is there any way to turn them off or to redirect them to a log file or something like that ??

problem with snmpwalk on snmp tables. help needed urgently please.

2005-01-23 Thread sharath ramegowda
hi .. i have a mib table to which i am adding rows using the function shown below. all the additions are fine and when i do a "snmpget" on the individual rows the vlues returned are correct. but when i do an snmpwalk starting at the table's oid. i get the following error. ERROR --- snmpw

Re: problems in writing handlers for scalars of type string

2005-01-06 Thread sharath ramegowda
hi ... i tried using the watcher handler u mentioned. but now the problem is as follows: i have declared my mib variable (netsnmpfilename) as an octet string. when i do an snmptranslate: snmptranslate -mALL -M /usr/local/net-snmp-5.1.1/mibs/ -On -IR -Tp netSnmpfi

problems in writing handlers for scalars of type string

2004-12-30 Thread sharath ramegowda
hi .. i am a fresher, both to netsnmp as well as this mailing list. the problem i face is as follows: i am trying to write a handler for a scalar of type OCTET STRING. i created the template code from the mib compiler as follows: mib2c -c scalar.conf netSnmpfilename then i made changes as sugge

problems in writing handlers for scalars of type string

2004-12-30 Thread sharath ramegowda
hi .. i am a fresher, both to netsnmp as well as this mailing list. the problem i face is as follows: i am trying to write a handler for a scalar of type OCTET STRING. i created the template code from the mib compiler as follows: mib2c -c scalar.conf netSnmpfilename then i made changes as sugge