Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
22371ed9
Commit
22371ed9
authored
Oct 07, 2014
by
Dan Reading
Browse files
development tools
parent
a71e14db
Changes
2
Hide whitespace changes
Inline
Side-by-side
clientside/tmcc/common/checknode/checkutils.sh
View file @
22371ed9
...
...
@@ -459,7 +459,7 @@ compareunits() {
# else
# not the same number of devices. Don't match, do nothing.
fi
#remove extra spaces
save_e
set
+e
...
...
clientside/tmcc/common/checknode/update
View file @
22371ed9
...
...
@@ -3,7 +3,6 @@
arg
=
$1
#list="pc4 pc7 pc133 pc137 pc207 pc208 pc406 pc446 pc511 pc606"
list
=
apt111
if
[
"
${
arg
}
"
==
"static"
]
;
then
here
=
$(
pwd
)
...
...
@@ -26,15 +25,18 @@ if [ "${arg}" == "static" ] ; then
exit
0
fi
#list=$(mysql -B -N -e "select node_id from reserved where pid='emulab-ops' and eid='nodechk';" tbdb)
blist
=
$(
mysql
-B
-N
-e
"select node_id from reserved where pid='emulab-ops' and eid='nodecheck';"
tbdb
)
elist
=
$(
mysql
-B
-N
-e
"select node_id from reserved where pid='emulab-ops' and eid='64nodecheck';"
tbdb
)
alist
=
$(
mysql
-B
-N
-e
"select node_id from reserved where pid='emulab-ops' and eid='nore32';"
tbdb
)
clist
=
$(
mysql
-B
-N
-e
"select node_id from reserved where pid='testbed' and eid='wce';"
tbdb
)
dlist
=
$(
mysql
-B
-N
-e
"select node_id from reserved where pid='emulab-ops' and eid='hw';"
tbdb
)
flist
=
$(
mysql
-B
-N
-e
"select node_id from reserved where pid='emulab-ops' and eid='nodetest';"
tbdb
)
list
=
"
$alist
$blist
$clist
$dlist
$elist
$flist
"
if
[
"
$@
"
]
;
then
list
=
"
$@
"
else
#list=$(mysql -B -N -e "select node_id from reserved where pid='emulab-ops' and eid='nodechk';" tbdb)
blist
=
$(
mysql
-B
-N
-e
"select node_id from reserved where pid='emulab-ops' and eid='nodecheck';"
tbdb
)
elist
=
$(
mysql
-B
-N
-e
"select node_id from reserved where pid='emulab-ops' and eid='64nodecheck';"
tbdb
)
alist
=
$(
mysql
-B
-N
-e
"select node_id from reserved where pid='emulab-ops' and eid='nore32';"
tbdb
)
clist
=
$(
mysql
-B
-N
-e
"select node_id from reserved where pid='testbed' and eid='wce';"
tbdb
)
dlist
=
$(
mysql
-B
-N
-e
"select node_id from reserved where pid='emulab-ops' and eid='hw';"
tbdb
)
flist
=
$(
mysql
-B
-N
-e
"select node_id from reserved where pid='emulab-ops' and eid='nodetest';"
tbdb
)
list
=
"
$alist
$blist
$clist
$dlist
$elist
$flist
"
fi
echo
-n
"LIST="
for
i
in
$list
;
do
echo
-n
"
$i
"
...
...
Write
Preview
Supports
Markdown
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