Performing a Quick nmap Ping Scan on a Subnet

This will quickly do a scan on a subnet to determine IP addresses on the network.

nmap -sP

Only Return IP Addresses

If you only want to return just the IPs and not other info you can pass to the awk command like this

nmap -sP -oG - | awk '/Status: Up/{print $2}'

Leave a Reply

Your email address will not be published. Required fields are marked *