Advertisement

Thursday, February 1, 2018

OEM 13cR2 - Plugin Deployment on OMS - CLI

This Blog discusses on Manual Upgrade of Plugin on the Server 

[oracle@omshost stage_patch]$ emcli list_plugins_on_server      

                                       
OMS name is omshost:4889_Management_Service
Plug-in Name                                 Plugin-id                     Version [revision]

Oracle Cloud Framework                       oracle.sysman.cfw             13.2.2.0.0
Oracle Database                              oracle.sysman.db              13.2.2.0.0
Oracle Fusion Middleware                     oracle.sysman.emas            13.2.2.0.0
Systems Infrastructure                       oracle.sysman.si              13.2.2.0.0
Oracle Exadata                               oracle.sysman.xa              13.2.2.0.0

We are upgrading System Infra plugin in this part (oracle.sysman.si) 


Import the manually downloaded opar file (Plugin File)

Download the File from Oracle –
http://www.oracle.com/technetwork/oem/enterprise-manager/downloads/oem-plugin-update-3774387.html


emcli login –username=sysman
export PATH=$OMS_HOME/bin:$OMS_HOME/OMSPatcher:$PATH

emcli import_update -file="/stage_patch/13.2.3.0.0_oracle.sysman.si_2000_0.opar" -omslocal

 
Processing update: Plug-in - Enterprise Manager Systems Infrastructure plug-in with support for datacenter hardware, OS and virtualization.
Successfully uploaded the update to Enterprise Manager. Use the Self Update Console to manage this update.


[oracle@omshost bin]$ emcli login -username=sysman                                                      Enter password :

Login successful
 [oracle@omshost bin]$  emcli deploy_plugin_on_server -plugin="oracle.sysman.si:13.2.3.0.0" -repo_backup_taken


(Note - This specifies the plugin oracle.sysman.si:13.2.3.0.0 to be deployed. The version is specified post the plugin name so that if the plugin exists new plugin version is deployed, if the plugin does not exists , still it's a good practice to specify plugin version)
 
Enter repository DB sys password:

Performing pre-requisites check... This will take a while.
Prerequisites check succeeded
Deployment of plug-in on the management servers is in progress
Use "emcli get_plugin_deployment_status -plugin=oracle.sysman.si" to track the plug-in deployment status.

Note: Deployment of plug-in on the Management Server will require downtime.
      All currently connected users will be automatically disconnected from the Enterprise Manager.
      During downtime, users will not be able to connect to Enterprise Manager, and
      Enterprise Manager will not be able to monitor any targets.
      During downtime, use "emctl status oms -details" to track the deployment status during downtime.


Check for Status During Deployment

 
[oracle@omshost bin]$ emctl status oms -details
Oracle Enterprise Manager Cloud Control 13c Release 2
Copyright (c) 1996, 2016 Oracle Corporation.  All rights reserved.
Enter Enterprise Manager Root (SYSMAN) Password :
Console Server Host        : omshost
HTTP Console Port          : 7788
HTTPS Console Port         : 7803
HTTP Upload Port           : 4889
HTTPS Upload Port          : 4903
EM Instance Home           : /opt/oracle/em13cr2/gc_inst/em/EMGC_OMS1
OMS Log Directory Location : /opt/oracle/em13cr2/gc_inst/em/EMGC_OMS1/sysman/log
OMS is not configured with SLB or virtual hostname
Agent Upload is locked.
OMS Console is locked.
Active CA ID: 1
Console URL: https://omshost:7803/em
Upload URL: https://omshost:4903/empbs/upload

WLS Domain Information
Domain Name            : GCDomain
Admin Server Host      : omshost
Admin Server HTTPS Port: 7102
Admin Server is STARTING

Oracle Management Server Information
Managed Server Instance Name: EMGC_OMS1
Oracle Management Server Instance Host: omshost
WebTier is Down

Oracle Management Server status is down possibly because plug-ins are being deployed or undeployed from it. Use -details option to get more details about the plug-in deployment status.
Plug-in Deployment/Undeployment Status

Destination          : Management Server - omshost:4889_Management_Service
Plug-in Name         : Systems Infrastructure
Version              : 13.2.3.0.0
ID                   : oracle.sysman.si
Content              : Plug-in
Action               : Deployment
Status               : Deploying
Steps Info:
---------------------------------------- ------------------------- ------------------------- ----------
Step                                     Start Time                End Time                  Status
---------------------------------------- ------------------------- ------------------------- ----------
Submit job for deployment                1/30/18 2:36:07 PM CET    1/30/18 2:36:07 PM CET    Success

Initialize                               1/30/18 2:36:09 PM CET    1/30/18 2:36:16 PM CET    Success

Install software                         1/30/18 2:36:16 PM CET    1/30/18 2:36:18 PM CET    Success

Validate plug-in home                    1/30/18 2:36:19 PM CET    1/30/18 2:36:20 PM CET    Success

Perform custom preconfiguration          1/30/18 2:36:20 PM CET    1/30/18 2:36:20 PM CET    Success

Check mandatory patches                  1/30/18 2:36:20 PM CET    1/30/18 2:36:20 PM CET    Success

Generate metadata SQL                    1/30/18 2:36:20 PM CET    1/30/18 2:36:20 PM CET    Success

Preconfigure Management Repository       1/30/18 2:36:21 PM CET    1/30/18 2:36:21 PM CET    Success

Preregister DLF                          1/30/18 2:36:21 PM CET    1/30/18 2:36:21 PM CET    Success

Stop management server                   1/30/18 2:36:21 PM CET    1/30/18 2:38:35 PM CET    Success

Register DLF                             1/30/18 2:38:36 PM CET    N/A                       Running

Configure Management Repository          1/30/18 2:38:36 PM CET    N/A                       Running

Configure middle tier                    1/30/18 2:38:36 PM CET    N/A                       Running

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

BI Publisher Server Information
BI Publisher Managed Server Name: BIP
BI Publisher Server is Down

BI Publisher HTTP Managed Server Port   : 9701
BI Publisher HTTPS Managed Server Port  : 9803
BI Publisher HTTP OHS Port              : 9788
BI Publisher HTTPS OHS Port             : 9851
BI Publisher is locked.
BI Publisher Server named 'BIP' is configured to run at URL: https://omshost:9851/xmlpserver
BI Publisher Server Logs: /opt/oracle/em13cr2/gc_inst/user_projects/domains/GCDomain/servers/BIP/logs/
BI Publisher Log        : /opt/oracle/em13cr2/gc_inst/user_projects/domains/GCDomain/servers/BIP/logs/bipublisher/bipublisher.log

If required logs are accessible in
<MIDDLEWARE_HOME>/cfgtoollogs/pluginca




Verify the newly deployed Plugin
[oracle@omshost ~]$ emcli login -username=sysman
Enter password :

Login successful

[oracle@omshost ~]$ emcli sync
Synchronized successfully
[oracle@omshost ~]$ emcli list_plugins_on_server
OMS name is omshost:4889_Management_Service

Plug-in Name                                 Plugin-id                     Version [revision]

Oracle Cloud Framework                       oracle.sysman.cfw             13.2.2.0.0
Oracle Database                              oracle.sysman.db              13.2.2.0.0
Oracle Fusion Middleware                     oracle.sysman.emas            13.2.2.0.0
Systems Infrastructure                       oracle.sysman.si              13.2.3.0.0
Oracle Exadata                               oracle.sysman.xa              13.2.2.0.0


The SI Plugin has been upgraded 13.2.3.0.0

No comments:
Write comments