???? STAF ????????°?????????????
???????????? ???????[ 2014/1/2 11:17:50 ] ???????????? ??????? ?????
3-6????XML??????????????????????????
??7????STAX??????????????????STAX????????????????????8????script?????????????е????????????????????????????2??????LinuxMachine??????Linux1??Linux2??
??9-10?????STAX????????????????????11-40?????????????塣11????????????ListDirectory??
??12-39?ж?????????????????Java?е?for????????????????е??var="machineName" in="LinuxMachine"
??????????LinuxMachine?????л?????????????machineName??????
13?ж??????????????STAX??????????У???????????н?????????????????????????????????
??14-37?б?????е?STAX??????????е??15-19????о????STAF????????location??????????STAF?????????????????????????????????'%s' % machineName?? service?????????????????????process???????request??????????????????????????????????????????????????????????"ls"??parms???????????"ls"?????"-l"?? wait???????????????????????????stdout????????????е????????????????
20-31???ж???????????????????????????????趨????????????????????????????????????STAFMonitor??expr="RC==0"?ж??????????0?? RC??????????????????0?????????г????<tcstatus result="'pass'"/>???ò???????????????fail????????????????<log message="1">?????????????????STAX??????У???????????STAFMonitor?????STAFMonitor??????????????
32-36????STAF????????????fs????????????copy FILE????????????????TOFILE????????????????STAX???????????????% machineName?滻%s??????????????????lsLinux1.log??lsLinux2.log?? TODIRECTORY??????????У?TOMACHINE???????????
????STAX?????????staf local stax execute file SampleScript.xml wait??У????????java -jar STAXMon.jar???STAXMonitor?????á?
3.?????????°?
?2. STAF(STAX)????????
?2???????????????????????????????????????????????CVS????μ????????????????????FTP???????????н??????STAF(STAX)?????????°???????У?STAX???????CVS??FTP???????μ???????????? ????????У??????????????STAF?????????CVS??FTP?????????????????STAX??
STAX???????????????????????????????????????????????????????????????????WAS (WebSphere Application Server) ???????????????STAX????????????????????? ?????????????????????????????????????????????????????????????ó??????????????????????????????????????????????
????????????????????????STAF(STAX)????????????????????
3.1 FTP???
STAF(STAX)??????????????????????????????????ù????????FTP?? CVS????????????????FTP?????????FTP????????????????????????????????????????????Windows?????FTP????????ɡ?
FTP???????????????-s????????????FTP???????????????е?FTP????????????????е?FTP?????????????????????STAX????FTP???????FTP??????????????
????4??FTP???(ftpSample.conf)???
open ftp.ibm.com
username
password
binary
prompt
cd /code/latest/unix
lcd C:latestunix
mget *
bye
???FTP?????????????username??????password????ftp.ibm.com???????????binary?????????/code/latest/unix?μ????????????C:latestunix?????????ftp -s:ftpSample.conf?????д?????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11