13.12.2012 Views

HP OpenView Operations Administrator's Reference - filibeto.org

HP OpenView Operations Administrator's Reference - filibeto.org

HP OpenView Operations Administrator's Reference - filibeto.org

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

About Notification Services and Trouble Ticket Systems<br />

Writing Scripts and Programs<br />

❏ Shell Scripts<br />

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

OVO 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 for which your script is<br />

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

executes the script.<br />

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

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

❏ Default Parameters<br />

OVO 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 OVO, see “Parameters for<br />

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

Chapter 7 279

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

Saved successfully!

Ooh no, something went wrong!