Add a banner on Oracle Enterprise Manager login page.

In my current work environment, I often have to switch from one OEM console to another. In order to quickly identify which console I’m going to connect to, and to make sure I don’t make a mistake by confusing production and non-production, I discovered a trick that allows me to add a banner on the login page.

Here is the final result (it’s not very pretty, but the rendering will depend on your CSS skills ๐Ÿ˜‰ ):

To add this red “Production” banner, I used the “oracle.sysman.core.uifwk.complianceText” property which is configured on the OMS side.

By default, the property adds a line at the bottom of the page, above the copyrights, but this is not very visible:

Fortunately, with a little CSS formatting, the text can be formatted and positioned at the desired location.

Enable the property “oracle.sysman.core.uifwk.complianceText”.

The first step is to enable the “oracle.sysman.core.uifwk.complianceText” property in the OEM configuration.
Once connected to the Enterprise Manager console with an administrator account, go to “Setup” => “Manage Cloud Control” => “Management Servers”:

Then go to “Mangement Servers” => Configuration properties”:

Then click on “Set Property Value” then “Set new Property Value”:

On the page that appears, look for the property “oracle.sysman.core.uifwk.complianceText” then validate by clicking on the magnifying glass:

You can now enter the desired text in the “Global Setting” field.
This is where your CSS skills come into play!

Customize the text to be displayed

As said before, the text is displayed by default at the bottom of the login page and is not very visible. This problem can be easily solved by adding some “inline CSS” as property value.
In my case, here is the value I gave to the property “oracle.sysman.core.uifwk.complianceText”:

<span style="color:red;font-weight:bold;font-size:2.5em;text-align:center;position:fixed;top:0;width:100%;margin-left:-50px;background-color:white;">Production</span>

This is very basic CSS:

  • color:red text in red
  • font-weight:bold text in bold
  • font-size:2.5em text a little bit bigger
  • background-color:white white background
  • text-align:center;position:fixed;top:0;width:100%;margin-left:-50px pushes the text to the top of the page and center it

You can modify the CSS properties as you wish or add new ones. The important part is that everything is encapsulated in the “style” attribute of the “span” tag. It is best to test before on a blank HTML page for example. Changing the property is not dynamic and requires a restart of the OEM console.

Once you have found the formatting that suits you, just put it in the “Global Setting” field and click on “Save”.
The property now appears in the list with a small yellow exclamation mark indicating that the OEM console must be restarted for it to be taken into account:

Now all you have to do is restart the OMS and admire your creation ๐Ÿ˜€

Leave a Reply

Your email address will not be published. Required fields are marked *