Renaming Zones in Bulk

Renaming Zones Using an XML File

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

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

<Zone action="rename">
  <Element>

        <zonename><Name of the zone></zonename>

          <newzonename><Name of the newzone></newzonename>
  </Element>

            .

            .

            .

    </Zone>

For instance:

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

<Zone action="rename">

    <Element>

        <zonename>zone3new</zonename>

        <newzonename>zone3</newzonename>

    </Element>

    <Element>

        <zonename>zone2new</zonename>

        <newzonename>zone2</newzonename>

    </Element>

</Zone>

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

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 renamezone -managerid <ManagerID> -file <Fullpath_to_the_XML_file>

For example:

egcli renamezone -managerid mgr153 -file E:\bulkrenamezone.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 renaming Zones should not include sections pertaining to any other operation.

Renaming Zones Using a CSV File

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

Element,action

Zone,rename

zonename,newzonename
Names of the old and new zones>

.

.

.

For instance:

Element,action

Zone,rename

zonename,newzonename

zone1,zone1new

zone2,zone2new

zone3,zone3new

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 renamezone -managerid <ManagerID> -file <Fullpath_to_the_CSV_file>

For example:

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