Are you saying that you want multiple machines to log to the same STAF log
file (e.g. in a central location)?
If so, then you need to submit the LOG request to the LOG service on your
"central location" (e.g. let's say machine StafAdmin is your central
location).
So, for example, to write the following two messages to a STAF global log
named testit on machine StafAdmin, you could do the following:
>From machine Consumer, submit the following to log a message to global log
"testit" on machine StafAdmin:
C:\>STAF StafAdmin LOG LOG GLOBAL LOGNAME testit LEVEL info MESSAGE "Hello
from Consumer"
Response
--------
>From machine StafAdmin, submit the following to log a message to global
log "testit" on machine StafAdmin:
C:\>STAF StafAdmin LOG LOG GLOBAL LOGNAME testit LEVEL info MESSAGE "Hello
from StafAdmin"
Response
--------
>From any machine, submit the following to query the contents of global log
"testit" on machine StafAdmin:
C:\>STAF StafAdmin LOG QUERY GLOBAL LOGNAME testit
Response
--------
Date-Time Level Message
----------------- ----- --------------------
20110207-14:15:35 Info Hello from Consumer
20110207-14:16:08 Info Hello from StafAdmin
Or, use the LONG option on the QUERY request to see additional information
about the machine/handle#/handleName that submitted the request to log the
message:
C:\>STAF StafAdmin LOG QUERY GLOBAL LOGNAME testit LONG
Response
--------
R# Date-Time Machine H# Handle Name User Endpoint Level
Message
-- --------- -------- -- ----------- -------- ---------------- -----
-----------
1 20110207- Consumer 35 STAF/Client none://a ssl://Consumer.c Info Hello
from
14:15:35 .company 2 nonymous ompany.com@6550 Consumer
.com
2 20110207- StafAdmi 44 STAF/Client none://a ssl://StafAdmin. Info Hello
from
14:16:08 n.compan nonymous company.com@6550 StafAdmin
y.com
I hope that answered your question.
--------------------------------------------------------------
Sharon Lucas
IBM Austin, luc...@us.ibm.com
(512) 286-7313 or Tieline 363-7313
From: Zach Calvert <zachcalv...@gmail.com>
To: staf-users@lists.sourceforge.net
Date: 02/07/2011 02:00 PM
Subject: [staf-users] GLOBAL LOG, logging to a central location
I've tried reading the user guide, the installation guide, and going
through the mailing list, but I'm not finding much.
Basically, I have two machines (StafAdmin, Consumer) and I have them
both log with the command
STAF LOCAL LOG LOG BLOBAL LOGNAME testit LEVEL info MESSAGE
helloConsumer/helloStafAdmin
When I run
STAF LOCAL LOG QUERY GLOBAL LOGNAME testit
the response only contains the log message from the local machine.
Now I have confirmed StafAdmin can send requests to Consumer (Consumer
has given StafAdmin level 5 trust privileges).
I have run STAF LOCAL LOG LIST MACHINES and the Consumer responds with:
Consumer
and the StafAdmin responds with both machines:
Consumer
StafAdmin
So I believe StafAdmin is aware of logs coming out of the Consumer,
but it isn't printing them when I query.
I assume there is some configuration element I'm missing to tell
GLOBAL what machines really are involved in a GLOBAL log, but I can't
find configuration details. Can someone point me to the right
document/example/email/forum that details how to have 2 machines log
back and forth to each other without having to specific MACHINE. I
want all the machines in my cluster to be able to log globally, and
eventually it will be around 10 machines orchestrating their
activities. Yes, I'm aware there is bandwidth consumed when logging
globally, but it is for testing purposes and I am willing to eat the
bandwidth loss.
Thank you,
Zach
------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users
------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users