To capture events to the same database as the event runtime
for later event replay and analysis, you can use the Event Capture
widget or the WebSphere® Application Server administrative
scripting tool, wsadmin.
About this task
Note: The Event Capture widget must not be used if Decision Server Events is
running in a clustered environment. Instead, use wsadmin to
complete the capture, and specify the name of the cluster.
Procedure
- Capturing events by using the Event Capture widget:
- Access the Event Capture widget (see Accessing Event Widgets for more information).
- Click Start Capture. If event capture does
not start because event capture is already in progress, it is most
likely that another user on this computer has initiated event capture.
- Once event capture is in progress, ensure your application is
running and leave a sufficient period for the events you want to capture
to arrive at Decision Server Events.
- Stop event capture by opening the Event Capture widget and clicking Stop
Capture.
- Capturing events using wsadmin:
- Change to the was_install_dir/bin directory
and start the wsadmin scripting tool. For more
details of the use of wsadmin, see Using the wsadmin scripting tool.
wsadmin
- Run the wbeStartEventCapture administrative
command which has the following optional parameters:
- server
- The name of the WebSphere Application Server server
on which to capture events. The name must be specified in conjunction
with the node.
- node
- The name of the WebSphere Application Server node
on which to capture events. The name must be specified in conjunction
with the server.
- cluster
- The name of the WebSphere Application Server cluster
on which to capture events. Neither a server name nor a node name
can be specified.
If none of these optional parameters are specified,
then the server to which the wsadmin session is
connected is used.
If event capture does not start because
event capture is already in progress, it is most likely that another
user on this computer has initiated event capture.
- Once event capture is in progress, ensure your application is
running and leave a sufficient period for the events you want to capture
to arrive at Decision Server Events.
- To stop capture, change to the was_install_dir/bin directory
and start the wsadmin scripting tool:
wsadmin
Run
the wbeStopEventCapture administrative command
which has the same optional parameters as the wbeStartEventCapture administrative
command.
- In addition, in a script environment, you might want to determine
whether event capture is in progress. To do this, run the wbeGetEventCaptureStatus administrative
command which has the same optional parameters as the wbeStartEventCapture administrative
command.
Example
Examples of Jython input to
wsadmin -lang jython
-
AdminTask.wbeStartEventCapture()
-
AdminTask.wbeStartEventCapture(["-server", "myserver", "-node", "mynode"])
-
AdminTask.wbeStopEventCapture(["-cluster", "mycluster"])
-
AdminTask.wbeGetEventCaptureStatus(["-server", "myserver", "-node", "mynode"])
What to do next
You can now capture some more events, or use the Event Replay
widget to replay the captured events.