Available Condition/Response Associations 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 $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 ""; $ooe++; $line++; } } echo "
Condition Response Node State
$cond$resp$node$state
"; ?>