Hi all,       I'm using agent-subagent approach. 
I want to set the context name only for my MIB. How I should change my subagent 
code based on this..??? Here in my subagent initialization code. Please help 
wat  changes I should do.  void *snmpsubagent(void 
*){    int    syslog = 
0;      
netsnmp_ds_set_boolean(NETSNMP_DS_APPLICATION_ID, NETSNMP_DS_AGENT_ROLE, 
1); netsnmp_ds_set_string(NETSNMP_DS_APPLICATION_ID, 
NETSNMP_DS_AGENT_X_SOCKET,    "tcp:localhost:705");   
SOCK_STARTUP;    
if(!(init_agent("subagent_daemon")))        
debug("Subagent-daemon is up and running.");    
else        err("Subagent-daemon could not 
be initialized.");    init_myMIBScalars();    
init_myMIBTables();    init_snmp("subagent_daemon");&n
 bsp;   snmp_shutdown("subagent_daemon");    
SOCK_CLEANUP;    return(NULL);}

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