Changeset 23
- Timestamp:
- Aug 30, 2016, 1:43:46 PM (8 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cleanup.php
r18 r23 494 494 } 495 495 496 else 496 else if ( preg_match( "/\.model/", $fn ) > 0 ) // It's a model file 497 497 { 498 498 $xml = file_get_contents( $fn ); -
trunk/cleanup_gfac.php
r18 r23 528 528 } 529 529 530 else 530 else if ( preg_match( "/\.model/", $fn ) > 0 ) // It's a model file 531 531 { 532 532 $xml = file_get_contents( $fn ); -
trunk/cluster_status.php
r20 r23 109 109 global $gDB; 110 110 global $self; 111 //echo " $cluster $queued, $status, $running\n"; 111 112 112 113 $gfac_link = mysql_connect( $dbhost, $guser, $gpasswd ); … … 167 168 $clusters = array( "alamo", "lonestar5", "stampede", 168 169 "comet", "gordon", "jureca", "jacinto" ); 170 // $clusters = array( "alamo", "lonestar5", "stampede", 171 // "comet", "gordon", "jureca" ); 169 172 foreach ( $clusters as $clname ) 170 173 { … … 203 206 { 204 207 $host = "us3@stampede.tacc.utexas.edu"; 205 $qstat = `ssh $host '/usr/local/bin/showq 2>&1| tail -1'`;208 $qstat = `ssh $host '/usr/local/bin/showq 2>&1|grep "Total Jobs"'`; 206 209 $sparts = preg_split( '/\s+/', $qstat ); 207 210 $tot = $sparts[ 2 ]; … … 213 216 break; 214 217 } 215 case 'lonestar':216 {217 $host = "us3@lonestar.tacc.utexas.edu";218 $qstat = `ssh $host 'showq 2>&1|tail -1'`;219 $sparts = preg_split( '/\s+/', $qstat );220 $tot = $sparts[ 2 ];221 $run = '0';222 $que = '0';223 $sta = "up";224 if ( $tot == '' || $tot == '0' )225 {226 $sta = "down";227 }228 else229 {230 $run = $sparts[ 5 ];231 $que = $sparts[ 8 ];232 }233 break;234 }235 218 case 'lonestar5': 236 219 { 237 220 $host = "us3@ls5.tacc.utexas.edu"; 238 $qstat = `ssh $host '/usr/local/bin/showq 2>&1| tail -1'`;221 $qstat = `ssh $host '/usr/local/bin/showq 2>&1|grep "Total Jobs"'`; 239 222 $sparts = preg_split( '/\s+/', $qstat ); 240 223 $tot = $sparts[ 2 ];
Note:
See TracChangeset
for help on using the changeset viewer.