cadsmcmd command fails where item value contains "\"
search cancel

cadsmcmd command fails where item value contains "\"

book

Article ID: 70241

calendar_today

Updated On:

Products

CA Client Automation - IT Client Manager CA Client Automation

Issue/Introduction

cadsmcmd fails where item value contains “:\

Example:

Package Details
name = hello C:\
version = 6.0
Source = file hello.bat
procedure = hello 

C:\> cadsmcmd install version="6.0" procedure="hello" computer="<computername>" cname="testhello" after="exacttime" unsealed nolinkage item="hello c:\"

CA IT Client Manager r12
ITCM Command Line Version 12.8.0.690
Copyright (c) 2013 CA. All rights reserved.

Trace mode: Off
Connecting to manager "<default manager>" as user "<default user>" ...OK.
Manager: Test123.ca.com
Domain: Test123
Domain type: Domain
Supporting: CO CCNF USD OSIM AM
SDCMD<A000101>: Software does not exist

The command with “:\” fails



Environment

Client Automation - 14.x
 

Resolution

"\" is considered as an escape character. For it to be used as an argument in the cadsmcmd command, it should be prefixed with another "\" as the argument i.e., “\\”

In this example the command would be:

C:\> cadsmcmd install version="6.0" procedure="hello" computer="<computername>" cname="testhello" after="exacttime" unsealed nolinkage item="hello c:\\"