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.

Integrating Applications into <strong>HP</strong>OM<br />

Starting Applications and Broadcasts on Managed Nodes<br />

Guidelines <strong>for</strong> Setting Up User Profiles<br />

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

❏<br />

❏<br />

❏<br />

User Input<br />

Do not ask <strong>for</strong> 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 <strong>for</strong> <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. <strong>HP</strong>OM only<br />

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

Logout Messages<br />

Do not add a logout message to the user’s profile. <strong>HP</strong>OM 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 />

238<br />

Chapter 6

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

Saved successfully!

Ooh no, something went wrong!