Ref:
OEM 13c : Remove Target with EMCLI Terminal session
https://dbafaq.wordpress.com/2016/03/15/oem-13c-remove-target-with-emcli-terminal-session/
主要是因為DB資料庫設備搬遷以後, 舊的IP已經連接不到主機了
所以需要透過指令方式刪掉該台主機
[oracle@oem_server bin]$ /u01/app/oracle/product/oms/bin/emcli login -username=sysman
Enter password
Login successful
[oracle@oem_server bin]$ ./emcli get_targets |grep 10.
-bash: ./emcli: No such file or directory
[oracle@oem_server bin]$ /u01/app/oracle/product/oms/bin/emcli get_targets |grep 192.168
4 Agent Unreachab host 192.168.0.x
4 Agent Unreachab oracle_emd 192.168.0.x:3872
1 Up oracle_emd
[oracle@oem_server bin]$ /u01/app/oracle/product/oms/bin/emcli delete_target -name="192.168.0.x" -type="host" -delete_monitored_targets
Host target cannot be deleted via this command. Host target can only be removed
when decommissioning an Agent from Enterprise Manager.
Follow these steps to decommission the Agent, which removes all targets,
including host monitored by it:
1. Navigate to the Agents home page.
2. Decommission the Agent via clicking on Agent -> Target Setup -> Agent
Decommission.
[oracle@oem_server bin]$ /u01/app/oracle/product/oms/bin/emcli delete_target -name="192.168.0.x:3872" -type="oracle_emd" -delete_monito
red_targets
Target "192.168.0.x:3872:oracle_emd" deleted successfully
[oracle@oem_server bin]$
最後再回到OEM 13c畫面, 從[Targets] ->[All Targets]去搜尋該台主機
發現已經成功拿掉了.
發現已經成功拿掉了.
沒有留言:
張貼留言