Previous Topic: listCG—List Catalog GroupNext Topic: removeCG—Remove Catalog Group


Example

To see all catalog groups defined, enter the following command:

cadsmcmd swlibrary action=listCG
CA IT Client Manager r12
ITCM Command Line Version 12.8.0.xxxx
Copyright (c) 2014 CA. All rights reserved.
Trace mode: FILE
Trace file name: C:\ProgramFiles\CA\DSM\SD\..\logs\cadsmcmd.log

Connecting to manager "<default manager>" as user "<default user>" ... ok.
Manager: mymanager
Domain: mydomain
Domain type: Domain
Supporting: CO CCNF USD OSIM 
-------------------------------------------------------------------------------
List of catalog groups
-------------------------------------------------------------------------------
c_grp (cgrp, local)
q_grp (qgrp, local)
t_grp (tgrp, local)
SDCMD<A000000>: OK

If the products assigned to the catalog groups should also be listed, then the following command should be launched:

cadsmcmd swlibrary action=listCG detailed
CA IT Client Manager r12
ITCM Command Line Version 12.8.0.xxxx
Copyright (c) 2014 CA. All rights reserved.
Trace mode: FILE
Trace file name:C:\ProgramFiles\CA\DSM\SD\..\logs\cadsmcmd.log
Connecting to manager "default manager" as user "<default user>" ...OK.
Manager:mymanager
Domain:mydomain
Domain type:Domain
Supporting:CO CCNF USD OSIM
-------------------------------------------------------------------------------
List of catalog groups
-------------------------------------------------------------------------------
c_grp (cgrp, local)
..DMS Editor 6.01.0000 <MSI>, <Regular>, 22422<0>, CA, http://supportconnect.ca.com/
q_grp (qgrp, local)
..DM Script Generator 4.0 <Generic>, <Regular>, 22722<0>, CA, http://supportconnect.ca.com/
t_grp (tgrp, local)
..SD Boot Server Extension for WinNT/W2K 4.0 <Generic>, <Regular>, 22922<0>, CA, http://supportconnect.ca.com/
SDCMD<A000000>: OK

Now assume the catalog group "t_grp" has become obsolete and therefore should be removed. In addition, a new catalog group should be added for the computer group tq_grp. The following commands provide this reorganization:

cadsmcmd swlibrary action=removeCG name=t_grp
cadsmcmd swlibrary action=createCG name=tq_grp

To add the item "Data Transport Service for Win32" of Version "2.0 SP1 ENU" to the catalog group tq_grp the following command can be entered:

cadsmcmd swlibrary action=addItemToSWG name=tq_grp item="Data Transport Service for Win32" version="2.0 SP1 ENU" 

You can remove items from a catalog group using the action removeItemFromSWG.

The catalog list now goes as follows:

cadsmcmd swlibrary action=listCG detailed
CA IT Client Manager r12
ITCM Command Line Version 12.8.0.xxxx
Copyright (c) 2014 CA. All rights reserved.
Trace mode: FILE
Trace file name: C:\ProgramFiles\CA\DSM\SD\..\logs\cadsmcmd.log
Connecting to manager "default manager" as user "<default user>" ...OK.
Manager:mymanager
Domain:mydomain
Domain type:Domain
Supporting:CO CCNF USD OSIM

-------------------------------------------------------------------------------
List of catalog groups
-------------------------------------------------------------------------------
c_grp (cgrp, local)
..DMS Editor 6.01.0000 <MSI>, <Regular>, 22422<0>, CA, http://supportconnect.ca.com/
q_grp (qgrp, local)
..DM Script Generator 4.0 <Generic>, <Regular>, 22722<0>, CA, http://supportconnect.ca.com/
tq_grp (tgrp, local)
..Data Transport Service for Win32 2.0 SP1 ENU <Generic>, <Regular>, 22922<0>, CA, http://supportconnect.ca.com/
SDCMD<A000000>: OK