beautypg.com

Log command, Example, Considerations – HP NonStop G-Series User Manual

Page 76

background image

Switch Command Interface (SWCI)

ServerNet Nomadic Disk User’s Guide425485-001

6- 12

LOG Command

LOG Command

The LOG command starts and stops logging of any input and output that is sent or
received by the user terminal.

TO [[$volume.]subvolume.]logfile

specifies the file where SWCI is to write any input or output that is sent or received
by the user terminal.

If the specified file already exists, SWCI appends information to the end of the
file.

If the specified file does not exist, SWCI creates it.

If the volume and subvolume are not specified, SWCI uses the default volume.

STOP

terminates logging.

Example

Enter the following command to specify an EDIT file named SWITCH for logging
commands and information sent or received by the user terminal:

SWCI $NDSWA.#TERM> LOG TO $SYSTEM.RECORDS.SWITCH

Considerations

If a LOG STOP command is issued when logging is inactive, SWCI returns an error
message indicating that the LOG STOP command is invalid.

LOG { TO [[$volume.]subvolume.] logfile | STOP }