How to enable and disable CSAPI debug logging for Symantec Scan Engine (Linux)
search cancel

How to enable and disable CSAPI debug logging for Symantec Scan Engine (Linux)

book

Article ID: 156336

calendar_today

Updated On:

Products

Protection Engine for Cloud Services Scan Engine Protection Engine for NAS

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

  1. Log in to SPE host with root privilege.
  2. Stop SPE.

    # /etc/init.d/symcscan stop
     
  3. 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
     
  4. 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 )

     
  5. 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 

  1. On the previous shell window, stop SPE

    # /etc/init.d/symcscan stop
     
  2. Remove shell varilables

    # unset CSAPI_DEBUG_LOG
    # unset CSAPI_DEBUG_LEVEL
    # unset CSAPI_DEBUG_FILE_SIZE_LIMIT
     
  3. Start SPE

    #  /etc/init.d/symcscan start
     
  4. 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