opcmsg test script

Placeholder Image

Although OM is ending its life and the new platform is OMi is taking its place, this script is still useful during OM to OMi migraiton work and can be used when you want to send test events from OML to OMi

It will generate opcmsg events (for operations manager / Linux only), if message storm is operational on the OML server, then it may well stop the events after a number of events as its thinks its a message storm. So it can act as a test for messages and storms.

you will need to create a opcmsg policy and add the application, object and message group or deploy one with no conditions for test purposes.

oml_gui

================================================================

#!/bin/bash
#Script to generate test opcmsg

date
cnt=1
for (( i=1; i <= 10; i++ ))
do
/opt/OV/bin/opcmsg severity=normal application=tstmsg object=tstmsg msg_grp=UAT msg_text=”Test message $cnt” &
/opt/OV/bin/opcmsg severity=warning application=tstmsg object=tstmsg msg_grp=UAT msg_text=”Test message $cnt” &
/opt/OV/bin/opcmsg severity=minor application=tstmsg object=tstmsg msg_grp=UAT msg_text=”Test message $cnt” &
/opt/OV/bin/opcmsg severity=major application=tstmsg object=tstmsg msg_grp=UAT msg_text=”Test message $cnt” &
/opt/OV/bin/opcmsg severity=critical application=tstmsg object=tstmsg msg_grp=UAT msg_text=”Test message $cnt” &
let cnt=cnt+1

sleep 3
done
date

================================================================

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s