Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
orchard
/
CSCS
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
880b731c
authored
Nov 07, 2018
by
jajapi
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
fixed bonding check function
parent
0cbf5728
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
5 deletions
GuestPM/cms_webpm/1
GuestPM/cms_webpm/cms_webpm_check.sh
GuestPM/cms_webpm/1
deleted
100644 → 0
View file @
0cbf5728
This diff is collapsed.
Click to expand it.
GuestPM/cms_webpm/cms_webpm_check.sh
View file @
880b731c
...
@@ -150,11 +150,7 @@ function CHECK_BONDING() # YB Bonding Check function
...
@@ -150,11 +150,7 @@ function CHECK_BONDING() # YB Bonding Check function
do
do
echo
-e
"
\0
33[41m"
$arr_BOND
"
\0
33[0m"
echo
-e
"
\0
33[41m"
$arr_BOND
"
\0
33[0m"
cat
/proc/net/bonding/
$arr_BOND
|sed
's/\(Slave Interface.*\)/\x1b[32m\1\x1b[0m/'
# slave interface를 구분하기 위해 초록색을 주었다.
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/'
|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/'
DRAW_A_LINE
()
DRAW_A_LINE
()
done
done
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment