'; echo '

Tips:(Click me to display tips)

'; echo '
'; foreach ($tips as $tip) { echo "

$tip

"; echo "\n"; } echo "
"; echo ''; echo ''; return 0; } function insertDiv($id) { echo "
"; } function displayMonTable() { //create one table to display the monitoring plugins' list echo '
'; echo << Plug-in Name Status Node Status Monitoring Configure Action TOS1; echo << hoverOnMonlist(); TOS9; echo ''; displayMonitorLists(); echo "
"; return 0; } function displayStatus() { //tell the user that the current interface is not done yet... echo "

This interface is still under development -use accordingly.

"; } function displayOSITree() { //display the node range tree, but only with the nodes with OSI type //this follows the function showNrTreeInput(); echo "
"; echo << $(function() { nrtree = new tree_component(); // -Tree begin nrtree.init($("#nrtree-input"),{ rules: { multiple: "Ctrl" }, ui: { animation: 250 }, callback : { onchange : printtree }, data : { type : "json", async : "true", url: "noderangesource.php" } }); //Tree finish }); TOS3; echo "
"; } function displayAssociation() { //TODO: the return message of "webrun lscondresp" is changed //and, also, DataTables is used to draw the tabls echo '
'; echo << $("#association").dataTable({ "bLengthChange": false, "bFilter": true, "bSort": true }); TOS5; $xml = docmd("webrun", "", array("lscondresp")); if(getXmlErrors($xml,$errors)) { echo "

",implode(' ', $errors), "

"; exit; } //get all the condition&response associations for RMC foreach ($xml->children() as $response) foreach($response->children() as $data) { //get the data from xcatd $record = split('"',$data); echo ""; echo <<$record[1] TOS6; //TODO: insert the button here echo ""; echo ""; // $association = explode("=", $data); // // $ooe = 0; // $line = 0; // foreach($association as $elem) { // $ooe = $ooe%2; // //the format should be // //"NodeReachability"\t"EmailRootOffShift"\t"hv8plus01.ppd.pok.ibm.com"\t"Active" // $record = explode("\"", $elem); // $cond = $record[1]; // $resp = $record[3]; // $node = $record[5]; // $state = $record[7]; // echo ""; // echo ""; // echo ""; // echo ""; // echo ""; // echo ""; // echo ""; // $ooe++; // $line++; // } } echo "
Condition Response Node State Action
$record[3] $record[5] $record[7]"; if($record[7] == "Active") { echo ""; }else { echo ""; } echo "
$cond$resp$node$state"; // if($state == "Active") { // insertButtons(array('label'=>'DeActivate', 'id'=>'deactivate', 'onclick'=>"control_RMCAssoc(\"$cond\", \"$node\", \"$resp\", \"stop\")")); // }else if($state == "Not active"){ // insertButtons(array('label'=>'Activate', 'id'=>'activate', 'onclick'=>"control_RMCAssoc(\"$cond\", \"$node\", \"$resp\", \"start\")")); // } // echo "
"; return 0; } function displayCond() { //display all the avaiable conditions to a element echo <<
COND; $xml = docmd("webrun", '', array("lscondition")); foreach($xml->children() as $response) foreach($response->children() as $data) { /* * the data format like this * "HFI_not_configured" "ca4lpar02" "Not monitored" * "Drawer_not_configured" "ca4lpar02" "Not monitored" * "AnyNodeFileSystemSpaceUsed_H" "ca4lpar02" "Not monitored" */ $tmp = split('"', $data); //$tmp[1] = condition name //$tmp[3] = nodename //$tmp[5] = status echo << TOS99; } echo "
Conditions
$tmp[1]
"; return 0; } function displayResp() { echo <<