Steps to enable debug on TE and TA.
SMARTS 10.1.x
To enable debug for Trap Adapter (TA):
a) By default, in <BASEDIR>/smarts/conf/icoi/trap_mgr.conf, below entries are present.
# DEBUG = FALSE
# LOGGING = OFF
b) Use sm_edit to open this file and set the above attributes to below:
<BASEDIR>/smarts/bin#./sm_edit ../conf/icoi/trap_mgr.conf
DEBUG = TRUE
LOGGING = ALL
c) Save and close the file.
d) Restart the TA service for debug flags to take effect.
To enable debug for Trap Exploder (TE):
a) By default, in <BASEDIR>/smarts/rules/trapd/trapParse.asl, below entry is present.
DEBUG = FALSE;
b) Use sm_edit to open this file and set the above attribute to below: <BASEDIR>/smarts/bin#./sm_edit ../rules/trapd/trapParse.asl
DEBUG = TRUE;
c) Save and close the file.
d) Restart the TE service for debug flag to take effect.