Commit 724199e3 authored by Leigh B. Stoller's avatar Leigh B. Stoller

Add Dave's nodemon stuff to repository! Dave is BAD!

parent 6596ca47
<?php
include("defs.php3");
#
# Standard Testbed Header
#
PAGEHEADER("Utah Testbed Machine Bandwidth Monitoring");
if (!isset($nid) ||
strcmp($nid, "") == 0) {
echo "<form action=\"nodemon.php3\" method=POST>\n";
echo "<b>Node ID:</b> <input name=\"nid\">\n";
echo "</form><P>\n";
exit;
}
$pid = addslashes($pid);
echo "<center>
<h1>Utah Testbed Machine Bandwidth Monitoring</h1>
</center>\n";
$query_result = mysql_db_query($TBDBNAME,
"SELECT * from wires where node_id1='$nid'");
if (! $query_result) {
$err = mysql_error();
TBERROR("Database Error getting node information: $err\n", 1);
}
echo "<table border=1 padding=1>\n";
echo "<tr>
<td><b>ID</b></td>
<td><b>Switch</b></td>
<td><b>Port</b></td>
</tr>\n";
while ($r = mysql_fetch_array($query_result)) {
$id = $r["node_id1"]; $card1 = $r["card1"];
$switch = $r["node_id2"]; $card2 = $r["card2"]; $port2 = $r["port2"];
echo "<tr><td>$id / $card1</td> <td>$switch</td> <td><a href=\"/~cricket/grapher.cgi?target=%2Fcatalysts%2F${switch}%2FSlot_${card2}%2Fport_${port2}\">$card2 / $port2</a></td></tr>\n";
}
echo "</table>\n";
#
# Standard Testbed Footer
#
PAGEFOOTER();
?>
<?php
include("defs.php3");
#
# Standard Testbed Header
#
PAGEHEADER("Utah Testbed Machine Bandwidth Monitoring");
if (!isset($nid) ||
strcmp($nid, "") == 0) {
echo "<form action=\"nodemon_all.php3\" method=POST>\n";
echo "<b>Node ID:</b> <input name=\"nid\">\n";
echo "</form><P>\n";
exit;
}
$pid = addslashes($pid);
echo "<center>
<h1>Utah Testbed Machine Bandwidth Monitoring</h1>
</center>\n";
$query_result = mysql_db_query($TBDBNAME,
"SELECT * from wires where node_id1='$nid'");
if (! $query_result) {
$err = mysql_error();
TBERROR("Database Error getting node information: $err\n", 1);
}
echo "<table border=1 padding=1>\n";
echo "<tr>
<td><b>ID / Interface</b></td>
<td><b>Switch</b></td>
<td><b>Port</b></td>
<td><b>Current Day Graph</b></td>
</tr>\n";
while ($r = mysql_fetch_array($query_result)) {
$id = $r["node_id1"]; $card1 = $r["card1"];
$switch = $r["node_id2"]; $card2 = $r["card2"]; $port2 = $r["port2"];
echo "<tr><td>$id / $card1</td> <td>$switch</td> <td><a href=\"/~cricket/grapher.cgi?target=%2Fcatalysts%2F${switch}%2FSlot_${card2}%2Fport_${port2}\">$card2 / $port2</a></td>\n";
echo "<td><img src=\"/~cricket/mini-graph.cgi?type=png&target=%2Fcatalysts%2F${switch}%2FSlot_${card2}%2Fport_${port2}&inst=146&dslist=ifInOctets%2CifOutOctets&range=151200&rand=243\"></td></tr>\n";
}
echo "</table>\n";
#
# Standard Testbed Footer
#
PAGEFOOTER();
?>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment