Hi,

I am develoing a AgentX subagent for virtual devices.
Here I need to support same MIB tree for multiple virtual devices from same
subagent.
I tried setting the contextname in /usr/local/share/snmp/snmpd.conf file
with the defContextName directive.
It fails with the error message unknown token defContextName.

Second way I tried is-
access entry in snmpd.conf

access {group} ""           any noauth prefix ......
and

reg = netsnmp_create_handler_registration(.....);
        reg->contextName = strdup("my_context");
        netsnmp_register_handler(reg);
reg = netsnmp_create_handler_registration(.....);
        reg->contextName = strdup("my_context");
        netsnmp_register_handler(reg);
Do I need to have as many handlers as my posiible context Names?


Second Can I have my context name changing dynamically when agent is
running?

Any help is highly appreciated!

Deepali
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to