Changeset 31 for trunk/cluster_status.php
- Timestamp:
- Oct 13, 2017, 9:37:16 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cluster_status.php
r28 r31 183 183 { 184 184 $clusters = array( "alamo", "lonestar5", "stampede", "comet", 185 " gordon", "jureca", "jacinto" );185 "stampede2-b", "jetstream", "jureca", "jacinto-b" ); 186 186 } 187 187 … … 251 251 break; 252 252 } 253 case 'stampede2': 254 { 255 $host = "us3@stampede2.tacc.utexas.edu"; 256 $qstat = `ssh $host '/usr/local/bin/showq 2>&1|grep "Total Jobs"'`; 257 $sparts = preg_split( '/\s+/', $qstat ); 258 $tot = $sparts[ 2 ]; 259 $run = $sparts[ 5 ]; 260 $que = $sparts[ 8 ]; 261 $sta = "up"; 262 if ( $tot == '' || $tot == '0' ) 263 $sta = "down"; 264 break; 265 } 253 266 case 'lonestar5': 254 267 { … … 267 280 { 268 281 $run = $sparts[ 5 ]; 269 $que = $sparts[ 8 ]; 282 // $que = $sparts[ 8 ]; 283 $que = $sparts[ 11 ]; 270 284 } 271 285 break; … … 309 323 break; 310 324 } 325 case 'jetstream-local': 326 case 'jetstream': 327 { 328 $host = "us3@js-157-184.jetstream-cloud.org"; 329 $qstat = `ssh $host '/usr/bin/sinfo -s -p batch -o "%a %F" |tail -1'`; 330 $sparts = preg_split( '/\s+/', $qstat ); 331 $sta = $sparts[ 0 ]; 332 $knts = $sparts[ 1 ]; 333 $sparts = preg_split( '/\//', $knts ); 334 $run = $sparts[ 0 ]; 335 $que = $sparts[ 1 ]; 336 if ( $sta == "" ) 337 $sta = "down"; 338 break; 339 } 311 340 } 312 341 … … 328 357 $data[] = $a; 329 358 330 if ( $clname == 'alamo' || $clname == 'jacinto' ) 359 if ( $clname == 'alamo' || 360 $clname == 'jacinto' || 361 $clname == 'jetstream' ) 331 362 { 332 363 $a[ 'cluster' ] = $clname . "-local";
Note:
See TracChangeset
for help on using the changeset viewer.