How to debug CADSMCMD commands

book

Article ID: 39880

calendar_today

Updated On:

Products

CA Automation Suite for Data Centers - Configuration Automation CA Client Automation - Asset Management CA Client Automation - IT Client Manager CA Client Automation CA Client Automation - Remote Control CA Client Automation - Asset Intelligence CA Client Automation - Desktop Migration Manager CA Client Automation - Patch Manager

Issue/Introduction

Introduction:

 
In case of problem with cadsmcmd it could be interesting to check the logs generated by this command.
This documentation describes how to enable the traces for cadmscmd and where are the different logs generated by this command.
 

Instructions: 

 cadsmcmd could generate logs in different locations :

 
  • Logs of command cadsmcmd are TRC_USD_CADSMCMD_*.log located under DSM\logs. It is possible to put this module in DETAIL level with these commands :

cftrace -c add -f USD -pp SD_CONFIG -lf TRC_USD_CADSMCMD.log

cftrace -c set -l DETAIL -s 30000 -f USD -ln 10 -pp SD_CONFIG

 

<Please see attached file for image>

1.jpg

 

 

  • Following environment variables could be set before executing the cadsmcmd command in order to get detailed logs on executed commands

SET SDCMD_TRACE=file

 

SET SDCMD_FILE=C:\TEMP\cadsmcmd.txt

 

<Please see attached file for image>

2.jpg

 

The file C:\temp\cadsmcmd.txt contains debug log of different actions executed by cadsmcmd

 

  • cadsmcmd communicates with process SD APISERVER in order to execute the actions.

logs TRC_USD_APISERVER*.log could also be analyzed in case of problem with CADSMCMD commands

 

 
 

Environment

Release: UASIT.99000-12.8-Asset Intelligence
Component:

Attachments

1558719486924000039880_sktwi1f5rjvs16vcs.jpeg get_app
1558719485001000039880_sktwi1f5rjvs16vcr.jpeg get_app