Associating/Disassociating Agents from Managers in a Redundant Setup

Task Command Example

Associating agents with a manager

eGCLI AssignAgent -managerip <IP of the eG manager to which agents are to be assigned> -agents <Comma-separated list of agents> -managerID <ID of the primary manager>

eGCLI AssignAgent -managerip 192.168.10.173 -agents ora8,gen12 -managerID mgr153

Disassociating agents from a manager

eGCLI UnassignAgent -managerip <IP of the eG manager from which agents are to be delinked> -agents <Comma-separated list of agents> -managerID <ID of the primary manager>

eGCLI UnassignAgent -managerip 192.168.10.173
-agents ora8,gen12 -managerID mgr153

Note:

While issuing a command, if the values you provide for command parameters include any of the special characters, namely -  < (lesser than), > (greater than), - (hyphen), &(ampersand) - then such values should be enclosed within double quotes. For instance, while adding a component of type Sybase (> 12.5), your command specification should be:  

eGCLI AddComponent -componenttype "Sybase (> 12.5)" -hostip 192.168.10.228 -componentname syb228 -port 5000 -externalagents 192.168.10.74,extagnt175 -managerid mgr157