OMS:配置、管理以及相关组件

之前已经把OEM环境搭建起来了,那么如何对OMS进行管理、配置以及下载相关插件

1.查看EM的软件库的位置:



 可以看到,当前的EM,软件库位于:/u01/app/oracle/product/13c/swlib/

新增一个新的软件库路径: /home/oracle/agent_image/



EM CLI(一)

OMS安装完成后便会自动配置好一个EMCLI工具。
它通常位于:$OMS_HOME/bin/emcli

你也可以通过EM的网络程序获取有关EMCLI的信息:
在我的环境里,这个地址是这样的:
https://192.168.1.97:7802/em/faces/core-emcli-emcliDownload


在其中“Requirements”窗格中,你可以明确的看到运行emcli的先决条件:

Requirements
Before installing EM CLI, you will need the following:

    Oracle (Sun) Java JRE version 1.7.0_111 or greater
    Click here to download
    Note: Java for IBM Systems has to be downloaded separately.
    To verify the version of java execute "java -version" from JAVA_HOME/bin directory.
    Workstation running Solaris, Linux, HPUX, Tru64, AIX, or Windows with NTFS (client installation)

要想成功运行EMCLI,需要Java的版本为1.7.0_80以上。
当前环境的Java版本:

bishuo:/home/oracle@oracle>java -version
java version "1.7.0_79"
Java(TM) SE Runtime Environment (build 1.7.0_79-b15)
Java HotSpot(TM) 64-Bit Server VM (build 24.79-b02, mixed mode)

查看一下它的版本和当前状态:

bishuo:/home/oracle@oracle>$OMS_HOME/bin/emcli version
Oracle Enterprise Manager 13c EM CLI Version 13.2.0.0.0

bishuo:/home/oracle@oracle>$OMS_HOME/bin/emcli status
Oracle Enterprise Manager 13c Release 2 EM CLI.
Copyright (c) 1996, 2016 Oracle Corporation and/or its affiliates. All rights reserved.

Instance Home          : /u01/app/oracle/product/13c/gc_inst/em/EMGC_OMS1/sysman/emcli/setup/.emcli
Verb Jars Home         : /home/oracle/middleware/bin/bindings/13.2.0.0.0/.emcli
Status                 : Configured
EM CLI Home            : /home/oracle/middleware/bin
EM CLI Version         : 13.2.0.0.0
Java Home              : /usr/local/jdk1.7.0_79/jre
Java Version           : 1.7.0_79
Log file               : /u01/app/oracle/product/13c/gc_inst/em/EMGC_OMS1/sysman/emcli/setup/.emcli/.emcli.log
Log level              : SEVERE
EM URL                 : https://oracle:7802/em
EM user                : sysman
Auto login             : false
Trust all certificates : true

尝试使用EMCLI登录OMS:

bishuo:/home/oracle@oracle>$OMS_HOME/bin/emcli login -username=sysman
Enter password : 

Login successful
bishuo:/home/oracle@oracle>$OMS_HOME/bin/emcli sync
Synchronized successfully
bishuo:/home/oracle@oracle>$OMS_HOME/bin/emcli logout
Logout successful

如上所示,我成功通过emcli登录OMS后,执行了同步操作,然后登出了OMS。

二、查看当前OMS中有哪些代理程序(Agent)

在本文到目前为止的内容里,我们配置了OMR(资料库)、OMS。但是,如果想要Enterprise Manager真正发挥作用,我们还需要在目标机器上安装Agent程序,才能共让EM捕获到目标主机上的资源状态。

因此,第一个问题:我们去哪里找Agent程序?

在EM以前的版本中,Agent是单独下载的,然后用OUI的方式去部署。
但是现在,在12c、13c的环境里,我们可以通过Agent Deployment wizard将Agent推送到目标主机。


查看我们有哪些Agent:
“自动更新”功能入口:




当前只有适用于Linux64平台的Agent。


三、脱机打补丁与联机打补丁

为了获得更多的Agent支持,我们有两条路可选:
1. 登录MOS账户,在线的,通过MOS为EM增加更多的Agent(或者其他的补丁)
2. 脱机打补丁,在离线的EM中获取到了软件的下载地址,联网下载后,用emcli导入EM。


联机打补丁
如果选择第一种方式,直接登录MOS即可:
登录入口:




脱机打补丁




可以看到,这时候,检查更新就可以用了。

点击“检查更新”:


根据提示信息:
首先,下载:https://updates.oracle.com/Orion/Download/download_patch/p9348486_112000_Generic.zip
然后,上传服务器

bishuo:/home/oracle/software@oracle>ll
总用量 8950060
-rw-r--r-- 1 oracle dba  2123211088 12月 21 09:32 em13200p1_linux64-2.zip
-rw-r--r-- 1 oracle dba   741526563 12月 21 09:32 em13200p1_linux64-3.zip
-rw------- 1 oracle dba  2084231936 12月 21 09:33 em13200p1_linux64-4.zip
-rw-r--r-- 1 oracle dba   109191154 12月 21 09:33 em13200p1_linux64-5.zip
-rw-r--r-- 1 oracle dba  2146696423 12月 21 09:34 em13200p1_linux64-6.zip
-rw-r--r-- 1 oracle dba   771426157 12月 21 09:34 em13200p1_linux64-7.zip
-rwxr-xr-x 1 oracle dba   554606940 12月 21 09:34 em13200p1_linux64.bin
-rw-r--r-- 1 root   root     352875 12月 25 09:28 p9348486_112000_Generic.zip


再然后,通过emcli工具执行导入:

bishuo:/home/oracle@oracle>echo $OMS_HOME 
/home/oracle/middleware
bishuo:/home/oracle@oracle>/home/oracle/middleware/bin/emcli login -username=sysman
Enter password 

Login successful
bishuo:/home/oracle@oracle>/home/oracle/middleware/bin/emcli sync
Synchronized successfully
bishuo:/home/oracle@oracle>$OMS_HOME/bin/emcli import_update_catalog -omslocal -file=/home/oracle/software/p9348486_112000_Generic.zip 
Processing catalog for Agent Software
Processing update: Agent Software - Agent Software (12.1.0.5.0) for Microsoft Windows (32-bit)
Processing update: Agent Software - Agent Software (12.1.0.4.0) for Microsoft Windows (32-bit)
Processing update: Agent Software - Agent Software (12.1.0.3.0) for Microsoft Windows (32-bit)
Processing update: Agent Software - Agent Software (12.1.0.2.0) for Microsoft Windows (32-bit)
Processing update: Agent Software - Agent Software (12.1.0.1.0) for Microsoft Windows (32-bit)
Processing update: Agent Software - Agent Software (12.1.0.5.0) for HP-UX PA-RISC (64-bit)
Processing update: Agent Software - Agent Software (12.1.0.4.0) for HP-UX PA-RISC (64-bit)
Processing update: Agent Software - Agent Software (12.1.0.3.0) for HP-UX PA-RISC (64-bit)
Processing update: Agent Software - Agent Software (12.1.0.2.0) for HP-UX PA-RISC (64-bit)
Processing update: Agent Software - Agent Software (12.1.0.1.0) for HP-UX PA-RISC (64-bit)
Processing update: Agent Software - Agent Software (13.2.0.0.0) for Linux_SPARC
Processing update: Agent Software - Agent Software (13.2.0.0.0) for Linux x86
Processing update: Agent Software - Agent Software (13.1.0.0.0) for Linux x86
Processing update: Agent Software - Agent Software (12.1.0.5.0) for Linux x86
Processing update: Agent Software - Agent Software (12.1.0.4.0) for Linux x86
Processing update: Agent Software - Agent Software (12.1.0.3.0) for Linux x86
Processing update: Agent Software - Agent Software (12.1.0.2.0) for Linux x86
Processing update: Agent Software - Agent Software (12.1.0.1.0) for Linux x86
Processing update: Agent Software - Agent Software (13.2.0.0.0) for Oracle Solaris on x86-64 (64-bit)
Processing update: Agent Software - Agent Software (13.1.0.0.0) for Oracle Solaris on x86-64 (64-bit)
Processing update: Agent Software - Agent Software (12.1.0.5.0) for Oracle Solaris on x86-64 (64-bit)
Processing update: Agent Software - Agent Software (12.1.0.4.0) for Oracle Solaris on x86-64 (64-bit)
Processing update: Agent Software - Agent Software (12.1.0.3.0) for Oracle Solaris on x86-64 (64-bit)
Processing update: Agent Software - Agent Software (12.1.0.2.0) for Oracle Solaris on x86-64 (64-bit)
Processing update: Agent Software - Agent Software (12.1.0.1.0) for Oracle Solaris on x86-64 (64-bit)
Processing update: Agent Software - Agent Software (13.2.0.0.0) for Oracle Solaris on SPARC (64-bit)
Processing update: Agent Software - Agent Software (13.1.0.0.0) for Oracle Solaris on SPARC (64-bit)
Processing update: Agent Software - Agent Software (12.1.0.5.0) for Oracle Solaris on SPARC (64-bit)
Processing update: Agent Software - Agent Software (12.1.0.4.0) for Oracle Solaris on SPARC (64-bit)
Processing update: Agent Software - Agent Software (12.1.0.3.0) for Oracle Solaris on SPARC (64-bit)
Processing update: Agent Software - Agent Software (12.1.0.2.0) for Oracle Solaris on SPARC (64-bit)
Processing update: Agent Software - Agent Software (12.1.0.1.0) for Oracle Solaris on SPARC (64-bit)
Processing update: Agent Software - Agent Software (13.2.0.0.0) for Microsoft Windows x64 (64-bit)
Processing update: Agent Software - Agent Software (13.1.0.0.0) for Microsoft Windows x64 (64-bit)
Processing update: Agent Software - Agent Software (12.1.0.5.0) for Microsoft Windows x64 (64-bit)
Processing update: Agent Software - Agent Software (12.1.0.4.0) for Microsoft Windows x64 (64-bit)
Processing update: Agent Software - Agent Software (12.1.0.3.0) for Microsoft Windows x64 (64-bit)
Processing update: Agent Software - Agent Software (12.1.0.2.0) for Microsoft Windows x64 (64-bit)
Processing update: Agent Software - Agent Software (12.1.0.1.0) for Microsoft Windows x64 (64-bit)
Processing update: Agent Software - Agent Software (13.1.0.0.0) for Linux x86-64
Processing update: Agent Software - Agent Software (12.1.0.5.0) for Linux x86-64
Processing update: Agent Software - Agent Software (12.1.0.4.0) for Linux x86-64
Processing update: Agent Software - Agent Software (12.1.0.3.0) for Linux x86-64
Processing update: Agent Software - Agent Software (12.1.0.2.0) for Linux x86-64
Processing update: Agent Software - Agent Software (12.1.0.1.0) for Linux x86-64
Processing update: Agent Software - Agent Software (13.2.0.0.0) for IBM AIX on POWER Systems (64-bit)
Processing update: Agent Software - Agent Software (13.1.0.0.0) for IBM AIX on POWER Systems (64-bit)
Processing update: Agent Software - Agent Software (12.1.0.5.0) for IBM AIX on POWER Systems (64-bit)
Processing update: Agent Software - Agent Software (12.1.0.4.0) for IBM AIX on POWER Systems (64-bit)
Processing update: Agent Software - Agent Software (12.1.0.3.0) for IBM AIX on POWER Systems (64-bit)
Processing update: Agent Software - Agent Software (12.1.0.2.0) for IBM AIX on POWER Systems (64-bit)
Processing update: Agent Software - Agent Software (12.1.0.1.0) for IBM AIX on POWER Systems (64-bit)
Processing update: Agent Software - Agent Software (13.2.0.0.0) for IBM: Linux on System z
Processing update: Agent Software - Agent Software (12.1.0.5.0) for IBM: Linux on System z
Processing update: Agent Software - Agent Software (12.1.0.4.0) for IBM: Linux on System z
Processing update: Agent Software - Agent Software (12.1.0.3.0) for IBM: Linux on System z
Processing update: Agent Software - Agent Software (12.1.0.2.0) for IBM: Linux on System z
Processing update: Agent Software - Agent Software (12.1.0.1.0) for IBM: Linux on System z
Processing update: Agent Software - Agent Software (13.2.0.0.0) for HP-UX Itanium
Processing update: Agent Software - Agent Software (13.1.0.0.0) for HP-UX Itanium
Processing update: Agent Software - Agent Software (12.1.0.5.0) for HP-UX Itanium
Processing update: Agent Software - Agent Software (12.1.0.4.0) for HP-UX Itanium
Processing update: Agent Software - Agent Software (12.1.0.3.0) for HP-UX Itanium
Processing update: Agent Software - Agent Software (12.1.0.2.0) for HP-UX Itanium
Processing update: Agent Software - Agent Software (12.1.0.1.0) for HP-UX Itanium
Processing catalog for Middleware Profiles and Gold Images
Processing update: Middleware Profiles and Gold Images - Three Fusion Middleware Provisioning Profiles with different heap size configuration
Processing catalog for Data Masking and Subsetting templates
Processing update: Data Masking and Subsetting templates - Mask template Fusion Rel v1.x Combined All Family
Processing update: Data Masking and Subsetting templates - Data Masking template for Oracle E-Business suite 12.1.3 (Standard Model)
Processing update: Data Masking and Subsetting templates - Data Masking template for Oracle E-Business suite 12.1.3 (JG model)
Processing update: Data Masking and Subsetting templates - Preparation script required for Oracle E-Business Suite masking process
Processing update: Data Masking and Subsetting templates - ADM template Fusion Rel v1.x Combined All Family
Processing update: Data Masking and Subsetting templates - Application Data Model Template for Oracle E-Business Suite 12.1.3(Standard Model)
Processing update: Data Masking and Subsetting templates - Application Data Model Template for Oracle E-Business Suite 12.1.3(JG Model)
Processing catalog for Extensibility Development Kit
nterprise Manager extensions (For example: Plug-ins)'
Processing catalog for Plug-in
Processing update: Plug-in - Enterprise Manager for VCP
the Oracle Utilities products that use the Oracle Utilities Framework.
the Oracle Utilities products that use the Oracle Utilities Framework.
the Oracle Utilities products that use the Oracle Utilities Framework.
oring capabilities for the Oracle Public Sector Revenue Management.
Processing update: Plug-in - Enterprise Manager for Oracle Utilities Network Management System provides management and monitoring for the NMS
Processing update: Plug-in - Enterprise Manager for Oracle Utilities Network Management System provides management and monitoring for the NMS
Processing update: Plug-in - Enables management capabilities for Oracle VM in Enterprise Manager.
Processing update: Plug-in - Enables management capabilities for Oracle VM in Enterprise Manager.
Processing update: Plug-in - Enables Oracle Compute-based server virtualization and Infrastructure as a Service (IaaS) cloud functionality.
Processing update: Plug-in - Enables Oracle Compute-based server virtualization and Infrastructure as a Service (IaaS) cloud functionality.
Processing update: Plug-in - Enables cloud self service framework and portal in Oracle Enterprise Manager.
Processing update: Plug-in - 
eatures of the underlying storage.
  
Processing update: Plug-in - Enterprise Manager Systems Infrastructure plug-in with support for datacenter hardware, OS and virtualization.
Processing update: Plug-in - Enterprise Manager for Oracle Siebel consists of monitoring and management functionalities for Oracle Siebel.
ion application area.
ion application area.
on planning for various Enterprise Manager targets.
iagnostics in middleware area.
Processing update: Plug-in - Enterprise Manager for OPC Cloud Services Management
Processing update: Plug-in - Enterprise Manager for OPC Cloud Services Management
lated targets of Hadoop
Processing update: Plug-in - Enterprise Manager for Sun Ray Software
Processing update: Plug-in - Enterprise Manager for Oracle ZFS Storage Appliances
Processing update: Plug-in - Enterprise Manager for Oracle ZFS Storage Appliances
Processing update: Plug-in - Enterprise Manager for Oracle ZFS Storage Appliances
Processing update: Plug-in - Enterprise Manager for Oracle ZFS Storage Appliances
Processing update: Plug-in - Enterprise Manager for Oracle ZFS Storage Appliances
Processing update: Plug-in - Enterprise Manager for Oracle ZFS Storage Appliances
Processing update: Plug-in - Enterprise Manager for Oracle ZFS Storage Appliances
Processing update: Plug-in - Enterprise Management Plug-in for Oracle ZFS Storage Appliances
Processing update: Plug-in - Management Plug-in for the Sun ZFS Storage Appliance Family
Processing update: Plug-in - Management Plug-in for the Sun ZFS Storage Appliance Family
Processing update: Plug-in - Enterprise Manager for Oracle Secure Global Desktop
Processing update: Plug-in - Enterprise Manager for Oracle Secure Global Desktop Gateway
Processing update: Plug-in - Enterprise Manager for Oracle Primavera Prime
Processing update: Plug-in - Enterprise Manager for Oracle Primavera P6 EPPM
Processing update: Plug-in - Enterprise Manager for Oracle Primavera P6 EPPM
Processing update: Plug-in - Enterprise Manager for Oracle Unified Directory
Processing update: Plug-in - Enterprise Manager for Oracle Unified Directory
Processing update: Plug-in - Enterprise Manager for Oracle Key Manager
Processing update: Plug-in - Enterprise Manager for Oracle Flash Storage System
Processing update: Plug-in - Enterprise Manager for Oracle Flash Storage System
ng Server
Processing update: Plug-in - Enterprise Manager for MySQL Database
Processing update: Plug-in - Enterprise Manager for MySQL Database
Processing update: Plug-in - Enterprise Manager for MySQL Database
Processing update: Plug-in - Enterprise Manager for MySQL Database
Processing update: Plug-in - Enterprise Manager for Oracle Tuxedo
Processing update: Plug-in - Enterprise Manager for Oracle Tuxedo
Processing update: Plug-in - Enterprise Manager for Oracle GoldenGate
Processing update: Plug-in - Enterprise Manager for Oracle GoldenGate
Processing update: Plug-in - Enterprise Manager for Ops Center Infrastructure stack
Processing update: Plug-in - Enterprise Manager for Ops Center Infrastructure stack
Processing update: Plug-in - Ops Center Infrastructure stack management plug-in.
Processing update: Plug-in - Ops Center Infrastructure stack management plug-in.
Processing update: Plug-in - Enterprise Manager for Microsoft SQL Server
 system.
base Appliance and related targets.
  
base Appliance and related targets.
  
Processing update: Plug-in - Enterprise Manager for Oracle TimesTen In-Memory Database
Processing update: Plug-in - Enterprise Manager for Oracle TimesTen In-Memory Database
Processing update: Plug-in - Enterprise Manager for Oracle Construction and Engineering
Processing update: Plug-in - Enterprise Manager for Oracle Construction and Engineering
Processing update: Plug-in - Enterprise Manager for Oracle Communications enables management of Oracle Communications products
Discovery and its components.
Processing update: Plug-in - 
		Enterprise Manager for Pillar Axiom
	
Processing update: Plug-in - Enterprise Manager for PeopleSoft
Processing update: Plug-in - Enterprise Manager for PeopleSoft
Processing update: Plug-in - 
    Enterprise Manager for Jdedwards EnterpriseOne consists of monitoring and management for Oracle Jdedwards EnterpriseOne system.
  
Processing update: Plug-in - 
    Enterprise Manager for Jdedwards EnterpriseOne consists of monitoring and management for Oracle Jdedwards EnterpriseOne system.
  
Processing update: Plug-in - 
    Enterprise Manager for Jdedwards EnterpriseOne consists of monitoring and management for Oracle Jdedwards EnterpriseOne system.
  
Processing update: Plug-in - Enterprise Manager for Oracle E-Business Suite consists of System Management and Change Management Feature Sets
Processing catalog for Management Connector
Processing update: Management Connector - 
             IBM TEC Connector - 12.1.0.3.0 
        
Processing update: Management Connector - 
             IBM TEC Connector - 12.1.0.2.0 
        
Processing update: Management Connector - 
             Microsoft SCOM R2 Connector - 12.1.0.2.0 
        
Processing update: Management Connector - 
             Microsoft SCOM preR2 Connector - 12.1.0.2.0 
        
Processing update: Management Connector - BMC Remedy 7.6.04 Service Desk Connector - 12.1.0.2.0
Processing update: Management Connector - BMC Remedy Change Management Connector - 12.1.0.1.0
Processing update: Management Connector - 
            IBM Tivoli Netcool/OMNIbus Connector - 12.1.0.2.0
        
Processing update: Management Connector - 
             HP Service Manager 7.0 Connector - 12.1.0.2.0 
        
Processing update: Management Connector - 
             HP Operations Manager UNIX Connector - 12.1.0.2.0 
        
Processing update: Management Connector - 
             CA Service Desk Connector - 12.1.0.2.0 
        
Processing catalog for Compliance Content
Processing update: Compliance Content - Compliance Framework - Security Technical Implementation Guides (STIGs)
erver 12c
Processing update: Compliance Content - ORAchk/Exachk Generic content for version 12.2.0.1.3_20170331
Processing update: Compliance Content - ORAchk/Exachk Generic content for version 12.1.0.2.7_20160526
Processing catalog for Informational
Processing update: Informational - Announcing New and Updated Cloud Management Capabilites for Database, Infrastructure, and Testing
Processing update: Informational - Enterprise Manager Cloud Control 12c Release 2 Plug-in Update 1 (12.1.0.2) now available on OTN
Processing update: Informational - Enterprise Manager Cloud Control 12C white papers available now on Oracle Technology Network
 12.1.0.1
Processing update: Informational - Management of Oracle VM 3.1.1 now available with Oracle Enterprise Manager 12c
Processing update: Informational - Oracle Enterprise Manager Cloud Control Mobile now available for Apple iPhone
Processing catalog for Provisioning Bundle
Processing catalog for Event Monitoring Service
Processing update: Event Monitoring Service - Always-On Monitoring Archive
Processing catalog for Diagnostic Tools
Processing update: Diagnostic Tools - Archive for ORAchk/Exachk 12.2.0.1.3_20170331
Processing update: Diagnostic Tools - Archive for ORAchk/Exachk 12.1.0.2.7_20160526

已成功将自行更新目录上载到 Enterprise Manager。请使用自行更新控制台查看和管理更新。
导入目录所用的时间为 45.261 seconds。


这时候,再去查看“自动更新”中的“代理程序”的状态:


你会发现,比之前多了很多。

这个时候,它们只是名录,没有真正的软件。
要想真正用到它们,你还需要去下载。

选中其中一个条目,然后选择下载:

和上面更新名录一样,它会让你去联网的环境里下载补丁包。然后上传到服务器

bishuo:/home/oracle/software@oracle>$OMS_HOME/bin/emcli import_update -omslocal -file=/home/oracle/software/p24746790_112000_Generic.zip 
Processing update: Agent Software - Agent Software (13.2.0.0.0) for Microsoft Windows x64 (64-bit)
已成功将更新上载到 Enterprise Manager。请使用自行更新控制台管理此更新。

然后在看看“代理软件”的状态:


这时候,让我们通过emcli看看当前Agent所支持的系统:


bishuo:/home/oracle/software@oracle>/home/oracle/middleware/bin/emcli login -username=sysman
Enter password : 

Login successful
bishuo:/home/oracle/software@oracle>$OMS_HOME/bin/emcli get_supported_platforms
-----------------------------------------------
Version = 13.2.0.0.0
 Platform = Linux x86-64
-----------------------------------------------
Version = 13.2.0.0.0
 Platform = Microsoft Windows x64 (64-bit)
-----------------------------------------------
Platforms list displayed successfully.


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

雨花石~

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值