Changeset 15 for trunk/cluster_status.php
- Timestamp:
- Aug 31, 2015, 8:08:16 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cluster_status.php
r14 r15 165 165 global $data; 166 166 167 // $clusters = array( "alamo", "jacinto" ); 168 $clusters = array( "alamo", "lonestar", "stampede", "comet", "gordon", "juropa" ); 169 //$clusters = array( "alamo", "lonestar", "stampede", "comet", "gordon", "jureca" ); 170 // $clusters = array( "alamo" ); 167 //$clusters = array( "alamo", "lonestar", "stampede", "comet", "gordon" ); 168 $clusters = array( "alamo", "lonestar", "stampede", "comet", "gordon", "jureca" ); 171 169 foreach ( $clusters as $clname ) 172 170 { … … 224 222 { 225 223 $host = "us3@comet.sdsc.edu"; 226 $qstat = `ssh $host '/usr/bin/sinfo -s -p compute -o "%a %F" 2>&1|tail -1'`;224 $qstat = `ssh $host '/usr/bin/sinfo -s -p compute -o "%a %F" |tail -1'`; 227 225 $sparts = preg_split( '/\s+/', $qstat ); 228 226 $sta = $sparts[ 0 ]; … … 231 229 $run = $sparts[ 0 ]; 232 230 $que = $sparts[ 1 ]; 231 if ( $sta == "" ) 232 $sta = "down"; 233 233 break; 234 234 } … … 247 247 break; 248 248 } 249 case 'juropa':250 {251 $host = "zdv575@juropa.fz-juelich.de";252 $qstat = `ssh $host '/usr/bin/qstat -B 2>&1|tail -1'`;253 $sparts = preg_split( '/\s+/', $qstat );254 $que = $sparts[ 3 ];255 $run = $sparts[ 4 ];256 $sta = $sparts[ 9 ];257 if ( $sta == "Active" )258 $sta = "up";259 else if ( $sta == "Scheduling" )260 $sta = "up";261 else262 $sta = "down";263 break;264 }265 249 case 'jureca': 266 250 { 267 //$host = "swus1@jureca.fz-juelich.de"; 268 $host = "swus1@juropatest2.fz-juelich.de"; 251 $host = "swus1@jureca.fz-juelich.de"; 269 252 $qstat = `ssh $host '/usr/bin/sinfo -s -p batch -o "%a %F" 2>&1|tail -1'`; 270 253 $sparts = preg_split( '/\s+/', $qstat );
Note:
See TracChangeset
for help on using the changeset viewer.