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

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

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

Integrating Applications into OVO<br />

Starting Applications and Broadcasts on Managed Nodes<br />

274<br />

Guidelines for Setting Up User Profiles<br />

When setting up user profiles, follow these guidelines:<br />

❏ User Input<br />

Do not ask for specific user input in the profile. Instead, provide a<br />

default value that users confirm with by pressing Return.<br />

For example, the following script for <strong>HP</strong>-UX 11.x produces an endless<br />

loop if no valid answer is specified.<br />

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

TERM=""<br />

while [ -z "${TERM}" ]<br />

do<br />

echo "Type of terminal (hp|vt100): \c"<br />

read TERM<br />

if [ "${TERM}" != "hp" -a "${TERM}" != "vt100" ]<br />

then<br />

TERM=""<br />

fi<br />

done<br />

The correct way to specify the default value is shown in the following<br />

script. If no valid answer is specified, a default value is used.<br />

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

echo "Type of terminal (hp=default|vt100): \c"<br />

read TERM<br />

if [ "${TERM}" != "hp" -a "${TERM}" != "vt100" ]<br />

then<br />

TERM=hp<br />

fi<br />

❏ Questions<br />

Do not ask more than four questions in the user’s profile. OVO only<br />

answers up to four prompts with Return.<br />

❏ Logout Messages<br />

Do not add a logout message to the user’s profile. OVO adds the<br />

message at the end of the application’s output. In addition, do not use<br />

sequences of escape characters in the profile. Escape characters are<br />

also added to the application output, thereby garbling the output.<br />

Chapter 6

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

Saved successfully!

Ooh no, something went wrong!