FastHandle - IT Operations Examples

FastHandle is fast operation tools for infrastructure configurations and tests.

User Tools

Site Tools


fhscripts:fh:fhping.sh.html



Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
fhscripts:fh:fhping.sh.html [2017/12/02 22:12]
kurihara
fhscripts:fh:fhping.sh.html [2019/02/12 23:21] (current)
kurihara
Line 1: Line 1:
 [[:index.html#FastHandle Scripts|FastHandle Scripts]] [[:index.html#FastHandle Scripts|FastHandle Scripts]]
-====== fhping.sh - check ping ======+====== script for ping multiple servers (fhping.sh====== 
 + 
 +$FHHOME/fhscripts/fhping.sh
  
-\\ 
 {{INLINETOC}} {{INLINETOC}}
 \\ \\
  
 ===== About fhping.sh ===== ===== About fhping.sh =====
-If you want to check connection and ttl, you can use fhping.sh+If you want to check connection and ttl, you can use fhping.sh
 +fhping.sh can ping multiple servers.
  
  
 \\ \\
-===== Operation =====+===== How to use =====
  
 <sxh bash toolbar:false gutter:false> <sxh bash toolbar:false gutter:false>
Line 54: Line 56:
 \\ \\
 ===== fhping.sh ===== ===== fhping.sh =====
 +
 +$FHHOME/fhscripts/fhping.sh
 +
 <sxh bash toolbar:false gutter:false> <sxh bash toolbar:false gutter:false>
 #!/bin/bash #!/bin/bash
Line 69: Line 74:
     ping -i 0.5 -c 2 $i     ping -i 0.5 -c 2 $i
     if [ "$?" -ne 0 ] ; then     if [ "$?" -ne 0 ] ; then
-        echo "#######################################" +        echo "#### NG : ping $i ####"
-        echo "## NG : ping $i +
-        echo "#######################################"+
     fi     fi
 done done
Line 84: Line 87:
 \\ \\
 <WRAP box 90%> <WRAP box 90%>
-<catlist -noAddPageButton -smallHead -sortAscending>+<catlist ..: -noAddPageButton -smallHead -sortAscending>
 </WRAP> </WRAP>
 \\ \\
 \\ \\
 [[:index.html#FastHandle Scripts|FastHandle Scripts]] [[:index.html#FastHandle Scripts|FastHandle Scripts]]


fhscripts/fh/fhping.sh.html.1512220366.txt.gz · Last modified: 2017/12/02 22:12 by kurihara