alive - PCs mit fping finden

/usr/local/sbin/alive.sh

fping -g 192.168.xx.0/24 2>&1 | grep alive
arp | grep -v "(unvollständig)"

 chmod 755  /usr/local/bin/alive.sh 

schöner dann mit:

fping -g 192.168.18.0/24 2>&1 | grep alive | sort -n -k 4  -t .  |  awk  '{print "printf "$1"\" \"; host "$1" | awk  \x27{ printf  $5 }\x27; echo"}' | sh | sed 's.3(NXDOMAIN)..g'

Anregungen von:

alive (last edited 2008-10-09 22:05:27 by blfd-4db0ee98)