Ignore:
Timestamp:
Dec 16, 2017, 5:50:01 PM (7 years ago)
Author:
gegorbet
Message:

gridctl updates, mostly for jetstream and 4.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cluster_status.php

    r31 r32  
    326326         case 'jetstream':
    327327         {
    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'`;
    330331            $sparts = preg_split( '/\s+/', $qstat );
    331332            $sta    = $sparts[ 0 ];
     
    333334            $sparts = preg_split( '/\//', $knts );
    334335            $run    = $sparts[ 0 ];
    335             $que    = $sparts[ 1 ];
     336            $que    = $sparts[ 2 ];
     337            $tot    = $sparts[ 3 ];
    336338            if ( $sta == "" )
    337339               $sta    = "down";
     
    353355      $a[ 'running' ] = $run;
    354356      $a[ 'status'  ] = $sta;
    355 //echo "$self:  $clname  $que $run $sta\n";
     357echo "$self:  $clname  $que $run $sta\n";
    356358
    357359      $data[] = $a;
Note: See TracChangeset for help on using the changeset viewer.