This is by design. The STAF Monitor service provides a way to get the
current status (the last message sent to the monitor). Section "8.10
Monitor Service" in the STAF User's Guide at
http://staf.sourceforge.net/current/STAFUG.htm#HDRMONSRV describes the
Monitor service as follows:
The purpose of the Monitor service is to give a test case the ability to
write status messages. This allows someone to query a process or workload
and easily get the current status. The status messages are stored based on
a combination of the originating machine and the process handle (where
only the process can update the status message), or on a combination of
the originating machine and a specified monitor name (where any process on
the originating machine can update the named monitor). The Monitor service
only keeps the last monitor message it receives from a particular machine
and process/name. A "centralized network clipboard" is a term that could
be used to describe the Monitor service. All Monitor service status
messages are lost when STAFProc is shutdown or the Monitor service is
dynamically removed.
If you want to have the ability to retrieve all messages sent, then you
can use the STAF Queue service instead See sections "2.6 Queues" and
"8.13 Queue Service" in the STAF User's Guide at
http://staf.sourceforge.net/current/STAFUG.htm#HDRQUEUESRV for more
information. A queue is associated with each STAF handle. You can send
messages to a handle's queue (via the QUEUE service's QUEUE request) and
then get messages off your own handle's queue (via the QUEUE service's GET
rqeuest). All messages sent to a handle's queue are stored (up to the
maximum queue size, which is configurable via the MaxQueueSize operational
parameter).
--------------------------------------------------------------
Sharon Lucas
IBM Austin, luc...@us.ibm.com
(512) 286-7313 or Tieline 363-7313
[staf-users] Question about staf monitor service
Lu Yu
to:
staf-users@lists.sourceforge.net
07/29/2010 08:44 PM
Hi
I am very interested in using staf monitor service because it provides
some good features for us to monitor remote process status. I just started
using it. I do not know why monitor service only keeps the last monitor
message it receives from a particular machine and process/name.
If I logged 4 messages, such as
C:\>staf 10.137.203.106 monitor log message "lutest1" Name "lutest"
Response
--------
C:\>staf 10.137.203.106 monitor log message "lutest2" Name "lutest"
Response
--------
C:\>staf 10.137.203.106 monitor log message "lutest3" Name "lutest"
Response
--------
C:\>
C:\>
C:\>staf 10.137.203.106 monitor log message "lutest4" Name "lutest"
Response
I can only get last one message from query:
staf local monitor query machine lyu-xp32.eng.vmware.com Name "lutest"
Response
--------
Date-Time: 20100729-17:21:49
Message : lutest4
How can I retrieve all the log messages?
Thanks in advance!
Lu
------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users
------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users