[ale] Nmap host up/down status

dev null zero two dev.null.02 at gmail.com
Fri Oct 10 16:04:47 EDT 2014


"nmap -sn host"

if that is unreliable, you could try "nmap -sn -PE -PP -PM -PO host"

if you know certain ports that will be open, you could use -PS80 for a SYN
ping to port 80 or -PU13337 for a UDP ping to port 13337 (you want to use a
closed port).

On Fri, Oct 10, 2014 at 3:53 PM, Chris Fowler <cfowler at outpostsentinel.com>
wrote:

> I have a script I use in Perl that tests a list of hosts via the exit code
> of ping.  Some hosts, like Winders, will ignore ICMP ECHO and this creates
> false alerts.
>
> The idea popped in my head today to use the exit code of nmap and allow it
> to test for me.
>
> Can someone clue me in on the best command like options to nmap that will
> allow it to make a decent determination of a host is up?
>
> I did think about running an initial port scan and then doing an accept()
> test on a TCP socket, but then I decided maybe I'd just let nmap make
> the up/down decision.
>
> Chris
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.ale.org/pipermail/ale/attachments/20141010/9ce6e738/attachment.html>


More information about the Ale mailing list