Reading my old
script to toggle AE server tracing, I discovered that I knew the answer a couple of years ago, but had forgotten. :D In short, it
is possible to use the scripting command to enable or disable tracing on WPs or CPs. The documentation for
SET_UC_SETTING
is incomplete and potentially confusing though, so I will clarify how it works here.
First, the documentation does not clearly describe how to specify the
Component when enabling or disabling tracing. For WPs, it’s all or nothing, so the
component specified must be the
system name. For CPs, one can enable/disable tracing only on a per-CP basis, so the
component specified must the the
CP process name.
- All WPs:
SET_UC_SETTING SET_TRACE system_nametrace_flags
Example:
SET_UC_SETTING SET_TRACE &$SYSTEM# "2400000000000000"
- One CP:
SET_UC_SETTING SET_TRACE CP_name
trace_flags
Example:
SET_UC_SETTING SET_TRACE AE_DEV#CP001 "2400000000000000"
Second, several new optional parameters added in a recent release are not well documented. These affect only the form of the command that users the
SET_TRACE
keyword.
I added the examples above, and a suggestion for how to describe the new
SET_TRACE
parameters, in [DEAD LINK
https://community.automic.com/discussion/comment/32103/#Comment_32103]a comment on the documentation page.