Automation of Enterprise Manager with EMCLI

Similar documents
What s New & Enhanced?

Databases to Oracle Exadata: The Saga Continues for Oracle Enterprise Manager Based Patching

Strategies for Monitoring Large Data Centers with Oracle Enterprise Manager. Ana McCollum Consulting Product Manager

What s new in Maximo 7.6. Presenter: Jeff Yasinski

Oracle Enterprise Manager 13c

Oracle Enterprise Manager

OPN Only Oracle SOA Suite 11g Implementation Boot Camp

1 Entire contents 2007 Forrester Research, Inc. All rights reserved.

Automating Deployment Management with 10g

Peak ETA Product Overview

IBM Tivoli Monitoring

Jens Bertenbreiter, Jürgen Rother, Düsseldorf, März 2018

Stat Production Services for Oracle E-Business Suite (Onsite and Remote)

ROLE : INFORMATICA ADMINISTRATOR

A Technical Roadmap for Oracle Fusion, E-Business Suite Release 12 and Oracle Fusion Applications

Oracle Exadata Monitoring and Management Best Practices Session CON9727 October 26, 2015

Activation of Consumption Item Management in SAP Convergent Charging and SAP Convergent Invoicing

DOAG Big Data Days 2018 DWH Modernization

Harden and Standardize Your Database Configurations Across Clouds CON6978

This topic focuses on how to prepare a customer for support, and how to use the SAP support processes to solve your customer s problems.

TURN VIRTUAL MANAGEMENT INTO AUTOMATED BEST PRACTICES

<Insert Picture Here> Best Practices for Patching & Maintaining Oracle E-Business Suite R12

Stat Production Services for PeopleSoft (Onsite and Remote)

Agile Product Lifecycle Management

Analytics Cloud Service Administration Guide

Advanced Solutions of Microsoft SharePoint Server 2013

Building event-driven Microservices with Kafka Ecosystem

The Benefits of Running JD Edwards EnterpriseOne on the Oracle Technology Stack. A.J. Schifano Principal Product Manager Oracle

COURSE 20332B: ADVANCED SOLUTIONS OF MICROSOFT SHAREPOINT SERVER 2013

Managed Services. Managed Services. Choices that work for you PEOPLESOFT ORACLE CLOUD JD EDWARDS E-BUSINESS SUITE.

COURSE OUTLINE: Course 20533C- Implementing Microsoft Azure Infrastructure Solutions

Course 20332A Advanced Solutions of Microsoft SharePoint Server 2013 Course Duration: 5 days Course Type: Instructor-Led/Classroom

Agile Product Lifecycle Management

Dragon Professional Group. The right corporate solution.

Making the Grid a Reality: Complete Management of the Oracle Environment

Having 5 years and 2 months of professional experience in Information Technology. 3 years of experience as a Informatica PowerCenter Administrator.

Customer Event Hub. The modern Customer 360 View. Guido

About Contract Management

Oracle Paas. Rino Weggers, Customer Success Manager Frank Brink, Customer Success Manager November 17, 2015

Reduce Production Incidents with Oracle Enterprise Manager 12c and give yourself a break! Roland Evers

Protected by U.S patents 6,640,217; 6,708,188; 6,745,210; 7,457,833; 7,469,264; 7,496,614; 8,407,227

Preparing for an Upgrade to OBIEE 12c

Oracle Identity Governance 11g R2: Essentials

<Insert Picture Here> E-Business Suite Konfigurationsmanagement leicht gemacht mit dem Application Change Management Pack

Simplifying Application Deployment in Cloud using Virtual Assemblies and EM 12c Kai Yu Oracle Solutions Engineering Dell Inc

20332B: Advanced Solutions of Microsoft SharePoint Server 2013

Oracle Identity Manager 11g: Essentials

SAP CENTRAL PROCESS SCHEDULING BY REDWOOD: FREQUENTLY ASKED QUESTIONS

Introduction to Stream Processing

Accelerate Oracle EBS R12 Upgrade. Presenters: Ganapathy Shankar Pramod Dhora

Oracle Enterprise Manager 13c

Right Start Remote Implementation (RIS) of a DL4300 Backup & Recovery Appliance

Perfect Service. Testing: Landesk Service Desk 7.6. Dr. Götz Güttich

Database Fleet Maintenance

Exam /Course 20332B Advanced Solutions of Microsoft SharePoint Server 2013

Because you re reading this book, we can safely assume that the products

Cloud Control Introduction 13c Release 1

Pro/INTRALINK Curriculum Guide

Introducing Infor Xi/Ming.le for M3

Primavera Analytics and Primavera Data Warehouse Security Overview

SAP SCM 4.1: Learning Map for SC Technology and Business Integration Consultants

Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template

Using Oracle Enterprise Manager Cloud Control 12c

Dragon Professional Group. The right corporate solution.

Faizer Feroz Director Enterprise Applications Herbalife. Scott Haaland Product Strategy Director Service Integration Product Management

EMPLOYEE TRAINING MANAGER GETTING STARTED. January 2018

Monitoring the Global Enterprise with Oracle Enterprise Manager NoCOUG Spring Conference May 2016

SOA is Dead long live SOA

AN OVERVIEW Document version 4.3 July 2016

Global Value 7. Productivity Suite for GammaVision. Optimizing Gamma Spectrometry Processes through Secure Data Management and Measurement Automation.

Contents Best Practices for Upgrading P6 EPPM... 5 Upgrade Overview... 6 Examining Your Upgrade Criteria... 9 Upgrade Best Practices...

WriteBackPlugin for MicroStrategy

Flying Above the Clouds with Oracle Analytics Cloud

Oracle WebLogic Server Management and Diagnostics Made Simple PRO4476

IBM Cognos 8 IBM COGNOS CONFIGURATION USER GUIDE

Implementing Microsoft Azure Infrastructure Solutions

PI System 2010 Overview. John Baier Director, Product Management Brian Bostwick Director, Client Product Development

Oracle WebLogic Server Management and Diagnostics Made Simple PRO4476

Texas Skyward User Group Conference Skyward Server Management Options

Managed IT

NetVault Backup System Administration Complete Instructorled

Oracle Hyperion Planning : Create & Manage Applications

Oracle Rdb Integration with Enterprise Manager 10g

IBM Tivoli Endpoint Manager for Software Use Analysis

New Features. SAP Mobile Platform 2.3 SP03

Unified Monitoring for On-Premises and Cloud with Oracle Management Cloud

Unified Monitoring for On-Premises and Cloud with Oracle Management Cloud

Case Study: Oracle Application Management Suite for Oracle E-Business Suite

Data Protection Management (DPM)

KACE SYSTEM MANAGEMENT APPLIANCE (SMA) ONSITE QUICKSTART (5 DAYS)

Copyright 2014, Oracle and/or its affiliates. All rights reserved. 2

Operations Guide SAP Convergent Charging (SAP CC 5.0)

WORKING SMARTER WITH SMART VIEW

umantis Successful talent management begins with people

ENTERPRISE OPERATIONS SERVICES

Alloy Navigator Enterprise 8

Course 20533C Implementing Microsoft Azure Infrastructure Solutions

Efficiently Integrate Enterprise Applications with Salesforce.com using Oracle SOA Suite 11g

What s new on Azure? Jan Willem Groenenberg

Essbase in the Cloud an introduction to OAC. Serge Kpossou (AMOSCA) & Guy Bellucci (Oracle)

Transcription:

Automation of Enterprise Manager with EMCLI Robert Crames Senior Consultant robert.crames@trivadis.com Basel Baden Bern Lausanne Zurich Düsseldorf Frankfurt/M. Freiburg i. Br. Hamburg Munich Stuttgart Vienna

Trivadis Facts & Figures Currently 13 locations with over 500 employees Baden, Basel, Bern, Brugg, Lausanne, Zurich Düsseldorf, Frankfurt, Freiburg, Hamburg, Munich, Stuttgart Vienna Since January 2008, the Trivadis Group has a qualified majority of shares in MIK AG, based in Brugg Financially independent and sustainably profitable Key figures in 2007 Consolidated income CHF 98 million / EUR 60 million Services for more than 600 clients in over 1 500 projects Over 125 Service Level Agreements More than 5'000 training participants per year Research budget: CHF 6.0 million / EUR 3.6 million Trivadis - the company 2

Trivadis Solution Portfolio Application Development.NET, Java, ADF, Forms, XML, SOA, custom software, migration und integration Business Communication Enterprise business communication, distributed output management, personalized communication, ebusiness exchange Business Intelligence Data integration - data warehousing - BI platforms - corporate performance management suites Managed Services Application and infrastructure managed services, adaptive sourcing, ITIL, high availability, consolidation, virtualization, migration, automation, backup & recovery Training Blended IT-Learning, skill management, public trainings, onsite trainings Trivadis - the company 3

Preface As seen in the other speeches, Provisioning is a high end feature of Grid Control But, as all high end features in oracle, you have to license it (most of my customers do not have site licenses) What, if Your Environment is not that large, that it s worth evaluating / developing / testing Provisioning What, if the tools You are currently using are that smart, that standardisation is not Your problem This speech will show, how to use emcli to optimize Your own provisioning concepts Automation of Enterprise Manager with EMCLI 4

Agenda A poll... emcli - Overview and Installation Set up Monitoring Working with groups Data are always part of the game. Administer targets Users and credentials Execute Host and SQL-commands Blackouts Essence Automation of Enterprise Manager with EMCLI 5

A poll... Trivadis Consultants were asked what are You use emcli for? here are the top 5 Setup Trivadis definition of monitoring Administer groups and their Members Administer targets Execute host-commands / sql-commands Administer users and credentials They use emcli directly from commandline, within scripts or via sql Here are some examples covering these topics... Automation of Enterprise Manager with EMCLI 6

Agenda A poll... emcli - Overview and Installation Set up Monitoring Working with groups Data are always part of the game. Administer targets Users and credentials Execute Host and SQL-commands Blackouts Essence Automation of Enterprise Manager with EMCLI 7

Overview The command line interface (emcli) allows the execution of a subset of the Grid Control functionality from the commandline With this feature this functionality can be integrated to various, self written, programs and scripts The Command Line Interface can be installed on any client, no additional Oracle Software is needed, but java has to be installed and part of the path-variable There are approx. 160 commands in 27 Verb-Groups Helpful: help emcli help <verb> Automation of Enterprise Manager with EMCLI 8

Installation and setup Preparations: Java has to be installed, jar must be in the path Copy emcli s Java Archive from: $OMS_HOME/sysman/jlib/emclikit.jar or http://<oms>:<oms_port>/em/console/emcli/download Installation... java -jar emclikit.jar client -install_dir=/opt/local/emcli The CLI must be set up and connected to an OMS: emcli setup -url=http://tvdoms:4889/em -username=sysman Automation of Enterprise Manager with EMCLI 9

Installation and setup emcli installations connecting to multiple OMS s are possible emcli setup dir C:\oracle\emcli1 -url=http://rom:4889/em - username=sysman emcli setup dir C:\oracle\emcli2 -url=http://wien:4889/em - username=sysman Use EMCLI_STATE_DIR to point to the appropriate directory set EMCLI_STATE_DIR=C:\oracle\emcli1 emcli setup Oracle Enterprise Manager 10g Release 10.2.0.5.0. Copyright (c) 1996, 2009 Oracle Corporation... CONFIG DIRECTORY : C:\Documents and Settings\Administrator\.emcli OMS : http://tvdoms:4889/em EM USER : sysman TRUST ALL : false Automation of Enterprise Manager with EMCLI 10

Some additional informations You can use all emcli commands in scripts Keep in mind to start emcli in Windows-CMD-Scripts with call i.e. call emcli... emcli has returnvalues which can get evaluated The demos are a little abstract and reduced to the emcli command, to show what you finally really need Automation of Enterprise Manager with EMCLI 11

Agenda A poll... emcli - Overview and Installation Set up Monitoring Working with groups Data are always part of the game. Administer targets Users and credentials Execute Host and SQL-commands Blackouts Essence Automation of Enterprise Manager with EMCLI 12

Setup Monitoring We, at Trivadis, decided to define and use a standard in monitoring Databases (and dependant targets, such as listeners, hosts and the agent) with Grid Control, to offer our customers a quick solution to monitor their environments It is a basic monitoring, covering the needs of DBA s in terms of availability of targets It consists of a set of monitoring templates, transportable by using emcli Unfortunately, another important part of monitoring notification rules are currently not fully supported by emcli Also missing: a possibility to delete existing monitoring templates Automation of Enterprise Manager with EMCLI 13

Setup Monitoring At first you have to have the basic monitoring templates ;-) Automation of Enterprise Manager with EMCLI 14

Setup Monitoring Now, you can export these templates with emcli emcli export_template \ -name="tvd_database_templ" \ -target_type="oracle_database" \ -output_file=exp_tvd_database_templ.out Once exported, the generated output_files are a quick way to setup monitoring templates emcli import_template \ -files= exp_tvd_db_templ.out;exp_tvd_host_templ.out BTW: Output-Files are in xml format Automation of Enterprise Manager with EMCLI 15

Setup Monitoring When templates are finally imported, we have to apply these templates... emcli apply_template -name= TVD_HOST_TEMPL" -targets= TVD_PROD_GROUP:composite" -copy_flags="1" Automation of Enterprise Manager with EMCLI 16

Agenda A poll... emcli - Overview and Installation Set up Monitoring Working with groups Data are always part of the game. Administer targets Users and credentials Execute Host and SQL-commands Blackouts Essence Automation of Enterprise Manager with EMCLI 17

Working with groups... Groups are one important part when defining monitoring, because monitoring templates can be applied to groups, notification rules can be applied to groups as well,... Creating Groups can be a time consuming work when done with the GUI Groups are living objects Groupmembers are added or deleted, Groups get rearranged, a.s.o, so you have to provide a mechanism to recreate groups regularily, thus keeping your groups up to date The method to keep the efforts low: emcli... Automation of Enterprise Manager with EMCLI 18

Working with groups... Create a group emcli create_group -name="tvd_prod_group" Add members to a group emcli create_group -name="tvd_prod_group -add_targets= <TargetName>:<TargetType>;... OR emcli modify_group -name="tvd_prod_group -add_targets= <TargetName>:<TargetType>;... Delete members from a group emcli modify_group -name="tvd_prod_group -delete_targets=<targetname>:<targettype> Automation of Enterprise Manager with EMCLI 19

Working with groups... Get informations about your groups emcli get_groups Target Name Target Type TVD_PROD_GROUP group Get informations about a specific group emcli get_group_members -name=tvd_prod_group Target Name Target Type TVDOMS host OMSREPO_site1.trivadis.com oracle_database LISTENER_TVDOMS oracle_listener Automation of Enterprise Manager with EMCLI 20

Agenda A poll... emcli - Overview and Installation Set up Monitoring Working with groups Data are always part of the game. Administer targets Users and credentials Execute Host and SQL-commands Blackouts Essence Automation of Enterprise Manager with EMCLI 21

Administer Targets Targets are the base of our daily business In Scripts to create databases, emcli is used to add the database directly to GC, to bring it to the right group, to setup preferred credentials... Delete database scripts include emcli-commands to delete the target in the repository, though cleaning up our repository In short: emcli commands supports us in keeping a high quality of grid control s repository Automation of Enterprise Manager with EMCLI 22

Delete targets... To delete a target, relations have to be kept in mind: A Host can not be deleted, if there are still Databases registered emcli delete_target \ -name="sales. trivadis.com" \ -type="oracle_database" Tip: To delete an entire host including all of its dependant targets: exec mgmt_admin.cleanup_agent( <hostname>:<port>'); Attention: Effectively, targets will be deleted through an internal job, this can take time, do not add it again immediately! (But there is no emcli command to check this) Automation of Enterprise Manager with EMCLI 23

Add Targets Per emcli all target types can be added emcli add_target \ -name="sales.trivadis.com" \ -type="oracle_database" \ -host= TVDOMS" \ -credentials= \ "UserName:dbsnmp;password:manager;Role:Normal" \ -properties= \ "SID:SALES; Port:1521; OracleHomeD:\oracle\product\10.2.0; MachineName:TVDOMS -groups= TVD_PROD_GROUP:group Tipp: The names of the target types can be found in sysman s table: mgmt_target_types Automation of Enterprise Manager with EMCLI 24

Get informations about targets You can get informations from the oms about the current state of your targets emcli get_targets -targets="oracle%" -alerts -script Status ID Status Target Type Target Name Critical Warning 1 Hochgefahren oracle_apache EnterpriseManager0.tvdoms_HTTP Server 0 1 1 Hochgefahren oracle_beacon TVDOMS_beacon 0 0 1 Hochgefahren oracle_csa_collector TVDOMS_oms_csa_collector 0 0 1 Hochgefahren oracle_database OMSREPO_site1.trivadis.com 30 97 1 Hochgefahren oracle_emd TVDOMS:3872 0 1 1 Hochgefahren oracle_emrep Management Services and Repository 1 0 1 Hochgefahren oracle_ias EnterpriseManager0.tvdoms 0 0 1 Hochgefahren oracle_listener LISTENER_TVDOMS 11 7 1 Hochgefahren oracle_webcache EnterpriseManager0.tvdoms_Web Cache 0 1 Automation of Enterprise Manager with EMCLI 25

Agenda A poll... emcli - Overview and Installation Set up Monitoring Working with groups Data are always part of the game. Administer targets Users and credentials Execute Host and SQL-commands Blackouts Essence Automation of Enterprise Manager with EMCLI 26

Users and credentials Useraccounts in OMS s are frequently changed. You have to... :... grant access to the OMS for new employees... revoke access from employees who has left the company Or Database s passwords changing regularly, so You have to reset preferred credentials for all users... Emcli helps to keep the overhead small...... all this can be automated by scripts (and the input comes from the repository) Automation of Enterprise Manager with EMCLI 27

Users and credentials Create a new user is quite simple... emcli create_user -name=doagtest -desc="this is a new superuser" -privilege="super_user" -expire="true" - password="manager"... and to delete him, as well emcli delete_user -name=doagtest Setting preferred credentials was a time consuming work... emcli set_credential -target_type=oracle_database -target_name=omsrepo_site1.trivadis.com -credential_set=dbcredsnormal -user=doagtest -column="username:system;password:manager;role:''" Automation of Enterprise Manager with EMCLI 28

Agenda A poll... emcli - Overview and Installation Set up Monitoring Working with groups Data are always part of the game. Administer targets Users and credentials Execute Host and SQL-commands Blackouts Essence Automation of Enterprise Manager with EMCLI 29

Execute commands - Prerequisites To successful run emcli execute... you have to... : Setup the complete preferred credentials of the databases (including host-credentials in the database section of preferred credentials) Setup the complete preferred credentials of the hosts Keep in mind, that target_names are Case-sensitive even when using emcli under Windows Automation of Enterprise Manager with EMCLI 30

Execute SQL Statements against multiple DBs An example for executing a sql... emcli execute_sql -sql="select username, default_tablespace FROM dba_users" -targets="tvd_prod_group:composite" -credential_set_name="dbcredsnormal ************************************************************ * Target: OMSREPO_site1.trivadis.com:oracle_database * Execution Status: Succeeded ************************************************************ USERNAME DEFAULT_TABLESPACE ------------------------------ ---------------------------- SYSTEM SYSTEM ************************************************************ * Execution Summary * Targets Succeeded: 1... Automation of Enterprise Manager with EMCLI 31

Execute Host Commands against multiple Hosts An example for executing an host-command emcli execute_hostcmd -cmd="dir D:\oracle" -credential_set_name="hostcredspriv" -targets="tvdoms:host ************************************************************** * Ziel: TVDOMS:host * Ausführungsstatus: Erfolgreich ************************************************************** Volume in drive D is Data1 Volume Serial Number is 9C4E-2ABD Directory of D:\oracle 26.02.2009 21:36 <DIR>. 26.02.2009 21:36 <DIR>.. 25.02.2009 22:28 <DIR> admin 20.03.2009 10:42 <DIR> etc... Automation of Enterprise Manager with EMCLI 32

Agenda A poll... emcli - Overview and Installation Set up Monitoring Working with groups Data are always part of the game. Administer targets Users and credentials Execute Host and SQL-commands Blackouts Essence Automation of Enterprise Manager with EMCLI 33

Blackouts Even though the agent is able to handle blackouts (and this is probably the right point for that), emcli can do that, too For a Blackout, a predefined reason has to be entered. Only a Super Admin is able to define new reasons Which reasons exists (60 by now): emcli get_blackout_reasons... DB: Database Cold Backup DB: Database Configuration Change DB: Database Decommissioning DB: Database Emergency... EM: Agent Configuration Change EM: Agent Upgrade EM: OMS Server Configuration Change Testing Automation of Enterprise Manager with EMCLI 34

Start Blackout Start a Blackout for a database From now on, maximal duration 30min. emcli create_blackout -name="security Patch CPU Jan 2009 on OMSREPO" -add_targets="omsrepo_site1.trivadis.com:oracle_database" -reason="security Patch" -description="very important security patch!" -schedule="duration::30" Can be planed into the future Can be repeatable (declare Interval) Runs under the credentials of the emcli-user Automation of Enterprise Manager with EMCLI 35

Stop Blackout Blackouts can be stopped before the scheduled end-time emcli stop_blackout -name="security Patch CPU Jan 2009 on OMSREPO" Keep in mind: Stopping a blackout only stops the blackout when you try to create a blackout with the same name you ll receive an error, stating the blackout is already there. It s a good advice to stop the blackout and afterwards to delete this blackout (it s not possible to start an existing blackout, using emcli) emcli delete_blackout -name="security Patch CPU Jan 2009 on OMSREPO" Automation of Enterprise Manager with EMCLI 36

Agenda A poll... emcli - Overview and Installation Set up Monitoring Working with groups Data are always part of the game. Administer targets Users and credentials Execute Host and SQL-commands Blackouts Essence Automation of Enterprise Manager with EMCLI 37

Essence Good opportunities to include Grid Control features into your own scripts The existing commands work fine The commands are compatible with older emcli versions But there are (still) some important things missing: Administer notification rules and schedules Clone databases After that it would be (it becomes) perfect... But even if things are missing: It s an important feature, making the daily business a little easier... Automation of Enterprise Manager with EMCLI 38

Thank you!? www.trivadis.com Basel Baden Bern Lausanne Zurich Düsseldorf Frankfurt/M. Freiburg i. Br. Hamburg Munich Stuttgart Vienna