netmap |
Subversion Repositories: |
Rev 1 | Rev 27 | |
---|---|---|
Line 1... | Line 1... | |
#!/bin/sh |
#!/bin/sh | |
|
| |
# (c)2003 by Jan Krupa (krupaj@mobilnews.cz) |
# (c)2003 by Jan Krupa (krupaj@mobilnews.cz) | |
# http://www.mobilnews.cz/honza/ |
# http://www.mobilnews.cz/honza/ | |
|
| |
PING_PATH="ping -I 10.33.0.6" |
PING_PATH="ping -I 10.33.12.4" | |
|
| |
for LINE in `cat $1`; do |
for LINE in `cat $1`; do | |
ping_host=`echo -n $LINE | awk -F\; '{ printf "%s", $2 }'`; |
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 }'`; |
ping_lat=\;`$PING_PATH -c 1 -w 2 $ping_host | grep rtt | awk -F\ '{ printf "%s", $4 }' | awk -F\/ ' { printf "%s", $2 }'`; |