\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
";
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 "$nodename: $contents
\n";
}
echo "
Rpower Actions
"; //echo "