Hi Cindy,

This information is provided in the STAX Service Log (which is STAF log 
file -- e.g. written by the STAF LOG service).  See section 
"Listing/Querying STAX Service Log" in the STAX User's Guide at 
http://staf.sourceforge.net/current/STAX/staxug.html#Listing/Querying%20STAX%20Service%20Logs
 
for more information about querying the STAX service log.  It describes 
this log as follows:

STAX service log - This log contains messages generated by the STAX 
Service for all jobs. This log contains a start and stop message for each 
STAX Job. The job start message includes additional information about the 
job such as job ID, XML file name, machine name, starting function, job 
name, and arguments passed to the starting function. 

For example, to query a STAX service log on your local STAX service 
machine and just show the "Start" level messages logged since the last 
time STAFProc was started on the STAX service machine, you could use the 
following STAF LOG QUERY request  (assuming STAX is the registered name 
for the STAX service):

C:\>STAF local LOG QUERY MACHINE {STAF/Config/MachineNickname} LOGNAME 
STAX_Service LEVELMASK Start FROM {STAF/Config/StartupTime}
Response
--------
Date-Time         Level Message
----------------- ----- 
-------------------------------------------------------
20140106-16:21:34 Start JobID: 1, File: c:/stax/delay.xml, Machine: 
local://loc
                        al, Function: , Args: , JobName: Delay Test
20140106-16:21:57 Start JobID: 2, File: C:/stax/prodTest.xml, Machine: 
tcp://cl
                        ient1.company.com@6500, Function: , Args: , 
JobName: <N
                        /A>
20140106-16:24:01 Start JobID: 3, File: C:/stax/prodTest.xml, Machine: 
tcp://cl
                        ient2.company.com@6500, Function: , Args: , 
JobName: <N
                        /A>

So you could parse each "Start" message to obtain the endpoint of the 
machine that submitted the STAX EXECUTE request (e.g. the value between 
"Machine: " and "," in the message).

--------------------------------------------------------------
Sharon Lucas
IBM Austin,   luc...@us.ibm.com
(512) 286-7313 or Tieline 363-7313




From:   "Zhu, Cindy" <cindy....@ihs.com>
To:     Sharon Lucas/Austin/IBM@IBMUS, 
Cc:     "staf-users@lists.sourceforge.net" 
<staf-users@lists.sourceforge.net>
Date:   01/06/2014 03:24 PM
Subject:        RE: [staf-users] Machine sending the STAF command



Hi Sharon,
 
I guess what I want to know is where is the STAF log file to find out 
information (e.g. what machines send requests), not a STAX job to log the 
information.
 
Sorry for the confusion. 
 
Thanks,
 
Cindy 
 
From: Sharon Lucas [mailto:luc...@us.ibm.com] 
Sent: January-03-14 2:57 PM
To: Zhu, Cindy
Cc: staf-users@lists.sourceforge.net
Subject: Re: [staf-users] Machine sending the STAF command
 
So you want a STAX job to be able to determine the machine that submitted 
a STAX EXECUTE request?  This is provided in a STAX Python variable named 
STAXJobSourceMachine (contains the endpoint of the machine submitting the 
EXECUTE request). 

Note that section "STAX Variables" in the STAX User's Guide at 
http://staf.sourceforge.net/current/STAX/staxug.html#Header_StaxVariables 
describes the variables (such as STAXJobSourceMachine) that are set in 
Python during Job Execution by the STAX service and that can be referenced 
by your STAX job. 

For example, if you wanted your STAX job to log this information: 

<log message="1"> 
  'Machine endpoint that submitted the STAX EXECUTE request is: %s' % 
(STAXJobSourceMachine) 
</log> 

--------------------------------------------------------------
Sharon Lucas
IBM Austin,   luc...@us.ibm.com
(512) 286-7313 or Tieline 363-7313




From:        "Zhu, Cindy" <cindy....@ihs.com> 
To:        "staf-users@lists.sourceforge.net" <
staf-users@lists.sourceforge.net>, 
Date:        12/20/2013 10:49 AM 
Subject:        [staf-users] Machine sending the STAF command 




Hi, 
  
I have multiple machines send STAF command to one testing machine to 
launch STAX jobs. 
  
How can I find out the machine name that sent the STAF command? 
  
Thanks, 
  
Cindy 
 
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 

Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics 
Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

Reply via email to