I have an Enterprise Manager 13.1 system that is regularly reset to a ‘clean’ state using zfs snapshots. If you already have the management agents installed on other hosts you have the choice of
- De-installing the existing agent and installing a clean one
- Persuading the agent to talk to your ‘new’ server
A way of doing 2) is to follow the steps outlined in the MOS note EM 12c : Redirecting Oracle Management Agent to Another Oracle Management Service (Doc ID 1390717.1) which despite being for 12c appears to work for Enterprise Manager 13.
agent13@$ rm -rf agent_inst agent13@$ mkdir agent_inst agent13@$ /u01/app/agent13/agent_18.104.22.168.0/sysman/install/agentDeploy.sh \ AGENT_BASE_DIR=/u01/app/agent13 OMS_HOST=odc-em-ssc \ EM_UPLOAD_PORT=1159 AGENT_REGISTRATION_PASSWORD=welcome1 \ AGENT_INSTANCE_HOME=/u01/app/agent13/agent_inst \ AGENT_PORT=3872 -configOnly
This takes about 5 minutes to re-configure the agent to talk to the new server and then promote the targets. You will then be prompted to re-run the root.sh associated with the agent’s Oracle Home.