OEM agent was blocked with the following messages in agent log:
...
..
.
2023-12-05 20:16:59,448 [158:905DEBE9] INFO - The agent has been blocked by the OMS.
2023-12-05 20:16:59,448 [158:905DEBE9] INFO - Reason the OMS blocked the agent: Resync
...
..
.
SOLUTION
- Perform agent resynchronization from OEM console.
AND / OR - Modify bounceCtr value in agntstmp.txt file to one less than repository value and save it.
Get Bounce_CTR value from repository database as SYSMAN:
SQL>select BOUNCE_CTR from MGMT_EMD_PING where TARGET_GUID=(select target_guid from mgmt_targets where target_name ='<agent_home>:<port>');
BOUNCE_CTR
29
For a health agent, bounceCtr value in agntstmp.txt file must be at 119.
$emctl stop agent
2. Take backup of file and edit agntstmp.txt from <AGENT_HOME>/agent_inst/sysman/emd/
From
bounceCtr=88
To
bounceCtr=28
3. Save file and start agent
$emctl start agent