Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
etf
cmssam
Commits
17308412
Commit
17308412
authored
Oct 02, 2012
by
Andrea Sciaba
Browse files
Added OS printout and EMI version printout
parent
5c33e6b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
SiteTests/testjob/tests/CE-cms-env
View file @
17308412
...
...
@@ -10,6 +10,13 @@
# if the siteis not CERN and is not using CERNVM-FS
# - prints the type and version of middleware
# - the required version of lcg-cp is installed
# String exit codes:
# SW_DIR_UNDEF: location of CMS software directory undefined
# SW_DIR_NOT_READABLE: CMS software directory not existent or unreadable
# SW_DIR_NOT_WRITABLE: the CMS software area is not writable when it should
# LCG_CP_MISSING: the lcg-cp command is not in the PATH
# STAGEOUT_CMD_INVALID: the version of the stageout command is too old
# OK: everything is OK
export
LANG
=
C
...
...
@@ -37,7 +44,7 @@ if [ $result -eq 0 ] ; then
else
echo
"WARNING: voms-proxy-info not found"
fi
cat
/proc/meminfo |
grep
Mem
cat
/proc/meminfo |
grep
Mem
# Test of the local worker node environment
echo
...
...
@@ -69,10 +76,10 @@ else
echo
"summary: SW_DIR_UNDEF"
exit
$SAME_ERROR
fi
if
[
!
-d
$SW_DIR
]
;
then
if
[
!
-d
$SW_DIR
-o
!
-r
$SW_DIR
]
;
then
echo
"ERROR: software directory non existent or non readable"
echo
"summary: SW_DIR_NOT_READABLE"
exit
$SAME_ERROR
exit
$SAME_ERROR
fi
# Software area space
...
...
@@ -91,7 +98,7 @@ if [ -d $SW_DIR ] ; then
# Test if we are at CERN
atCERN
=
0
atCERN
=
`
echo
$SW_DIR
|
grep
-c
cern.ch 2>/dev/null
`
atCERN
=
`
echo
$SW_DIR
|
grep
-c
'/afs/
cern.ch
'
2>/dev/null
`
# Test if can write on SwArea (for EGI, non-CVMFS sites excluding CERN)
cantwrite
=
0
...
...
@@ -109,6 +116,20 @@ if [ -d $SW_DIR ] ; then
fi
fi
# check for SL5
echo
echo
"Checking OS version from
$SW_DIR
/common/cmsos and architecture from
$SW_DIR
/common/cmsarch.."
echo
slVersion
=
"unknown"
if
[
-f
$SW_DIR
/common/cmsos
]
;
then
osVersion
=
`
$SW_DIR
/common/cmsos
`
echo
"osVersion: "
$osVersion
cmsarch
=
`
$SW_DIR
/common/cmsarch
`
echo
"scram_arch: "
$cmsarch
slVersion
=
`
echo
$cmsarch
|cut
-d
'_'
-f1
`
fi
echo
"slVersion: "
$slVersion
echo
echo
"Checking middleware installation..."
echo
...
...
@@ -121,6 +142,10 @@ elif [ -f /etc/emi-version ] ; then
type
=
"EMI"
mwver
=
`
cat
/etc/emi-version
`
mw
=
1
elif
[
-f
$EMI_UI_CONF
/etc/emi-version
]
;
then
type
=
"EMI"
mwver
=
`
cat
$EMI_UI_CONF
/etc/emi-version
`
mw
=
1
elif
type
-f
lcg-version
>
/dev/null 2>&1
;
then
type
=
"LCG"
mwver
=
`
lcg-version
`
...
...
@@ -150,7 +175,7 @@ else
else
echo
echo
"ERROR: No validated command for remote stageout available"
echo
"summary: ST
G
OUT_CMD_INVALID"
echo
"summary: ST
AGE
OUT_CMD_INVALID"
exit
$SAME_ERROR
fi
fi
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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