Extended logging and tracing for SDM based attachments
search cancel

Extended logging and tracing for SDM based attachments

book

Article ID: 395587

calendar_today

Updated On:

Products

CA Service Desk Manager CA Service Management - Service Desk Manager

Issue/Introduction

The following article discusses the command needed to enable logging and tracing for attachments via the SDM Classic UI

Environment

Release:  17.4
CA Service Desk Manager

Resolution

The primary command to use is:

pdm_log4j_config -f SDM_WEB -n com.ca.ServicePlus.uploadservlet -l DEBUG -s 30MB

This command will adjust the NX_ROOT\bopcfg\www\CATALINA_BASE\webapps\CAisd\WEB-INF\log4j2.properties file to have the uploadServlet class operate in DEBUG mode.  Only this particular class defined in the log4j2.properties file will be affected.

Logging is recorded in the NX_ROOT\log\jsrvr.log.  The following is sample logging from jsrvr.log during a successful attachment attempt

02/18 21:33:05.641 [http-nio-8080-exec-2] DEBUG UploadServlet 554 Request QueryString: <&ENV_HTTP_PROTOCOL=HTTP/1.1&ENV_DOCUMENT_ROOT=C:\Program Files (x86)\CA\Service Desk Manager\bopcfg\www\CATALINA_BASE\webapps\CAisd\&ENV_HTTP_USER_AGENT=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36&ENV_HTTP_REMOTE_USER=null&ENV_REMOTE_HOST=10.252.156.227&ENV_REMOTE_USER=null&ENV_REQUEST_METHOD=POST&ENV_SCRIPT_NAME=/CAisd/UploadServlet > 

02/18 21:33:05.642 [http-nio-8080-exec-2] DEBUG UploadAttachment 168 Form input field name(inpRetURL) : value(http://SDMSERVER/CAisd/pdmweb.exe?SID=327228407+FID=7912+OP=DISPLAY_FORM+HTMPL=attmnt_upload_done.htmpl+KEEP.AttmntParent=cr:400107

02/18 21:33:05.643 [http-nio-8080-exec-2] DEBUG UploadAttachment 168 Form input field name(inpRespType) : value(URLText) 

02/18 21:33:05.643 [http-nio-8080-exec-2] DEBUG UploadAttachment 168 Form input field name(Test) : value() 

02/18 21:33:05.643 [http-nio-8080-exec-2] DEBUG UploadAttachment 168 Form input field name(inpServerName) : value(SDMSERVER) 

02/18 21:33:05.644 [http-nio-8080-exec-2] DEBUG UploadAttachment 168 Form input field name(inpMaxFileSize) : value(0) 

02/18 21:33:05.644 [http-nio-8080-exec-2] DEBUG UploadAttachment 168 Form input field name(inpBpsid) : value(131715643) 

02/18 21:33:05.644 [http-nio-8080-exec-2] DEBUG UploadAttachment 202 Got file data for (test.txt

The highlighted content is of interest.  Here, it is seen that a call request object (cr) with persid cr:400107 is accessing the attachment servlet hosted on server SDMSERVER and is receiving file test.txt for the attachment.

To turn off the tracing, please run:

pdm_log4j_config -f SDM_WEB -n com.ca.ServicePlus.uploadservlet -l INFO -s 30MB

Additional Information

Additional logging can also be enabled:

The following turns up additional logging that is recorded in the NX_ROOT\log\stdlog files.

pdm_logstat -f RepDaemon.c 300
pdm_logstat -f FileMng.c 300
pdm_logstat -f AttmntMng.c 300
pdm_logstat -f doc_rep.spl 300
pdm_logstat -f ktweb.spl 300

The following enables bop_logging, which is a more in-depth trace facility, and accepts the "-f" argument for the location where the output is written.

bop_logging rep_daemon -f c:\rep.txt -n 10 -m 30000000 ON
bop_logging domsrvr -f c:\dom.txt -n 10 -m 30000000 ON
bop_logging spelsrvr -f c:\spel.txt -n 10 -m 30000000 ON
bop_logging bpvirtdb_srvr -f c:\bpvirtdb.txt -m 10 -m 30000000 ON

To deactivate the above logging:

pdm_logstat -r
bop_logging rep_daemon -f c:\rep.txt -n 10 -m 30000000 OFF
bop_logging domsrvr -f c:\dom.txt -n 10 -m 30000000 OFF
bop_logging spelsrvr -f c:\spel.txt -n 10 -m 30000000 OFF
bop_logging bpvirtdb_srvr -f c:\bpvirtdb.txt -m 10 -m 30000000 OFF

 

In addition, Fiddler traces may also be enabled.  Please see: Troubleshooting Web Browser Problems with Web Viewer and Fiddler