Hi 
Dave,             
Well I tried adding these lines in subagent code   reg = 
netsnmp_create_handler_registration(myobject,            
 myobject_handler,oid,oid_len,HANDLER_CAN_RWRITE);    
reg->contextName = strdup("mycontext");    
netsnmp_register_handler(reg);and tried sending snmpget command with mycontext 
as the contextName snmpget  -v 3 -u myuser -n mycontext -l authNoPriv -a 
MD5 -A my_password  localhost myobject.0and got the response as no such 
object found. Also I modified snmpd.conf as belowaccess mygroup "mycontext"but 
still its giving same problem. Its not registring with context name. Also we 
tried adding this line register_snmpEngine_scalars_context("mycontext"); in the 
subagent initialization code but its the same problem. Wat could be the reason. 
Please give some inputs

Regards,
Girish
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to