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-stable
Commits
eb80caf2
Commit
eb80caf2
authored
Jul 09, 2014
by
Dan Reading
Browse files
change comments, forgot to commit in Feb.
parent
7e270569
Changes
1
Hide whitespace changes
Inline
Side-by-side
clientside/tmcc/common/checknode/gen_sql
View file @
eb80caf2
...
...
@@ -161,7 +161,7 @@ gentbsql_main() {
allnodes
=
$(
ls
-d
pc
*
pg
*
dbox
*
gpu
*
2> /dev/null
)
fi
# unique BlockStore number
based on first mac address
#
get current
unique BlockStore number
from tbdb
bsidx_base
=
$(
mysql
-B
-N
-e
"select idx from emulab_indicies where name='next_bsidx';"
tbdb
)
keep_bsidx_base
=
$bsidx_base
...
...
@@ -170,8 +170,10 @@ gentbsql_main() {
cd
$projdir
/
$host
sn
=
"UNK"
hdtype
=
"UNK"
secsize
=
"UNK"
sectors
=
"UNK"
wspeed
=
"UNK"
rspeed
=
"UNK"
# [[ -f "diff" ]] || { echo "# $host: No changes needed"; continue; }
# need the diff and node files to continue. No diff then nothing to update
[[
-f
"diff"
]]
||
continue
;
[[
-f
"node"
]]
||
{
echo
"#
$host
: Missing node file"
;
continue
;
}
# check for old version of file
if
[
-z
"
$(
grep
"Diff Report"
diff
)
"
]
;
then
echo
"#
$host
Inventory Report to old to use"
continue
...
...
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