I tried it, but still keep getting transport disconnect messages printed
by the master agent.

There are a few observations that make me curious.
1.  as long as I don't run the subagent, I don't get the transport
disconnect messages from the master agent.
2.  If agent and master agent are getting connected on different
sockets, then how does the master agent get to know there is a sub-agent
which is trying to register itself along with its MIBS?
3.  Finally, I tried to forcefully change the socket on which the master
agent listens.  In such scenario, the sub-agent prints debug messages
saying unknown server and failed to connect.

Regards,
Sri.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Dave Shield
Sent: Tuesday, December 19, 2006 2:53 AM
To: Srivastava, Namburi (IE10)
Cc: David Arthur; net-snmp-users@lists.sourceforge.net
Subject: Re: sending traps from embedded AgentX subagent

On 18/12/06, Srivastava, Namburi (IE10)
<[EMAIL PROTECTED]> wrote:
> Okay, so in that case if I add the following line of code in my
Subagent
> before init_subagent()
>
> netsnmp_ds_set_string(NETSNMP_DS_APPLICATION_ID,
>                            NETSNMP_DS_AGENT_X_SOCKET,
> "/var/agentx/master");
>
> Does this change the socket to which my subagent is trying to connect
> to?


Why waste time asking me?
Why not simply try it and see?

Yes - that code should configure the subagent to connect to a local
socket.

Dave

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to