#!/bin/sh # (c)2003 by Jan Krupa (krupaj@mobilnews.cz) # http://www.mobilnews.cz/honza/ PING_PATH="ping -I 10.33.12.4" for LINE in `cat $1`; do ping_host=`echo -n $LINE | awk -F\; '{ printf "%s", $2 }'`; ping_lat=\;`$PING_PATH -c 1 -w 2 $ping_host | grep rtt | awk -F\ '{ printf "%s", $4 }' | awk -F\/ ' { printf "%s", $2 }'`; if [ "$ping_lat" = ";" ]; then ping_lat=\;`$PING_PATH -c 1 -w 2 $ping_host | grep rtt | awk -F\ '{ printf "%s", $4 }' | awk -F\/ ' { printf "%s", $2 }'`; fi; if [ "$ping_lat" = ";" ]; then echo $ping_host\;0\;0\;; else echo $ping_host\;1$ping_lat\;; fi; done #!/bin/sh # (c)2003 by Jan Krupa (krupaj@mobilnews.cz) # http://www.mobilnews.cz/honza/ PING_PATH="ping -I 10.33.0.6" for LINE in `cat $1`; do ping_host=`echo -n $LINE | awk -F\; '{ printf "%s", $2 }'`; ping_lat=\;`$PING_PATH -c 1 -w 2 $ping_host | grep rtt | awk -F\ '{ printf "%s", $4 }' | awk -F\/ ' { printf "%s", $2 }'`; if [ "$ping_lat" = ";" ]; then ping_lat=\;`$PING_PATH -c 1 -w 2 $ping_host | grep rtt | awk -F\ '{ printf "%s", $4 }' | awk -F\/ ' { printf "%s", $2 }'`; fi; if [ "$ping_lat" = ";" ]; then echo $ping_host\;0\;0\;; else echo $ping_host\;1$ping_lat\;; fi; done WebSVN - netmap - Diff - Rev 27 and 1 - /gen_onestat_ping
  jablonka.czprosek.czf

netmap

Subversion Repositories:
[/] [gen_onestat_ping] - Diff between revs 1 and 27

Show entire file Ignore whitespace

Rev 1 Rev 27

Powered by WebSVN 2.2.1