Thanks Sharon,
 
The purpose why i would like to do this is make timestamp in troubleshooting 
log file (var/log/message on remote system) with the timestamp of test log 
events ( that execute on this same remote system).
 
Thanks,
j.

--- On Tue, 6/16/09, Sharon Lucas <luc...@us.ibm.com> wrote:


From: Sharon Lucas <luc...@us.ibm.com>
Subject: Re: [staf-users] Is there anyway for STAF to get timestamp of events 
from remote system
To: "Joseph Butler" <josephinsanjos...@yahoo.com>
Cc: staf-users@lists.sourceforge.net
Date: Tuesday, June 16, 2009, 1:28 PM



Well, you could simply get the timestamp yourself when a result is returned 
from submitting a STAF service request (e.g. if you're submitting the STAF 
service request via a program). 

Or, you can turn on STAF tracing for trace points to log this information in 
the STAFProc trace log (which you can redirect to a file).  For example, you 
can enable one or more of the following tracepoints: 
- ServiceRequest:  The trace point which causes a trace message to be generated 
for every incoming service request before it is processed by the service. 
- ServiceResult:  The trace point which causes a trace message to be generated 
for every incoming service request after it is processed by the service.  Note 
that the trace message will include the return code and result for the service 
request.  This tracepoint overrides the ServiceComplete, ServiceError, and 
ServiceAccessDenied tracepoints. 
- RemoteRequests:  The trace point which enables trace messages to be generated 
for requests destined for other machines. 

Normally STAF tracing is used when you're debugging a problem.  See section 
"8.18 Trace Service" for more information on tracing. 

Or, if you are interested just in when a process started via the STAF PROCESS 
service's START request completes, when you submit the PROCESS START request 
without the WAIT option (e.g. submit it asynchronously), you can specify the 
NOTIFY ONEND option so that a STAF/Process/End message will be sent to the 
specified handle's queue and this message includes the endTimestamp for the 
process. 

Or if you're simply trying to see how long submitting a STAF request takes, we 
provide a STAFLoop executable that calculates the average time a request takes. 
 For example: 

C:\>STAFLoop 
Usage: STAFLoop <# loops> <Where> <Service> <Request> 

C:\>STAFLoop 10 local PING PING 
Total loops: 10 
Total time : 0.030 
Avg. time  : 0.003 
Loops/sec  : 333.333 

Since I don't know why you want to do this, I'm not sure if one of these 
methods will do what you want. 

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







Joseph Butler <josephinsanjos...@yahoo.com> 
06/16/2009 03:01 PM 





To
Sharon Lucas/Austin/i...@ibmus 


cc
staf-users@lists.sourceforge.net 


Subject
Re: [staf-users] Is there anyway for STAF to get timestamp of events from 
remote system













Thanks Sharon for the quick follow up for more clarity: 
  
Bascially, when "x staf system" sends a command to "y staf system (remotely), 
is there a way to get the command output timestamp from "y staf system" back to 
x staf system for logging? 
  
Thanks again, 
JB                               

--- On Tue, 6/16/09, Sharon Lucas <luc...@us.ibm.com> wrote: 

From: Sharon Lucas <luc...@us.ibm.com>
Subject: Re: [staf-users] Is there anyway for STAF to get timestamp of events 
from remote system
To: "Joseph Butler" <josephinsanjos...@yahoo.com>
Cc: staf-users@lists.sourceforge.net
Date: Tuesday, June 16, 2009, 12:36 PM


I don't really understand what you're asking.  Can you please provide more 
ifnromation on what you're trying to do.

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







Joseph Butler <josephinsanjos...@yahoo.com> 
06/16/2009 02:24 PM 





To
staf-users@lists.sourceforge.net 


cc



Subject
[staf-users] Is there anyway for STAF to get timestamp of events        from 
remote system















Hello, 
 
I"m trying to get log timestamp remote events from the remote system using 
STAF, is there a way to accomplish this? 
 
Thanks, 
JB

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users





      
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

Reply via email to