Create a Software Deployment Job from the command line
search cancel

Create a Software Deployment Job from the command line

book

Article ID: 97310

calendar_today

Updated On:

Products

CA Client Automation - IT Client Manager CA Client Automation

Issue/Introduction

Is there a way to create a software job from the command line without using the DSM Explorer?

Environment

Client Automation - 14.x

Resolution

Software Jobs can be created using the 'cadsmcmd install' command.

Example 1 - Computer:
Package Details

name = hello

version = 6.0

Source = file "hello.bat"

procedure = hello 

Target Computer to deploy on - HostABC

The command to install the package will be:
cadsmcmd install item="hello" version="6.0" procedure="hello" computer="HostABC" cname="testhello" after="exacttime"

Example 2 - Computer Group
Package Details

name = ALPS

version = 1.0

Source = folder ALPS

procedure = Setup.exe

Target Computer Group to deploy on - Alaska Terminals

The command to install the package will be:
cadsmcmd install item="ALPS" version=1 procedure="Setup.exe" compgrp="Alaska Terminals" after=exacttime jobtimeout=2.0 jcpriority=1 reinstall=y


** Important Note: The 'cadsmcmd' command can be executed only on the Domain Manager or a remote machine installed with the DSM Explorer.

Additional Information

For more information on the parameters that can be used with cadsmcmd, please refer the following link:

Generate and Execute Jobs in Job Containers / Distributions