Solved

which perl module or tool is best for 'ping'?

Posted on 2009-07-10
4
266 Views
Last Modified: 2012-05-07
I need to ping hundreds server names or whole subnet to find what servers in there. some servers are behind Firewall. I know there are some Perl modules or tools that have similar functions for ping.

Which one is best? I mean fast, powerful (it can find server behind firewall that deny ICMP) and safe.

Thanks very much for your help.
0
Comment
Question by:howruaz9
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 7

Accepted Solution

by:
Fairlight2cx earned 167 total points
ID: 24828954
Net::Ping

http://www.perl.com/doc/manual/html/lib/Net/Ping.html

In general, that's a good module.

But you will never be able to ping a server that's behind a firewall that disallows ICMP.  That's simply not possible from a networking point of view, and has nothing to do with perl or any of its modules.
0
 
LVL 48

Assisted Solution

by:Tintin
Tintin earned 167 total points
ID: 24828994
Ditto to what Fairlight2cx said.

You could try your luck with http://search.cpan.org/~tscanlan/NetworkInfo-Discovery-0.12/lib/NetworkInfo/Discovery.pm


0
 
LVL 39

Assisted Solution

by:Adam314
Adam314 earned 166 total points
ID: 24843034
With Net::Ping, you can select which protocol you use.  The ICMP is standard for ping, and if the firewall blocks this, you can't do anything about it (what Fairlight2cx said).

If you can use a different protocol, and that protocol is allowed by your firewall, you could use that.  
0
 

Author Closing Comment

by:howruaz9
ID: 31602355
Thanks so much for your advice. I really appreciate your help!
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Email validation in proper way is  very important validation required in any web pages. This code is self explainable except that Regular Expression which I used for pattern matching. I originally published as a thread on my website : http://www…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Six Sigma Control Plans

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question