Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-stable
Commits
31896ce3
Commit
31896ce3
authored
Apr 25, 2007
by
David Johnson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Order queries by nodeid so it's easier to see current rate of progress.
parent
3702c988
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
7 deletions
+10
-7
tbsetup/plab/plabdist.in
tbsetup/plab/plabdist.in
+2
-1
tbsetup/plab/plabhttpd.in
tbsetup/plab/plabhttpd.in
+8
-6
No files found.
tbsetup/plab/plabdist.in
View file @
31896ce3
...
...
@@ -80,7 +80,8 @@ if (!scalar(@nodes)) {
"
LEFT JOIN reserved AS r ON n.node_id = r.node_id
"
.
"
WHERE n.type=
\"
pcplabphys
\"
AND s.status=
\"
up
\"
AND
"
.
"
!(r.pid=
\"
"
.
NODEDEAD_PID
.
"
\"
AND r.eid=
\"
"
.
NODEDEAD_EID
.
"
\"
)
");
"
\"
AND r.eid=
\"
"
.
NODEDEAD_EID
.
"
\"
)
"
.
"
order by n.node_id
");
@nodes
=
();
while
(
my
(
$node
)
=
$query_result
->
fetchrow
())
{
push
@nodes
,
$node
;
...
...
tbsetup/plab/plabhttpd.in
View file @
31896ce3
...
...
@@ -35,12 +35,14 @@ my $SSH = "ssh -q -oBatchMode=yes -oStrictHostKeyChecking=no -l $PLAB_USER";
#
# Get a list of planetlab nodes that are up
#
my
$query_result
=
DBQueryFatal
("
SELECT n.node_id FROM nodes as n
"
.
"
LEFT JOIN node_status AS s ON n.node_id=s.node_id
"
.
"
LEFT JOIN reserved AS r ON n.node_id = r.node_id
"
.
"
WHERE n.type=
\"
pcplabphys
\"
AND s.status=
\"
up
\"
AND
"
.
"
!(r.pid=
\"
"
.
NODEDEAD_PID
.
"
\"
AND r.eid=
\"
"
.
NODEDEAD_EID
.
"
\"
)
");
my
$query_result
=
DBQueryFatal
("
SELECT n.node_id FROM nodes as n
"
.
"
LEFT JOIN node_status AS s ON n.node_id=s.node_id
"
.
"
LEFT JOIN reserved AS r ON n.node_id = r.node_id
"
.
"
WHERE n.type=
\"
pcplabphys
\"
AND s.status=
\"
up
\"
AND
"
.
"
!(r.pid=
\"
"
.
NODEDEAD_PID
.
"
\"
AND r.eid=
\"
"
.
NODEDEAD_EID
.
"
\"
)
"
.
"
order by n.node_id
");
while
(
my
(
$node
)
=
$query_result
->
fetchrow
())
{
print
"
Starting up webserver on
$node
...
\n
";
...
...
Write
Preview
Markdown
is supported
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