01.10.2015 Views

HP Operations Manager for UNIX Administrator’s Reference

HP Operations Manager for UNIX Administrator's Reference

HP Operations Manager for UNIX Administrator's Reference

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

About Notification Services and Trouble Ticket Systems<br />

Writing Scripts and Programs<br />

Writing Scripts and Programs<br />

The configuration includes writing your own script or program that calls<br />

the external interface. The script serves as a link between <strong>HP</strong>OM and<br />

the notification service or trouble ticket system.<br />

Example Script<br />

To show you how to call an external notification service or trouble ticket<br />

system, <strong>HP</strong>OM provides the following example script:<br />

/opt/OV/bin/OpC/extern_intf/ttns_mail.sh<br />

This script sends an email to all operators responsible <strong>for</strong> the message.<br />

Guidelines <strong>for</strong> Writing Scripts and Programs<br />

When writing your script or program, follow these guidelines:<br />

❏<br />

Default Directory<br />

For scripts and programs calling external interfaces, you can use the<br />

following default directory provided by <strong>HP</strong>OM:<br />

/opt/OV/bin/OpC/extern_intf<br />

CAUTION<br />

If you place your scripts and programs in this directory, they will be<br />

erased when you de-install <strong>HP</strong>OM.<br />

242<br />

Chapter 7

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!