Hello,

I have found the solution in the mailing list. I have forgot the SOCK_STARTUP 
function in my C Program. Now it works fine as Master and agentx Agent :-))


regards,

Peter Naber
-----Ursprüngliche Nachricht-----
Von: Robert Story [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 24. Juni 2005 15:35
An: Naber, Peter
Cc: [email protected]
Betreff: Re: agentx Problem with Visual C++ Compiler


On Thu, 23 Jun 2005 19:45:16 +0200 Naber, wrote:
NP> i have a problem with my own agent. I have developed a small agent and
NP> compiled it with gcc under cygwin. The agent works fine with snmd-5.2.1 and
NP> agentx Interface on localhost:705

First, some terminology. The 'agent' or 'master agent' is snmpd. Anything
talking AgentX to an AgentX master is a sub-agent.

NP> Now i compiled the same agent under Microsoft Visual C++ 6.0 without any
NP> error messages. If I start the agent i got the error message: Error: Failed
NP> to connect to the agentx master agent: Unknown host (No such file Error:
NP> Failed or directory) If i start the cygwin agent it works fine.

I'm assuming your 'agent' is a sub-agent, and 'the cygwin agent' is the cygwin
version of snmpd. In this case, it makes perfect sense. Your sub-agnet will
complain about failure to connect to the master agent if there isn't one
running.

But maybe I'm misunderstanding your questions.

-- 
NOTE: messages sent directly to me, instead of the lists, will be deleted
      unless they are requests for paid consulting services.

Robert Story; NET-SNMP Junkie
Support: <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp>
Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-coders>

You are lost in a twisty maze of little standards, all different. 


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to