Previous Topic: create—Create a Template Group / Software TemplateNext Topic: delete—Delete Software Template


Example

Suppose a software template is needed that meets the following requirements:

The following command will create this group:

cadsmcmd templateGroup action=create name=tgg transaction cascade "setup&activate_jobs" query="Target.Address MATCHES '172.16.213.*' AND (Target.OS='Win NT Intel' OR Target.OS='Win 2000 Intel' OR Target.OS='Win XP Intel')" evaluationPeriod=48 calendarName=tgCal

To control the actual list of software template , the following command lists all software template defined at the server:

cadsmcmd templateGroup action=list

CA IT Client Manager r12
ITCM Command Line Version 12.8.0.xxxx
Copyright (c) 2014 CA. All rights reserved.

Trace mode: Off

Connecting to manager "<default manager>" as user "<default user>" ... ok.
Manager: mymanager
Domain: mydomain
Domain type: Domain
Supporting: CO CCNF USD OSIM 

-------------------------------------------------------------------------------
List of template groups
-------------------------------------------------------------------------------
TG_KKKKK01A (local, query)
tgg (local, query)
tgs (local)
tg (local)
-------------------------------------------------------------------------------
Number of software templates found: 4
SDCMD<A000000>: OK

For controlling the attributes of the created software template the following command will return the attribute settings of the group:

cadsmcmd templateGroup action=showAttr name=tgg

CA IT Client Manager r12
ITCM Command Line Version 12.8.0.xxxx
Copyright (c) 2014 CA. All rights reserved.

Trace mode: Off

Connecting to manager "<default manager>" as user "<default user>" ... ok.
Manager: mymanager
Domain: mydomain
Domain type: Domain
Supporting: CO CCNF USD OSIM 

-------------------------------------------------------------------------------
Show attributes of template group "tgg" 
-------------------------------------------------------------------------------
Name of template.group.................: tgg
Group type.............................: Query/Template group 
Scope..................................: Local
Query..................................: USD_tgg [04/09/05 13:53:49.916]
Comment................................:
Engine name............................: <All Engines>
Engine Period (minutes)................: 1
Creation date..........................: 2005-04-09
Creation time..........................: 13:53
Change date............................: 2005-04-09
Change time............................: 13:53
Name of template.......................: tgg [$date $time]
..Scope................................: Local
..State................................: Diabled
..Job container priority...............: 5
..Sealed...............................: No
..Comment..............................: 
..Properties of the template...........: 148
.........................................Transaction
.........................................Cascade install
.........................................Job setup and activation in case of nonc
.........................................+ onformity
Calendar name..........................: tgCal
Evaluation period......................: 48
Next evaluation date...................: 2005-04-09
Next evaluation time...................: 13:32
Last evaluation date...................: 2005-04-09
Last evaluation time...................: 13:53
Evaluation type mask...................: 196609
.........................................Periodical
.........................................Query evaluation
.........................................Template evaluation

SDCMD<A000000>: OK