Changeset 39 for trunk/cluster_status.php
- Timestamp:
- Feb 15, 2019, 4:56:31 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cluster_status.php
r38 r39 178 178 $clusters = array( "us3iab-devel", "alamo-local", "taito-local" ); 179 179 else 180 $clusters = array( "us3iab-node0", "taito-local" );180 $clusters = array( "us3iab-node0", "taito-local" ); 181 181 } 182 182 else … … 241 241 { 242 242 $host = "us3@stampede2.tacc.utexas.edu"; 243 $qstat = `ssh $host ' /usr/local/bin/showq 2>/dev/null|grep "Total Jobs"'`;243 $qstat = `ssh $host '~us3/scripts/clusstat skx-normal 2>/dev/null'`; 244 244 $sparts = preg_split( '/\s+/', $qstat ); 245 245 $tot = $sparts[ 2 ]; … … 254 254 { 255 255 $host = "us3@ls5.tacc.utexas.edu"; 256 $qstat = `ssh $host '/ usr/local/bin/showq 2>/dev/null|grep "Total Jobs"'`;256 $qstat = `ssh $host '/opt/apps/tacc/bin/showq 2>/dev/null|grep "Total Jobs"'`; 257 257 $sparts = preg_split( '/\s+/', $qstat ); 258 258 $tot = $sparts[ 2 ]; … … 272 272 break; 273 273 } 274 case ' taito-local':275 { 276 $host = " rb_2001068_taito01@taito.csc.fi";274 case 'comet': 275 { 276 $host = "us3@comet.sdsc.edu"; 277 277 //$qstat = `ssh $host '/usr/bin/sinfo -s -p compute -o "%a %F" |tail -1'`; 278 $qstat = `ssh -i /home/us3/.ssh/id_rsa_taito_robot $host '/homeappl/home/rb_2001068_taito01/scripts/cstat 2>&1'`;278 $qstat = `ssh $host '/home/us3/scripts/cstat 2>&1'`; 279 279 $sparts = preg_split( '/\s+/', $qstat ); 280 280 $tot = $sparts[ 1 ]; … … 290 290 $run = $sparts[ 3 ]; 291 291 $que = $sparts[ 5 ]; 292 } 293 break; 294 } 295 case 'comet': 296 { 297 $host = "us3@comet.sdsc.edu"; 298 //$qstat = `ssh $host '/usr/bin/sinfo -s -p compute -o "%a %F" |tail -1'`; 299 $qstat = `ssh $host '/home/us3/scripts/cstat 2>&1'`; 300 $sparts = preg_split( '/\s+/', $qstat ); 301 $tot = $sparts[ 1 ]; 302 $run = '0'; 303 $que = '0'; 304 $sta = "up"; 305 if ( $tot == '' || $tot == '0' ) 306 { 307 $sta = "down"; 308 } 309 else 310 { 311 $run = $sparts[ 3 ]; 312 $que = $sparts[ 5 ]; 292 if ( $run == '0' && $que == '0' ) 293 { 294 $sta = "down"; 295 } 313 296 } 314 297 break; … … 341 324 break; 342 325 } 326 case 'taito-local': 327 { 328 $host = "rb_2001068_taito01@taito.csc.fi"; 329 $qstat = `ssh -i /home/us3/.ssh/id_rsa_taito_robot $host '/homeappl/home/rb_2001068_taito01/scripts/cstat 2>&1'`; 330 $sparts = preg_split( '/\s+/', $qstat ); 331 $tot = $sparts[ 1 ]; 332 $run = '0'; 333 $que = '0'; 334 $sta = "up"; 335 if ( $tot == '' || $tot == '0' ) 336 { 337 $sta = "down"; 338 } 339 else 340 { 341 $run = $sparts[ 3 ]; 342 $que = $sparts[ 5 ]; 343 } 344 break; 345 } 346 343 347 } 344 348
Note:
See TracChangeset
for help on using the changeset viewer.