Tag Archives: emctl status agent

Apply Patch on Agent 13.1

Apply Patch on Oracle Management Agent 13c Release 1 (13.1.0.0.0)

Table of Contents
_________________________________________________________________________________________________

1. Environment
2. Download the patch from MOS
3. Verify OPatch Version
4. List Patches
5. Stop EM Agent
6. Unzip Patch
7. Apply Patch
8. List Patches
9. Start Agent
10. Status Agent
_________________________________________________________________________________________________


1. Environment

Platform   	: Linuxx86_64
Server IP 	: 192.168.2.101
OEM Version     : 13c Release 1 
OMS Home	: /u01/app/oracle/mwroem131
Agent Home	: /u01/app/oracle/agent131/agent_13.1.0.0.0


2. Download the patch from MOS


3. Verify OPatch Version

[oracle@rac1 ~]$ /u01/app/oracle/agent131/agent_13.1.0.0.0/OPatch/opatch version
OPatch Version: 13.6.0.0.0 <-----

OPatch succeeded.
[oracle@rac1 ~]$


4. List Patches

[oracle@rac1 ~]$ export ORACLE_HOME=/u01/app/oracle/agent131/agent_13.1.0.0.0
[oracle@rac1 ~]$ /u01/app/oracle/agent131/agent_13.1.0.0.0/OPatch/opatch lsinv -oh /u01/app/oracle/agent131/agent_13.1.0.0.0
Oracle Interim Patch Installer version 13.6.0.0.0
Copyright (c) 2019, Oracle Corporation.  All rights reserved.


Oracle Home       : /u01/app/oracle/agent131/agent_13.1.0.0.0
Central Inventory : /u01/app/oraInventory
   from           : /u01/app/oracle/agent131/agent_13.1.0.0.0/oraInst.loc
OPatch version    : 13.6.0.0.0
OUI version       : 13.6.0.0.0
Log file location : /u01/app/oracle/agent131/agent_13.1.0.0.0/cfgtoollogs/opatch/opatch2019-06-02_20-49-49PM_1.log


OPatch detects the Middleware Home as "/u01/app/oracle/agent131"

Lsinventory Output file location : /u01/app/oracle/agent131/agent_13.1.0.0.0/cfgtoollogs/opatch/lsinv/lsinventory2019-06-02_20-49-49PM.txt

--------------------------------------------------------------------------------
Local Machine Information::
Hostname: rac1.rajasekhar.com
ARU platform id: 226
ARU platform description:: Linux_AMD64


Interim patches (1) :

Patch  18421945     : applied on Sat Jun 01 23:17:55 SGT 2019
Unique Patch ID:  18724707
   Created on 12 Aug 2015, 02:07:32 hrs PST8PDT
   Bugs fixed:
     18421945



--------------------------------------------------------------------------------

OPatch succeeded.
[oracle@rac1 ~]$ 


5. Stop EM Agent

[oracle@rac1 ~]$ export ORACLE_HOME=/u01/app/oracle/agent131/agent_13.1.0.0.0/
[oracle@rac1 ~]$ /u01/app/oracle/agent131/agent_13.1.0.0.0/bin/emctl status agent
Oracle Enterprise Manager Cloud Control 13c Release 1
Copyright (c) 1996, 2015 Oracle Corporation.  All rights reserved.
---------------------------------------------------------------
Agent Version          : 13.1.0.0.0
OMS Version            : 13.1.0.0.0
Protocol Version       : 12.1.0.1.0
Agent Home             : /u01/app/oracle/agent131/agent_inst
Agent Log Directory    : /u01/app/oracle/agent131/agent_inst/sysman/log
Agent Binaries         : /u01/app/oracle/agent131/agent_13.1.0.0.0
Core JAR Location      : /u01/app/oracle/agent131/agent_13.1.0.0.0/jlib
Agent Process ID       : 2330
Parent Process ID      : 1941
Agent URL              : https://rac1.rajasekhar.com:3872/emd/main/
Local Agent URL in NAT : https://rac1.rajasekhar.com:3872/emd/main/
Repository URL         : https://rac1.rajasekhar.com:4903/empbs/upload
Started at             : 2019-06-02 14:59:50
Started by user        : oracle
Operating System       : Linux version 4.1.12-112.16.4.el7uek.x86_64 (amd64)
Number of Targets      : 33
Last Reload            : (none)
Last successful upload                       : 2019-06-02 21:13:01
Last attempted upload                        : 2019-06-02 21:13:01
Total Megabytes of XML files uploaded so far : 0.55
Number of XML files pending upload           : 0
Size of XML files pending upload(MB)         : 0
Available disk space on upload filesystem    : 44.50%
Collection Status                            : Collections enabled
Heartbeat Status                             : Ok
Last attempted heartbeat to OMS              : 2019-06-02 21:13:28
Last successful heartbeat to OMS             : 2019-06-02 21:13:28
Next scheduled heartbeat to OMS              : 2019-06-02 21:14:28

---------------------------------------------------------------
Agent is Running and Ready
[oracle@rac1 ~]$


[oracle@rac1 ~]$ /u01/app/oracle/agent131/agent_13.1.0.0.0/bin/emctl stop agent
Oracle Enterprise Manager Cloud Control 13c Release 1
Copyright (c) 1996, 2015 Oracle Corporation.  All rights reserved.
Stopping agent ... stopped.
[oracle@rac1 ~]$

[oracle@rac1 ~]$ /u01/app/oracle/agent131/agent_13.1.0.0.0/bin/emctl status agent
Oracle Enterprise Manager Cloud Control 13c Release 1
Copyright (c) 1996, 2015 Oracle Corporation.  All rights reserved.
---------------------------------------------------------------
Agent is Not Running
[oracle@rac1 ~]$


6. Unzip Patch

[oracle@rac1 ~]$ cp p25686936_131000_Generic.zip /u01/app/backup/MWPSU/AGENT

[oracle@rac1 ~]$ cd /u01/app/backup/MWPSU/AGENT
[oracle@rac1 AGENT]$ ls -ltr
total 19520
-rw-r--r--. 1 oracle oinstall 19985332 Jun  2 21:19 p25686936_131000_Generic.zip
[oracle@rac1 AGENT]$
[oracle@rac1 AGENT]$ unzip p25686936_131000_Generic.zip

[oracle@rac1 AGENT]$ ls -ltr
total 19520
drwxr-xr-x. 4 oracle oinstall       67 Apr  4  2017 25686936
-rw-r--r--. 1 oracle oinstall 19985332 Jun  2 21:19 p25686936_131000_Generic.zip
[oracle@rac1 AGENT]$


7. Apply Patch

[oracle@rac1 ~]$ export ORACLE_HOME=/u01/app/oracle/agent131/agent_13.1.0.0.0
[oracle@rac1 25686936]$ cd /u01/app/backup/MWPSU/AGENT/25686936
[oracle@rac1 25686936]$ ls -ltr
total 28
drwxr-x---. 3 oracle oinstall    37 Apr  4  2017 files
drwxr-x---. 3 oracle oinstall    20 Apr  4  2017 etc
-rw-rw-r--. 1 oracle oinstall    24 Apr 18  2017 README.txt
-rw-rw-r--. 1 oracle oinstall 23830 Apr 18  2017 README.html
[oracle@rac1 25686936]$

[oracle@rac1 25686936]$ /u01/app/oracle/agent131/agent_13.1.0.0.0/OPatch/opatch apply -oh /u01/app/oracle/agent131/agent_13.1.0.0.0
Oracle Interim Patch Installer version 13.6.0.0.0
Copyright (c) 2019, Oracle Corporation.  All rights reserved.


Oracle Home       : /u01/app/oracle/agent131/agent_13.1.0.0.0
Central Inventory : /u01/app/oraInventory
   from           : /u01/app/oracle/agent131/agent_13.1.0.0.0/oraInst.loc
OPatch version    : 13.6.0.0.0
OUI version       : 13.6.0.0.0
Log file location : /u01/app/oracle/agent131/agent_13.1.0.0.0/cfgtoollogs/opatch/25686936_Jun_02_2019_21_23_51/apply2019-06-02_21-23-45PM_1.log


OPatch detects the Middleware Home as "/u01/app/oracle/agent131"

Verifying environment and performing prerequisite checks...
OPatch continues with these patches:   25686936

Do you want to proceed? [y|n]
y
User Responded with: Y
All checks passed.
Backing up files...
Applying interim patch '25686936' to OH '/u01/app/oracle/agent131/agent_13.1.0.0.0'

Patching component oracle.sysman.top.agent, 13.1.0.0.0...
Patch 25686936 successfully applied.
Log file location: /u01/app/oracle/agent131/agent_13.1.0.0.0/cfgtoollogs/opatch/25686936_Jun_02_2019_21_23_51/apply2019-06-02_21-23-45PM_1.log

OPatch succeeded.
[oracle@rac1 25686936]$


8. List Patches

[oracle@rac1 25686936]$ /u01/app/oracle/agent131/agent_13.1.0.0.0/OPatch/opatch lsinv -oh /u01/app/oracle/agent131/agent_13.1.0.0.0
Oracle Interim Patch Installer version 13.6.0.0.0
Copyright (c) 2019, Oracle Corporation.  All rights reserved.


Oracle Home       : /u01/app/oracle/agent131/agent_13.1.0.0.0
Central Inventory : /u01/app/oraInventory
   from           : /u01/app/oracle/agent131/agent_13.1.0.0.0/oraInst.loc
OPatch version    : 13.6.0.0.0
OUI version       : 13.6.0.0.0
Log file location : /u01/app/oracle/agent131/agent_13.1.0.0.0/cfgtoollogs/opatch/opatch2019-06-02_21-31-30PM_1.log


OPatch detects the Middleware Home as "/u01/app/oracle/agent131"

Lsinventory Output file location : /u01/app/oracle/agent131/agent_13.1.0.0.0/cfgtoollogs/opatch/lsinv/lsinventory2019-06-02_21-31-30PM.txt

--------------------------------------------------------------------------------
Local Machine Information::
Hostname: rac1.rajasekhar.com
ARU platform id: 226
ARU platform description:: Linux_AMD64


Interim patches (2) :

Patch  25686936     : applied on Sun Jun 02 21:24:03 SGT 2019
Unique Patch ID:  21169532
Patch description:  "EM-AGENT Bundle Patch 13.1.0.0.170418"
   Created on 4 Apr 2017, 00:39:32 hrs PST8PDT
   Bugs fixed:
     24437699, 25101457, 23478148, 21779343, 22616051, 23759799, 23013302
     22988508, 23089106, 23581450, 22046370, 24667762, 23079593, 24933541
     24450644, 23268700, 22823268, 19802080, 24447221, 22201508, 18197723
     22720511, 23724816, 24672237, 22568679, 23638365, 25686936, 23593972
     22847565, 24697787, 23592254, 22892276, 25289023, 22565184, 22684160
     22928984, 24842780, 22918272, 24456370, 25297713, 23208577, 24415605
     23292275, 22384903, 22304248, 24308442, 23030165, 25113676, 25136887
     23561531, 22542388, 25286373, 24934732, 23507445, 22448575, 23511066
     22293781, 22099911, 21449788, 21755932

Patch  18421945     : applied on Sat Jun 01 23:17:55 SGT 2019
Unique Patch ID:  18724707
   Created on 12 Aug 2015, 02:07:32 hrs PST8PDT
   Bugs fixed:
     18421945



--------------------------------------------------------------------------------

OPatch succeeded.
[oracle@rac1 25686936]$


9. Start Agent

[oracle@rac1 25686936]$ /u01/app/oracle/agent131/agent_13.1.0.0.0/bin/emctl start agent
Oracle Enterprise Manager Cloud Control 13c Release 1
Copyright (c) 1996, 2015 Oracle Corporation.  All rights reserved.
Starting agent ................................................................ started.
[oracle@rac1 25686936]$


10. Status Agent

[oracle@rac1 25686936]$ /u01/app/oracle/agent131/agent_13.1.0.0.0/bin/emctl status agent
Oracle Enterprise Manager Cloud Control 13c Release 1
Copyright (c) 1996, 2015 Oracle Corporation.  All rights reserved.
---------------------------------------------------------------
Agent Version          : 13.1.0.0.0
OMS Version            : 13.1.0.0.0
Protocol Version       : 12.1.0.1.0
Agent Home             : /u01/app/oracle/agent131/agent_inst
Agent Log Directory    : /u01/app/oracle/agent131/agent_inst/sysman/log
Agent Binaries         : /u01/app/oracle/agent131/agent_13.1.0.0.0
Core JAR Location      : /u01/app/oracle/agent131/agent_13.1.0.0.0/jlib
Agent Process ID       : 2277
Parent Process ID      : 2051
Agent URL              : https://rac1.rajasekhar.com:3872/emd/main/
Local Agent URL in NAT : https://rac1.rajasekhar.com:3872/emd/main/
Repository URL         : https://rac1.rajasekhar.com:4903/empbs/upload
Started at             : 2019-06-02 21:39:25
Started by user        : oracle
Operating System       : Linux version 4.1.12-112.16.4.el7uek.x86_64 (amd64)
Number of Targets      : 33
Last Reload            : (none)
Last successful upload                       : 2019-06-02 21:41:05
Last attempted upload                        : 2019-06-02 21:41:05
Total Megabytes of XML files uploaded so far : 0.02
Number of XML files pending upload           : 0
Size of XML files pending upload(MB)         : 0
Available disk space on upload filesystem    : 44.40%
Collection Status                            : Collections enabled
Heartbeat Status                             : Ok
Last attempted heartbeat to OMS              : 2019-06-02 21:40:10
Last successful heartbeat to OMS             : 2019-06-02 21:40:10
Next scheduled heartbeat to OMS              : 2019-06-02 21:41:22

---------------------------------------------------------------
Agent is Running and Ready
[oracle@rac1 25686936]$

Caution: Your use of any information or materials on this website is entirely at your own risk. It is provided for educational purposes only. It has been tested internally, however, we do not guarantee that it will work for you. Ensure that you run it in your test environment before using.

Thank you,
Rajasekhar Amudala
Email: br8dba@gmail.com
WhatsApp : +
Linkedin: https://www.linkedin.com/in/rajasekhar-amudala/