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?????д?????