Changeset 41
- Timestamp:
- May 10, 2019, 1:45:46 PM (5 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cleanup.php
r40 r41 738 738 $headers = "From: $org_name Admin<$admin_email>" . "\n"; 739 739 $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"; 740 742 741 743 // Set the reply address … … 878 880 global $dbhost; 879 881 global $status; 882 880 883 $is_us3iab = preg_match( "/us3iab/", $cluster ); 881 884 $is_jetstr = preg_match( "/jetstream/", $cluster ); 885 $is_demeler3 = preg_match( "/demeler3/", $cluster ); 886 882 887 $limshost = $dbhost; 883 888 $stderr = ''; … … 921 926 $lworkdir = "/N/us3_cluster/work/local"; 922 927 } 928 929 if ( $is_demeler3 ) 930 { 931 $clushost = "demeler3.uleth.ca"; 932 $lworkdir = "/home/us3/work"; 933 } 934 923 935 $cmd = "ssh us3@$clushost 'ls -d $lworkdir' 2>/dev/null"; 924 936 exec( $cmd, $output, $stat ); -
trunk/cluster_status.php
r39 r41 176 176 { 177 177 if ( preg_match( "/attlocal/", $org_domain ) ) 178 $clusters = array( "us3iab-devel" , "alamo-local", "taito-local");178 $clusters = array( "us3iab-devel" ); 179 179 else 180 $clusters = array( "us3iab-node0", "taito-local" );180 $clusters = array( "us3iab-node0", "demeler3-local", "taito-local" ); 181 181 } 182 182 else … … 224 224 break; 225 225 } 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 226 242 case 'jacinto': 227 243 { -
trunk/gridctl.php
r40 r41 5 5 //include "$us3bin/cleanup_aira.php"; 6 6 //include "$us3bin/cleanup_gfac.php"; 7 //include "$us3bin/cleanup.php"; 8 7 9 8 10 // Global variables … … 841 843 842 844 $is_jetstr = preg_match( "/jetstream/", $cluster ); 845 $is_demeler3 = preg_match( "/demeler3/", $cluster ); 846 843 847 if ( $is_jetstr ) 844 848 $cmd = "squeue -j $gfacID 2>&1|tail -n 1"; … … 855 859 $system = "$cluster"; 856 860 $system = preg_replace( "/\-local/", "", $system ); 861 862 if ( $is_demeler3 ) 863 { 864 $system = "demeler3.uleth.ca"; 865 } 866 857 867 $cmd = "/usr/bin/ssh -x us3@$system " . $cmd; 858 868 //write_log( "$self cmd: $cmd" ); … … 993 1003 $headers = "From: $org_name Admin<$admin_email>" . "\n"; 994 1004 $headers .= "Cc: $org_name Admin<$admin_email>" . "\n"; 1005 $headers .= "Cc: $org_name Admin<alexsav.science@gmail.com>" . "\n"; 995 1006 $headers .= "Bcc: Gary Gorbet<gegorbet@gmail.com>" . "\n"; // make sure 1007 996 1008 997 1009 // Set the reply address
Note:
See TracChangeset
for help on using the changeset viewer.