#!/bin/sh # (c)2003 by Jan Krupa (krupaj@mobilnews.cz) # http://www.mobilnews.cz/honza/ PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/bin/X11:/usr/X11R6/bin:/root/bin export PATH FPING_PATH=/usr/sbin/fping ping_host_all=""; for LINE in `/bin/cat $1`; do ping_host=`/bin/echo -n $LINE | /bin/awk -F\; '{ printf "%s", $2 }'`; ping_host_all="${ping_host_all} ${ping_host}"; done $FPING_PATH -e $ping_host_all | /bin/awk -F\ '{ printf "%s;", $1; if ($3=="alive") printf "1;%s;\n", substr($4, 2, (length($4)-1)); else printf "0;0;\n"; }';
netmap |
Subversion Repositories: |
Line No. | Rev | Author | Line |
---|