Renaming Groups in Bulk

Renaming Groups Using an XML File

The XML file created specifically for renaming multiple groups to the eG Enterprise system, should contain entries of the following format:

<?xml version="1.0" encoding="UTF-8"?>

<Group action="rename">

        <Element>

        <groupname><Name of the oldgroup></groupname>

          <newgroupname><Name of the newgroup></newgroupname>

          </Element>

            .

            .

            .

    </Group>

For instance:

<?xml version="1.0" encoding="UTF-8"?>

<Group action="rename">

    <Element>

        <groupname>group3new</groupname>

        <newgroupname>group1</newgroupname>

    </Element>

    <Element>

        <groupname>group2new</groupname>

        <newgroupname>group2</newgroupname>

    </Element>

</Group>

Note that the XML tags are the same as the input parameters of the ‘RenameGroup’ command supported by eG CLI (see Renaming a Group)

Once the XML file is created on the orchestrator’s host, invoke the following command from the orchestrator to update the eG manager with all the modifications contained in the XML file:

egcli renamegroup -managerid <ManagerID> -file <Fullpath_to_the_XML_file>

For example:

egcli renamegroup -managerid mgr153 -file E:\bulkrenamegroup.xml

Note:

  • Every Group specification should be included within the main <Group></Group> block only.
  • A single XML file should not contain more than one <Group></Group> block.
  • An XML file that is created for renaming groups should not include sections pertaining to any other operation.

Renaming Groups Using a CSV File

The CSV file created specifically for renaming multiple groups to the eG Enterprise system, should contain the following entries:

Element,action

Group,rename

groupname,newgroupname

<Names of the old and new Groups>

.

.

.

For instance:

Element,action

Group,rename

groupname,newgroupname

group1,group1new

group2,group2new

group3,group3new

Once the CSV file is created on the orchestrator’s host, invoke the following command from the orchestrator to update the eG manager with all the modifications contained in the CSV file:

egcli renamegroup -managerid <ManagerID> -file <Fullpath_to_the_CSV_file>

For example:

egcli renamegroup -managerid mgr153 -file E:\bulkgrouprename.csv