Commit 880b731c by jajapi

fixed bonding check function

parent 0cbf5728
......@@ -150,11 +150,7 @@ function CHECK_BONDING() # YB Bonding Check function
do
echo -e "\033[41m"$arr_BOND"\033[0m"
cat /proc/net/bonding/$arr_BOND |sed 's/\(Slave Interface.*\)/\x1b[32m\1\x1b[0m/' # slave interface를 구분하기 위해 초록색을 주었다.
|sed 's/\( up\)/\x1b[34m\1\x1b[0m/' # up은 파랑색
|sed 's/\( down\)/\x1b[31m\1\x1b[0m/' # down은 빨강색
|sed 's/\(1000\)/\x1b[36m\1\x1b[0m/' # 속도에 문제가 생길수 있기에 속도에도 색을 줌
|sed 's/\(10000\)/\x1b[36m\1\x1b[0m/'
cat /proc/net/bonding/$arr_BOND |sed 's/\(Slave Interface.*\)/\x1b[32m\1\x1b[0m/'|sed 's/\( up\)/\x1b[34m\1\x1b[0m/'|sed 's/\( down\)/\x1b[31m\1\x1b[0m/' |sed 's/\(1000\)/\x1b[36m\1\x1b[0m/'|sed 's/\(10000\)/\x1b[36m\1\x1b[0m/'
DRAW_A_LINE()
done
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment