SmartServerGroup - importAndUpdateById
SmartServerGroup - importAndUpdateById
Description :
This command imports a smart server group, and uses that group to update the destination smart server group. At the conclusion of the operation, this command deletes the source smart group in the database. Note that this command does not delete the directory structure and XML files used for the import. If you want to delete the directory structure and XML files from your file system, you must do this manually.
Return type : void
Command Input :
Variable Name | Variable Type | Description |
|---|---|---|
srcObjectDirectory | String | Name of the directory where the group you want to import is located. |
srcObjectMappingFile | String | Location of a mapping file used to resolve any conflicts that occur when importing. |
srcSmartGroupPath | String | Path to the source smart group. |
destSmartGroupId | Integer | ID of the destination smart group. |
Example
The following example imports a smart server group, then uses it to update a destination smart server group.
Script
GROUP_ID=`blcli SmartServerGroup groupNameToId /f1/oldSmartGroup`
blcli SmartServerGroup importAndUpdateById /c/tmp/export_files/newSmartGroup /c/tmp/export_files/newSmartGroup/mapping.xml /f2/newSmartGroup $GROUP_ID