Managing SNAplus2 from NetView

Using UCF

If you issue a command when a previous command is still in progress (that is, before the UNIX COMMAND COMPLETED message is received), the following message is displayed:

= = = COMMAND QUEUED = = =

The second command is queued, and is executed when the previous command has completed.

Canceling a Command

UCF provides a method of canceling a command that is still in progress. This can be used to stop the current command from executing, or to cancel an interactive command such as vi filename that cannot complete without further input. It is equivalent to using an interrupt sequence such as Ctrl + C to stop a process running on a terminal, or using the HP-UX kill command to stop the process.

In addition to canceling the command that is currently executing, SNAplus2 cancels any commands that are queued after it.

The command syntax is the same as for the HP-UX command, with the string ux-cancelinstead of the command text. For example:

runcmd sp=myspname, appl=unix, ux-cancel

For each outstanding command (the one currently executing and any queued commands), the following message is displayed:

= = = UNIX COMMAND CANCELLED = = =

This message indicates that the HP-UX shell in which the command was running has been stopped. Further HP-UX commands can be issued as necessary.

If a command starts a daemon process on the HP-UX computer, this process may not be stopped by ux-cancel. You may need to use the HP-UX kill command (either on a terminal or by using UCF) to stop such a process explicitly.

If no UCF command is running when ux-cancelis used, UCF displays the following message:

NO OUTSTANDING COMMANDS

246

Chapter 10