Agent & Subagent connection status
"girish" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Hi all, I'm using agent-subagent approach. I want to know how we can get information that master and subagents have been connected. Also whenever master goes down i want to inform the same to my subagent. How I get this information..??? Any api for the same? Here in my subagent initialization code. Please
help in this regard. 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"); 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 2008.
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