How to change the location of the ITCM logs?
search cancel

How to change the location of the ITCM logs?

book

Article ID: 50521

calendar_today

Updated On:

Products

CA Client Automation - IT Client Manager CA Client Automation

Issue/Introduction

Changing the location of the Client Automation log files is usually needed when traces are needed in DETAIL mode 
and the primary drive on which Client Automation is installed does not have enough free space.

Environment

Client Automation - All versions

Resolution

This change can be done via command line: 

ccnfcmda -cmd SetParameterValue -ps /itrm/trc -pn logfilepath -v "<path_of_the_new_location>" 

Example: 

caf stop
cfSysTray stop
hmAgent stop
ccnfcmda -cmd SetParameterValue -ps /itrm/trc -pn logfilepath -v "E: \ITCMlogs"
caf start

The CAF service must be recycled to apply the change.

Use the command to view the current location of logs:

ccnfcmda -cmd GetParameterValue -ps /itrm/trc -pn logfilepath

Default value -> ..\logs

Note: The command will change location for ALL major plugin logs . Some minor files will remains 
under original path location. For instance you still will see files under the default 
C:\Program Files (x86)\CA\DSM\logs:

TRC_CF_CAF_CMD_0.log 
TRC_CF_CAF_SERVICE_0.log 
TRC_CF_CCNFAGENTAPI_0
TRC_CF_CCNFCMDA_0
TRC_CF_CFTRACECLI_0.log 
TRC_CF_TRACECLI_0.log