Adding Zones Using an XML File
The XML file created specifically for adding multiple Zones to the eG Enterprise system, should contain entries of the following format:
<?xml version="1.0" encoding="UTF-8"?>
<Zone action="add">
<Element>
<elements><comma-separated list of elements></elements>
<zonename><Name of the zone></zonename>
</Element>
<Element>
<elements><comma-separated list of elements></elements>
<zonename><Name of the zone></zonename>
</Element>
.
.
.
</Zone>
Note that the elements should be specified in the format:<Component Type>:<component name>:<Port>
For instance:
<?xml version="1.0" encoding="UTF-8" ?>
<Zone action="add">
<Element>
<elements>2x client gateway:client1:80,2x client gateway:client2:80,2x Publishing Agent:agent1:20002</elements>
<zonename>zone1</zonename>
</Element>
<Element>
<elements>Group:group1</elements>
<zonename>zone2</zonename>
</Element>
<Element>
<elements>Service:service1</elements>
<zonename>zone3</zonename>
</Element>
</Zone>
Note that the XML tags are the same as the input parameters of the ‘AddZone’ command supported by eG CLI (see Adding a Zone)
Once the XML file is created on the orchestrator’s host, invoke the following command from the orchestrator to add multiple zones to the eG Enterprise system:
egcli addZone -managerid <ManagerID> -file <Fullpath_to_the_XML_file>
For example
egcli addzone -managerid mgr153 -file E:\bulkgroupadd.xml
Note:
- Every Zone specification should be included within the main <Zone></Zone> block only.
- A single XML file should not contain more than one <Zone></Zone> block.
- An XML file that is created for adding Zones should not include sections pertaining to any other operation.
Adding Zones Using a CSV File
The CSV file created specifically for adding multiple Zones to the eG Enterprise system, should contain the following entries:
Element,action
Zone,add
zonename,elements
zone1,“<comma-separated list of elements>”
zone2,“<comma-separated list of elements>”
zone3,“<comma-separated list of elements>”.
.
.
.
.
Note that the elements should be specified in the format:<Component Type>:<component name>:<Port>
For instance:
Element,action
Zone,add
zonename,elements
zone1,"2x client gateway:client1:80,2x client gateway:client2:80,2x client gateway:client3:80"
zone2,Group:group1
zone3,Segment:segment1
Once the CSV file is created on the orchestrator’s host, invoke the following command from the orchestrator to add multiple zones to the eG Enterprise system:
egcli addzone -managerid <ManagerID> -file <Fullpath_to_the_CSV_file>
For example:
egcli addzone -managerid mgr153 -file E:\bulkzoneadd.csv