Changeset 32 for trunk/cluster_status.php
- Timestamp:
- Dec 16, 2017, 5:50:01 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cluster_status.php
r31 r32 326 326 case 'jetstream': 327 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'`; 328 $host = "us3@js-169-137.jetstream-cloud.org"; 329 // $qstat = `ssh $host '/usr/bin/sinfo -s -p batch -o "%a %F" |tail -1'`; 330 $qstat = `ssh $host '/home/us3/bin/clusstat |tail -n 1'`; 330 331 $sparts = preg_split( '/\s+/', $qstat ); 331 332 $sta = $sparts[ 0 ]; … … 333 334 $sparts = preg_split( '/\//', $knts ); 334 335 $run = $sparts[ 0 ]; 335 $que = $sparts[ 1 ]; 336 $que = $sparts[ 2 ]; 337 $tot = $sparts[ 3 ]; 336 338 if ( $sta == "" ) 337 339 $sta = "down"; … … 353 355 $a[ 'running' ] = $run; 354 356 $a[ 'status' ] = $sta; 355 //echo "$self: $clname $que $run $sta\n";357 echo "$self: $clname $que $run $sta\n"; 356 358 357 359 $data[] = $a;
Note:
See TracChangeset
for help on using the changeset viewer.