OEM Agent 12c

User Rating: 5 / 5

Star ActiveStar ActiveStar ActiveStar ActiveStar Active
 

 

Oracle Enterprise Manager (OEM) Agent 12c

Troubleshooting

ps -ef |grep [e]mctl
ps -ef |grep [a]gent

tail -100f /u01/app/oracle/agent12c/agent_inst/sysman/log/emagent.nohup logs

/u01/app/oracle/agent12c/core/12.1.0.3.0/bin/emctl status agent

/u01/app/oracle/agent12c/core/12.1.0.3.0/bin/emctl start | clearstate |  upload | stop  agent

vi /u01/app/oracle/agent12c/agent_inst/sysman/config/emd.properties
         java -Xms<initial heap size> -Xmx<maximum heap size>
         UploadMaxDiskUsedPct=99
         UploadMaxBytesXML = 50

/u01/app/oracle/agent12c/core/12.1.0.3.0/bin/emctl start agent java -Xms8M -Xmx32M
/u01/app/oracle/agent12c/core/12.1.0.3.0/bin/emctl unsecure | secure  agent
/u01/app/oracle/agent12c/core/12.1.0.3.0/bin/emctl upload  agent

EM -> setup -> manage cloud control -> agents      Unblock
EM -> setup -> manage cloud control -> agents -> Agent -> Resecure…
EM -> setup -> manage cloud control -> agents , Agent  key -> Resynchronization…

Install OEM Cloud Agent

Add OEM Cloud on PC
vi /etc/hosts
172.33.77.100   emcc.localdomain.com         emcc

Add PC on OEM Cloud
z2 or ssh This email address is being protected from spambots. You need JavaScript enabled to view it.
vi /etc/hosts

Setup/ Add Target/ Add Targets Manually
Add Host Targets/ Add Host...
Add, Platform
/u01/app/oracle/agent12c                C:\oracle\agent12
Linux ORACLE user credentials 

As root run:
/u01/app/oracle/agent12c/core/12.1.0.3.0/root.sh 

  Run as Administrator:
C:\Documents and Settings\Administrator>C:/oracle/agent12/ADATMP_2016-01-19_08-52-03-AM/agentDeploy.bat -ignorePrereqs ORACLE_HOSTNAME=oracledbs.kazpost.kz AGENT_BASE_DIR=C:/oracle/agent12 OMS_HOST=emcc.kazpost.kz EM_UPLOAD_PORT=4903 AGENT_INSTANCE_HOME=C:/oracle/agent12/agent_inst b_doDiscovery=false b_startAgent=false b_forceInstCheck=true AGENT_PORT=3872

Setup/ Add Target/ Add Targets Manually
Add Targets Using Guided Process (Also Adds Related Targets)
Oracle Database, Listener and Automatic Storage Management (or Cluster Hight Availability)
- remove .kazpost.kz from Database Target Name 

alter user dbsnmp identified by BestPa$$w0rd account unlock;

. grid_env
          export ORACLE_HOME=/u01/app/11.2.0.3/grid
          export ORACLE_SID=+ASM1
          export PATH=$ORACLE_HOME/bin:$PATH
          export TNS_ADMIN=/u01/app/11.2.0.3/grid/network/admin/
sqlplus '/as sysasm'
select * from v$pwfile_users;
alter user asmsnmp identified by BestPa$$w0rd account unlock;          - on both nodes! for ASM 

Do you have the privileges to run as root using the Privilege Delegation tool? Warning The "requiretty" flag is set in the sudoers file on the remote host, and as a result, the user will not be able to run sudo over ssh   

    Either set the "oracle.sysman.prov.agentpush.enablePty" property to true in the "/u01/app/oracle/fmw/oms/sysman/prov/agentpush/agentpush.properties" file, or disable the "requiretty" flag in the sudoers file

    You can also ignore this warning and continue in which case the root.sh, any preinstallation or postinstallation scripts specified with run as root enabled will not be run and you have to run them manually after installation

Add comment
Targets/ Databases/ <select DB>
Oracle Database/ Target Setup/ Properties
Edit
          hostname ip - note

emctl start agent
emctl start | stop | restart agent
emctl start | stop | restart oms 

Reconfigure Agent
env |grep HOME
. grid.env
env |grep HOME если есть ASM
emca -config dbcontrol db

Deploy Agent Links

http://cloudcontrol12c.blogspot.com/2013/06/deploy-oracle-enterprise-manager-12c.html

http://www.gokhanatil.com/2011/10/how-to-deploy-oracle-management-agent.html

Add Rac DB http://www.gokhanatil.com/2014/01/how-to-add-rac-databases-to-enterprise-manager-cloud-control-12c.html

Win Agent http://www.carajandb.com/en/blogs/blog-swinkler-en/190-oem-12c-agent-deploy-on-windows-no-problem-with-cygwin 

Uninstall the Agent Oracle Home that registered with inventory

1. $<AGENT_HOME>/perl/bin/perl <AGENT_HOME>/sysman/install/AgentDeinstall.pl -agentHome <AGENT_HOME>

[oracle@server]$

/u01/app/oracle/agent12c/core/12.1.0.3.0/perl/bin/perl /u01/app/oracle/agent12c/core/12.1.0.3.0/sysman/install/AgentDeinstall.pl -agentHome /u01/app/oracle/agent12c/core/12.1.0.3.0/

Do you want us to delete the old oracle home [yes/no] :no

WINDOWS: Uninstall via Start menu, remove path to agent in the Register

cd /u01/app/oracle/agent12c
rm -rf * 

2. Remove target from OEM Cloud

Targets/ All Targets/ 
Cluster/ Target Setup/ Remove Target

3. Remove Host from OEM Cloud

OMS, prevent «page expired» in OEM Cloud 12 

          -1 means never, 240 other minutes

cd /u01/app/oracle/fmw/oms/bin
./emctl set property -name oracle.sysman.eml.maxInactiveTime -value 240 -sysman_pwd <your sysman password>
./emctl stop oms
./emctl start oms

Also don't forget to configure Zabbix agent

Newsletter

Enter your email to join our mailing list

Quick Contact