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 />

❏<br />

Shell Scripts<br />

Scripts are executed under the account of the user who started the<br />

<strong>HP</strong>OM server processes. In most cases this is the user root.<br />

If your script is a shell script, the first line must contain a statement<br />

such as the following:<br />

#!/usr/bin/sh<br />

This statement ensures that the shell <strong>for</strong> which your script is<br />

designed is used during execution, and not the shell of the user who<br />

executes the script.<br />

CAUTION<br />

If the first line of your shell script does not contain this statement,<br />

the execution of your script or program may fail.<br />

❏<br />

Default Parameters<br />

<strong>HP</strong>OM sends its own message parameters to the external interface.<br />

You may not use a command that requires additional parameters.<br />

For a list of the parameters provided by <strong>HP</strong>OM, see “Parameters <strong>for</strong><br />

Notification Services and Trouble Ticket Systems” on page 247.<br />

Chapter 7 243

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

Saved successfully!

Ooh no, something went wrong!