Neoview Command Interface (NCI) Guide (R2.4)
hpnci.py
hpnci.sh
Elapsed :00:00:00.078
LOG Command
The LOG command logs the entered commands and their output from NCI to a log file. If this
is an obey script file, then the command text from the obey script file is shown on the console.
Syntax
LOG { ON [CLEAR, QUIET, CMDTEXT {ON | OFF}] | log-file [CLEAR, QUIET, CMDTEXT {ON | OFF}] | OFF }
ON
starts the logging process and records information in the sqlspool.lst file in the NCI bin
directory.
CLEAR
instructs NCI to clear the contents of the sqlspool.lst file before logging new information
to the file.
QUIET
specifies that the command text is displayed on the screen, but the results of the command
are written only to the log file and not to the screen.
CMDTEXT ON
specifies that the command text and the log header are displayed in the log file.
CMDTEXT OFF
specifies that the command text and the log header are not displayed in the log file.
log-file
is the name of a log file into which NCI records the entered commands and their output. If
you want the log file to exist outside the local directory where you launch NCI (by default,
the NCI bin directory), specify the full directory path of the log file. The log file does not
need to exist, but the specified directory must exist before you execute the LOG command.
log-file CLEAR
instructs NCI to clear the contents of the specified log-file before logging new information
to the file.
OFF
stops the logging process.
Considerations
• You must enter the command on one line. The command does not require an SQL terminator.
• Use a unique name for each log file to avoid writing information from different NCI sessions
into the same log file.
• This command works in all modes.
Examples
• This command starts the logging process and records information to the sqlspool.lst
file in the NCI bin directory:
SQL>log on
• This command starts the logging process and appends new information to an existing log
file, persnl_updates.log, in the local directory (the same directory where you are running
NCI):
SQL>log persnl_updates.log
LOG Command 105