Yes.  The STAX Monitor accepts various command line parameters.  See 
section "STAX Monitoring" in the STAX User's Guide at 
http://staf.sourceforge.net/current/STAX/staxug.html#Header_StartMonitor 
for more information.

One parameter your can specify when starting the STAX Monitor is "
-jobparms <jobParmsFile> [-closeonend]" which specifies a Job Parameters 
File for which a new STAX job should should be submitted (and monitored, 
if specified in the Job Parameters File).  You can create a Job Parameters 
File by using the "File Save" or "File Save As" option on the STAX 
Monitor's "Start Job Parameters" window where you specify the name of the 
file to save the job parameters in.  Here's an example of starting the 
STAX Monitor specifying to submit a new STAX job defined by Job Parameters 
File "C:\Documents and Settings\Administrator\TestJob1":
java -jar STAXMon.jar -jobParms "C:\Documents and 
Settings\Administrator\TestJob1" 

Or, you can submit a STAX EXECUTE request without the WAIT option so that 
the request completes as soon as the STAX job is submitted and returns its 
STAX job number and then you can start the STAX Monitor specifying to 
monitor that job number using command line parameter "-job <jobNumber> 
[-closeonend]".  For example, to start the STAX Monitor specifying to 
monitor a currently running STAX job with job ID 2:
java -jar STAXMon.jar -job 2 

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




From:   Luca Robusto <lucarobu...@gmail.com>
To:     "staf-users@lists.sourceforge.net" 
<staf-users@lists.sourceforge.net>, 
Date:   12/03/2013 08:03 AM
Subject:        [staf-users] STAX Monitoring from CLI



Hi all,
I was looking a way to execute a STAX Job from CLI and at the same time, 
open the Monitor and show the Monitoring situation.

I can execute the job from CLI with the command:

staf local stax execute file c:\start.xml wait returnresult

I could also avoid to use STAF and execute directly from the local machine 
with java -jar STAXMon, 

is there a way to do this?

Thanks all, Luca.
------------------------------------------------------------------------------
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=84349351&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=84349351&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