Reply
Accepted Solution

ping sweep method in perl API?

JEarickson
Techie
Posts: 6
2547     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: 150
2547     0

Hi,

 

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

 

BR,

Vadim

Highlighted

Re: ping sweep method in perl API?

JEarickson
Techie
Posts: 6
2547     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 
Do you mean 

Recommended for You