Setting up profiles to make tracing easier when scripting
Set up a profile to make tracing easier. The following profile example turns tracing on and off:
If you start the wsadmin tool with this profile, you can use the ton command to turn on tracing in the server, the toff command to turn off tracing, and the dt command to dump the Java threads. For more information about running scripting commands in a profile, see the Launching Scripting Clients article.proc ton {} { global AdminControl set ts [lindex [$AdminControl queryNames type=TraceService,*] 0] $AdminControl setAttribute $ts traceSpecification com.ibm.=all=enabled] } proc toff {} { global AdminControl set ts [lindex [$AdminControl queryNames type=TraceService,*] 0] $AdminControl setAttribute $ts traceSpecification com.ibm.*=all=disabled } proc dt {} { global AdminControl set jvm [lindex [$AdminControl queryNames type=JVM,*] 0] $AdminControl invoke $jvm dumpThreads }
Wsadmin tool
IBM is a trademark of the IBM Corporation in the United States, other countries, or both.