Managing SNAplus2 from NetView

Using UCF

The UCF cannot be used with a command that requires further input from the user before it completes (for example, a command such as vi filename that starts an interactive process, or a command such as tail -ffilename that does not complete until it is stopped by the user).

Because all HP-UX commands run with the login ID and permissions of the configured UCF user, the valid commands are limited by the access rights of the UCF user's login. In particular, root or superuser commands are not permitted. For more information, see “UCF Security”.

Example of a UCF Command

The following is an example of a UCF command as you would enter it from NetView:

runcmd sp=myspname, appl=unix, grep \temp \(ab\)*.c >\t\e\m\p.out

The command that would run on the HP-UX computer is:

grep Temp [ab]*.c >TEMP.out

Output from HP-UX System Commands

When a command is issued successfully, the following messages are displayed on the NetView screen:

= = = EXECUTING UNIX COMMAND = = =

(any output from the command, including error messages)

= = = UNIX COMMAND COMPLETED = = =

These messages may not appear on the NetView screen at the same time. The EXECUTING UNIX COMMAND message appears as soon as the UCF daemon program receives the command and returns control to the NetView operator. Any output from the command is sent to NetView as it is produced, and may appear as a series of separate messages; the UNIX COMMAND COMPLETED message appears when the HP-UX command has finished and its shell has ended.

If the output from the HP-UX command contains tab characters, SNAplus2 converts each tab to a space character before sending the output to NetView. Otherwise the output is sent unchanged.

Chapter 10

245