[[email protected] ~]$ cd /oem/oms/oms/bin
登录到oms中
[[email protected] bin]$ ./emcli login -username=sysman
Enter password :
Login successful
同步信息
[[email protected] bin]$ ./emcli sync
Synchronized successfully
获取当前该主机mwtest02的agent所关联的targets
[[email protected] bin]$ ./emcli get_targets | grep mwtest02
5 Under Blackout host mwtest02
5 Under Blackout oracle_emd mwtest02:3872
执行删除操作,并关联所有相关targets
[[email protected] bin]$ ./emcli delete_target -name=‘mwtest02:3872‘ -type=‘oracle_emd‘ -delete_monitored_targets
Target "mwtest02:3872:oracle_emd" deleted successfully
确认
[[email protected] bin]$ ./emcli get_targets | grep mwtest02
登出
[[email protected] bin]$ ./emcli logout
Logout successful
[[email protected] bin]$