Changeset 14 for trunk/cluster_status.php
- Timestamp:
- Jun 29, 2015, 1:39:50 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cluster_status.php
r12 r14 172 172 { 173 173 $a = Array(); 174 /**175 if ( $clname == "alamo" )176 {177 $qstat = `ssh $clname '/usr/bin/qstat -B 2>&1|tail -1'`;178 179 $sparts = preg_split( '/\s+/', $qstat );180 $que = $sparts[ 3 ];181 $run = $sparts[ 4 ];182 $sta = $sparts[ 10 ];183 }184 else185 {186 $qstat = `ssh $clname '/opt/torque/bin/qstat -B 2>&1|tail -1'`;187 188 $sparts = preg_split( '/\s+/', $qstat );189 $que = $sparts[ 3 ];190 $run = $sparts[ 4 ];191 $sta = $sparts[ 9 ];192 }193 194 //echo "$self: cln que run sta $clname $que $run $sta \n";195 196 if ( $sta == "Active" )197 {198 $sta = "up";199 }200 else201 {202 $sta = "down";203 $que = "0";204 $run = "0";205 }206 *a*/207 174 switch( $clname ) 208 175 { … … 298 265 case 'jureca': 299 266 { 300 $host = "swus1@jureca.fz-juelich.de"; 267 //$host = "swus1@jureca.fz-juelich.de"; 268 $host = "swus1@juropatest2.fz-juelich.de"; 301 269 $qstat = `ssh $host '/usr/bin/sinfo -s -p batch -o "%a %F" 2>&1|tail -1'`; 302 270 $sparts = preg_split( '/\s+/', $qstat );
Note:
See TracChangeset
for help on using the changeset viewer.