Changeset 38
- Timestamp:
- Sep 26, 2018, 9:38:40 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cluster_status.php
r37 r38 176 176 { 177 177 if ( preg_match( "/attlocal/", $org_domain ) ) 178 $clusters = array( "us3iab-devel", "alamo-local" );178 $clusters = array( "us3iab-devel", "alamo-local", "taito-local" ); 179 179 else 180 $clusters = array( "us3iab-node0" 180 $clusters = array( "us3iab-node0", "taito-local"); 181 181 } 182 182 else … … 269 269 $que = $sparts[ 8 ]; 270 270 // $que = $sparts[ 11 ]; 271 } 272 break; 273 } 274 case 'taito-local': 275 { 276 $host = "rb_2001068_taito01@taito.csc.fi"; 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'`; 279 $sparts = preg_split( '/\s+/', $qstat ); 280 $tot = $sparts[ 1 ]; 281 $run = '0'; 282 $que = '0'; 283 $sta = "up"; 284 if ( $tot == '' || $tot == '0' ) 285 { 286 $sta = "down"; 287 } 288 else 289 { 290 $run = $sparts[ 3 ]; 291 $que = $sparts[ 5 ]; 271 292 } 272 293 break;
Note:
See TracChangeset
for help on using the changeset viewer.