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® 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