My Oracle Support Banner

EM 12c, EM 13c : Steps to configure OS Command Notification Method to Execute a Custom OS Script (Doc ID 1540562.1)

Last updated on MAY 22, 2023

Applies to:

Enterprise Manager Base Platform - Version and later
Generic UNIX
Generic Linux


Notification methods define the method by which the notifications will be sent to the Enterprise Manager administrators under the configured conditions. The available Notification methods in Enterprise Manager are:

This document provides the steps for configuring OS Command Notification Method in 12c/13c Enterprise Manager Cloud Control UI so that a custom OS command or script can be invoked on the occurrence / update of an Event / Incident / Problem as defined in the Incident Management Rules. The script can access the contextual information of the event / incident / problem details via environment variables, which can be used to customize automated responses specific to event conditions.
For example, if an OS script opens a trouble ticket for an in-house support trouble ticket system, severity levels (critical, warning, and so on) can be passed to the script to open a trouble ticket with the appropriate details.


1. Policy Violations are no longer supported for enabling Notifications beginning with the Enterprise Manager 12c release.
2. Once the notification method has been created, it is necessary to define an Incident Management Rule which provides the conditions under which this method is invoked by the OMS for sending notifications. Refer to:

Note 1368036.1 : EM 12c, EM 13c : Steps to Configure Incident Rules to Send Notifications or Manage Events / Incidents / Problems
Note 1553311.1 : EM 12c, EM 13c : How to Configure Incident Rule to Invoke Advanced Notification Methods like OS Command, PL/SQL or SNMP Traps?



Enterprise Manager Cloud Control Administrators who require an OS script / command to be executed via the Notification subsystem.


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document
 Create the OS Command Script
 Passing Information to the OS Script
 Migrating pre-12c OS Command Scripts
 Sample OS Command Script
 Configure the OS Command Notification Method
 OMS Parameters related to OS Command Notification

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.