in reply to Re: Using Net::Ping for broadcast address (nmap -sP a.b.c.d/mask)
in thread Using Net::Ping for broadcast address

THRAK,

Yes, I am running the script as root, but trying an icmp (or tcp) hasn't worked. The docs don't seem to be helpful in that respect, but then again, I am sure most people don't use ping for this type of thing (but they should). :)

Don,

I went on to command line and tried the nmap command you recommended, but in order to get it to recognize that the subnet as a whole was up, I had to get a response back from all hosts. I am just interested in getting a single line back, (or even a '0' return code) upon success. I think that I am going to have to stick with a ping system call, as it doesn't seem that Net::Ping will ping a .0 address.

Thanks for the suggestions and help,

Joe

  • Comment on Re: Re: Using Net::Ping for broadcast address (nmap -sP a.b.c.d/mask)