EGSC HPCC Current Operational StatusThursday, November 14, 2024 -- 7:58 PM |
|
Number of Processes by Nodefor ($i=1; $i<=16; $i++) { $numstr = strval($i); if (strlen($numstr) <2) {$numstr="0".$numstr;} $nodearray[$i]="eb".$numstr; } foreach ($nodearray as $node) { $cmdstr="/data/www/setuids/root/proclist01 ".$node; print("Node $node : "); // print(exec($cmdstr)."\n"); $retval=200; $tstr1=exec($cmdstr,$arr1, $retval); if ($retval == 0) {print("$arr1[0] processes \n");} else {print("Error: Unable to determine number of processes \n");} array_splice($arr1,0); } ?> |
Status By Nodefor ($i=1; $i<=16; $i++) { $numstr = strval($i); if (strlen($numstr) <2) {$numstr="0".$numstr;} $nodearray[$i]="eb".$numstr; } foreach ($nodearray as $node) { $cmdstr="ping -c 1 -q ".$node; print("Node $node : "); // print(exec($cmdstr)."\n"); $retval=200; $tstr1=exec($cmdstr,$arr1, $retval); if ($retval == 0) {print("Operating \n");} else {print("Offline \n");} } ?> |