Deleting Remote Agents in Bulk

Remote Agent Deletion Using an XML File

The XML file that is specifically created for deleting a number of remote agents in bulk, should contain the following entries:

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

    <RemoteAgent action="delete">

        <Agent>

        <Nick name of Remote Agent1>

        </Agent>

        <Agent>

        <Nick name of Remote Agent2>

        </Agent>

            .

            .

            .

    </RemoteAgent>

For instance:

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

    <RemoteAgent action="delete">

        <Agent>

        <agentname>rem8</agentname>

        </Agent>

        <Agent>

        <agentname>rem10</agentname>

        </Agent>

    </RemoteAgent>

After creating the XML file on the orchestrator host, invoke the following command from the automation tool to extract the remote agent details from the XML file and add these remote agents to the eG Enterprise system:

eGCLI DelRemoteAgent -managerid <ManagerID> -file <Fullpath_to_the_XML_file>

For example:

eGCLI DelRemoteAgent -managerID mgr153 -file c:\delremagent.xml

Remote Agent Deletion Using a CSV File

The CSV file that is specifically created for deleting a number of remote agents in bulk, should contain the following entries:

Element,action

RemoteAgent,delete

agentname

<Nickname of remote agent1>

<Nickname of remote agent2>

<Nickname of remote agent3>

For instance:

Element,action

RemoteAgent,delete

agentname

rem8

rem10

ext12

After creating the CSV file on the orchestrator host, invoke the following command from the automation tool to extract the remote agent details from the CSV file and add these remote agents to the eG Enterprise system:

eGCLI DelRemoteAgent -managerid <ManagerID> -file <Fullpath_to_the_CSV_file>

For example:

eGCLI DelRemoteAgent -managerID mgr153 -file c:\delremagent.csv