Changeset 1468 for palm/trunk/SCRIPTS
- Timestamp:
- Sep 24, 2014 2:06:57 PM (10 years ago)
- Location:
- palm/trunk/SCRIPTS
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SCRIPTS/mbuild
r1391 r1468 22 22 # Current revisions: 23 23 # ------------------ 24 # 24 # Typo removed (addres->address) 25 # Adjustments for lcxe6 25 26 # 26 27 # Former revisions: … … 170 171 # DETERMINE THE LOCAL HOST 171 172 local_host_real_name=$(hostname) 172 # local_addres =$(nslookup `hostname` 2>&1 | grep "Address:" | tail -1 | awk '{print $2}')173 # local_address=$(nslookup `hostname` 2>&1 | grep "Address:" | tail -1 | awk '{print $2}') 173 174 174 175 … … 359 360 column1="local username:"; column2=$local_username 360 361 printf "| $column1$column2 | \n" 361 column1="local IP-addres :"; column2=$local_addres362 column1="local IP-address:"; column2=$local_address 362 363 printf "| $column1$column2 | \n" 363 364 column1="config file:"; column2=$config_file … … 484 485 # DETERMINE IP-ADDRES OF THE REMOTE-HOST 485 486 case $remote_host in 486 (lccrayb) remote_addres =130.73.233.1;;487 (lccrayh) remote_addres =130.75.4.1;;488 (lcflow) remote_addres ="flow.hpc.uni-oldenburg.de";;487 (lccrayb) remote_address=130.73.233.1;; 488 (lccrayh) remote_address=130.75.4.1;; 489 (lcflow) remote_address="flow.hpc.uni-oldenburg.de";; 489 490 (lckordi) remote_adress=210.219.61.8;; 490 (lcmuk) remote_addres =130.75.105.2;;491 (lcrte) remote_addres =133.5.185.60;;492 (lcsb) remote_addres =147.46.30.151;;493 (lck) remote_addres =165.132.26.61;;494 (lckiaps) remote_addres =118.128.66.223;;495 (lckyut) remote_addres =133.5.4.37;;496 (lctit) remote_addres =10.1.6.170;;497 (lcxe6) remote_addres =129.177.20.113;;498 (lcxt5m) remote_addres =193.166.211.144;;499 (ibmh) remote_addres =136.172.40.15;;500 (ibmkisti) remote_addres =150.183.146.24;;501 (ibmku) remote_addres =133.5.4.129;;502 (ibms) remote_addres =150.183.5.101;;503 (nech) remote_addres =136.172.44.192;;504 (neck) remote_addres =133.5.178.11;;505 (ground.yonsei.ac.kr) remote_addres =134.75.155.33;;491 (lcmuk) remote_address=130.75.105.2;; 492 (lcrte) remote_address=133.5.185.60;; 493 (lcsb) remote_address=147.46.30.151;; 494 (lck) remote_address=165.132.26.61;; 495 (lckiaps) remote_address=118.128.66.223;; 496 (lckyut) remote_address=133.5.4.37;; 497 (lctit) remote_address=10.1.6.170;; 498 (lcxe6) remote_address=129.177.20.113;; 499 (lcxt5m) remote_address=193.166.211.144;; 500 (ibmh) remote_address=136.172.40.15;; 501 (ibmkisti) remote_address=150.183.146.24;; 502 (ibmku) remote_address=133.5.4.129;; 503 (ibms) remote_address=150.183.5.101;; 504 (nech) remote_address=136.172.44.192;; 505 (neck) remote_address=133.5.178.11;; 506 (ground.yonsei.ac.kr) remote_address=134.75.155.33;; 506 507 (*) if [[ $local_host != $remote_host ]] 507 508 then … … 964 965 column1="username:"; column2=$remote_username 965 966 printf "| $column1$column2 | \n" 966 column1="addres :"; column2=$remote_addres967 column1="address:"; column2=$remote_address 967 968 printf "| $column1$column2 | \n" 968 969 column1="compiler:"; column2=$compiler_name … … 1055 1056 # COPY CURRENT SOURCE CODE TO SOURCE-CODE DIRECTORY ON THE REMOTE HOST 1056 1057 # CREATE THIS DIRECTORY, IF IT DOES NOT EXIST 1057 echo " *** copying \"${mainprog}_sources.tar\" to \"${remote_addres }:${remote_md}/\" "1058 echo " *** copying \"${mainprog}_sources.tar\" to \"${remote_address}:${remote_md}/\" " 1058 1059 if [[ $remote_host != lctit ]] 1059 1060 then 1060 ssh ${remote_username}@${remote_addres } "[[ ! -d ${remote_md} ]] && (echo \" *** ${remote_md} will be created\"; mkdir -p ${remote_md})"1061 ssh ${remote_username}@${remote_address} "[[ ! -d ${remote_md} ]] && (echo \" *** ${remote_md} will be created\"; mkdir -p ${remote_md})" 1061 1062 else 1062 1063 # USING PIPE, BECAUSE TIT ALLOWS SSH TO EXECUTE ONLY SOME SELECTED COMMANDS 1063 print "[[ ! -d ${remote_md} ]] && (echo \" *** ${remote_md} will be created\"; mkdir -p ${remote_md})" | ssh ${remote_username}@${remote_addres } 2>&11064 fi 1065 1066 scp ${local_source_path}/${mainprog}_sources.tar ${remote_username}@${remote_addres }:${remote_md}/${mainprog}_sources.tar1064 print "[[ ! -d ${remote_md} ]] && (echo \" *** ${remote_md} will be created\"; mkdir -p ${remote_md})" | ssh ${remote_username}@${remote_address} 2>&1 1065 fi 1066 1067 scp ${local_source_path}/${mainprog}_sources.tar ${remote_username}@${remote_address}:${remote_md}/${mainprog}_sources.tar 1067 1068 1068 1069 … … 1072 1073 if [[ $remote_host != lctit ]] 1073 1074 then 1074 ssh ${remote_username}@${remote_addres } "cd ${remote_md}; [[ -f ${mainprog}_current_version.tar ]] && tar -xf ${mainprog}_current_version.tar"1075 ssh ${remote_username}@${remote_address} "cd ${remote_md}; [[ -f ${mainprog}_current_version.tar ]] && tar -xf ${mainprog}_current_version.tar" 1075 1076 else 1076 1077 # USING PIPE, BECAUSE TIT ALLOWS SSH TO EXECUTE ONLY SOME SELECTED COMMANDS 1077 print "cd ${remote_md}; [[ -f ${mainprog}_current_version.tar ]] && tar -xf ${mainprog}_current_version.tar" | ssh ${remote_username}@${remote_addres } 2>&11078 print "cd ${remote_md}; [[ -f ${mainprog}_current_version.tar ]] && tar -xf ${mainprog}_current_version.tar" | ssh ${remote_username}@${remote_address} 2>&1 1078 1079 fi 1079 1080 … … 1083 1084 if [[ $remote_host != lctit ]] 1084 1085 then 1085 ssh ${remote_username}@${remote_addres } "cd ${remote_md}; tar -xf ${mainprog}_sources.tar"1086 ssh ${remote_username}@${remote_address} "cd ${remote_md}; tar -xf ${mainprog}_sources.tar" 1086 1087 else 1087 1088 # USING PIPE, BECAUSE TIT ALLOWS SSH TO EXECUTE ONLY SOME SELECTED COMMANDS 1088 print "cd ${remote_md}; tar -xf ${mainprog}_sources.tar" | ssh ${remote_username}@${remote_addres } 2>&11089 print "cd ${remote_md}; tar -xf ${mainprog}_sources.tar" | ssh ${remote_username}@${remote_address} 2>&1 1089 1090 fi 1090 1091 … … 1121 1122 then 1122 1123 1123 ssh ${remote_username}@${remote_addres } "$init_cmds $module_calls cd ${remote_md}; echo '$make_call_string' > LAST_MAKE_CALL; chmod u+x LAST_MAKE_CALL; $make_call_string; [[ \$? != 0 ]] && echo MAKE_ERROR" 2>&1 | tee ${remote_host}_last_make_protokoll1124 ssh ${remote_username}@${remote_address} "$init_cmds $module_calls cd ${remote_md}; echo '$make_call_string' > LAST_MAKE_CALL; chmod u+x LAST_MAKE_CALL; $make_call_string; [[ \$? != 0 ]] && echo MAKE_ERROR" 2>&1 | tee ${remote_host}_last_make_protokoll 1124 1125 1125 1126 elif [[ $remote_host = ibmh ]] 1126 1127 then 1127 1128 1128 print "$init_cmds $module_calls export OBJECT_MODE=64; cd ${remote_md}; echo $make_call_string > LAST_MAKE_CALL; chmod u+x LAST_MAKE_CALL; $make_call_string; [[ \$? != 0 ]] && echo MAKE_ERROR" | ssh ${remote_username}@${remote_addres } 2>&1 | tee ${remote_host}_last_make_protokoll1129 print "$init_cmds $module_calls export OBJECT_MODE=64; cd ${remote_md}; echo $make_call_string > LAST_MAKE_CALL; chmod u+x LAST_MAKE_CALL; $make_call_string; [[ \$? != 0 ]] && echo MAKE_ERROR" | ssh ${remote_username}@${remote_address} 2>&1 | tee ${remote_host}_last_make_protokoll 1129 1130 1130 1131 elif [[ $remote_host = lctit ]] … … 1134 1135 while [[ $(cat ${remote_host}_last_make_protokoll | grep -c "Forwarding to N1GE") = 0 ]] 1135 1136 do 1136 print "cd ${remote_md}; echo $make_call_string > LAST_MAKE_CALL; chmod u+x LAST_MAKE_CALL; $make_call_string; [[ \$? != 0 ]] && echo MAKE_ERROR" | ssh ${remote_username}@${remote_addres } 2>&1 | tee ${remote_host}_last_make_protokoll1137 print "cd ${remote_md}; echo $make_call_string > LAST_MAKE_CALL; chmod u+x LAST_MAKE_CALL; $make_call_string; [[ \$? != 0 ]] && echo MAKE_ERROR" | ssh ${remote_username}@${remote_address} 2>&1 | tee ${remote_host}_last_make_protokoll 1137 1138 done 1138 1139 … … 1140 1141 then 1141 1142 1142 ssh ${remote_username}@${remote_addres } "$init_cmds $module_calls cd ${remote_md}; echo $make_call_string > LAST_MAKE_CALL; chmod u+x LAST_MAKE_CALL; $make_call_string; [[ \$? != 0 ]] && echo MAKE_ERROR" 2>&1 | tee ${remote_host}_last_make_protokoll1143 ssh ${remote_username}@${remote_address} "$init_cmds $module_calls cd ${remote_md}; echo $make_call_string > LAST_MAKE_CALL; chmod u+x LAST_MAKE_CALL; $make_call_string; [[ \$? != 0 ]] && echo MAKE_ERROR" 2>&1 | tee ${remote_host}_last_make_protokoll 1143 1144 1144 1145 else 1145 1146 1146 print "$init_cmds $module_calls cd ${remote_md}; echo $make_call_string > LAST_MAKE_CALL; chmod u+x LAST_MAKE_CALL; $make_call_string; [[ \$? != 0 ]] && echo MAKE_ERROR" | ssh ${remote_username}@${remote_addres } 2>&1 | tee ${remote_host}_last_make_protokoll1147 print "$init_cmds $module_calls cd ${remote_md}; echo $make_call_string > LAST_MAKE_CALL; chmod u+x LAST_MAKE_CALL; $make_call_string; [[ \$? != 0 ]] && echo MAKE_ERROR" | ssh ${remote_username}@${remote_address} 2>&1 | tee ${remote_host}_last_make_protokoll 1147 1148 1148 1149 fi … … 1177 1178 if [[ $remote_host != lctit ]] 1178 1179 then 1179 ssh ${remote_username}@${remote_addres } "cd ${remote_md}; chmod u+w *; tar -cf ${mainprog}_current_version.tar ${mainprog} *.f90 *.o *.mod"1180 ssh ${remote_username}@${remote_address} "cd ${remote_md}; chmod u+w *; tar -cf ${mainprog}_current_version.tar ${mainprog} *.f90 *.o *.mod" 1180 1181 else 1181 1182 # USING PIPE, BECAUSE TIT ALLOWS SSH TO EXECUTE ONLY SOME SELECTED COMMANDS 1182 print "cd ${remote_md}; chmod u+w *; tar -cf ${mainprog}_current_version.tar ${mainprog} *.f90 *.o *.mod" | ssh ${remote_username}@${remote_addres } 2>&11183 print "cd ${remote_md}; chmod u+w *; tar -cf ${mainprog}_current_version.tar ${mainprog} *.f90 *.o *.mod" | ssh ${remote_username}@${remote_address} 2>&1 1183 1184 fi 1184 1185 … … 1192 1193 1193 1194 printf "\n\n" 1194 echo " *** copying scripts and utility programs to \"${remote_addres }:${remote_ud}/\" "1195 echo " *** copying scripts and utility programs to \"${remote_address}:${remote_ud}/\" " 1195 1196 cd ${local_source_path}/../SCRIPTS 1196 1197 1197 1198 if [[ $remote_host != lctit ]] 1198 1199 then 1199 ssh ${remote_username}@${remote_addres } "[[ ! -d ${remote_ud} ]] && (echo \" *** ${remote_ud} will be created\"; mkdir -p ${remote_ud}); [[ ! -d ${remote_ud}/../SCRIPTS ]] && (echo \" *** ${remote_ud}/../SCRIPTS will be created\"; mkdir -p ${remote_ud}/../SCRIPTS)"1200 ssh ${remote_username}@${remote_address} "[[ ! -d ${remote_ud} ]] && (echo \" *** ${remote_ud} will be created\"; mkdir -p ${remote_ud}); [[ ! -d ${remote_ud}/../SCRIPTS ]] && (echo \" *** ${remote_ud}/../SCRIPTS will be created\"; mkdir -p ${remote_ud}/../SCRIPTS)" 1200 1201 else 1201 1202 # USING PIPE, BECAUSE TIT ALLOWS SSH TO EXECUTE ONLY SOME SELECTED COMMANDS 1202 print "[[ ! -d ${remote_ud} ]] && (echo \" *** ${remote_ud} will be created\"; mkdir -p ${remote_ud}); [[ ! -d ${remote_ud}/../SCRIPTS ]] && (echo \" *** ${remote_ud}/../SCRIPTS will be created\"; mkdir -p ${remote_ud}/../SCRIPTS)" | ssh ${remote_username}@${remote_addres } 2>&11203 print "[[ ! -d ${remote_ud} ]] && (echo \" *** ${remote_ud} will be created\"; mkdir -p ${remote_ud}); [[ ! -d ${remote_ud}/../SCRIPTS ]] && (echo \" *** ${remote_ud}/../SCRIPTS will be created\"; mkdir -p ${remote_ud}/../SCRIPTS)" | ssh ${remote_username}@${remote_address} 2>&1 1203 1204 fi 1204 1205 1205 1206 # COPY SHELL-SCRIPTS 1206 scp batch_scp mbuild mrun process_dvr_output .dvrserver.config subjob batch_nc2vdf nc2vdf nc2vdf.ncl nc2vdf.config ${remote_username}@${remote_addres }:${remote_ud}/../SCRIPTS > /dev/null1207 scp batch_scp mbuild mrun process_dvr_output .dvrserver.config subjob batch_nc2vdf nc2vdf nc2vdf.ncl nc2vdf.config ${remote_username}@${remote_address}:${remote_ud}/../SCRIPTS > /dev/null 1207 1208 1208 1209 cd - > /dev/null … … 1211 1212 1212 1213 # COPY UTILITY-ROUTINES 1213 scp Makefile *.f90 ${remote_username}@${remote_addres }:${remote_ud} > /dev/null1214 scp Makefile *.f90 ${remote_username}@${remote_address}:${remote_ud} > /dev/null 1214 1215 1215 1216 … … 1245 1246 then 1246 1247 1247 ssh ${remote_username}@${remote_addres } "$init_cmds $module_calls cd ${remote_ud}; $make_call_string; [[ \$? != 0 ]] && echo MAKE_ERROR"1248 ssh ${remote_username}@${remote_address} "$init_cmds $module_calls cd ${remote_ud}; $make_call_string; [[ \$? != 0 ]] && echo MAKE_ERROR" 1248 1249 1249 1250 elif [[ $remote_host = ibmh ]] 1250 1251 then 1251 1252 1252 print "$init_cmds $module_calls export OBJECT_MODE=64; cd ${remote_ud}; $make_call_string; [[ \$? != 0 ]] && echo MAKE_ERROR" | ssh ${remote_username}@${remote_addres }1253 print "$init_cmds $module_calls export OBJECT_MODE=64; cd ${remote_ud}; $make_call_string; [[ \$? != 0 ]] && echo MAKE_ERROR" | ssh ${remote_username}@${remote_address} 1253 1254 1254 1255 elif [[ $remote_host = lctit ]] … … 1258 1259 while [[ $(cat ${remote_host}_last_make_protokoll | grep -c "Forwarding to N1GE") = 0 ]] 1259 1260 do 1260 print "$init_cmds $module_calls cd ${remote_ud}; $make_call_string; [[ \$? != 0 ]] && echo MAKE_ERROR" | ssh ${remote_username}@${remote_addres } 2>&1 | tee ${remote_host}_last_make_protokoll1261 print "$init_cmds $module_calls cd ${remote_ud}; $make_call_string; [[ \$? != 0 ]] && echo MAKE_ERROR" | ssh ${remote_username}@${remote_address} 2>&1 | tee ${remote_host}_last_make_protokoll 1261 1262 done 1262 1263 … … 1264 1265 then 1265 1266 1266 ssh ${remote_username}@${remote_addres } "$init_cmds $module_calls cd ${remote_ud}; $make_call_string; [[ \$? != 0 ]] && echo MAKE_ERROR" 2>&1 | tee ${remote_host}_last_make_protokoll1267 ssh ${remote_username}@${remote_address} "$init_cmds $module_calls cd ${remote_ud}; $make_call_string; [[ \$? != 0 ]] && echo MAKE_ERROR" 2>&1 | tee ${remote_host}_last_make_protokoll 1267 1268 1268 1269 else 1269 1270 1270 print "$init_cmds $module_calls cd ${remote_ud}; $make_call_string; [[ \$? != 0 ]] && echo MAKE_ERROR" | ssh ${remote_username}@${remote_addres } 2>&1 | tee ${remote_host}_last_make_protokoll1271 print "$init_cmds $module_calls cd ${remote_ud}; $make_call_string; [[ \$? != 0 ]] && echo MAKE_ERROR" | ssh ${remote_username}@${remote_address} 2>&1 | tee ${remote_host}_last_make_protokoll 1271 1272 1272 1273 fi -
palm/trunk/SCRIPTS/mrun
r1443 r1468 22 22 # Current revisions: 23 23 # ------------------ 24 # 24 # Typo removed (addres->address) 25 # Bugfix: returning files to IMUK via ssh did not work for lccrayh and lcycrayb 26 # Added support for restart runs (remote) for lcxe6 25 27 # 26 28 # Former revisions: … … 257 259 if [[ `hostname` = rte10 ]] 258 260 then 259 return_addres =133.5.185.60260 echo "+++ WARNING: fixed return_addres = $return_addres is used !!!!!"261 return_address=133.5.185.60 262 echo "+++ WARNING: fixed return_address = $return_address is used !!!!!" 261 263 elif [[ `hostname` = climate0 ]] 262 264 then 263 return_addres =165.132.26.68264 echo "+++ WARNING: fixed return_addres = $return_addres is used !!!!!"265 return_address=165.132.26.68 266 echo "+++ WARNING: fixed return_address = $return_address is used !!!!!" 265 267 elif [[ `hostname` = urban00 ]] 266 268 then 267 return_addres =147.46.30.151268 echo "+++ WARNING: fixed return_addres = $return_addres is used !!!!!"269 return_address=147.46.30.151 270 echo "+++ WARNING: fixed return_address = $return_address is used !!!!!" 269 271 else 270 return_addres =$(nslookup `hostname` 2>&1 | grep "Address:" | tail -1 | awk '{print $2}')272 return_address=$(nslookup `hostname` 2>&1 | grep "Address:" | tail -1 | awk '{print $2}') 271 273 fi 272 274 return_password="" … … 409 411 (q) queue=$OPTARG; mc="$mc -q$OPTARG";; 410 412 (r) run_mode=$OPTARG; mc="$mc -r'$OPTARG'";; 411 (R) remotecall=true;return_addres =$OPTARG; mc="$mc -R$OPTARG";;413 (R) remotecall=true;return_address=$OPTARG; mc="$mc -R$OPTARG";; 412 414 (s) source_list=$OPTARG; mc="$mc -s'$OPTARG'";; 413 415 (S) read_from_config=false; mc="$mc -S";; … … 670 672 671 673 # READ AND EVALUATE THE CONFIGURATION-FILE FROM WITHIN THIS SHELLSCRIPT 672 # (OPTION -S). THE DEFAULT IS USING THE ROUTINE interpret_config674 # (OPTION -S). THE DEFAULT IS USING THE ROUTINE <<<< 673 675 if [[ "$read_from_config" = false ]] 674 676 then … … 3407 3409 echo "fname=$fname" >> mpi_exec_shell 3408 3410 echo "localhost=$localhost" >> mpi_exec_shell 3409 echo "return_addres =$return_addres">> mpi_exec_shell3411 echo "return_address=$return_address" >> mpi_exec_shell 3410 3412 echo "return_username=$return_username" >> mpi_exec_shell 3411 3413 echo "tasks_per_node=$tasks_per_node" >> mpi_exec_shell … … 3419 3421 echo "export fname" >> mpi_exec_shell 3420 3422 echo "export localhost" >> mpi_exec_shell 3421 echo "export return_addres ">> mpi_exec_shell3423 echo "export return_address" >> mpi_exec_shell 3422 3424 echo "export return_username" >> mpi_exec_shell 3423 3425 echo "export tasks_per_node" >> mpi_exec_shell … … 3794 3796 printf "\n ${pathout[$i]}/${localhost}_${fname}${endout[$i]}$cst" 3795 3797 printf "\n or higher cycle\n" 3796 echo "batch_scp $PORTOPT $cps -b -m -u $return_username $return_addres $file_to_transfer \"${pathout[$i]}\" ${localhost}_${fname}${endout[$i]} ${extout[$i]}" >> transfer_${localout[$i]}3798 echo "batch_scp $PORTOPT $cps -b -m -u $return_username $return_address $file_to_transfer \"${pathout[$i]}\" ${localhost}_${fname}${endout[$i]} ${extout[$i]}" >> transfer_${localout[$i]} 3797 3799 3798 3800 echo "[[ \$? = 0 ]] && rm $file_to_transfer" >> transfer_${localout[$i]} … … 3818 3820 if [[ $localhost = lccrayb ]] 3819 3821 then 3820 ssh $usern@blogin1 " cd $TEMPDIR; batch_scp $PORTOPT $cps -b -m -u $return_username $return_addres ${localout[$i]} \"${pathout[$i]}\" ${localhost}_${fname}${endout[$i]} ${extout[$i]}"3822 ssh $usern@blogin1 ". \\$HOME/.profile; cd $TEMPDIR; batch_scp $PORTOPT $cps -b -m -u $return_username $return_address ${localout[$i]} \"${pathout[$i]}\" ${localhost}_${fname}${endout[$i]} ${extout[$i]}" 3821 3823 elif [[ $localhost = lccrayh ]] 3822 3824 then 3823 ssh $usern@hlogin1 "cd $TEMPDIR; batch_scp $PORTOPT $cps -b -m -u $return_username $return_addres ${localout[$i]} \"${pathout[$i]}\" ${localhost}_${fname}${endout[$i]} ${extout[$i]}" 3825 ssh $usern@hlogin1 ". \\$HOME/.profile; cd $TEMPDIR; batch_scp $PORTOPT $cps -b -m -u $return_username $return_address ${localout[$i]} \"${pathout[$i]}\" ${localhost}_${fname}${endout[$i]} ${extout[$i]}" 3826 elif [[ $localhost = lcxe6 ]] 3827 then 3828 ssh $usern@hexagon ". \\$HOME/.profile; cd $TEMPDIR; batch_scp $PORTOPT $cps -b -m -u $return_username $return_address ${localout[$i]} \"${pathout[$i]}\" ${localhost}_${fname}${endout[$i]} ${extout[$i]}" 3824 3829 else 3825 batch_scp $PORTOPT $cps -b -m -u $return_username $return_addres ${localout[$i]} "${pathout[$i]}" ${localhost}_${fname}${endout[$i]} ${extout[$i]}3830 batch_scp $PORTOPT $cps -b -m -u $return_username $return_address ${localout[$i]} "${pathout[$i]}" ${localhost}_${fname}${endout[$i]} ${extout[$i]} 3826 3831 fi 3827 3832 [[ $? != 0 ]] && transfer_failed=true … … 3874 3879 printf "\n ${pathout[$i]}/${localhost}_${fname}${endout[$i]}" 3875 3880 printf "\n or higher cycle\n" 3876 echo "batch_scp $PORTOPT -A -b -m -u $return_username $return_addres $file_to_transfer \"${pathout[$i]}\" ${localhost}_${fname}${endout[$i]} ${extout[$i]}" >> transfer_${localout[$i]}3881 echo "batch_scp $PORTOPT -A -b -m -u $return_username $return_address $file_to_transfer \"${pathout[$i]}\" ${localhost}_${fname}${endout[$i]} ${extout[$i]}" >> transfer_${localout[$i]} 3877 3882 3878 3883 echo "[[ \$? = 0 ]] && rm $file_to_transfer" >> transfer_${localout[$i]} … … 3898 3903 if [[ $localhost = lccrayb ]] 3899 3904 then 3900 ssh $usern@blogin1 " cd $TEMPDIR; batch_scp $PORTOPT -A -b -m -u $return_username $return_addres ${localout[$i]} \"${pathout[$i]}\" ${localhost}_${fname}${endout[$i]} ${extout[$i]}"3905 ssh $usern@blogin1 ". \\$HOME/.profile; cd $TEMPDIR; batch_scp $PORTOPT -A -b -m -u $return_username $return_address ${localout[$i]} \"${pathout[$i]}\" ${localhost}_${fname}${endout[$i]} ${extout[$i]}" 3901 3906 elif [[ $localhost = lccrayh ]] 3902 3907 then 3903 ssh $usern@hlogin1 "cd $TEMPDIR; batch_scp $PORTOPT -A -b -m -u $return_username $return_addres ${localout[$i]} \"${pathout[$i]}\" ${localhost}_${fname}${endout[$i]} ${extout[$i]}" 3908 ssh $usern@hlogin1 ". \\$HOME/.profile; cd $TEMPDIR; batch_scp $PORTOPT -A -b -m -u $return_username $return_address ${localout[$i]} \"${pathout[$i]}\" ${localhost}_${fname}${endout[$i]} ${extout[$i]}" 3909 elif [[ $localhost = lcxe6 ]] 3910 then 3911 ssh $usern@hexagon ". \\$HOME/.profile; cd $TEMPDIR; batch_scp $PORTOPT -A -b -m -u $return_username $return_address ${localout[$i]} \"${pathout[$i]}\" ${localhost}_${fname}${endout[$i]} ${extout[$i]}" 3904 3912 else 3905 batch_scp $PORTOPT -A -b -m -u $return_username $return_addres ${localout[$i]} "${pathout[$i]}" ${localhost}_${fname}${endout[$i]} ${extout[$i]}3913 batch_scp $PORTOPT -A -b -m -u $return_username $return_address ${localout[$i]} "${pathout[$i]}" ${localhost}_${fname}${endout[$i]} ${extout[$i]} 3906 3914 fi 3907 3915 [[ $? != 0 ]] && transfer_failed=true … … 4372 4380 4373 4381 # START THE RESTART-JOB 4374 printf "\n\n *** initiating restart-run on \"$return_addres \" using command:\n"4382 printf "\n\n *** initiating restart-run on \"$return_address\" using command:\n" 4375 4383 echo " $mc" 4376 4384 printf "\n$dashes\n" … … 4378 4386 then 4379 4387 4380 if [[ $localhost = lccrayb || $localhost = lccrayh || $localhost = nech || $localhost = ibmh || $localhost = ibmkisti || $localhost = ibmku || $localhost = ibms || $localhost = lcflow || $localhost = lckyu* ]]4388 if [[ $localhost = lccrayb || $localhost = lccrayh || $localhost = nech || $localhost = ibmh || $localhost = ibmkisti || $localhost = ibmku || $localhost = ibms || $localhost = lcflow || $localhost = lckyu* || $localhost = lcxe6 ]] 4381 4389 then 4382 4390 echo "*** ssh will be used to initiate restart-runs!" 4383 echo " return_addres =\"$return_addres\" "4391 echo " return_address=\"$return_address\" " 4384 4392 echo " return_username=\"$return_username\" " 4385 if [[ $(echo $return_addres | grep -c "130.75.105") = 1 ]]4393 if [[ $(echo $return_address | grep -c "130.75.105") = 1 ]] 4386 4394 then 4387 4395 if [[ $localhost = ibmh ]] 4388 4396 then 4389 ssh $SSH_PORTOPT $usern@136.172.40.15 "ssh $SSH_PORTOPT $return_addres -l $return_username \"PATH=\\\$PATH:$LOCAL_MRUN_PATH;. /muksoft_i/packages/intel/composer_xe_2013_sp1.2.144/bin/compilervars.sh intel64;export PALM_BIN=$LOCAL_MRUN_PATH;cd $LOCAL_PWD; $mc\" "4397 ssh $SSH_PORTOPT $usern@136.172.40.15 "ssh $SSH_PORTOPT $return_address -l $return_username \". \\\$HOME/.profile; module load intel-compiler hdf5 netcdf; PATH=\\\$PATH:$LOCAL_MRUN_PATH;export PALM_BIN=$LOCAL_MRUN_PATH;cd $LOCAL_PWD; $mc\" " 4390 4398 elif [[ $localhost = lccrayb ]] 4391 4399 then 4392 ssh $usern@blogin1 "ssh $SSH_PORTOPT $return_addres -l $return_username \"PATH=\\\$PATH:$LOCAL_MRUN_PATH;. /muksoft_i/packages/intel/composer_xe_2013_sp1.2.144/bin/compilervars.sh intel64;export PALM_BIN=$LOCAL_MRUN_PATH;cd $LOCAL_PWD; $mc\" "4400 ssh $usern@blogin1 "ssh $SSH_PORTOPT $return_address -l $return_username \". \\\$HOME/.profile; module load intel-compiler hdf5 netcdf; PATH=\\\$PATH:$LOCAL_MRUN_PATH; export PALM_BIN=$LOCAL_MRUN_PATH;cd $LOCAL_PWD; $mc\" " 4393 4401 elif [[ $localhost = lccrayh ]] 4394 4402 then 4395 ssh $usern@hlogin1 "ssh $SSH_PORTOPT $return_addres -l $return_username \"PATH=\\\$PATH:$LOCAL_MRUN_PATH;. /muksoft_i/packages/intel/composer_xe_2013_sp1.2.144/bin/compilervars.sh intel64;export PALM_BIN=$LOCAL_MRUN_PATH;cd $LOCAL_PWD; $mc\" " 4396 4403 ssh $usern@hlogin1 "ssh $SSH_PORTOPT $return_address -l $return_username \". \\\$HOME/.profile; module load intel-compiler hdf5 netcdf; PATH=\\\$PATH:$LOCAL_MRUN_PATH; export PALM_BIN=$LOCAL_MRUN_PATH;cd $LOCAL_PWD; $mc\" " 4404 elif [[ $localhost = lcxe6 ]] 4405 then 4406 ssh $usern@hexagon "ssh $SSH_PORTOPT $return_address -l $return_username \". \\\$HOME/.profile; module load intel-compiler hdf5 netcdf; PATH=\\\$PATH:$LOCAL_MRUN_PATH; export PALM_BIN=$LOCAL_MRUN_PATH;cd $LOCAL_PWD; $mc\" " 4397 4407 else 4398 ssh $SSH_PORTOPT $return_addres -l $return_username "PATH=\$PATH:$LOCAL_MRUN_PATH;. /muksoft_i/packages/intel/composer_xe_2013_sp1.2.144/bin/compilervars.sh intel64;export PALM_BIN=$LOCAL_MRUN_PATH;cd $LOCAL_PWD; $mc "4408 ssh $SSH_PORTOPT $return_address -l $return_username ". \\\$HOME/.profile; module load intel-compiler hdf5 netcdf; PATH=\$PATH:$LOCAL_MRUN_PATH;export PALM_BIN=$LOCAL_MRUN_PATH;cd $LOCAL_PWD; $mc " 4399 4409 fi 4400 4410 else 4401 4411 if [[ $localhost = ibmkisti ]] 4402 4412 then 4403 ssh $SSH_PORTOPT $usern@gaiad "ssh $SSH_PORTOPT $return_addres -l $return_username \"PATH=\\\$PATH:$LOCAL_MRUN_PATH;export PALM_BIN=$LOCAL_MRUN_PATH;cd $LOCAL_PWD; $mc\" "4413 ssh $SSH_PORTOPT $usern@gaiad "ssh $SSH_PORTOPT $return_address -l $return_username \"PATH=\\\$PATH:$LOCAL_MRUN_PATH;export PALM_BIN=$LOCAL_MRUN_PATH;cd $LOCAL_PWD; $mc\" " 4404 4414 elif [[ $localhost = lcflow ]] 4405 4415 then 4406 /usr/bin/ssh $SSH_PORTOPT $return_addres -l $return_username "PATH=\$PATH:$LOCAL_MRUN_PATH;export PALM_BIN=$LOCAL_MRUN_PATH;cd $LOCAL_PWD; $mc "4416 /usr/bin/ssh $SSH_PORTOPT $return_address -l $return_username "PATH=\$PATH:$LOCAL_MRUN_PATH;export PALM_BIN=$LOCAL_MRUN_PATH;cd $LOCAL_PWD; $mc " 4407 4417 elif [[ $localhost = lccrayb ]] 4408 4418 then 4409 ssh $usern@blogin1 "ssh $SSH_PORTOPT $return_addres -l $return_username \"PATH=\\\$PATH:$LOCAL_MRUN_PATH;export PALM_BIN=$LOCAL_MRUN_PATH;cd $LOCAL_PWD; $mc\" "4419 ssh $usern@blogin1 "ssh $SSH_PORTOPT $return_address -l $return_username \"PATH=\\\$PATH:$LOCAL_MRUN_PATH;export PALM_BIN=$LOCAL_MRUN_PATH;cd $LOCAL_PWD; $mc\" " 4410 4420 elif [[ $localhost = lccrayh ]] 4411 4421 then 4412 ssh $usern@hlogin1 "ssh $SSH_PORTOPT $return_addres -l $return_username \"PATH=\\\$PATH:$LOCAL_MRUN_PATH;export PALM_BIN=$LOCAL_MRUN_PATH;cd $LOCAL_PWD; $mc\" "4422 ssh $usern@hlogin1 "ssh $SSH_PORTOPT $return_address -l $return_username \"PATH=\\\$PATH:$LOCAL_MRUN_PATH;export PALM_BIN=$LOCAL_MRUN_PATH;cd $LOCAL_PWD; $mc\" " 4413 4423 else 4414 ssh $SSH_PORTOPT $return_addres -l $return_username "PATH=\$PATH:$LOCAL_MRUN_PATH;export PALM_BIN=$LOCAL_MRUN_PATH;cd $LOCAL_PWD; $mc "4424 ssh $SSH_PORTOPT $return_address -l $return_username "PATH=\$PATH:$LOCAL_MRUN_PATH;export PALM_BIN=$LOCAL_MRUN_PATH;cd $LOCAL_PWD; $mc " 4415 4425 fi 4416 4426 fi … … 4509 4519 4510 4520 # BUILD THE MRUN-COMMAND TO BE CALLED IN THE BATCH-JOB ON THE REMOTE-MACHINE 4511 mrun_com="$mrun_script_name -a $afname -c $config_file -d $fname -h $host -H $fromhost -m $memory -t $cpumax -q $queue -R $return_addres -U $return_username -u $remote_username"4521 mrun_com="$mrun_script_name -a $afname -c $config_file -d $fname -h $host -H $fromhost -m $memory -t $cpumax -q $queue -R $return_address -U $return_username -u $remote_username" 4512 4522 [[ "$cpp_opts" != "" ]] && mrun_com=${mrun_com}" -D \"$cpp_opts\"" 4513 4523 [[ "$global_revision" != "" ]] && mrun_com=${mrun_com}" -G \"$global_revision\"" … … 4648 4658 # ON KISTI'S IBM FIREWALL IS ONLY OPENED ON INTERACTIVE NODE 4649 4659 echo "localdir=\`pwd\`" >> $jobfile 4650 echo "ssh $SSH_PORTOPT $remote_username@gaiad \"cd \$localdir; scp $PORTOPT -r $return_username@$return_addres :$working_directory/SOURCES_FOR_RUN_$fname .\" " >> $jobfile4660 echo "ssh $SSH_PORTOPT $remote_username@gaiad \"cd \$localdir; scp $PORTOPT -r $return_username@$return_address:$working_directory/SOURCES_FOR_RUN_$fname .\" " >> $jobfile 4651 4661 elif [[ $host = lccrayb ]] 4652 4662 then 4653 4663 echo "localdir=\`pwd\`" >> $jobfile 4654 echo "ssh $SSH_PORTOPT $remote_username@blogin1 \"cd \$localdir; scp $PORTOPT -r $return_username@$return_addres :$working_directory/SOURCES_FOR_RUN_$fname .\" " >> $jobfile4664 echo "ssh $SSH_PORTOPT $remote_username@blogin1 \"cd \$localdir; scp $PORTOPT -r $return_username@$return_address:$working_directory/SOURCES_FOR_RUN_$fname .\" " >> $jobfile 4655 4665 elif [[ $host = lccrayh ]] 4656 4666 then 4657 4667 echo "localdir=\`pwd\`" >> $jobfile 4658 echo "ssh $SSH_PORTOPT $remote_username@hlogin1 \"cd \$localdir; scp $PORTOPT -r $return_username@$return_addres :$working_directory/SOURCES_FOR_RUN_$fname .\" " >> $jobfile4668 echo "ssh $SSH_PORTOPT $remote_username@hlogin1 \"cd \$localdir; scp $PORTOPT -r $return_username@$return_address:$working_directory/SOURCES_FOR_RUN_$fname .\" " >> $jobfile 4659 4669 4660 4670 else 4661 echo "scp $PORTOPT -r $return_username@$return_addres :$working_directory/SOURCES_FOR_RUN_$fname ." >> $jobfile4671 echo "scp $PORTOPT -r $return_username@$return_address:$working_directory/SOURCES_FOR_RUN_$fname ." >> $jobfile 4662 4672 fi 4663 4673 fi … … 4757 4767 echo "%END%" >> $jobfile 4758 4768 else 4759 echo "batch_scp $PORTOPT -b -o -g -s -u $return_username $return_addres ${remotepathin[$i]} \"${pathin[$i]}\" ${frelin[$i]}" >> $jobfile4769 echo "batch_scp $PORTOPT -b -o -g -s -u $return_username $return_address ${remotepathin[$i]} \"${pathin[$i]}\" ${frelin[$i]}" >> $jobfile 4760 4770 fi 4761 4771 -
palm/trunk/SCRIPTS/subjob
r1453 r1468 23 23 # Current revisions: 24 24 # ------------------ 25 # 25 # Typo removed (addres->address) 26 # Adjustments for lcxe6 26 27 # 27 28 # Former revisions: … … 170 171 # COMMENT OUT, BECAUSE THE HOSTNAME (node*) IS SAME FOR BOTH MACHINES 171 172 case $local_host in 172 (ambiel-lx) local_addres =134.106.74.48; local_host=lcfor;;173 (atmos) local_addres =172.20.25.35; local_host=lcide;;174 (austru) local_addres =130.75.105.128; local_host=lcmuk;;175 (autan) local_addres =130.75.105.57; local_host=lcmuk;;176 (bora) local_addres =130.75.105.103; local_host=lcmuk;;177 (b04*) local_addres =133.5.4.33; local_host=lckyuh;;178 (blizzard1|p*) local_addres =136.172.40.15; local_host=ibmh;;179 (blizzard2|p*) local_addres =136.172.40.16; local_host=ibmh;;180 (blogin*|bxc*) local_addres =130.73.233.1; local_host=lccrayb;;181 (hlogin*|hxc*) local_addres =130.75.4.1; local_host=lccrayh;;182 (breva) local_addres =130.75.105.98; local_host=lcmuk;;183 (buran) local_addres =130.75.105.58; local_host=lcmuk;;184 (caurus) local_addres =130.75.105.19; local_host=lcmuk;;185 (climate*) local_addres =165.132.26.68; local_host=lcyon;;186 (clogin*) local_addres =86.50.166.21; local_host=lccrayf;;187 (cs*) local_addres =136.172.44.131; local_host=nech;;188 (elephanta) local_addres =130.75.105.6; local_host=lcmuk;;189 (flow01) local_addres =10.141.255.71; local_host=lcflow;;190 (flow02) local_addres =10.141.255.72; local_host=lcflow;;191 (node*) local_addres =165.132.26.61 local_host=lck;;192 # (node*) local_addres =210.219.61.8 local_host=lckordi;;193 (gaia*) local_addres =150.183.146.24; local_host=ibmkisti;;194 (gallego) local_addres =130.75.105.10; local_host=lcmuk;;195 (gregale) local_addres =130.75.105.109; local_host=lcmuk;;196 (hababai) local_addres =130.75.105.108; local_host=lcmuk;;197 (hayaka*) local_addres =133.5.4.33; local_host=lckyuh;;198 (hexagon.bccs.uib.no) local_addres =129.177.20.113; local_host=lcxe6;;199 (hx*) local_addres =133.3.51.11; local_host=lckyoto;;200 (inferno) local_addres =130.75.105.5; local_host=lcmuk;;201 (irifi) local_addres =130.75.105.104; local_host=lcmuk;;202 (jaboticaba) local_addres =150.163.25.181; local_host=lcbr;;203 (sno) local_addres =130.75.105.113; local_host=lcmuk;;204 (levanto) local_addres =130.75.105.45; local_host=lcmuk;;205 (login*) local_addres =118.128.66.223; local_host=lckiaps;;206 (maestro) local_addres =130.75.105.2; local_host=lcmuk;;207 (meller) local_addres =134.106.74.155; local_host=lcfor;;208 (meteo-login*) local_addres =193.166.211.144;local_host=lcxt5m;;209 (hexagon*) local_addres =129.177.20.113; local_host=lcxe6;;210 (nobel*) local_addres =150.183.5.101; local_host=ibms;;211 (orkan) local_addres =130.75.105.3; local_host=lcmuk;;212 (ostria) local_addres =130.75.105.106; local_host=lcmuk;;213 (paesano) local_addres =130.75.105.46; local_host=lcmuk;;214 (pcj*) local_addres =172.31.120.1; local_host=lckyut;;215 (pingui) local_addres =134.106.74.118; local_host=lcfor;;216 (quanero) local_addres =130.75.105.107; local_host=lcmuk;;217 (rte*) local_addres =133.5.185.60; local_host=lcrte;;218 (shiokaze-lx) local_addres =134.106.74.123; local_host=lcfor;;219 (sisu-login*) local_addres =86.50.166.21; local_host=lccrayf;;220 (solano) local_addres =130.75.105.110; local_host=lcmuk;;221 (sugoka*) local_addres =172.31.120.1; local_host=lckyut;;222 (t2a*) local_addres =10.1.6.165; local_host=lctit;;223 (urban*) local_addres =147.46.30.151 local_host=lcsb;;224 (vinessa) local_addres =130.75.105.112; local_host=lcmuk;;225 (vorias) local_addres =172.20.25.43; local_host=lcmuk;;226 (*.cc.kyushu-u.ac.jp) local_addres =133.5.4.129; local_host=ibmku;;173 (ambiel-lx) local_address=134.106.74.48; local_host=lcfor;; 174 (atmos) local_address=172.20.25.35; local_host=lcide;; 175 (austru) local_address=130.75.105.128; local_host=lcmuk;; 176 (autan) local_address=130.75.105.57; local_host=lcmuk;; 177 (bora) local_address=130.75.105.103; local_host=lcmuk;; 178 (b04*) local_address=133.5.4.33; local_host=lckyuh;; 179 (blizzard1|p*) local_address=136.172.40.15; local_host=ibmh;; 180 (blizzard2|p*) local_address=136.172.40.16; local_host=ibmh;; 181 (blogin*|bxc*) local_address=130.73.233.1; local_host=lccrayb;; 182 (hlogin*|hxc*) local_address=130.75.4.1; local_host=lccrayh;; 183 (breva) local_address=130.75.105.98; local_host=lcmuk;; 184 (buran) local_address=130.75.105.58; local_host=lcmuk;; 185 (caurus) local_address=130.75.105.19; local_host=lcmuk;; 186 (climate*) local_address=165.132.26.68; local_host=lcyon;; 187 (clogin*) local_address=86.50.166.21; local_host=lccrayf;; 188 (cs*) local_address=136.172.44.131; local_host=nech;; 189 (elephanta) local_address=130.75.105.6; local_host=lcmuk;; 190 (flow01) local_address=10.141.255.71; local_host=lcflow;; 191 (flow02) local_address=10.141.255.72; local_host=lcflow;; 192 (node*) local_address=165.132.26.61 local_host=lck;; 193 # (node*) local_address=210.219.61.8 local_host=lckordi;; 194 (gaia*) local_address=150.183.146.24; local_host=ibmkisti;; 195 (gallego) local_address=130.75.105.10; local_host=lcmuk;; 196 (gregale) local_address=130.75.105.109; local_host=lcmuk;; 197 (hababai) local_address=130.75.105.108; local_host=lcmuk;; 198 (hayaka*) local_address=133.5.4.33; local_host=lckyuh;; 199 (hexagon.bccs.uib.no) local_address=129.177.20.113; local_host=lcxe6;; 200 (hx*) local_address=133.3.51.11; local_host=lckyoto;; 201 (inferno) local_address=130.75.105.5; local_host=lcmuk;; 202 (irifi) local_address=130.75.105.104; local_host=lcmuk;; 203 (jaboticaba) local_address=150.163.25.181; local_host=lcbr;; 204 (sno) local_address=130.75.105.113; local_host=lcmuk;; 205 (levanto) local_address=130.75.105.45; local_host=lcmuk;; 206 (login*) local_address=118.128.66.223; local_host=lckiaps;; 207 (maestro) local_address=130.75.105.2; local_host=lcmuk;; 208 (meller) local_address=134.106.74.155; local_host=lcfor;; 209 (meteo-login*) local_address=193.166.211.144;local_host=lcxt5m;; 210 (hexagon*) local_address=129.177.20.113; local_host=lcxe6;; 211 (nobel*) local_address=150.183.5.101; local_host=ibms;; 212 (orkan) local_address=130.75.105.3; local_host=lcmuk;; 213 (ostria) local_address=130.75.105.106; local_host=lcmuk;; 214 (paesano) local_address=130.75.105.46; local_host=lcmuk;; 215 (pcj*) local_address=172.31.120.1; local_host=lckyut;; 216 (pingui) local_address=134.106.74.118; local_host=lcfor;; 217 (quanero) local_address=130.75.105.107; local_host=lcmuk;; 218 (rte*) local_address=133.5.185.60; local_host=lcrte;; 219 (shiokaze-lx) local_address=134.106.74.123; local_host=lcfor;; 220 (sisu-login*) local_address=86.50.166.21; local_host=lccrayf;; 221 (solano) local_address=130.75.105.110; local_host=lcmuk;; 222 (sugoka*) local_address=172.31.120.1; local_host=lckyut;; 223 (t2a*) local_address=10.1.6.165; local_host=lctit;; 224 (urban*) local_address=147.46.30.151 local_host=lcsb;; 225 (vinessa) local_address=130.75.105.112; local_host=lcmuk;; 226 (vorias) local_address=172.20.25.43; local_host=lcmuk;; 227 (*.cc.kyushu-u.ac.jp) local_address=133.5.4.129; local_host=ibmku;; 227 228 (*) printf "\n +++ \"$local_host\" unknown"; 228 229 printf "\n please contact the PALM group at IMUK"; … … 346 347 else 347 348 case $remote_host in 348 (ibm) queue=p690_standard; remote_addres =134.76.99.81; submcom=/usr/lpp/LoadL/full/bin/llsubmit;;349 (ibmh) queue=cluster; remote_addres =136.172.40.15; submcom=/usr/lpp/LoadL/full/bin/llsubmit;;350 (ibmkisti) queue=class.32plus; remote_addres =150.183.146.24; submcom=/usr/lpp/LoadL/full/bin/llsubmit;;351 (ibmku) queue=s4; remote_addres =133.5.4.129; submcom=/usr/local/bin/llsubmit;;352 (ibms) queue=p_normal; remote_addres =150.183.5.101; submcom=/usr/lpp/LoadL/full/bin/llsubmit;;353 (lccrayb) queue=mpp1testq; remote_addres =130.73.233.1; submcom=/opt/moab/7.2.6/bin/msub;;354 (lccrayh) queue=mpp1testq; remote_addres =130.75.4.1; submcom=/opt/moab/7.2.6/bin/msub;;355 (lccrayf) queue=small; remote_addres =86.50.166.21; submcom=/opt/slurm/default/bin/sbatch;;356 (lcflow) remote_addres =10.140.1.71; submcom=/cm/shared/apps/sge/6.2u5p2/bin/lx26-amd64/qsub;;357 (lckyoto) remote_addres =133.3.51.11; submcom=/thin/local/bin/qsub;;358 (lck) remote_addres =165.132.26.61; submcom=/usr/torque/bin/qsub;;359 (lckiaps) remote_addres =118.128.66.223; submcom=/cm/shared/apps/pbspro/11.0.2.110766/bin/qsub;;360 (lckordi) remote_addres =210.219.61.8; submcom=/usr/torque/bin/qsub;;361 (lckyuh) remote_addres =133.5.4.33; submcom=/usr/bin/pjsub;;362 (lckyut) remote_addres =133.5.4.37; submcom=/usr/bin/pjsub;;363 (lcsb) remote_addres =147.46.30.151; submcom=/usr/torque/bin/qsub;;364 (lctit) queue=S; remote_addres =10.1.6.165; submcom=/opt/pbs/tools/bin/t2sub;;365 (lcxe6) remote_addres =129.177.20.113; submcom=/opt/torque/default/bin/qsub;;366 (lcxt5m) remote_addres =193.166.211.144; submcom=/opt/pbs/10.1.0.91350/bin/qsub;;367 (lcyon) remote_addres =165.132.26.68; submcom=/usr/torque/bin/qsub;;368 (nech) qsubmem=memsz_job; qsubtime=cputim_job; remote_addres =136.172.44.147; submcom="/usr/local/bin/qsub";;349 (ibm) queue=p690_standard; remote_address=134.76.99.81; submcom=/usr/lpp/LoadL/full/bin/llsubmit;; 350 (ibmh) queue=cluster; remote_address=136.172.40.15; submcom=/usr/lpp/LoadL/full/bin/llsubmit;; 351 (ibmkisti) queue=class.32plus; remote_address=150.183.146.24; submcom=/usr/lpp/LoadL/full/bin/llsubmit;; 352 (ibmku) queue=s4; remote_address=133.5.4.129; submcom=/usr/local/bin/llsubmit;; 353 (ibms) queue=p_normal; remote_address=150.183.5.101; submcom=/usr/lpp/LoadL/full/bin/llsubmit;; 354 (lccrayb) queue=mpp1testq; remote_address=130.73.233.1; submcom=/opt/moab/7.2.6/bin/msub;; 355 (lccrayh) queue=mpp1testq; remote_address=130.75.4.1; submcom=/opt/moab/7.2.6/bin/msub;; 356 (lccrayf) queue=small; remote_address=86.50.166.21; submcom=/opt/slurm/default/bin/sbatch;; 357 (lcflow) remote_address=10.140.1.71; submcom=/cm/shared/apps/sge/6.2u5p2/bin/lx26-amd64/qsub;; 358 (lckyoto) remote_address=133.3.51.11; submcom=/thin/local/bin/qsub;; 359 (lck) remote_address=165.132.26.61; submcom=/usr/torque/bin/qsub;; 360 (lckiaps) remote_address=118.128.66.223; submcom=/cm/shared/apps/pbspro/11.0.2.110766/bin/qsub;; 361 (lckordi) remote_address=210.219.61.8; submcom=/usr/torque/bin/qsub;; 362 (lckyuh) remote_address=133.5.4.33; submcom=/usr/bin/pjsub;; 363 (lckyut) remote_address=133.5.4.37; submcom=/usr/bin/pjsub;; 364 (lcsb) remote_address=147.46.30.151; submcom=/usr/torque/bin/qsub;; 365 (lctit) queue=S; remote_address=10.1.6.165; submcom=/opt/pbs/tools/bin/t2sub;; 366 (lcxe6) remote_address=129.177.20.113; submcom=/opt/torque/default/bin/qsub;; 367 (lcxt5m) remote_address=193.166.211.144; submcom=/opt/pbs/10.1.0.91350/bin/qsub;; 368 (lcyon) remote_address=165.132.26.68; submcom=/usr/torque/bin/qsub;; 369 (nech) qsubmem=memsz_job; qsubtime=cputim_job; remote_address=136.172.44.147; submcom="/usr/local/bin/qsub";; 369 370 (*) printf "\n +++ hostname \"$remote_host\" not allowed"; 370 371 locat=parameter; exit;; … … 1180 1181 echo "trap '" >> $job_to_send 1181 1182 echo "set +vx" >> $job_to_send 1182 if [[ $(echo $remote_host | cut -c1-3) = ibm || $remote_host = lccrayb || $remote_host = lccrayh || $(echo $remote_host | cut -c1-3) = nec || $remote_host = lcflow || $remote_host = lckiaps || $remote_host = lckyu* ]]1183 if [[ $(echo $remote_host | cut -c1-3) = ibm || $remote_host = lccrayb || $remote_host = lccrayh || $(echo $remote_host | cut -c1-3) = nec || $remote_host = lcflow || $remote_host = lckiaps || $remote_host = lckyu* || $remote_host = lcxe6 ]] 1183 1184 then 1184 1185 if [[ $remote_host = ibmh ]] … … 1197 1198 then 1198 1199 return_queue=dataq 1200 elif [[ $remote_host = lcxe6 ]] 1201 then 1202 return_queue=debug 1199 1203 elif [[ $remote_host = lckiaps ]] 1200 1204 then … … 1237 1241 1238 1242 echo "echo \"set -x\" >> scpjob.$identifier" >> $job_to_send 1239 echo "echo \"batch_scp $PORTOPT -d -w 10 -u $local_user $local_addres ${job_catalog}/$remote_dayfile \\\"$job_catalog\\\" $local_dayfile\" >> scpjob.$identifier" >> $job_to_send1243 echo "echo \"batch_scp $PORTOPT -d -w 10 -u $local_user $local_address ${job_catalog}/$remote_dayfile \\\"$job_catalog\\\" $local_dayfile\" >> scpjob.$identifier" >> $job_to_send 1240 1244 if [[ $remote_host = ibmku ]] 1241 1245 then … … 1254 1258 echo "set -x" >> $job_to_send 1255 1259 echo "cd /pf/b/${remote_user}/job_queue" >> $job_to_send 1256 echo "batch_scp $PORTOPT -d -w 10 -u $local_user $local_addres $remote_dayfile \"$job_catalog\" $local_dayfile" >> $job_to_send1260 echo "batch_scp $PORTOPT -d -w 10 -u $local_user $local_address $remote_dayfile \"$job_catalog\" $local_dayfile" >> $job_to_send 1257 1261 echo "[[ \"\$for_subjob_to_do\" != \"\" ]] && eval \$for_subjob_to_do" >> $job_to_send 1258 1262 echo "%%END%%" >> $job_to_send … … 1271 1275 echo "export LANG=en_US.UTF-8" >> $job_to_send 1272 1276 echo "set -x" >> $job_to_send 1273 echo "batch_scp $PORTOPT -d -w 10 -u $local_user $local_addres $remote_dayfile \"$job_catalog\" $local_dayfile" >> $job_to_send1277 echo "batch_scp $PORTOPT -d -w 10 -u $local_user $local_address $remote_dayfile \"$job_catalog\" $local_dayfile" >> $job_to_send 1274 1278 echo "[[ \"\$for_subjob_to_do\" != \"\" ]] && eval \$for_subjob_to_do" >> $job_to_send 1275 1279 echo "%%END%%" >> $job_to_send … … 1288 1292 echo "export LANG=en_US.UTF-8" >> $job_to_send 1289 1293 echo "set -x" >> $job_to_send 1290 echo "batch_scp $PORTOPT -d -w 10 -u $local_user $local_addres $remote_dayfile \"$job_catalog\" $local_dayfile" >> $job_to_send1294 echo "batch_scp $PORTOPT -d -w 10 -u $local_user $local_address $remote_dayfile \"$job_catalog\" $local_dayfile" >> $job_to_send 1291 1295 echo "[[ \"\$for_subjob_to_do\" != \"\" ]] && eval \$for_subjob_to_do" >> $job_to_send 1292 1296 echo "%%END%%" >> $job_to_send … … 1303 1307 echo " " >> $job_to_send 1304 1308 echo "set -x" >> $job_to_send 1305 echo "batch_scp $PORTOPT -d -w 10 -u $local_user $local_addres ${job_catalog}/$remote_dayfile \"$job_catalog\" $local_dayfile" >> $job_to_send1309 echo "batch_scp $PORTOPT -d -w 10 -u $local_user $local_address ${job_catalog}/$remote_dayfile \"$job_catalog\" $local_dayfile" >> $job_to_send 1306 1310 echo "[[ \"\$for_subjob_to_do\" != \"\" ]] && eval \$for_subjob_to_do" >> $job_to_send 1307 1311 echo "%%END%%" >> $job_to_send … … 1324 1328 echo "export PATH=\$PATH:\$PALM_BIN" >> $job_to_send 1325 1329 echo "" >> $job_to_send 1326 echo "batch_scp $PORTOPT -d -w 10 -u $local_user $local_addres ${job_catalog}/$remote_dayfile \"$job_catalog\" $local_dayfile" >> $job_to_send1330 echo "batch_scp $PORTOPT -d -w 10 -u $local_user $local_address ${job_catalog}/$remote_dayfile \"$job_catalog\" $local_dayfile" >> $job_to_send 1327 1331 echo "[[ \"\$for_subjob_to_do\" != \"\" ]] && eval \$for_subjob_to_do" >> $job_to_send 1328 1332 echo "rm -f scpjob.${identifier}" >> $job_to_send … … 1330 1334 echo "sed -e 's/SGEPREFIX/#$/g' scpjob.${identifier}.tmp > scpjob.${identifier}" >> $job_to_send 1331 1335 echo "rm -f scpjob.${identifier}.tmp" >> $job_to_send 1332 1336 elif [[ $remote_host = lcxe6 ]] 1337 then 1338 echo "cat > scpjob.${identifier} << %%END%%" >> $job_to_send 1339 echo "#!/bin/ksh" >> $job_to_send 1340 echo "#PBS -N job_protocol_transfer" >> $job_to_send 1341 echo "#PBS -l walltime=00:30:00" >> $job_to_send 1342 echo "#PBS -A $project_account" >> $job_to_send 1343 echo "#PBS -l mppwidth=1" >> $job_to_send 1344 echo "#PBS -l mppnppn=1" >> $job_to_send 1345 echo "#PBS -o \$HOME/job_queue/last_job_transfer_protocol" >> $job_to_send 1346 echo "#PBS -j oe" >> $job_to_send 1347 echo " " >> $job_to_send 1348 echo "set -x" >> $job_to_send 1349 echo "batch_scp $PORTOPT -d -w 10 -u $local_user $local_address ${job_catalog}/$remote_dayfile \"$job_catalog\" $local_dayfile" >> $job_to_send 1350 echo "[[ \"\$for_subjob_to_do\" != \"\" ]] && eval \$for_subjob_to_do" >> $job_to_send 1351 echo "%%END%%" >> $job_to_send 1333 1352 else 1334 1353 … … 1351 1370 fi 1352 1371 echo "set -x" >> $job_to_send 1353 echo "batch_scp $PORTOPT -d -w 10 -u $local_user $local_addres ${job_catalog}/$remote_dayfile \"$job_catalog\" $local_dayfile > /dev/null" >> $job_to_send1372 echo "batch_scp $PORTOPT -d -w 10 -u $local_user $local_address ${job_catalog}/$remote_dayfile \"$job_catalog\" $local_dayfile > /dev/null" >> $job_to_send 1354 1373 echo "[[ \"\$for_subjob_to_do\" != \"\" ]] && eval \$for_subjob_to_do" >> $job_to_send 1355 1374 echo "%%END%%" >> $job_to_send … … 1371 1390 then 1372 1391 echo "mv scpjob.$identifier $job_catalog" >> $job_to_send 1373 echo "ssh $SSH_PORTOPT ${remote_username}@${remote_addres } \"$submcom ${job_catalog}/scpjob.$identifier\" " >> $job_to_send1392 echo "ssh $SSH_PORTOPT ${remote_username}@${remote_address} \"$submcom ${job_catalog}/scpjob.$identifier\" " >> $job_to_send 1374 1393 echo "rm ${job_catalog}/scpjob.$identifier" >> $job_to_send 1375 1394 elif [[ $remote_host = lckyu* ]] 1376 1395 then 1377 echo "scp $PORTOPT scpjob.$identifier ${remote_username}@${remote_addres }:job_queue" >> $job_to_send1378 echo "ssh $SSH_PORTOPT ${remote_username}@${remote_addres } \"cd job_queue; $submcom scpjob.$identifier; rm scpjob.$identifier\" " >> $job_to_send1396 echo "scp $PORTOPT scpjob.$identifier ${remote_username}@${remote_address}:job_queue" >> $job_to_send 1397 echo "ssh $SSH_PORTOPT ${remote_username}@${remote_address} \"cd job_queue; $submcom scpjob.$identifier; rm scpjob.$identifier\" " >> $job_to_send 1379 1398 elif [[ $remote_host = lcflow ]] 1380 1399 then 1381 1400 echo "mv scpjob.$identifier $job_catalog" >> $job_to_send 1382 echo "/usr/bin/ssh ${remote_username}@${remote_addres } \"$init_cmds $module_calls cd $job_catalog; $submcom scpjob.$identifier\" " >> $job_to_send1401 echo "/usr/bin/ssh ${remote_username}@${remote_address} \"$init_cmds $module_calls cd $job_catalog; $submcom scpjob.$identifier\" " >> $job_to_send 1383 1402 else 1384 1403 echo "$submcom scpjob.$identifier" >> $job_to_send … … 1393 1412 fi 1394 1413 else 1395 # echo "ftpcopy -d $local_addres ${job_catalog}/$remote_dayfile \"$job_catalog\" $local_dayfile" >> $job_to_send1414 # echo "ftpcopy -d $local_address ${job_catalog}/$remote_dayfile \"$job_catalog\" $local_dayfile" >> $job_to_send 1396 1415 # ??? funktioniert das ÃŒberhaupt noch ??? 1397 echo "nohup ftpcopy -d -w 15 $local_addres ${job_catalog}/$remote_dayfile \"$job_catalog\" $local_dayfile > /dev/null &" >> $job_to_send1416 echo "nohup ftpcopy -d -w 15 $local_address ${job_catalog}/$remote_dayfile \"$job_catalog\" $local_dayfile > /dev/null &" >> $job_to_send 1398 1417 fi 1399 1418 echo "set -x" >> $job_to_send … … 1441 1460 scp $PORTOPT $job_to_send ${remote_user}@136.172.44.205:${job_catalog}/$job_on_remhost 1442 1461 else 1443 scp $PORTOPT $job_to_send ${remote_user}@${remote_addres }:${job_catalog}/$job_on_remhost1462 scp $PORTOPT $job_to_send ${remote_user}@${remote_address}:${job_catalog}/$job_on_remhost 1444 1463 fi 1445 1464 if [[ $? = 1 ]] … … 1466 1485 if [[ $remote_host = ibmku ]] 1467 1486 then 1468 ssh $SSH_PORTOPT $remote_addres -l $remote_user "cd $job_catalog; $submcom $job_on_remhost"1487 ssh $SSH_PORTOPT $remote_address -l $remote_user "cd $job_catalog; $submcom $job_on_remhost" 1469 1488 elif [[ $remote_host = lcflow ]] 1470 1489 then 1471 /usr/bin/ssh $SSH_PORTOPT $remote_addres -l $remote_user "$init_cmds $module_calls cd $job_catalog; $submcom $job_on_remhost"1490 /usr/bin/ssh $SSH_PORTOPT $remote_address -l $remote_user "$init_cmds $module_calls cd $job_catalog; $submcom $job_on_remhost" 1472 1491 else 1473 ssh $SSH_PORTOPT $remote_addres -l $remote_user "cd $job_catalog; $submcom $job_on_remhost; rm $job_on_remhost"1492 ssh $SSH_PORTOPT $remote_address -l $remote_user "cd $job_catalog; $submcom $job_on_remhost; rm $job_on_remhost" 1474 1493 fi 1475 1494
Note: See TracChangeset
for help on using the changeset viewer.