Welcome to STAF! You can find all the documentation on STAF at http://staf.sourceforge.net/docs.php, including the "Getting Started with STAF" guide which guides you through many common tasks that are performed when using STAF, including a detailed examination of a demo which shows how you can instrument and leverage STAF in your testing. Also, you would learn a lot about STAF by taking the STAF Education on-line class available at http://staf.sourceforge.net/education.php. This education package is intended to familiarize new users with the STAF and STAX tools, and to provide hands-on experience with the tools. Start with Part 1 (e.g. STAF-STAX-HandsOn-Part1.ppt).
Yes, you can run a program on a remote machine by submitting a START request to the STAF PROCESS service. You don't need anything other than STAFProc running on both machines, and the remote machine must give STAF trust level 5 to the machine submitting the PROCESS START request. For example, let's say machine1.company.com is the hostname of the machine where you are submitting the STAF PROCESS START request and machine2.company.com is the hostname of the machine where you want command "dir /tmp" to run. The STAF.cfg file for machine2.company.com must give trust level 5 to machine1.company.com. It can do this by editing the STAF.cfg file (in the bin sub-directory where you installed STAF, e.g. C:\STAF\bin\STAF.cfg on Windows or /usr/local/staf/bin/STAF.cfg on Unix) and setting the default trust level to 5 (which gives trust level 5 to all machines) by adding the following line in the STAF.cfg file: TRUST LEVEL 5 DEFAULT Or, you can add the following line to give trust level 5 just to machine1.company.com: TRUST LEVEL 5 MACHINE machine1.company.com If STAFProc is already running, you must shutdown STAF (STAF local SHUTDOWN SHUTDOWN) and restart STAFProc for changes to the STAF.cfg file to take effect. See section "4.9 Trust" in the STAF User's Guide at http://staf.sourceforge.net/current/STAFUG.htm#HDRTRUSTCFG for more information on setting the STAF trust levels. Now you can submit a STAF PROCESS START request from machine1.company.com to run your program on machine2.company.com. For example: C:\>STAF machine2.company.com PROCESS START SHELL COMMAND "dir C:\temp\test" RETURNSTDOUT STDERRTOSTDOUT WAIT Response -------- { Return Code: 0 Key : <None> Files : [ { Return Code: 0 Data : Volume in drive C has no label. Volume Serial Number is 5CC0-9DEE Directory of C:\temp\test 10/04/2007 08:51 PM <DIR> . 10/04/2007 08:51 PM <DIR> .. 10/04/2007 08:51 PM 2,184 LogIt.c 1 File(s) 2,184 bytes 2 Dir(s) 516,759,552 bytes free } ] } C:\> See section "8.12 Process Service" in the STAF User's Guide at http://staf.sourceforge.net/current/STAFUG.htm#HDRPROCSRV for more information on the PROCESS service. -------------------------------------------------------------- Sharon Lucas IBM Austin, luc...@us.ibm.com (512) 286-7313 or Tieline 363-7313 From: Deepthi Venkatachalam <hermeneuti...@yahoo.com> To: "staf-users@lists.sourceforge.net" <staf-users@lists.sourceforge.net>, Date: 08/10/2011 12:37 PM Subject: [staf-users] Run Program through STAF Hi, I am new to STAF. I want to run a program on a remote machine (which has STAF on it) from another machine through the STAF command line utility on this other machine. Is this possible? If so then where can I get more information about how to run programs on other machines through STAF. And Do I need to download or configure anything else, At present I have only STAF configured. Thank You, Dee ------------------------------------------------------------------------------ uberSVN's rich system and user administration capabilities and model configuration take the hassle out of deploying and managing Subversion and the tools developers use with it. Learn more about uberSVN and get a free download at: http://p.sf.net/sfu/wandisco-dev2dev _______________________________________________ staf-users mailing list staf-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/staf-users
------------------------------------------------------------------------------ uberSVN's rich system and user administration capabilities and model configuration take the hassle out of deploying and managing Subversion and the tools developers use with it. Learn more about uberSVN and get a free download at: http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________ staf-users mailing list staf-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/staf-users