Ian_Geglia_179

Standard rolling trace on the WPs

Discussion created by Ian_Geglia_179 on Jun 24, 2016
Latest reply on Jun 26, 2017 by Harriet_Kim_1764

Create a Timed Event that is repeated every X number of minutes. The X should be something like 3-5 minutes. Here is the script to use:

Process tab:
!Set a DB=4 and TCP/IP=2 trace on the WPs
!Get System Name
:SET &TRC# = GET_UC_SYSTEM_NAME()
!Turn on tracing for WPs
:SET_UC_SETTING SET_TRACE, &TRC#, "2400000000000000"


!Process tab:
!Get System Name
:SET &TRC# = GET_UC_SYSTEM_NAME()
!Turn off tracing on WPs
:SET_UC_SETTING SET_TRACE, &TRC#, "0000000000000000"
!Turn on tracing for WPs
:SET_UC_SETTING SET_TRACE, &TRC#, "2400000000000000"

Couple things to keep in mind. This will create 10 trace logs. After it reaches 10 they will start to roll off. So if you set the X as 3 minutes all 10 trace files would cover a range of 30 minutes. In other words, you would need to disable the trace within 30 minutes of the problem or the log with the error would roll off the server. Of course you can increase the X to a higher value but then you get huge trace files but they would cover a longer period of time.

Outcomes