Adding Groups in Bulk

Adding Groups Using an XML File

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

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

<Group action="add">

        <Element>

        <elements><comma-separated list of elements></elements>

        <groupname><Name of the group></groupname>

          </Element>

        <Element>

        <elements><comma-separated list of elements></elements>

        <groupname><Name of the group></groupname>

          </Element>

            .

            .

            .

    </Group>

 

Note that the elements should be specified in the format:<Component Type>:<component name>:<Port>

For instance:

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

<Group action="add">

        <Element>

        <elements>2x client gateway:client1:80,2x client
gateway:client2:80,2x Publishing Agent:agent1:20002</elements>

        <groupname>Group1</groupname>

          </Element>

          <Element>

        <elements>Microsoft Windows:wincli1,Microsoft Windows:wincli2
Microsoft Windows:wincli3</elements>

        <groupname>Group2</groupname>

          </Element>

          <Element>

        <elements>2x Publishing Agent:agent1:20002,2x
Agent:agent2:20002,2x client gateway:client3:80</elements>

        <groupname>Group3</groupname>

          </Element>

     </Group>                                                            

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

Once the XML file is created on the orchestrator’s host, invoke the following command from the orchestrator to add multiple groups to the eG Enterprise system:

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

For example

egcli addgroup -managerid mgr153 -file E:\bulkgroupadd.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 adding groups should not include sections pertaining to any other operation.

Adding Groups Using a CSV File

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

Element,action

Group,add

groupname,elements

group1,“<comma-separated list of elements>”

group2,“<comma-separated list of elements>”

group3,“<comma-separated list of elements>”

Note that the elements should be specified in the format:<Component Type>:<component name>:<Port>

For instance:

Element,action

Group,add

groupname,elements

group1,"2X Client Gateway:client1:80,2X Client Gateway:client2:80,2X Client Gateway:client3:80"

group2,"2X Publishing Agent:agent1:20002,2X Publishing Agent:agent2:20002,2X Publishing Agent:agent3:20002"

group3,"Microsoft Windows:wincli1,Microsoft Windows:wincli2,Microsoft Windows:wincli3"

Once the CSV file is created on the orchestrator’s host, invoke the following command from the orchestrator to add multiple groups to the eG Enterprise system:

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

For example:

egcli addgroup -managerid mgr153 -file E:\bulkgroupadd.csv