diff --git a/xCAT-client/sbin/pping2 b/xCAT-client/sbin/pping2 index ebcdb7202..e0c6743d2 100755 --- a/xCAT-client/sbin/pping2 +++ b/xCAT-client/sbin/pping2 @@ -35,9 +35,16 @@ then fi nodes=`echo $1 |sed "s/,/ /g"` -if [ -n "$ETH" ]; then - nodes=`echo $nodes |sed "s/ /-$ETH /g"` - nodes="$nodes-$ETH" +if [ -n "$ETH" ]; then + if echo $ETH | grep hf + then + nodes=`echo $nodes |sed "s/-hf[0-9]//g"` + nodes=`echo $nodes |sed "s/ /-$ETH /g"` + nodes="$nodes-$ETH" + else + nodes=`echo $nodes |sed "s/ /-$ETH /g"` + nodes="$nodes-$ETH" + fi fi which fping >/dev/null 2>&1