Deleting External Agents in Bulk
External Agent Deletion Using an XML File
The XML file that is specifically created for deleting a number of external agents in bulk, should contain the following entries:
<?xml version="1.0" encoding="UTF-8"?>
<ExternalAgent action="delete">
<Agent>
<Nick name of External Agent1>
</Agent>
<Agent>
<Nick name of External Agent2>
</Agent>
.
.
.
</ExternalAgent>
For instance:
<?xml version="1.0" encoding="UTF-8"?>
<ExternalAgent action="delete">
<Agent>
<agentname>ext8</agentname>
</Agent>
<Agent>
<agentname>ext10</agentname>
</Agent>
</ExternalAgent>
Once the XML file is created on the orchestrator’s host, invoke the following command from the orchestrator to delete multiple external agents from the eG Enterprise system:
eGCLI DelExternalAgent -managerid <ManagerID> -file <Fullpath_to_the_XML_file>
For example:
eGCLI DelExternalAgent -managerID mgr153 -file c:\delextagent.xml
External Agent Deletion Using a CSV File
The CSV file that is specifically created for deleting a number of external agents in bulk, should contain the following entries:
Element,action
ExternalAgent,delete
agentname
<Nickname of external agent1>
<Nickname of external agent2>
<Nickname of external agent3>
For instance:
Element,action
ExternalAgent,delete
agentname
ext8
ext10
ext12
Once the CSV file is created on the orchestrator’s host, invoke the following command from the orchestrator to remove multiple external agents from the eG Enterprise system:
eGCLI DelExternalAgent -managerid <ManagerID> -file <Fullpath_to_the_CSV_file>
For example:
eGCLI DelExternalAgent -managerID mgr153 -file c:\remextagent.csv