Changeset 41


Ignore:
Timestamp:
May 10, 2019, 1:45:46 PM (6 years ago)
Author:
gegorbet
Message:

gridctl mods for uslims.uleth.ca demeler3 cluster

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/cleanup.php

    r40 r41  
    738738   $headers  = "From: $org_name Admin<$admin_email>"     . "\n";
    739739   $headers .= "Cc: $org_name Admin<$admin_email>"       . "\n";
     740   $headers .= "CC: $org_name Admin<alexsav.science@gmail.com>"       . "\n";
     741   $headers .= "CC: $org_name Admin<gegorbet@gmail.com>"       . "\n";
    740742
    741743   // Set the reply address
     
    878880   global $dbhost;
    879881   global $status;
     882   
    880883   $is_us3iab  = preg_match( "/us3iab/", $cluster );
    881884   $is_jetstr  = preg_match( "/jetstream/", $cluster );
     885   $is_demeler3 = preg_match( "/demeler3/", $cluster );
     886
    882887   $limshost   = $dbhost;
    883888   $stderr     = '';
     
    921926         $lworkdir = "/N/us3_cluster/work/local";
    922927      }
     928     
     929      if ( $is_demeler3 )
     930      {
     931         $clushost = "demeler3.uleth.ca";
     932   $lworkdir = "/home/us3/work";
     933      }
     934
    923935      $cmd         = "ssh us3@$clushost 'ls -d $lworkdir' 2>/dev/null";
    924936      exec( $cmd, $output, $stat );
  • trunk/cluster_status.php

    r39 r41  
    176176   {
    177177      if ( preg_match( "/attlocal/", $org_domain ) )
    178          $clusters = array( "us3iab-devel", "alamo-local", "taito-local" );
     178         $clusters = array( "us3iab-devel" );
    179179      else
    180          $clusters = array( "us3iab-node0", "taito-local" );
     180         $clusters = array( "us3iab-node0",  "demeler3-local", "taito-local" );
    181181   }
    182182   else
     
    224224            break;
    225225         }
     226
     227        case 'demeler3-local':
     228         {
     229            $host   = "us3@demeler3.uleth.ca";
     230            $qstat  = `ssh $host '/usr/bin/qstat -B 2>&1|tail -1'`;
     231            $sparts = preg_split( '/\s+/', $qstat );
     232            $que    = $sparts[ 3 ];
     233            $run    = $sparts[ 4 ];
     234            $sta    = $sparts[ 10 ];
     235            if ( $sta == "Active" )
     236               $sta    = "up";
     237            else
     238               $sta    = "down";
     239            break;
     240         }
     241
    226242         case 'jacinto':
    227243         {
  • trunk/gridctl.php

    r40 r41  
    55//include "$us3bin/cleanup_aira.php";
    66//include "$us3bin/cleanup_gfac.php";
     7//include "$us3bin/cleanup.php";
     8
    79
    810// Global variables
     
    841843
    842844   $is_jetstr = preg_match( "/jetstream/", $cluster );
     845   $is_demeler3 = preg_match( "/demeler3/", $cluster );
     846
    843847   if ( $is_jetstr )
    844848      $cmd    = "squeue -j $gfacID 2>&1|tail -n 1";
     
    855859         $system = "$cluster";
    856860      $system = preg_replace( "/\-local/", "", $system );
     861
     862      if ( $is_demeler3 )
     863      {
     864        $system = "demeler3.uleth.ca";
     865      }
     866     
    857867      $cmd    = "/usr/bin/ssh -x us3@$system " . $cmd;
    858868//write_log( "$self  cmd: $cmd" );
     
    9931003   $headers  = "From: $org_name Admin<$admin_email>"     . "\n";
    9941004   $headers .= "Cc: $org_name Admin<$admin_email>"       . "\n";
     1005   $headers .= "Cc: $org_name Admin<alexsav.science@gmail.com>"       . "\n";
    9951006   $headers .= "Bcc: Gary Gorbet<gegorbet@gmail.com>"    . "\n";     // make sure
     1007
    9961008
    9971009   // Set the reply address
Note: See TracChangeset for help on using the changeset viewer.