Troubleshoot with scripting
Use these topics to learn more about troubleshooting with scripting.
This topic contains the following tasks:
Tasks
- Tracing operations
- Configure traces using scripting
- Turning traces on and off in servers processes using scripting
- Dumping threads in server processes using scripting
- Set up profile scripts to make tracing easier
- Enable the Runtime Performance Advisor tool using scripting
Example
We can set the trace string using either of the following supported formats. For example:
$AdminControl trace com.ibm.*=all=enabledor$AdminControl trace com.ibm.*=allFor more instructions, see the tracing and logging information. To set the log level, see the log level settings information.
Subtopics
- Tracing operations
We can enable and disable tracing with scripting and the wsadmin tool.- Extracting properties files to troubleshoot the environment
Use this topic to create a properties file that displays configuration information for a node, application server, application, or other resource. Use this file to troubleshoot a problem in the environment.- Configure traces using scripting
Use the wsadmin tool and scripting to configure traces for a configured server.- Turning traces on and off in servers processes using scripting
Use scripting to turn traces on or off in server processes.- Dumping threads in server processes using scripting
Use the AdminControl object to produce a Java core dump, which includes the Java threads of a running server.- Set up profile scripts to make tracing easier
Use scripting and the wsadmin tool to set up profile scripts to facilitate tracing.- Enable the Runtime Performance Advisor tool using scripting
We can configure the Runtime Performance Advisor (RPA) using the wsadmin tool or the administrative console.- AdministrationReports .
Use the Jython or Jacl scripting languages to troubleshoot the configuration with the wsadmin tool. The commands in the AdministrationReports group can be used to create a report of inconsistencies in the system configuration or a report that describes the port usage in the system.- Configure HPEL with wsadmin scripting
We can configure the High Performance Extensible Logging (HPEL) log and trace framework using wsadmin.sh. Use the examples in this topic as a guide to build our own wsadmin scripts.
Use wsadmin scripting Get started with wsadmin scripting Log level settings