STAF does not keep a history of all STAF service requests submitted by
default (as you can submit millions of STAF service requests). But STAF
does provide various tracing facilities to help in auditing and debugging.
STAF externalizes these facilities through trace points. Enabling a
particular trace point causes trace messages to be generated whenever a
particular event occurs, such as a service request being submitted or
completing.
So, you could enable STAF trace points for ServiceRequest and
ServiceComplete for all services. Then, a trace message will be logged in
STAFProc's output for every STAF service request submitted to this
machine, and when each STAF service request completes. Note that enabling
these trace points can result in large quantities of trace messages being
generated if many STAF service requests are submitted so you'll probably
want to redirect STAFProc's trace output to a file (if you aren't
already).
You can enable STAF tracing via the STAF.cfg file on your service host
(then this tracing will be enabled whenever STAFProc is started), or you
can enable/disable STAF tracing dynamically via the TRACE service.
For example, to enable this STAF tracing in your STAF.cfg file on your
service host machine, modify the existing "trace enable tracepoints" line
as follows and add a "trace set destination to file" line, specifying
whatever fully-qualified file name you want as folows:.
trace enable tracepoints "error deprecated ServiceRequest ServiceComplete"
trace set destination to file {STAF/Config/STAFRoot}/STAF.trc
Or, to enable STAF tracing dynamically via the TRACE service for
tracepoints ServiceRequest and ServiceComplete, you could submit the
following request:
STAF servicehost TRACE ENABLE TRACEPOINTS "ServiceRequest ServiceComplete"
To redirect STAF trace output to a file dynamically via the TRACE service,
you could submit the following request:
STAF servicehost TRACE SET DESTINATION TO FILE
{STAF/Config/STAFRoot}/STAF.trc
For more information on the available tracepoints, see section "8.18.2
Trace Points Reference" in the STAF User's Guide.
For more information on the syntax of trace statements in the STAF.cfg
file, see section "4.11 Tracing" in the STAF User's Guide,
For more information on the TRACE service, see section "8.18 Trace
Service" in the STAF User's Guide.
--------------------------------------------------------------
Sharon Lucas
IBM Austin, luc...@us.ibm.com
(512) 286-7313 or Tieline 363-7313
Arvind Chandra <arv...@yahoo.com>
10/12/2009 11:45 AM
To
Sharon Lucas/Austin/i...@ibmus
cc
staf-users@lists.sourceforge.net
Subject
Re: [staf-users] Information about users accessing the services
Hi Sharon,
This is useful command and I can use it to monitor current requests.
Is there a way to look at history of commands issued to the service host?
Thanks
Arvind
--- On Fri, 10/9/09, Sharon Lucas <luc...@us.ibm.com> wrote:
> From: Sharon Lucas <luc...@us.ibm.com>
> Subject: Re: [staf-users] Information about users accessing the services
> To: "Arvind Chandra" <arv...@yahoo.com>
> Cc: staf-users@lists.sourceforge.net
> Date: Friday, October 9, 2009, 2:54 PM
>
>
> Yes, you can use the STAF
> SERVICE service's
> LIST REQUESTS request to list the pending STAF
> service requests running
> on your service host machine. By also specifying the
> LONG option,
> the result will include the "Source" endpoint for
> the machine
> that submitted the request to the service host
> machine.
>
>
>
> For example, say
> machA.company.com submitted
> the following two requests to STAF services running on
> machine server.company.com
> as follows:
>
>
>
> STAF
> server.company.com DELAY DELAY
> 5m
>
> STAF
> server.company.com PROCESS
> START COMMAND NOTEPAD WAIT
>
>
>
> You can then submit a LIST
> REQUESTS
> LONG request to the SERVICE service on server.company.com
> to list the pending
> service requests as follows:
>
>
>
> C:\>STAF
> server.company.com SERVICE
> LIST REQUESTS LONG
>
> Response
>
> --------
>
> Req# Source
> Handle
> Name H# Date-Time Target Service
> Request
>
> ---- ----------- -----------
> -- ---------
> ---------- ------- ------------------
>
> 3 ssl://machA
> STAF/Client
> 18 20091009- server.com DELAY DELAY 5m
>
>
> .company.co
> 16:26:15
> pany.com
>
>
> m...@6500
>
> 4 ssl://machA
> STAF/Client
> 19 20091009- server.com PROCESS START COMMAND NOTE
>
>
> .company.co
> 16:26:36
> pany.com
> PAD WAIT
>
>
> m...@6500
>
> 10 ssl://serve
> STAF/Client 8 20091009-
> server.com SERVICE LIST REQUESTS LONG
>
>
> r.company.c
> 16:27:38
> pany.com
>
>
> o...@6550
>
>
>
> To see this output in a
> more verbose
> format (and possibly easier to read) when submitting this
> request using
> the STAF command line executable, specify the -verbose
> option. For
> example:
>
>
>
> STAF -verbose
> server.company.com SERVICE
> LIST REQUESTS LONG
>
>
>
> For more information on
> the SERVICE
> service's LIST REQUESTS request, see section "8.16
> Service Service",
> sub-section "8.16.2 LIST" in the STAF User's
> Guide at
> http://staf.sourceforge.net/current/STAFUG.htm#HDRSRVSERVICE.
>
>
>
> --------------------------------------------------------------
>
> Sharon Lucas
>
> IBM Austin, luc...@us.ibm.com
>
> (512) 286-7313 or Tieline 363-7313
>
>
>
>
>
>
>
>
>
>
> Arvind
> Chandra <arv...@yahoo.com>
>
> 10/09/2009 04:08
> PM
>
>
>
>
> To
> staf-users@lists.sourceforge.net
>
>
> cc
>
>
>
> Subject
> [staf-users]
> Information about users
> accessing the services
>
>
>
>
>
>
>
>
>
>
>
>
>
> I have a host(say Service Host(SH))
> which has some
> services running and other users are using them. This is
> information about
> trust level
>
>
>
> --------
>
> Type Entry Trust Level
>
> ------- ------ -----------
>
> Default <None> 3
>
> Machine *://* 5
>
>
>
> User who is on machine A is using the services in SH by
> issuing the commands
>
> staf ST <> <>
>
>
>
> User in machine B is using services in SH by issuing the
> commands
>
> staf ST <> <>
>
>
>
> Is there a way I can see all these commands issued on the
> service host
> by remote machines?
>
>
>
> In case of commands which take some time can I see which
> commands are being
> executed currently?
>
>
>
> Thanks
>
> Arvind
>
>
>
>
>
>
>
>
>
>
------------------------------------------------------------------------------
>
> Come build with us! The BlackBerry(R) Developer Conference
> in SF, CA
>
> is the only developer event you need to attend this year.
> Jumpstart your
>
> developing skills, take BlackBerry mobile applications to
> market and stay
>
>
> ahead of the curve. Join us from November 9 - 12, 2009.
> Register now!
>
> http://p.sf.net/sfu/devconference
>
> _______________________________________________
>
> staf-users mailing list
>
> staf-users@lists.sourceforge.net
>
> https://lists.sourceforge.net/lists/listinfo/staf-users
>
>
>
>
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users