G
Glen Holcomb
[Note: parts of this message were removed to make it a legal post.]
Is there a reliable "Ruby" method for pinging/checking whether hosts are up?
I have been using Net:ingExternal as I'm pinging Windows machines and not
all of them have port 7 open. However when I try to check 900 or so
machines I get a SocketError after a while. It complains that there is no
such service echo/tcp. When I try similar code in irb I get the socket
error after a few minutes then if I try the loop again I get the socket
error immediately.
I've tried a generic ICMP packet but that doesn't work under Windows with
the standard Ruby build and I don't have the tools/time to build it my self
under Windows.
Is there a reliable "Ruby" method for pinging/checking whether hosts are up?
I have been using Net:ingExternal as I'm pinging Windows machines and not
all of them have port 7 open. However when I try to check 900 or so
machines I get a SocketError after a while. It complains that there is no
such service echo/tcp. When I try similar code in irb I get the socket
error after a few minutes then if I try the loop again I get the socket
error immediately.
I've tried a generic ICMP packet but that doesn't work under Windows with
the standard Ruby build and I don't have the tools/time to build it my self
under Windows.