The stupid question is the question not asked | |
PerlMonks |
Using Net::Ping for broadcast addressby birdbrane (Chaplain) |
on Mar 30, 2001 at 21:48 UTC ( [id://68441]=perlquestion: print w/replies, xml ) | Need Help?? |
birdbrane has asked for the wisdom of the Perl Monks concerning the following question:
Greets,
I am trying to right a series of scripts to map out all of our *nix hosts on our intranet, in order to ease administration. One part of that script requires that I ping each address. Problem is, if the subnet doesn't exist, I don't want to ping 255 addresses only to find nothing. I wrote a perl script to ping the broadcast address (using Net::Ping) but it comes back that the address doesn't exist (even though a command line ping does). Am I doing something incorrectly here, or does Net::Ping not work for pinging broadcast addresses? I have tried w/ and w/o ICMP, again, to no avail. For information purposes, here is the script:
Many thanks in advance, Joe
Back to
Seekers of Perl Wisdom
|
|