Command to create static and dynamic groups in DSM

Document ID : KB000025671
Last Modified Date : 14/02/2018
Show Technical Document Details

Question:  

 In CA Client Automation what is the command used to create static and dynamic groups ? 

Answer: 

cadsmcmd.exe can be used to create both static and dynamic computer groups

The full reference guide for r14 cadsmsmd is available here

Static Group:

  • cadsmcmd compgroup action=create name=<Group Name>

Dynamic Group:

  • cadsmcmd compgroup action=create name<Group Name> queryname=<Query Name> engineName=<query engine> enginePeriod=<evaluation frequency>

the parameters engineName and enginePeriod are optional.

  • If engineName is not defined then any available engine will be used. 
  • If engineName is defined but enginePeriod is not then a default of 1 minute is assumed.
    • enginePeriod is only relevant if engineName is defined.

There are other parameters that can be defined including making the new group a sub group and in the case of a static group, which computers should be added. Please see the command reference guide for full details on all the available parameters.