Re :Re: Re :Re: How can I set contextName instead of default NULL

"girish" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <1199368887.S.2691.579.webmail96.rediffmail.com.old.1199429445.15249@webmail.rediffmail.com>
Hi Dave,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Well I tried adding these lines in subagent code&nbsp;&nbsp; reg = netsnmp_create_handler_registration(myobject,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; myobject_handler,oid,oid_len,HANDLER_CAN_RWRITE);&nbsp;&nbsp;&nbsp; reg-&gt;contextName = strdup("mycontext");&nbsp;&nbsp;&nbsp; netsnmp_register_handler(reg);and tried sending snmpget command with mycontext as the contextName snmpget&nbsp; -v 3 -u myuser -n mycontext -l authNoPriv -a MD5 -A my_password&nbsp; 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 th
 is 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.