\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

\n"; echo '
'; echo "

"; 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 "

\n"; echo "
\n"; //echo '
'; //echo "

Rpower Actions

"; //echo "
\n"; //echo "
\n"; //insertButtons(array('label' => 'Show Attributes', 'id' => 'attrButton', 'onclick' => '')); //echo "
\n"; // //insertNotDoneYet(); ?>