Hi, My application requires to fetch the oid value from a different process, so I need to use the delegate option in subAgent.
I'm storing the cache in a global memory and accessing it once I get the oid value from the process. Always I'm getting the following error Error in packet Reason: (genError) A general failure occured But if I donot delegate it, it works fine for me. I'm using sess = netsnmp_create_delegated_cache(handler, reginfo, reqinfo, requests, NULL); for creating the cache and netsnmp_delegated_cache* cache = netsnmp_handler_check_cache(sess); for retreiving the value from the cache. After I retreive the cache, I execute the following snmp_set_var_typed_value(cache->requests->requestvb,ASN_INTEGER,(u_char*)&tmpPtr , sizeof(UINT32)); Do we need to do any else also ? Is there any cache timer to be configured? Could anyone help in this regard. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders