When you say you've written a staf job, do you mean a STAX job (an xml
file that is executed by the STAX service)? I'm assuming that's what you
meant in my response.
The STAX service allows you to run as many instances of the same STAX xml
job file as you want. You could pass arguments when executing the STAX
job using the ARGS, SCRIPT, or SCRIPTFILE options on a STAX EXECUTE
request to specify a list of machines (e.g. machineList = ['machineA',
'machineB', 'machineC']. You can then submit another STAX EXECUTE request
for the same STAX job specifying different values for machineList (e.g.
machineList = ['machineD', 'machineE', 'machineF']).
Whether or not you may want to make some modifications to your STAX job
for locking depends on what your STAX job is doing. For example, you may
want to add locking within your STAX job, to not allow this job to be
running simultaneously if the same machine was specified in different
execution instances of the STAX job. To do this, you could use the STAF
SEM (Semaphore) service and use a mutex semaphore for example to lock
sections of your STAX job to ensure that that only one instance of a job
section is running at a time. To learn more about the SEM service, see
the STAF User's Guide at
http://staf.sourceforge.net/current/STAFUG.htm#HDRSEMSRV.
--------------------------------------------------------------
Sharon Lucas
IBM Austin, [email protected]
(512) 286-7313 or Tieline 363-7313
Sangram Bakshi <[email protected]>
01/22/2010 01:04 PM
To
[email protected]
cc
Subject
[staf-users] Regarding multple submission of staf jobs
Hi ,
I have a query.
I have written a staf job which would connect to several target machines
and trigger tests there.
While this instance would be running say connecting to machine A B C ,
can it be possible to trigger the same staf job
again to connect to mahcines D E F and run tests there.If so how . Is
there any critical data locking mechanism
provided so that we can achieve this multiple instance working of staf
jobs.
Please do suggest.
Regards
Sangram
------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for
Conference
attendees to learn about information security's most important issues
through
interactions with peers, luminaries and emerging and established
companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
staf-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/staf-users
------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
staf-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/staf-users