Reply

ping sweep method in perl API?

Techie
Posts: 6
3660     0

Is there any means to do a ping sweep of a network or IP range in the perl API, akin to the "ping sweep" button in the GUI?  And have the call return an array or list of IP's that responded to the ping?

Re: ping sweep method in perl API?

Adviser
Posts: 141
3661     0

Hi,

 

There is no such API call, but you can create/start discovery task and discover the network.

 

BR,

Vadim

Re: ping sweep method in perl API?

Techie
Posts: 6
3661     0

Answering my own question, within my perl code I did:

 

@result = `/usr/bin/nmap -sn -n -oG - $ipstart-$end | /usr/bin/grep -v ^#`;

 

Then parse @result to get the info I need.

Showing results for 
Search instead for 
Did you mean: 

Recommended for You