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
- Generate Public and Private Keys on a linux box.
1 |
#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
- 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.
- 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
1 |
$emctl status agent |
Take a note of the agent url : https://********.***.net:3872/emd/main/
1 2 3 |
$ ./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.
- On OTD Target Host
Insert the OMS server details into the host file:
1 2 3 4 |
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
1 2 |
#mkdir /u01/app/agentHome #chown oracle:oracle </span>/u01/app/agentHome |
- 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.
1 2 |
#/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.
- 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.