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:fhfping.sh.html



This is an old revision of the document!


FastHandle Scripts

fhfping.sh - check fping

About fhfping.sh

fhfping.sh is fast fping check tools.


How to use

$ fhghost.sh test hosts/test | fhping.sh
127.0.0.1 is alive
192.168.10.1 is alive
192.168.10.2 is unreachable

$ fhping.sh test.list
127.0.0.1 is alive
192.168.10.1 is alive
192.168.10.2 is unreachable


fhping.sh

#!/bin/bash
#================================================
# fhfping.sh
#
# How to use
#     fhghost  "*"  hosts/test | fhfping.sh
#     echo 192.168.0.10 | fhfping.sh
#     fhfping.sh  test.list
#================================================

if [ -z "$1" ] ; then
    grep -Ev "^#|^$" |awk {'print $1'} |fping -t 250 2>/dev/null
else
    cat "$1" |grep -Ev "^#|^$" |awk {'print $1'} |fping -t 250 2>/dev/null
fi








FastHandle Scripts



fhscripts/fh/fhfping.sh.html.1514730320.txt.gz ยท Last modified: 2017/12/31 23:25 by kurihara