FastHandle - IT Operations Examples

FastHandle is fast operation tools for infrastructure configurations and tests.

User Tools

Site Tools


Sidebar


Top     SiteMap

Manager Server

Target Server

$FHHOME/bin/xxx.sh | xxxx.exp













.

fhscripts:fh:fhping.sh.html



This is an old revision of the document!



FastHandle Scripts

fhping.sh - check ping

About fhping.sh


Operation

$ fhghost  "*"  hosts/test | fhping.sh


fhping.sh

#!/bin/bash
#================================================
# fhping.sh
#
# How to use
#     $ fhghost  "*"  hosts/test | fhping.sh
#================================================

LIST=$1


for i in `cat $1 |grep -Ev "^#|^$" |awk {'print $1'}`
do
    echo "---------- $i ping start ----------"
    ping -i 0.5 -c 2 $i
    if [ "$?" -ne 0 ] ; then
        echo "#### ping ERROR $i ####"
    fi
done

exit








FastHandle Scripts



fhscripts/fh/fhping.sh.html.1511538330.txt.gz ยท Last modified: 2017/11/25 00:45 by kurihara