How to Set Up Out Of Band Notifications in OEM 13C
How does it work?
The agent on the OMS host checks the status of the ‘ OMS and repository’ target ( oracle_emrep) by running the metric ‘ Response’ which runs the Perl script:[agent_home]/plugins/oracle.sysman.emrep.agent.plugin_13.1.0.n.0/scripts/emrepresp.plIf the oracle_emrep target is detected as down, then emrepdown.pl will call on the same directory. The emrepdown.pl uses the Perl “ Net::SMTP” method to send an email using the Out Of Band email information (To Email ID, Email Gateway, From Email ID) defined in the agent’s /sysman/config/emd.properties configuration file. Note: This method does not currently support SSL email authentication. An internal ER has been raised for this.
How to set this up?
1) Run the following commands which will set the email parameters in the emd.properties file. Do this on the chained agent (ie. the agent on the same machine as the OMS which monitors the oracle_emrep target) a) Set the agent ORACLE_HOME$ export ORACLE_HOME= $ export PATH= ORACLE_HOME/bin:$PATHExample:
$ export ORACLE_HOME=/oracle/13c/13cagent/core/13.1.0.3.0 $ export PATH=$ORACLE_HOME/bin:$PATHb) Check if any values are currently set for the Out of Band parameters:
$ emctl getproperty agent -name emd_email_address $ emctl getproperty agent -name emd_from_email_address $ emctl getproperty agent -name emd_email_gatewayIf the message is returned...
emd_email_address is not a valid configuration property... it means that this is not yet set up. Continue to the next section. c) Set the Out of Band parameters
emctl setproperty agent -allow_new -name emd_email_address -value [youremailaddress] emctl setproperty agent -allow_new -name emd_from_email_address -value [senderAddress] emctl setproperty agent -allow_new -name emd_email_gateway -value [outgoingsmtpserver]
Example:
$ emctl setproperty agent -allow_new -name emd_email_gateway -value smtp.server.hostname $ emctl setproperty agent -allow_new -name emd_email_address -value noc@pythian.com $ emctl setproperty agent -allow_new -name emd_from_email_address -value 13cagent@pythian.com
Tip: The value for the emd_email_gateway can be the same as is used for ‘normal’ email notifications via the OMS. This can be accessed via setup/notifications/notification methods. If you need to use “ Use Secure Connection:SSL” normally, then this means that your mail server requires SSL authentication, meaning that the OOB method will not be suitable. Remember: the OOB method does not support SSL email authentication at this time. 2) Stop and start the agent for these parameters to take effect. More information like to test this configuration can be found on MOS note: EM 13c, 12c: How to Set Up Out Of Band Email Notification in Enterprise Manager Cloud Control (Doc ID 1472854.1) Hope that helps, cheers!
Oracle Database Consulting Services
Ready to optimize your Oracle Database for the future?
Share this
Share this
More resources
Learn more about Pythian by reading the following blogs and articles.
How to work around OMS 12.1.0.3 error: Metric evaluation error start – Get dynamic property error
EM 13c: Patching Oracle Enterprise Manager With Release 4 Update 6 (13.4.0.6)

OEM 12.5: Tablespace Allocation Metric Not Collected—Agent Is Running but Not Ready
Ready to unlock value from your data?
With Pythian, you can accomplish your data transformation goals and more.