How To Add The Domain Name Of The Host To Name Of The Agent
I have been looking for this note for ages : Metalink note 295949.1
Now I know how to rename my targets in Grid Control! the trick is to stop the agent
to remove the upload and state files/subdirectories
to remove the agent in the grid
to edit the targets.xml
to rename your targets (listener, host, db),
and restart your agent
hth
Now I know how to rename my targets in Grid Control! the trick is to stop the agent
AH/emctl stop agent
to remove the upload and state files/subdirectories
cd AH/sysman/emd
find state upload recv agntstmp.txt lastupld.xml protocol.ini -type f -exec rm {} \;
rm -r state/*
to remove the agent in the grid
col TARGET_TYPE for a17
col TARGET_NAME for a60
set lin 100 pages 0 emb on newp none head on autop on
select TARGET_TYPE,TARGET_NAME
from MGMT$TARGET
where TARGET_TYPE='oracle_emd'
order by TARGET_NAME;
var target_name varchar2(40)
prompt Enter the target_name to delete
exec :target_name:='&TARGET_NAME';if (:target_name is not null) then mgmt_admin.cleanup_agent(:target_name); end if
to edit the targets.xml
vi AG/sysman/emd/targets.xml
### Get the source of the traditional vito rename your targets (listener, host, db),
and restart your agent
AH/emctl start agent
hth
2 Comments:
That's cool indeed. Thanks.
Great tip on a common problem!
Post a Comment
<< Home