SmartJobGroup - createGroup
SmartJobGroup - createGroup
Description :
This command creates a smart job group with one condition. When you add a new condition, you must specify its operator type. For a complete list of the operator strings, see the SmartServerGroup : addCondition command.
This command returns a handle to the new group.
Return type : DBKey
Command Input :
Variable Name | Variable Type | Description |
|---|---|---|
parentGroupName | String | Fully qualified path to the parent group. |
groupName | String | Name of the smart group you want to create. |
groupDescription | String | Description of the smart group you want to create. |
propClassName | String | Property Class name to be used in the smart group condition. |
propName | String | Property name to be used in the smart group condition. |
operator | String | Operator string to be used in the smart group condition. |
propValue | String | Property value to be used in the smart group condition. |
Example
The following example shows how to create a smart group called allNSH in the /root group. This new group has the condition to select all NSH script jobs whose names start with "nsh."
Script
SmartJobGroup createGroup /root allNSH "all NSH script jobs" "Class://SystemObject/Job/NSH Script Job" Name "starts with" "nsh"