For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > July 2005 > checking the reachability of the remote host









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author checking the reachability of the remote host
Arjun Mallik

2005-07-29, 3:59 am



Hi ,
I have to verify whether the servers [windows , Linux ] which are
integrated to my Unix machine are alive or not .


I am using Net::Ping.

Problem i am facing is , i am able to verify all Unix machines
integrated .

And not the Windows & Linux machines which integrated to my UNIX box.


please Help me if you are aware.


-------------clip-----------
use Net::Ping;
my $p =3D Net::Ping->new(); $host=3D"guis1.w2kr41.r41.xxx.xxxx.com";
print "HOST is --> $host \n";
if ( $p->ping($host) )
{
print "pingable host --> $host\n";


}
-----------clip---------------


Thanks
Arjun


Deserve before you desire






Confidentiality Notice


The information contained in this electronic message and any attachments
to this message are intended for the exclusive use of the addressee(s)
and may contain confidential or privileged information. If you are not
the intended recipient, please notify the sender at Wipro or
Mailadmin@wipro.com immediately and destroy all copies of this message
and any attachments.

--=0D
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
<http://learn.perl.org/> <http://learn.perl.org/first-response>






Confidentiality Notice=0D

The information contained in this electronic message and any attachments to=
this message are intended
for the exclusive use of the addressee(s) and may contain confidential or=
privileged information. If
you are not the intended recipient, please notify the sender at Wipro or=
Mailadmin@wipro.com immediately
and destroy all copies of this message and any attachments.
displeaser

2005-07-29, 7:17 am

Hi,

when you say "integrated to my Unix machine" do you mean connected on the same network or is the unix machine running both operating systems concurrently? (something like vmware?)

The code as posted will give errors but after tiding up the "3d" stuff I was able to ping win32 servers & workstations no problem.

Is it possably some kind of firewall or ip tables not returning the ping from the remote hosts due to a rule?

D
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com