Database Reference
In-Depth Information
You can also delete individual members, like this:
> emcli delete_target -type = "oracle_listener" -name="LSNRBERTHA"
Target "LSNRBERTHA:oracle_listener" deleted successfully
How to Remove an Enterprise Manager Agent with One Command
Removing an EM agent from Enterprise Manager requires removal of all the targets managed by that agent and all of
their metrics. In the console, this requires multiple deletion actions in roughly reverse order of their discovery.
For instance, when you first deploy an agent to a host, the agent and host become the first and second targets known.
Then you discover and promote other targets residing on the host.
Monitored targets are removed in the reverse order of discovery so that referential data can be removed properly
from the repository database. Target removal must start with the discovered/promoted targets, then the host, and
finally the agent.
The delete_targets verb removes the agent and its monitored targets in just one command if you use the
delete_monitored_targets flag.
> emcli delete_target -name="<Agent Name>"
-type="oracle_emd"
-delete_monitored_targets
-async;
Note
the agent must be stopped prior to deletion.
The process for deleting the agent target type is very similar to that for removing other target types. Since agent
names consist of the host name and agent port number, we'll run get_targets first.
> emcli get_targets | grep -i demohost01
1 Up host demohost01
1 Up oracle_emd demohost01:3872
> emcli delete_target -name="demohost01:3872" -type="oracle_emd" -delete_monitored_targets -async;
Target "LSNRBERTHA:oracle_listener" deleted successfully
Complete removal of the agent involves activities on the management server (OMS) as well as work on the
remote host. See Table 4-1 .
 
 
Search WWH ::




Custom Search