No, the STAX service does not log SCRIPT option values (and it also does
not log the Python code in the files specified by the SCRIPTFILE option).
But you can log whatever you want in the STAX Job User Log. So, if you
could log the value of variables specified by SCRIPT options at the
beginning of your STAX job. For example, you could change your STAX job
(e.g. D:\DistributedTesting\Run.xml) for which you are specifying the
PRODUCT and VERSION Python variables to log these variables by doing
something like:
<log>'PRODUCT=%s VERSION=%s' % (PRODUCT, VERSION)</log>
Or, you could change your STAX job to pass the PRODUCT and VERSION values
as arguments to the STAX job's main function so that they would be logged
automatically by STAX in the STAX Service Log and the STAX Job Log.
--------------------------------------------------------------
Sharon Lucas
IBM Austin, [email protected]
(512) 286-7313 or Tieline 363-7313
From: Cindy Zhu <[email protected]>
To: Sharon Lucas/Austin/IBM@IBMUS,
Cc: "[email protected]"
<[email protected]>
Date: 05/10/2013 10:24 AM
Subject: Re: [staf-users] The service log didn't provide the
arguments passing from STAF command
Hi Sharon,
Thank you very much.
Since the content of SCRIPT options has never been logged in the
STAX_Service log. Are these SCRIPT options logged somewhere?
Thanks,
Cindy
________________________________________
From: Sharon Lucas [[email protected]]
Sent: Friday, May 10, 2013 6:05 AM
To: Cindy Zhu
Cc: [email protected]
Subject: Re: [staf-users] The service log didn't provide the arguments
passing from STAF command
The STAX EXECUTE request that you provided did not use the ARGS option to
specify any arguments so the STAX_Service log is correctly showing you
that there were no arguments specified for the STAX job.
>From section "EXECUTE" (in the "Request Syntax" section) in the STAX
User's Guide:
* ARGS specifies arguments to pass to the function element called to
start the job, overriding the arguments, if any, specified for the
defaultcall element in the XML document.
Perhaps you're confusing your SCRIPT options with the ARGS option? The
content of SCRIPT options has never been logged in the STAX_Service log. A
SCRIPT option could contain lines and lines of Python code.
* SCRIPT defines Python code to be executed. This is like a <script>
element in root <stax> element in the XML document, but defined when
submitting an execute request, rather than within the XML document. Note
that a script parameter specified in an execute request will be executed
by the STAX service after any "global" <script> elements (that is, those
contained directly within the root <stax> element) and after any
SCRIPTFILE parameters are executes, but before the starting function is
called. Thus, you can override the value of a variable specified in a
global <script> element or in a SCRIPTFILE by using a script parameter in
the execute request. You may specify as many SCRIPT parameters as needed.
This option will handle private data.
--------------------------------------------------------------
Sharon Lucas
IBM Austin, [email protected]
(512) 286-7313 or Tieline 363-7313
From: Cindy Zhu <[email protected]>
To: "[email protected]"
<[email protected]>,
Date: 05/09/2013 06:06 PM
Subject: [staf-users] The service log didn't provide the arguments
passing from STAF command
________________________________
Hi,
I have following STAF command to run a STAX job:
STAF “1722W7.Fekete.com ” STAX EXECUTE FILE
“D:\DistributedTesting\Run.xml” MACHINE “1722W7.Fekete.com” JOBNAME
“RegressionTest” SCRIPT “PRODUCT=’Harmony’” SCRIPT “VERSION=’1.1.1.1’”
CLEARLOGS ENABLED
When I used this STAF command “STAF 1722W7.Fekete.com LOG QUERY MACHINE
{STAF/CONFIG/MACHINENICKNAME} LOGNAME STAX_Service” to query the STAX
services, it didn’t show me any arguments passed from the STAF command.
What I see was this:
“JobID: 29, File: D:\DistributedTesting\Run.xml, Machine:
1722W7.Fekete.com, Function: , Args: , JobName: RegressionTest”
I just updated to STAF3413 64bit version. I remember I could see all
arguments passed in the log before my upgrade.
Any ideas why the arguments not showing in the service log? Please help.
Thanks,
Cindy
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and
their applications. This 200-page book is written by three acclaimed
leaders in the field. The early access version is available now.
Download your free book today!
http://p.sf.net/sfu/neotech_d2d_may_______________________________________________
staf-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/staf-users
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and
their applications. This 200-page book is written by three acclaimed
leaders in the field. The early access version is available now.
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
_______________________________________________
staf-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/staf-users
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and
their applications. This 200-page book is written by three acclaimed
leaders in the field. The early access version is available now.
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
_______________________________________________
staf-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/staf-users