Categories
Blog

Installing SOACS Hybrid Agent EM13C

In my last post we set up a hybrid agent and installed an OTD agent, in this post we shall create a SOACS agent. I am assuming you have already done the first few steps that were mentioned in my last post OTD Hybrid Agent (http://puredba.co.uk/oracle-traffic-director-otd-hybrid-agent-em-13c/)
 

  1. On SOACS Target Host

Insert the OMS server details into the host file:

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
#Added for EM
1.2.3.4  ******.mshome.net

Create the Agent Directory

#mkdir /u01/app/agentHome
#chown oracle:oracle /u01/app/agentHome

 

  1. Add the target in EM
    Em Console>Setup>Add Targets Manually>Install Agent on Host
     


    Click Next


     

    Deploy Agent

     


    We will run script manually, so click continue all hosts.
    Log onto host and run the following as root.

    • /u01/app/agentHome/agent_13.1.0.0.0/root.sh
    • /u01/app/oraInventory/orainstRoot.sh


     

    Click <done> in your agent install screen.
     

    If you go to Targets/Hosts, you will see the SOACS machine.
     

    Discovering SOA Suite

    This section describes the procedure for discovering the SOA Suit.

    1. Login to Oracle Enterprise Manager Grid Control.
    2. Click Targets and then Middleware.

      Oracle Enterprise Manager Grid Control displays the Middleware page that lists all the middleware targets being monitored.

    3. In the Middleware page, from the Add list, select Oracle Fusion Middleware / WebLogic Domain and click Go. Specify the Administration Server Host, Port, User Name, Password, Agent (local or remote) and the JMX Protocol and click Continue.



    Click Add Targets


    1. You will return to the Middleware page. You will see the SOA instances under the WebLogic Domain.

     

    Wait for a few minutes then drill into the soa target you will need to configure the functionality logins.

     

    Bugs and Fixes

     

    1. This Error Hospital screen will not work, by default.

     

    When you go to this screen it will ask you to set up the target information, when you try to do this you will get the following message.

     


     According to Oracle certifications, it’s not supported with 12.1

     bash-4.1$ pwd
    /u01/app/agentHome/agent_13.1.0.0.0/plugins/oracle.sysman.emas.agent.plugin_13.1.1.0.0/archives/jlib
    -bash-4.1$ mkdir extjlib
    

     #According to the error we need all these jar files.

     1.soa-infra-mgmt.jar,
    2.oracle-soa-client-api.jar
    3.jrf-api.jar,
    4.tracking-api.jar,
    5.oracle.bpm.bpmn-em-tools.jar,
    6.rulesdk2.jar ,
    7.xmlparserv2.jar ,
    8.com.oracle.webservices.fabric-common-api_12.1.3.jar or com.oracle.webservices.fabric-common-api.jar ,
    9.wlthint3client.jar.

     Copy all the jar files.

     -bash-4.1$ cp -p /u01/app/oracle/middleware/soa/soa/modules/oracle.soa.mgmt_11.1.1/soa-infra-mgmt.jar /u01/app/agentHome/agent_13.1.0.0.0/plugins/oracle.sysman.emas.agent.plugin_13.1.1.0.0/archives/jlib/extjlib
    -bash-4.1$ cp -p /u01/app/oracle/middleware/soa/soa/modules/oracle.soa.fabric_11.1.1/oracle-soa-client-api.jar /u01/app/agentHome/agent_13.1.0.0.0/plugins/oracle.sysman.emas.agent.plugin_13.1.1.0.0/archives/jlib/extjlib
    -bash-4.1$ cp -p /u01/app/oracle/middleware/oracle_common/modules/oracle.jrf_12.1.3/jrf-api.jar /u01/app/agentHome/agent_13.1.0.0.0/plugins/oracle.sysman.emas.agent.plugin_13.1.1.0.0/archives/jlib/extjlib
    -bash-4.1$ cp -p /u01/app/oracle/middleware/soa/soa/modules/oracle.soa.fabric_11.1.1/tracking-api.jar /u01/app/agentHome/agent_13.1.0.0.0/plugins/oracle.sysman.emas.agent.plugin_13.1.1.0.0/archives/jlib/extjlib
    -bash-4.1$ cp -p /u01/app/oracle/middleware/soa/bpm/modules/oracle.bpm.mgmt_11.1.1/oracle.bpm.bpmn-em-tools.jar /u01/app/agentHome/agent_13.1.0.0.0/plugins/oracle.sysman.emas.agent.plugin_13.1.1.0.0/archives/jlib/extjlib
    -bash-4.1$ cp -p /u01/app/oracle/middleware/soa/soa/modules/oracle.rules_11.1.1/rulesdk2.jar /u01/app/agentHome/agent_13.1.0.0.0/plugins/oracle.sysman.emas.agent.plugin_13.1.1.0.0/archives/jlib/extjlib
    -bash-4.1$ cp -p /u01/app/oracle/middleware/soa/soa/modules/oracle.rules_11.1.1/rulesdk2.jar /u01/app/agentHome/agent_13.1.0.0.0/plugins/oracle.sysman.emas.agent.plugin_13.1.1.0.0/archives/jlib/extjlib
    -bash-4.1$ cp -p /u01/app/agentHome/agent_13.1.0.0.0/modules/xmlparserv2.jar /u01/app/agentHome/agent_13.1.0.0.0/plugins/oracle.sysman.emas.agent.plugin_13.1.1.0.0/archives/jlib/extjlib
    -bash-4.1$ cp -p /u01/app/oracle/middleware/oracle_common/modules/com.oracle.webservices.fabric-common-api_12.1.3.jar /u01/app/agentHome/agent_13.1.0.0.0/plugins/oracle.sysman.emas.agent.plugin_13.1.1.0.0/archives/jlib/extjlib
    -bash-4.1$ cp -p /u01/app/agentHome/agent_13.1.0.0.0/plugins/oracle.sysman.emas.agent.plugin_13.1.1.0.0/archives/jlib/wlthint3client.jar /u01/app/agentHome/agent_13.1.0.0.0/plugins/oracle.sysman.emas.agent.plugin_13.1.1.0.0/archives/jlib/extjlib
    -bash-4.1$ ls -la
    total 74412
    drwxrwxr-x 2 oracle oracle     4096 Jul 29 19:09 .
    drwxr-xr-x 3 oracle oracle     4096 Jul 29 18:59 ..
    -rw-r----- 1 oracle oracle   166207 May  6  2014 com.oracle.webservices.fabric-common-api_12.1.3.jar
    -rw-r----- 1 oracle oracle   147471 May  7  2014 jrf-api.jar
    -rw-r----- 1 oracle oracle 65873876 Jan 13  2016 oracle.bpm.bpmn-em-tools.jar
    -rw-r----- 1 oracle oracle    49893 Jan 13  2016 oracle-soa-client-api.jar
    -rw-r----- 1 oracle oracle  2063990 Jan 13  2016 rulesdk2.jar
    -rw-r----- 1 oracle oracle  1556107 Jan 13  2016 soa-infra-mgmt.jar
    -rw-r----- 1 oracle oracle    16081 Jan 13  2016 tracking-api.jar
    -rw-r--r-- 1 oracle oracle  4615123 Jul 20  2015 wlthint3client.jar
    -rw-r--r-- 1 oracle oracle  1684004 Oct  5  2015 xmlparserv2.jar
     -bash-4.1$ chmod 755 *.jar.

     Now go back to your screen and just do a save not a rescan. If you did a rescan it will still say some error with jar files, but it will say jar files do exist. Save.
     The screen works.
     
     

    1. SOA Composite statuses, if they go down they get marked as down but when they come back up the console does not refresh, you will need to do a weblogic domain refresh in the console. You could set up a job that does this refresh automatically.

     

    Summary

     You have SOACS monitored from EM13C cloud control.

Categories
Blog

Oracle Traffic Director (OTD) Hybrid Agent EM13C

In this post we will set up to monitor OTD in the cloud.

Pre-Requisite:

When you use the Add Host Targets Wizard or EM CLI to install a Management Agent on a host running on Microsoft Windows, as a prerequisite, you must install Cygwin and start the SSH Daemon on the host. To do so, follow the steps listed in Section 5.3 and 5.4

https://docs.oracle.com/cd/E24628_01/install.121/e22624/preinstall_req_cygwin_ssh.htm#EMBSC281

 

  1. Generate Public and Private Keys on a linux box.

#ssh-keygen -b 2048 -t rsa

This will generate 2 keys a private and public key
Add the public key to the Oracle user (The user being used for connecting to the host from EM13C) on your target OTD host
 

  1. Set up the user in EM13c

In EM

Click on Setup, Security and then Named Credentials.  Click on Create under the Named Credentials section, As per below screen shot, insert your details and the keys you generated in step 1.


Click Save.


  1. Create a Hybrid Cloud Agent

You can use an existing agent, but you should create few agents for higher availability.

Go to Agent home on the oms server and do a

$emctl status agent

Take a note of the agent url : https://********.***.net:3872/emd/main/

 



$ ./emcli login -username=sysman
Enter password :
$ ./emcli register_hybridgateway_agent -hybridgateway_agent_list='

********.***.net:3872

Make sure to restart the agent after you’re performed this step.  


 

  1. On OTD Target Host

 Insert the OMS server details into the host file:

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
#Added for EM
1.2.3.4  ******.mshome.net

 

Create the Agent Directory

#mkdir /u01/app/agentHome
#chown oracle:oracle </span>/u01/app/agentHome

 

  1. Add the target in EM

 

Em Console

Setup > Add Target > Add Targets Manually

Install Agent on Host


Click Next


Deploy Agent

We will run script manually, so click continue all hosts.

Log onto host and run the following as root.

#/u01/app/agentHome/agent_13.1.0.0.0/root.sh
#/u01/app/oraInventory/orainstRoot.sh

Click <done> in your agent install screen.

If you go to Targets/Hosts, you will see the machine.

 

  1. Now let’s add OTD

In Console, Setup,Add Target, Add targets Manually.

Select Add Using Guided Process

Select Traffic Director

Click Add, The screen below we are adding the info you would use to log into the Traffic Director Console. Also if you need to find the other info, this can be found in the following file /u01/data/otd-instance/admin-server/config/snmpagt.conf for the snmp port if it has been configured.

Click Continue

Click Add Targets

7.Verify OTD

In EM13c Console, Select Targets/Middleware/

The status cross will clear once the agent has collected the data

Drill into the OTD.

We can see Traffic Director Responses and Requests, The cross in the status is because the agent is trying to connect to the SNMP port, which we have disabled at the moment. We can still collect meaningful info, without this.

 

Categories
Blog

Discovering Exalytics in EM13c

In one of my posts I installed and set up EM13c and installed an agent onto the Exalytics system, we will now discover the system in 13c.

Select targets/Systems

 

Select Add/Exalytics System

Enter the Machine Name, Agent, Platform, Deployment Type, username, Password, IP Address, ILOM Details

Click Next


 

 

Click Add Targets

Log onto the ilom

 

Select a free alert and click edit

In this screen we will enter the details where the agent is running, so that the ilom can send alerts.

Verify the Compute Node ILOM SNMP

  1. Log onto the host running the agent

#ipmitool -I lan -H &lt;ilom IP&gt; -U root -P &lt;Password&gt; -L OPERATOR event PCIE5/PRSNT absent assert
Finding sensor PCIE5/PRSNT... ok
   0 | Pre-Init Time-stamp   | Entity Presence #0xa7 | Absent | Asserted
#

Log onto the ilom , and see the event log:

Now check in the EM console if we can see the event id.

Clear in cloud control.

Categories
Blog

Enabling and Diabling BI Publisher in EM13C

So you have installed EM13C, how do you disable and enable the BI Publisher.
Check OMS Status

N:\app\oracle\middleware\bin>emctl status oms
Oracle Enterprise Manager Cloud Control 13c Release 1
Copyright (c) 1996, 2015 Oracle Corporation.  All rights reserved.
WebTier is Up
Oracle Management Server is Up
JVMD Engine is Up
BI Publisher Server is Down
BI Publisher is disabled, to enable BI Publisher on this host, use the 'emctl cnfig oms -enable_bip' command

Enable BI Publisher

N:\app\oracle\middleware\bin>emctl config oms -enable_bip
Oracle Enterprise Manager Cloud Control 13c Release 1
Copyright (c) 1996, 2015 Oracle Corporation.  All rights reserved.
Enter Enterprise Manager Root (SYSMAN) Password :
BI Publisher is enabled for startup on this host with the 'emctl start oms'  and
 'emctl start oms -bip_only' commands.
Overall result of operations: SUCCESS

Start BI Publisher

N:\app\oracle\middleware\bin>emctl start oms
Oracle Enterprise Manager Cloud Control 13c Release 1
Copyright (c) 1996, 2015 Oracle Corporation.  All rights reserved.
Windows service OracleManagementServer_EMGC_OMS1_1 successfully started
Oracle Management Server is Up
JVMD Engine is Up
Starting BI Publisher Server ...
BI Publisher Server Successfully Started
BI Publisher Server is Up

Disable BI Publisher

emctl config oms -disable_bip
Categories
Blog

Video: Lock Down Your Cloud