What is the RC and error message that you get when you submit a QUERY
request to the LOG service (and what is the exact LOG QUERY request you
are submitting)? For example, are you getting RC 48 (Does Not Exist) and
the error message shows the name of the log indicating that the log name
specified does not exist?
You can get help for STAF error codes via the STAF HELP service. For
example, to get help for RC 48:
C:\>staf local help error 48
Response
--------
Description: Does not exist
Details : This indicates that the item you specified does not exist.
Note: Additional information regarding the item which could not be found
may be
provided in the result passed back from the submit call.
For example, on my STAX service machine, I can query log file STAX_Job_1
as follows:
C:\>STAF local LOG QUERY MACHINE {STAF/Config/MachineNickname} LOGNAME
STAX_Job_1 LAST 1
Response
--------
Date-Time Level Message
----------------- ----- --------
20120716-18:28:46 Stop JobID: 1
However, I can't query log file STAX_Job_1000 as it doesn't exist:
C:\>STAF local LOG QUERY MACHINE {STAF/Config/MachineNickname} LOGNAME
STAX_Job_1000 LAST 1
Error submitting request, RC: 48
Additional info
---------------
STAX_Job_1000
--------------------------------------------------------------
Sharon Lucas
IBM Austin, luc...@us.ibm.com
(512) 286-7313 or Tieline 363-7313
From: "O'day, PaulX E" <paulx.e.o'd...@intel.com>
To: Sharon Lucas/Austin/IBM@IBMUS,
Date: 07/27/2012 04:31 PM
Subject: RE: [staf-users] LOG and EVENT services not starting
Wow, thank you for the in depth reply. That does answer my questions,
except the fact that I get an error when I try to query the log. From
your reply, it looks like the more likely reason for that error is an
incorrect logname or machinename correct?
From: Sharon Lucas [mailto:luc...@us.ibm.com]
Sent: Friday, July 27, 2012 1:10 PM
To: O'day, PaulX E
Cc: staf-users@lists.sourceforge.net
Subject: Re: [staf-users] LOG and EVENT services not starting
The reason that you are not seeing these external services in the "STAF
local SERVICE LIST" output is because you haven't registered them. The
Event service is an external STAF service written in Java (like the STAX
service), and it must be registered in the STAF.cfg file (just like you
register the STAX service). Note that the STAFEvent.jar file is also
provided in the STAX tar file along with the STAX.jar file. Section
"Installation and Configuration", sub-section "STAX Service Machine" in
the STAX User's Guide at
http://staf.sourceforge.net/current/STAX/staxug.html#Header_StaxServiceMach
talks about this. So, you need to register both the STAX and Event
services. For example:
SERVICE STAX LIBRARY JSTAF EXECUTE /usr/local/staf/services/stax/STAX.jar
SERVICE EVENT LIBRARY JSTAF EXECUTE
/usr/local/staf/services/stax/STAFEvent.jar
The LOG and MONITOR services (as well as the RESPOOL and ZIP services) are
all external STAF services written in C++ and these services are provided
as part of your standard STAF install (not separately downloadable
services like STAX and Event). However, to conserve memory usage, these
services are not loaded into memory until you submit a request to each
service. This capability is provided by the STAF Default Service Loader
Service (STAFDSLS) which is configured automatically in the default
STAF.cfg file as follows:
# Default Service Loader Service for LOG, MONITOR, RESPOOL, and ZIP
services
SERVICELOADER LIBRARY STAFDSLS
For more information on the STAF Default Service Loader Serivce, see
section "4.5 Service Loader Registration" in the STAF User's Guide at
http://staf.sourceforge.net/current/STAFUG.htm#HDRSERVICELOADERCFCG for
more
information.
So, for example, when you submit a request to the LOG service, the
STAFDSLS will automatically register the LOG service for you (and will
then show up in the "STAF local SERVICE LIST" output).
If you prefer, you can register these services in the STAF.cfg file
yourself (perhaps because you want to specify some non-default service
parameters).
I hope this answered your questions.
--------------------------------------------------------------
Sharon Lucas
IBM Austin, luc...@us.ibm.com
(512) 286-7313 or Tieline 363-7313
From: "O'day, PaulX E" <paulx.e.o'd...@intel.com>
To: "staf-users@lists.sourceforge.net" <
staf-users@lists.sourceforge.net>,
Date: 07/27/2012 02:51 PM
Subject: [staf-users] LOG and EVENT services not starting
I’ve just installed STAF on 3 Fedora 17 machines, and it seems that the
LOG, MONITOR, and EVENT services are not starting. I’m using the default
configuration plus the line:
SERVICE STAX LIBRARY JSTAF EXECUTE /usr/local/staf/services/STAX/STAX.jar
to start STAX.
On each of the machines. I manually install STAX by copying the files in
STAX353.tar (downloaded from the STAF homepage) to
/usr/local/staf/services/STAX. The output of STAF local SERVICE LIST is:
$ STAF local SERVICE LIST
Response
--------
NAME LIBRARY Executable
--------- ---------- ----------
CONFIG <INTERNAL> <NONE>
DELAY <INTERNAL> <NONE>
DIAG <INTERNAL> <NONE>
ECHO <INTERNAL> <NONE>
FS <INTERNAL> <NONE>
HANDLE <INTERNAL> <NONE>
HELP <INTERNAL> <NONE>
LIFECYCLE <INTERNAL> <NONE>
MISC <INTERNAL> <NONE>
PING <INTERNAL> <NONE>
PROCESS <INTERNAL> <NONE>
QUEUE <INTERNAL> <NONE>
SEM <INTERNAL> <NONE>
SERVICE <INTERNAL> <NONE>
SHUTDOWN <INTERNAL> <NONE>
STAX JSTAF /usr/local/staf/services/STAX/STAX.jar
TRACE <INTERNAL> <NONE>
TRUST <INTERNAL> <NONE>
VAR <INTERNAL> <NONE>
$
Running a simple test script with logging seems to work, but I cannot
query the log:
$ STAF local LOG query MACHINENAME <machinename> LOGNAME <logname>
Error submitting request, RC: 2
Additional info
---------------
LOG
$
I get the same response with any LOG command sent to STAF.
Does anybody have any idea on how to get this working? Thanks.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users