Import of Groups (Software, Procedure or computers)
search cancel

Import of Groups (Software, Procedure or computers)

book

Article ID: 424161

calendar_today

Updated On:

Products

CA Client Automation - IT Client Manager CA Client Automation

Issue/Introduction

How to import the groups : Computers, Software or Procedure ?

Environment

Client Automation - All Versions

Resolution

Attached script import_group.dms is a DMS script which could be used to import a group or all groups. 
See this article to see how to export the groups : Export of Groups

 

This script could be use for following purpose :

  • Import of a Software or all software groups.
  • Import of a Procedure of all procedure groups.
  • Import of a Computer or all computer groups.

 

This script import the group(s) into the database from .exp files (exported using export_group.dms script)

This script generates a log under <DSM PATH>\logs\import_group.log

 

The syntax of this script is :

SYNTAX :
dmscript.exe import_group.dms Export_File 0|1 [SQLUserName SQLUserPwd]

Export_File : Name export file.
0|1 : Keep Hierarchy 0 or 1 (Default). 0 = groups are imported in root folder. 1 = groups are imported with group structure hierarchy.
Always 1 if the file contains all groups
SQLUserName SQLUserPwd : Optional. SQL UserName and Password of Domain database. Default is logged User.

Examples :
dmscript.exe import_group.dms comp___ALLGROUPS.exp 1
dmscript.exe import_group.dms comp___GROUP1.exp 1 ca_itrm NOT_changedR11
dmscript.exe import_group.dms c:\temp\SOFT___SWGroup1.exp 0
dmscript.exe import_group.dms Proc_Group1
dmscript.exe import_group.dms c:\temp\PROC___PRGroup1.exp 1

 

Examples :

  • Import all Software Groups
    dmscript import_group.dms SOFT___ALLGROUPS.exp 1

 

Remark : Often the script could return error code 7. Look at file <DSM PATH>\logs\import_group.log. Generally it is because a group already exists of a software package does not exist.
The script continues with all other groups even if an error is found.

  • Import GROUP2 and keep the hierarchy (GROUP2 is in GROUP1) :

    dmscript import_group.dms SOFT___GROUP2.exp 1




  • Import GROUP2 and does not keep the hierarchy (GROUP2 is not inside GROUP1)
    dmscript import_group.dms SOFT___GROUP2.exp 0



  • Import all Computer Groups
    dmscript import_group.dms COMP___ALLGROUPS.exp 1 ca_itrm NOT_changedR11


  • Import the computer group "TEST GROUP" without keeping hierarchy
    dmscript import_group.dms "COMP___TEST GROUP.exp" 0


  • Import all Procedure Groups
    dmscript import_group.dms PROC___ALLGROUPS.exp 1
 

Additional Information

See this article for a script to export the groups : Export of Groups

Version History :
import_group.dms - Version 1.0 (12 December 2025)

Attachments

import_group.dms get_app