20.7. Troubleshooting with WSCP

The WSCP tool can be used to manipulate trace for troubleshooting purposes.

20.7.1. Enabling trace

The WebSphere Control Program can be used to manipulate trace in two primary ways - statically, by modifying the TraceSpec attribute of a server and restarting the server, or dynamically, by using the DrAdmin command.

20.7.1.1. Modifying trace specifications

Servers contain a TraceSpec attribute. You can use WSCP to modify this attribute to set a certain trace specification, as follows:

wcsp> ApplicationServer modify
/Node:SZYMON-Laptop/ApplicationServer:HelloAppServer/ -attribute
{{TraceSpec com.ibm.ejs.container.*=all=enabled}}

This examples sets trace specification of the HelloAppServer application server ...

Get WebSphere V3.5 Handbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.