SmartPatchCatalogGroup- resetConditions
SmartPatchCatalogGroup - resetConditions
Description :
This command clears the existing conditions from a Smart Patch Catalog Group, then adds a new condition to that group. 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.
Return type : DBKey
Command Input :
Variable Name | Variable Type | Description |
---|---|---|
groupPath | String | Fully qualified name of the smart group. |
groupTypeString | String | String representation of smart catalog group. |
filterClassName | String | Fully qualified path to the object type filter. |
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 reset conditions on a Smart Patch Catalog Group located at /Workspace/Patch Catalogs/Windows/Old Patches. The new condition includes hotfixes with a DATE_POSTED* property older than 240 days.
Script
blcli SmartPatchCatalogGroup resetConditions "/Workspace/Patch Catalogs/Windows/Old Patches" SMART_WINDOWS_PATCH_CATALOG_GROUP "Class://SystemObject/Depot Object/Software/Win Depot Software/HotFix" "DATE_POSTED*" "older than days" 240
Comments