Re: Failed to connect to agentx master agent ([NIL])

Bart Van Assche <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On Mon, Mar 15, 2010 at 3:12 PM, Patrick H. Piper <[email protected]>wrote:

> Bart,
>
> Thanks again. You have been most helpful. I am sure that I am not the first
> to go thru the pain of the nuiances between Net-SNMP on Linux vs. Windows.
> I know I am late to the SNMP party, but I do appreciate your help. In
> summary on the Windows challenges:
>
> Agent.dll is not usable on Windows without the 2008 distributables SP1
> patch
>
>  agent code fails without the “use IO::Socket” and gives you the following
> error:
>
> netsnmp_assert GetLastError() != 10093L failed ..\..\snmplib\winpipe.c:46
> netsnmp_assert GetLastError() != 10093L failed ..\..\snmplib\winpipe.c:46
> select: No such file or directory
>
> and lastly, the following code is required on Windows:
> use NetSNMP::default_store (':all');
> use NetSNMP::agent::default_store (':all');
>
> [ ... ]
>
> netsnmp_ds_set_string(NETSNMP_DS_APPLICATION_ID, NETSNMP_DS_AGENT_X_SOCKET,
> "tcp:localhost:705");
>
> when you see this erorr:
> agent.pl
> Warning: Failed to connect to the agentx master agent ([NIL]):
> Warning: Failed to connect to the agentx master agent ([NIL]):
>

I'll see what can be done to make sure that neither "use IO::Socket" nor
"netsnmp_ds_set_string(NETSNMP_
DS_APPLICATION_ID, NETSNMP_DS_AGENT_X_SOCKET,
"tcp:localhost:705")" are necessary when using Perl on Windows with future
Net-SNMP releases.

Bart.

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev

_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.