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

Reply via email to