How do you place CAM in debug mode?

Document ID : KB000054683
Last Modified Date : 14/02/2018
Show Technical Document Details

Decsription:

I.E. We're trying to add a UNIX namespace and we're getting a CAM/CAFT timeout when adding the namespace via CA Admin on Windows? How can we get more diagnostic information from this CA shared component to send to support?

Solution:

This procedure will place CAM and caft in debug mode.
It will create 8 files for au, dg, trace with a 20MB size each.

*Please note the procedure is fairly platform independent. If on UNIX, please execute the commands from $CAI_MSQ/bin. Also if on UNIX/LINUX you can edit the $CAI_MSQ/cam.cfg via VI or whatever editor suits you, just as long as the modifications are saved. As always, should you want to disable debug, it's a best practice to make a backup of the cam.cfg to restore to the original version. I.E. restore original $CAI_MSQ/cam.cfg cd to $CAI_MSQ/bin then issue a camclose and cam start.

  1. camsave persist
    (NOTE: Run camsave only if the system doesn't contain the cam.cfg file. The camsave persist will create the cam.cfg file.)

  2. Edit the cam.cfg file
    Modify the following:

    dg_log_files = 8
    dg_log_size = 64
    dg_log = *
    au_log_files = 8
    au_log_size = 256
    au_log = *
    tr_log_files = 8
    tr_log_size = 1024
    tr_log = *
    trace = none

    *AUDIT
    off

    to

    dg_log_files = 8
    dg_log_size = 20480
    dg_log = *
    au_log_files = 8
    au_log_size = 20480
    au_log = *
    tr_log_files = 8
    tr_log_size = 20480
    tr_log = *
    trace=+all-timer

    *AUDIT
    on

  3. camclose

  4. cam start

    ----------------
    The cam debug log file are in %CAI_MSQ%\logs\*.*, for windows and $CAI_MSQ/logs, for UNIX
    ----------------
    Please upload all files to support.
    Please keep in mind that the diagnostics will only be collected on the node in question. So if you're tracing the CAM from Admin to the Endpoint you'd have to invoke debug on both ends and upload both sets of logs.