Simple Network Status Program.

Michael Hipp Michael
Mon May 17 11:56:22 PDT 2004


James McDonald wrote:

> hosts="host1 host2 host3"
> 
> for i in $hosts do
>    ping -c2 $i
>    # just guessing about return value here
>    if [ "$?"="0" ] ; then
>        echo "Host $i is UP"
>    else
>        echo "Host $i is DOWN"
> 
>    fi
> done

A selective nmap might be useful also.

Michael




More information about the Linux-users mailing list