Node Name | Arch | OS | Mode | Status | Power Method | Comment | ||
/bin/sudo nodels $noderange $a
\n"; - runcmd("/bin/sudo nodels $noderange $a", 2, $output); + //echo "nodels $noderange $a
\n"; + runcmd("nodels $noderange $a", 2, $output); foreach ($output as $line) { $vals = preg_split('/: */', $line); // vals[0] will be the node name if (!$nodes[$vals[0]]) { $nodes[$vals[0]] = array(); } @@ -454,7 +449,7 @@ function getNodes($noderange, $attrs) { function getGroups() { $groups = array(); $output = array(); - runcmd("/bin/sudo listattr", 2, $output); + runcmd("listattr", 2, $output); foreach ($output as $grp) { $groups[] = $grp; } return $groups; } @@ -465,7 +460,7 @@ function getGroups() { function getGroupStatus() { $groups = array(); $output = array(); - runcmd("/bin/sudo grpattr", 2, $output); + runcmd("grpattr", 2, $output); foreach ($output as $line) { //echo "line=$line
"; $vals = preg_split('/: */', $line); diff --git a/xCAT-web/lib/style.css b/xCAT-web/lib/style.css index e5b713e4d..6b213864b 100644 --- a/xCAT-web/lib/style.css +++ b/xCAT-web/lib/style.css @@ -146,6 +146,7 @@ TEXTAREA {vertical-align : middle; font-size : 8pt; font-family : sans-serif; fo .TableHeader { color: black; background-color : #fffdb0; font-weight : bold; font-size : 9pt; white-space: nowrap; } .TableRow { color: black; background-color : #b3c2d9; font-size : 9pt; white-space: nowrap; } /* #d8dff1 */ +.FormTable { color: black; background-color : #CCCCCC; } .Info {color : blue;} .Error {font-weight : bold; color : red;} .Trace {color: gray; padding: 0px; margin: 0px;} diff --git a/xCAT-web/machines/dsh.php b/xCAT-web/machines/dsh.php index 6d7cd9c22..87f22c002 100644 --- a/xCAT-web/machines/dsh.php +++ b/xCAT-web/machines/dsh.php @@ -7,22 +7,21 @@ $expire_time = gmmktime(0, 0, 0, 1, 1, 2038); setcookie("history", "date;hello.sh", $expire_time); require_once "$TOPDIR/lib/functions.php"; -require_once("$TOPDIR/lib/XCAT/XCATCommand/XCATCommandRunner.class.php"); -insertHeader('Run Commands on Nodes', array('themes/default.css'), - array('javascripts/prototype.js', 'javascripts/effect.js', 'javascripts/window.js'), +insertHeader('Run Commands on Nodes', array("$TOPDIR/themes/default.css"), + array("$TOPDIR/lib/CommandWindow.js", "$TOPDIR/js/prototype.js", "$TOPDIR/js/scriptaculous.js?load=effects", "$TOPDIR/js/window.js"), array('machines','dsh')); ?>