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
4c25d77e
Commit
4c25d77e
authored
Apr 26, 2013
by
Dan Reading
Browse files
Output to log file for testbed population
parent
bacfad6c
Changes
3
Hide whitespace changes
Inline
Side-by-side
clientside/tmcc/common/nodetest/usr/local/etc/emulab/checkutils.sh
View file @
4c25d77e
...
...
@@ -38,7 +38,11 @@ initlogs () {
funcdebug
$FUNCNAME
:
$LINENO
enter
$@
logfile
=
${
1
-
"/tmp/nodecheck.log"
}
logfile4tb
=
${
2
-
""
}
# start XXX XXX should be "" when in production
# logfile4tb=${2-""}
logfile4tb
=
${
2
-
"/tmp/nodecheck.log.tb"
}
touch
${
logfile4tb
}
# end XXX XXX
tmplog
=
/tmp/.
$$
.log
;
cat
/dev/null
>
${
tmplog
}
# create and truncate
logout
=
/tmp/.
$$
logout.log
;
touch
${
logout
}
# make it exist
...
...
clientside/tmcc/common/nodetest/usr/local/etc/emulab/rc/rc.nodecheck_perl
View file @
4c25d77e
...
...
@@ -32,7 +32,8 @@ BEGIN { require "/etc/emulab/paths.pm"; import emulabpaths; }
#LINUX
@checkscripts
=
("
disk
",
"
cpu
",
"
mem
",
"
time
",
"
nic
",
"
diskspeed
");
#@checkscripts = ("disk", "cpu", "mem", "time", "nic", "diskspeed");
@checkscripts
=
("
disk
",
"
cpu
",
"
mem
",
"
time
",
"
nic
");
system
("
echo 'Running nodechecks'
");
...
...
clientside/tmcc/common/nodetest/usr/local/etc/emulab/rc/rc.nodecheck_sh
View file @
4c25d77e
...
...
@@ -23,7 +23,8 @@ if [ -e "/var/emulab/boot/realname" ]; then
host
=
$(
cat
/var/emulab/boot/realname
)
fi
checks
=
"disk cpu mem time nic diskspeed"
#checks="disk cpu mem time nic diskspeed"
checks
=
"disk cpu mem time nic"
echo
"Running nodechecks"
# truncate file at boot time
...
...
@@ -35,7 +36,7 @@ if [ "$1" = "boot" ] ; then
/usr/local/bin/bash /usr/local/etc/emulab/
${
i
}
check /var/emulab/logs/nodecheck.log /tmp/nodecheck.log.tb
done
$(
echo
"-- Finish boot_time_node_check --"
>>
/var/emulab/logs/nodecheck.log
)
if
[
-
e
/tmp/nodecheck.log.tb
]
;
then
if
[
-
f
/tmp/nodecheck.log.tb
]
;
then
cp
/tmp/nodecheck.log.tb /proj/emulab-ops/nodecheck/
$host
fi
else
...
...
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