\n"; //echo "\n"; echo "\n"; //get the noderange $noderange = @$_REQUEST['noderange']; if (empty($noderange)) { echo "
Select one or more groups or nodes for rpower.
\n"; exit; } //echo "noderange=$noderange.
\n"; $xml = docmd('rpower', $noderange, array('stat')); if (getXmlErrors($xml,$errors)) { echo "rpower failed:", implode(' ',$errors), "
\n"; exit; } //echo "debug
";print_r($xml);echo "
debug end
";
echo <<
TAB1;
foreach ($xml->children() as $response) foreach ($response->children() as $o) {
$nodename = (string)$o->name;
if(empty($nodename)) {
continue;
}
$data = & $o->data;
$contents = (string)$data->contents;
$desc = (string)$data->desc;
echo "Node Name
Rpower Status
\n";
echo " \n";
//echo "$nodename: $contents$nodename ";
echo "$contents ";
echo "
\n";
}
echo <<