From 92b6afbaf5900e51c67574944eb21ed05b0f20ae Mon Sep 17 00:00:00 2001 From: "Leigh B. Stoller" <stoller@flux.utah.edu> Date: Wed, 4 Sep 2002 20:44:39 +0000 Subject: [PATCH] Print out the control net IP in the node info page. Helpful for widearea nodes. --- www/showstuff.php3 | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/www/showstuff.php3 b/www/showstuff.php3 index ff25f5b135..c77b488968 100644 --- a/www/showstuff.php3 +++ b/www/showstuff.php3 @@ -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> -- GitLab