2007-10-26 22:44:33 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
// Main page of the xCAT web interface
|
|
|
|
|
|
|
|
$TOPDIR = '.';
|
2007-10-29 20:22:13 +00:00
|
|
|
require_once "$TOPDIR/functions.php";
|
2007-11-01 18:35:41 +00:00
|
|
|
if (isAIX()) { $aixDisabled = 'disabled'; }
|
2007-10-26 22:44:33 +00:00
|
|
|
|
2007-11-02 19:42:07 +00:00
|
|
|
require_once("lib/GroupNodeTable.class.php");
|
2007-10-26 22:44:33 +00:00
|
|
|
require_once("lib/XCAT/XCATCommand/XCATCommandRunner.class.php");
|
|
|
|
|
|
|
|
|
2007-10-29 20:22:13 +00:00
|
|
|
insertHeader('Nodes', NULL, NULL);
|
|
|
|
insertNav('nodes');
|
2007-11-01 18:35:41 +00:00
|
|
|
|
2007-11-02 19:42:07 +00:00
|
|
|
echo "<div id=content align=center> <p class=PageHeading>Cluster Groups and Nodes</p>";
|
2007-11-01 18:35:41 +00:00
|
|
|
|
|
|
|
|
|
|
|
insertButtons(array(
|
|
|
|
array(
|
|
|
|
'name=propButton value="Attributes"',
|
|
|
|
'name=defineButton value="Create Like"',
|
|
|
|
'name=createGroupButton value="Create Group"',
|
|
|
|
'name=pingNodesButton value="Ping"',
|
|
|
|
//'name=updateButton value="Updatenode"',
|
|
|
|
'name=runcmdButton value="Run Cmd"',
|
|
|
|
'name=copyFilesButton value="Copy Files"'
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
//'name=softMaintButton value="Soft Maint" onclick="this.form.nodesNeeded=1;"',
|
|
|
|
'name=hwctrlButton value="HW Ctrl"',
|
|
|
|
'name=rsaButton value="RSA/MM/FSP" onclick="this.form.nodesNeeded=1;"',
|
|
|
|
'name=installButton value="Install"',
|
|
|
|
'name=perfmonButton value="Perf Mon"',
|
|
|
|
//'name=webminButton value="Webmin" onclick="this.form.nodesNeeded=1;"',
|
|
|
|
'name=diagButton value="Diagnose" onclick="this.form.nodesNeeded=1;"',
|
|
|
|
'name=removeButton value="Remove"'
|
|
|
|
),
|
|
|
|
));
|
|
|
|
|
2007-11-02 19:42:07 +00:00
|
|
|
echo '<form name="nodelist" class=ContentForm>';
|
2007-11-01 18:35:41 +00:00
|
|
|
|
2007-11-02 19:42:07 +00:00
|
|
|
/* $output = array(); runcmd("\bin\sudo listattr", 2, $output); foreach ($output as $line) { echo "<p>line=$line</p>"; } */
|
2007-10-26 22:44:33 +00:00
|
|
|
|
2007-11-02 19:42:07 +00:00
|
|
|
GroupNodeTable::insertGroupTableHeader();
|
2007-10-26 22:44:33 +00:00
|
|
|
|
|
|
|
// Get all the names of the groups
|
|
|
|
$xcmdr = new XCATCommandRunner();
|
|
|
|
//$nodeGroupNames = $xcmdr->getAllGroupNames();
|
|
|
|
$nodeGroupNames = $xcmdr->getAllXCATGroups();
|
|
|
|
|
|
|
|
// Print the HTML for each of them
|
|
|
|
foreach($nodeGroupNames as $key => $nodeGroupName) {
|
2007-11-02 19:42:07 +00:00
|
|
|
echo GroupNodeTable::insertGroupTableRow($nodeGroupName);
|
2007-10-26 22:44:33 +00:00
|
|
|
}
|
|
|
|
|
2007-11-02 19:42:07 +00:00
|
|
|
GroupNodeTable::insertGroupTableFooter();
|
2007-10-26 22:44:33 +00:00
|
|
|
?>
|
|
|
|
<script type="text/javascript" src="js_xcat/event.js"> </script>
|
|
|
|
<script type="text/javascript" src="js_xcat/ui.js"> </script>
|
|
|
|
<SCRIPT language="JavaScript">
|
|
|
|
<!--
|
|
|
|
XCATEvent.doExpandNodes();
|
|
|
|
-->
|
|
|
|
</SCRIPT>
|
|
|
|
</form>
|
|
|
|
<table>
|
|
|
|
<tr>
|
2007-11-02 19:42:07 +00:00
|
|
|
<td><img src="images/green-ball-m.gif"></td>
|
|
|
|
<td align=left>Node is good (Status is ready/pbs/sshd)</td>
|
2007-10-26 22:44:33 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2007-11-02 19:42:07 +00:00
|
|
|
<td><img src="images/red-ball-m.gif"></td>
|
|
|
|
<td align=left>Node is bad (Status is 'noping')</td>
|
2007-10-26 22:44:33 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2007-11-02 19:42:07 +00:00
|
|
|
<td><img src="images/yellow-ball-m.gif"></td>
|
|
|
|
<td align=left>Other status (unknown/node unavailable...)</td>
|
2007-10-26 22:44:33 +00:00
|
|
|
</tr>
|
|
|
|
</table>
|
2007-11-02 19:42:07 +00:00
|
|
|
<p id=disclaimer>This interface is still under construction and not yet ready for use.</p>
|
2007-10-26 22:44:33 +00:00
|
|
|
</div>
|
|
|
|
</BODY>
|
|
|
|
</HTML>
|