HOWTO: Enabling/Disabling CSAPI debug logging

Article:TECH187537  |  Created: 2012-04-27  |  Updated: 2014-04-07  |  Article URL http://www.symantec.com/docs/TECH187537
Article Type
Technical Solution


Issue



As instructed by Symantec's support engineer, you want to know how to enable and disable CSAPI debug logging feature.


Environment



  • SSE 5.2.5 or later running on Solaris or Linux (CSAPI 9.0 or later)

Solution



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 SSE host with root privilege.
  2. Stop SSE.

    # /etc/init.d/symcscan stop
     
  3. Set the following shell variables. Note that no spaces is allowed before and after the equal sign.

    # CSAPI_DEBUG_LOG=/var/log/csapi.log
    # CSAPI_DEBUG_LEVEL=5
    # CSAPI_DEBUG_FILE_SIZE_LIMIT=104857600
    # CSAPI_DEBUG_SECTION=2307
     
  4. Start symcscan.

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

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

    # unset CSAPI_DEBUG_LOG
    # unset CSAPI_DEBUG_LEVEL
    # unset CSAPI_DEBUG_SECTION
    # unset CSAPI_DEBUG_FILE_SIZE_LIMIT
     
  3. Start SSE

    #  /etc/init.d/symcscan start
     
  4. Submit the resulting CSAPI log (/var/log/csapi.log) to Symantec Support Engineer.
     

 





Article URL http://www.symantec.com/docs/TECH187537


Terms of use for this information are found in Legal Notices