Mir Sayeed Hassan – Oracle Blog

Oracle DBA – Tips & Techniques | Learn with real-time examples

  • Translate

  • It’s Me






  • My Certificates

  • Links

    My Acclaim Certification : Credly Profile
    My Oracle ACE Pro Profile

  • Achievements

    Awarded Top 100 Oracle Blogs from Worldwide - #RANK 39
  • VISITORS COUNT

  • Verified International Academic Qualification from World Education Service (WES)

    Verified International Academic Qualification from World Education Service (WES)

  • Jobs

OEM Fix For Agent Shows Availability Evaluation Error

Posted by Mir Sayeed Hassan on March 9th, 2021

OEM Fix For Agent Shows Availability Evaluation Error

This error occur in one of our database after adding and agent into it

Locate to the agent bin location and check the current status

[oracle@test-db ~]$ cd /home/oracle/OEM13.4/agent_inst/bin/
[oracle@test-db bin]$ ls
emctl emtgtctl forwarderProxy nmosudo.props

Check the status of agent

[oracle@test-db bin]$ ./emctl status agent
Oracle Enterprise Manager Cloud Control 13c Release 4
Copyright (c) 1996, 2020 Oracle Corporation. All rights reserved.
---------------------------------------------------------------
Agent Version : 13.4.0.0.0
OMS Version : 13.4.0.0.0
Protocol Version : 12.1.0.1.0
Agent Home : /home/oracle/OEM13.4/agent_inst
Agent Log Directory : /home/oracle/OEM13.4/agent_inst/sysman/log
Agent Binaries : /home/oracle/OEM13.4/agent_13.4.0.0.0
Core JAR Location : /home/oracle/OEM13.4/agent_13.4.0.0.0/jlib
Agent Process ID : 60823
Parent Process ID : 60626
Agent URL : https://172.16.13.41:3872/emd/main/
Local Agent URL in NAT : https://172.16.13.41:3872/emd/main/
Repository URL : https://oemdb:4903/empbs/upload
Started at : 2021-03-06 18:11:15
Started by user : oracle
Operating System : Linux version 3.8.13-68.3.4.el6uek.x86_64 (amd64)
Number of Targets : (none)
Last Reload : (none)
Last successful upload : (none)
Last attempted upload : (none)
Total Megabytes of XML files uploaded so far : 0
Number of XML files pending upload : 0
Size of XML files pending upload(MB) : 0
Available disk space on upload filesystem : 18.90%
Collection Status : Collections enabled
Heartbeat Status : Ok
Last attempted heartbeat to OMS : 2021-03-06 18:20:19
Last successful heartbeat to OMS : 2021-03-06 18:20:19
Next scheduled heartbeat to OMS : 2021-03-06 18:21:19

---------------------------------------------------------------
Agent is Running and Ready

Note: The agent is current running & ready but we find that the ‘Last successful upload’ is ‘(none)’, it is supposed to be a valid date & time.

Fallow the below steps to resolve this issue.

[oracle@test-db bin]$ ./emctl config agent addinternaltargets
Oracle Enterprise Manager Cloud Control 13c Release 4
Copyright (c) 1996, 2020 Oracle Corporation. All rights reserved.

Secure the agent

[oracle@test-db bin]$ ./emctl secure agent
Oracle Enterprise Manager Cloud Control 13c Release 4
Copyright (c) 1996, 2020 Oracle Corporation. All rights reserved.
Agent successfully stopped... Done.
Securing agent... Started.
Enter Agent Registration Password :
Agent successfully restarted... Done.
Securing agent... Successful.

Configure the agent with listtargets

[oracle@test-db bin]$ ./emctl config agent listtargets
Oracle Enterprise Manager Cloud Control 13c Release 4
Copyright (c) 1996, 2020 Oracle Corporation. All rights reserved.

Stop the running agent

[oracle@test-db bin]$ ./emctl stop agent
Oracle Enterprise Manager Cloud Control 13c Release 4
Copyright (c) 1996, 2020 Oracle Corporation. All rights reserved.
Stopping agent ... stopped.
[oracle@test-db bin]$ ./emctl secure agent
Oracle Enterprise Manager Cloud Control 13c Release 4
Copyright (c) 1996, 2020 Oracle Corporation. All rights reserved.
Agent is already stopped... Done.
Securing agent... Started.
Enter Agent Registration Password :
Securing agent... Successful.

Clear the agent

[oracle@test-db bin]$ ./emctl clearstate agent
Oracle Enterprise Manager Cloud Control 13c Release 4
Copyright (c) 1996, 2020 Oracle Corporation. All rights reserved.
EMD clearstate completed successfully
[oracle@test-db bin]$ ./emctl secure agent
Oracle Enterprise Manager Cloud Control 13c Release 4
Copyright (c) 1996, 2020 Oracle Corporation. All rights reserved.
Agent is already stopped... Done.
Securing agent... Started.
Enter Agent Registration Password :
Securing agent... Successful.

Start the agent

[oracle@test-db bin]$ ./emctl start agent
Oracle Enterprise Manager Cloud Control 13c Release 4
Copyright (c) 1996, 2020 Oracle Corporation. All rights reserved.
Starting agent ........ started.

Check the status of agent

[oracle@test-db bin]$ ./emctl status agent
Oracle Enterprise Manager Cloud Control 13c Release 4
Copyright (c) 1996, 2020 Oracle Corporation. All rights reserved.
---------------------------------------------------------------
Agent Version : 13.4.0.0.0
OMS Version : 13.4.0.0.0
Protocol Version : 12.1.0.1.0
Agent Home : /home/oracle/OEM13.4/agent_inst
Agent Log Directory : /home/oracle/OEM13.4/agent_inst/sysman/log
Agent Binaries : /home/oracle/OEM13.4/agent_13.4.0.0.0
Core JAR Location : /home/oracle/OEM13.4/agent_13.4.0.0.0/jlib
Agent Process ID : 27053
Parent Process ID : 26691
Agent URL : https://172.16.13.41:3872/emd/main/
Local Agent URL in NAT : https://172.16.13.41:3872/emd/main/
Repository URL : https://oemdb:4903/empbs/upload
Started at : 2021-03-06 18:25:23
Started by user : oracle
Operating System : Linux version 3.8.13-68.3.4.el6uek.x86_64 (amd64)
Number of Targets : (none)
Last Reload : (none)
Last successful upload : 2021-03-06 18:25:27
Last attempted upload : 2021-03-06 18:25:27
Total Megabytes of XML files uploaded so far : 0
Number of XML files pending upload : 0
Size of XML files pending upload(MB) : 0
Available disk space on upload filesystem : 18.99%
Collection Status : Collections enabled
Heartbeat Status : Ok
Last attempted heartbeat to OMS : 2021-03-06 18:25:26
Last successful heartbeat to OMS : 2021-03-06 18:25:26
Next scheduled heartbeat to OMS : 2021-03-06 18:26:26

---------------------------------------------------------------
Agent is Running and Ready

====Hence tested & Verified in our test env====