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
2259f4b7
Commit
2259f4b7
authored
Sep 27, 2013
by
Dan Reading
Browse files
checkinventorydrift: discard HW sets made outside of mfs mode.
parent
a180a6d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
clientside/tmcc/common/checknode/gen_sql
View file @
2259f4b7
...
...
@@ -21,6 +21,7 @@ checkdrift_main() {
readtmcinfo
$newest
hwinvcopy
declare
-i
countsame
=
-1
for
tocheck
in
$allchecks
;
do
[[
$(
grep
'ismfs=0'
$tocheck
)
]]
&&
continue
# if not in ismfs mode then don't check
readtmcinfo
$tocheck
hwinv
# note: will check against self for sanity
comparetmcinfo /tmp/.
$$
checkdiff
...
...
@@ -40,12 +41,12 @@ checkdrift_main() {
# sudo mv $tocheck $projdir/$host/.tbdb/.notsame
# XXX - end
else
#
echo "$host $newest $tocheck SAME"
:
#
echo "$host $newest $tocheck SAME"
((
countsame++
))
fi
rm
-f
/tmp/.
$$
checkdiff
done
:
#
echo "$host $countsame inventory files are the same"
:
# echo "$host $countsame inventory files are the same"
else
echo
"No record of node id
\"
$host
\"
."
fi
...
...
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