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
2e4f2d39
authored
Nov 08, 2018
by
jajapi
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
fixed kpfscript
parent
4c1fc339
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
GuestPM/kpf_iscsi/kpf_check.sh
GuestPM/kpf_iscsi/kpf_check.sh
View file @
2e4f2d39
...
@@ -60,9 +60,9 @@ function DMESG_CHECK()
...
@@ -60,9 +60,9 @@ function DMESG_CHECK()
UXEN_MAIN_VERSION
=
0
UXEN_MAIN_VERSION
=
0
function
KPF_
ISCSI_
VERSION_CHECK
()
function
KPF_VERSION_CHECK
()
{
{
UXEN_MAIN_VERSION
=
`
/home/orchard/uxen_new/docs
`
UXEN_MAIN_VERSION
=
`
cat
/home/orchard/uxen_new/docs/VERSION
`
}
}
# xl info 명령에서 메모리 정보를 가져오는 함수
# xl info 명령에서 메모리 정보를 가져오는 함수
...
@@ -252,8 +252,6 @@ function KPF_UXEN_LOG()
...
@@ -252,8 +252,6 @@ function KPF_UXEN_LOG()
ls
-r
$SECOND_UXEN2_API_LOG
| xargs
cat
>
$ENTIRE_UXEN2_API_LOG
ls
-r
$SECOND_UXEN2_API_LOG
| xargs
cat
>
$ENTIRE_UXEN2_API_LOG
cat
$ENTIRE_UXEN2_API_LOG
|
grep
-E
"error|fail|failure"
cat
$ENTIRE_UXEN2_API_LOG
|
grep
-E
"error|fail|failure"
echo
-e
"
\n
---------------- Refine
$SECOND_GUNICORN_LOG
------------------"
echo
-e
"
\n
---------------- Refine
$SECOND_GUNICORN_LOG
------------------"
cat
$SECOND_GUNICORN_LOG
|
grep
-Ev
" Starting|worker|Listening"
cat
$SECOND_GUNICORN_LOG
|
grep
-Ev
" Starting|worker|Listening"
echo
-e
"Please see
$REFINED_GUNICORN_LOG
"
echo
-e
"Please see
$REFINED_GUNICORN_LOG
"
...
@@ -271,8 +269,8 @@ function KPF_UXEN_LOG()
...
@@ -271,8 +269,8 @@ function KPF_UXEN_LOG()
echo
-e
"
\n\x
1b[31m"
-------------------------------------------------------------------------------------------
"
\x
1b[0m"
echo
-e
"
\n\x
1b[31m"
-------------------------------------------------------------------------------------------
"
\x
1b[0m"
echo
-e
"
\n\x
1b[45m"
UWSGI
"
\x
1b[0m"
echo
-e
"
\n\x
1b[45m"
GUNICORN
"
\x
1b[0m"
echo
-e
"
\n
----------------
\x
1b[34m"
entire
uwsgi
"
\x
1b[0m---------------------
\n
"
echo
-e
"
\n
----------------
\x
1b[34m"
entire
gunicorn
"
\x
1b[0m---------------------
\n
"
tail
$SECOND_GUNICORN_LOG
tail
$SECOND_GUNICORN_LOG
echo
-e
"
\n
----------------
\x
1b[34m"
error fail log
"
\x
1b[0m--------------------
\n
"
echo
-e
"
\n
----------------
\x
1b[34m"
error fail log
"
\x
1b[0m--------------------
\n
"
...
@@ -282,10 +280,9 @@ function KPF_UXEN_LOG()
...
@@ -282,10 +280,9 @@ function KPF_UXEN_LOG()
echo
-e
"
\n
Please see /tmp/refined_gunicorn-uxen-error.log"
echo
-e
"
\n
Please see /tmp/refined_gunicorn-uxen-error.log"
echo
-e
"
\n\x
1b[31m"
-------------------------------------------------------------------------------------------
"
\x
1b[0m"
echo
-e
"
\n\x
1b[31m"
-------------------------------------------------------------------------------------------
"
\x
1b[0m"
fi
}
}
'
function
GET_UXEN_LOG
()
function
GET_UXEN_LOG
()
{
{
KPF_UXEN_LOG
# REFINE_UXEN_LOG 함수에서 UXEN_MAIN_VERSION 변수를 사용함.
KPF_UXEN_LOG
# REFINE_UXEN_LOG 함수에서 UXEN_MAIN_VERSION 변수를 사용함.
...
@@ -318,7 +315,7 @@ function MAIN()
...
@@ -318,7 +315,7 @@ function MAIN()
KPF_CHECK_PROCESS
KPF_CHECK_PROCESS
KPF_RUN_DSTAT
KPF_RUN_DSTAT
GET_VM_LIST
GET_VM_LIST
KPF_
UXEN_
VERSION_CHECK
KPF_VERSION_CHECK
GET_XL_INFO
GET_XL_INFO
VCPUS_RATIO_CHECK
VCPUS_RATIO_CHECK
CHECK_BONDING
CHECK_BONDING
...
...
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