How to enable and disable CSAPI debug logging for Symantec Scan Engine (Linux)
book
Article ID: 156336
calendar_today
Updated On: 02-07-2024
Products
Protection Engine for Cloud Services
Scan Engine
Protection Engine for NAS
Show More
Show Less
Issue/Introduction
As instructed by Symantec's support engineer, you want to know how to enable and disable CSAPI debug logging feature.
Environment
Symantec Scan Engine (SSE) versions 5.2.5 through Symantec Protection Engine (SPE) 7.5.x running on Solaris or Linux (CSAPI 9.0 or later)
Resolution
IMPORTANT
This procedure requires symcscan service to restart twice.
CSAPI logging should be turned on/off as requested by Symantec's support Engineer, and should be enabled within a reasonablly short period.
How to enable CSAPI debug logging
Log in to SPE host with root privilege.
Stop SPE. # /etc/init.d/symcscan stop
Set the following shell variables. Note that no spaces are allowed before and after the equal sign. # export CSAPI_DEBUG_LOG=/var/log/csapi.log # export CSAPI_DEBUG_LEVEL=5 # export CSAPI_DEBUG_FILE_SIZE_LIMIT=104857600
Start symcscan. # /etc/init.d/symcscan start (Note : In some deployments, such as SPE in AWS, the previous command sometimes doesn't cause the settings to take effect. Instead try /opt/SYMCScan/bin/symcscan.sh restart )
See if the log is generated.IMPORTANT: DO NOT close this shell window until the logging is disabled. # tail -f /var/log/csapi.log
How to disable CSAPI debug logging
On the previous shell window, stop SPE # /etc/init.d/symcscan stop
Remove shell varilables # unset CSAPI_DEBUG_LOG # unset CSAPI_DEBUG_LEVEL # unset CSAPI_DEBUG_FILE_SIZE_LIMIT
Start SPE # /etc/init.d/symcscan start
Submit the resulting CSAPI log (/var/log/csapi.log) to Symantec Support Engineer.
Additional Information
Wrong version?
For SPE 7.8 and later, see 164895
Feedback
Was this article helpful?
thumb_up
Yes
thumb_down
No