\n"; //echo "\n"; echo "\n"; echo "\n"; echo "\n"; //use the attributes.css for help echo "\n"; echo << body {font-size: 8pt; } CSS1; //Get the noderange $noderange = @$_REQUEST['noderange']; if(empty($noderange)) { echo "

Select one or more groups or nodes for ping.

\n"; exit; } //pping is one local command, which doesn't use xcat client/server protocol; $xml = docmd('webrun',$noderange,array("pping $noderange",));#The default pping option is NULL if(getXmlErrors($xml,$errors)) { echo "

ping failed: ", implode(' ',$errors), "

\n"; exit; } //show the result of "pping" //TODO echo "

\n"; echo << Node Name Ping Status TAB1; foreach ($xml->children() as $response) foreach ($response->children() as $o) { $nodename=$o->name; if(empty($nodename)) { continue; } $contents = $o->data->contents; //echo "$nodename: $contents
\n"; echo "\n"; echo "$nodename"; echo "$contents"; echo "\n"; //echo "$nodename: $contents
\n"; } echo << TAB2; echo "

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