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
92b6afba
Commit
92b6afba
authored
Sep 04, 2002
by
Leigh B. Stoller
Browse files
Print out the control net IP in the node info page. Helpful for
widearea nodes.
parent
15b00725
Changes
1
Hide whitespace changes
Inline
Side-by-side
www/showstuff.php3
View file @
92b6afba
...
...
@@ -1064,8 +1064,11 @@ function SHOWIMAGEID($imageid, $edit) {
#
function
SHOWNODE
(
$node_id
)
{
$query_result
=
DBQueryFatal
(
"select n.*,r.vname,r.pid,r.eid from nodes as n "
.
DBQueryFatal
(
"select n.*,r.vname,r.pid,r.eid
,i.IP
from nodes as n "
.
"left join reserved as r on n.node_id=r.node_id "
.
"left join node_types as t on t.type=n.type "
.
"left join interfaces as i on i.card=t.control_net "
.
" and i.node_id=n.node_id "
.
"where n.node_id='
$node_id
'"
);
if
(
mysql_num_rows
(
$query_result
)
==
0
)
{
...
...
@@ -1095,6 +1098,7 @@ function SHOWNODE($node_id) {
$state_timestamp
=
$row
[
state_timestamp
];
$op_mode
=
$row
[
op_mode
];
$op_mode_timestamp
=
$row
[
op_mode_timestamp
];
$IP
=
$row
[
IP
];
if
(
!
$def_boot_cmd_line
)
$def_boot_cmd_line
=
" "
;
...
...
@@ -1155,6 +1159,11 @@ function SHOWNODE($node_id) {
<td class=left>
$type
</td>
</tr>
\n
"
;
echo
"<tr>
<td>Control Net IP:</td>
<td class=left>
$IP
</td>
</tr>
\n
"
;
echo
"<tr>
<td>Bios Version:</td>
<td class=left>
$bios
</td>
...
...
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