Table 1. logfile Commands
| Command |
Summary Description |
logfile end |
Ends the logging of all output |
logfile start |
Begins the logging of all output to a text file |
Use the following syntax for logfile commands:
logfile command [/switch{=value}] [parameter]
logfile end
To end the logging of all output, use the logfile end command.
Command Availability
This command is supported on the following operating systems:
Syntax
logfile end
Examples
The following example stops logging information to the file afa0log17Nov98.txt (which was previously started with the logfile start command):
AFA0> logfile end
Executing: logfile end
Log file closed.
Related Information
logfile Commands:
logfile start
To begin the logging of all CLI command line activity to a specified file, use the logfile start command. CLI command line activity includes the associated output the CLI command displays.
The CLI continues to log command output until you close the CLI or you explicitly end the logfile with the logfile end command.
Command Availability
This command is supported on the following operating systems:
Syntax
logfile start [/append{=boolean}] {string}
Parameter
{string}
Specifies the name of the file to contain CLI command line activity. On Windows, use the Windows NT file name conventions. If the file name has spaces, use quotation marks ("") to enclose the string.
On NetWare, use the NetWare file name conventions.
On UNIX, use the UNIX file name conventions.
Switches
/append{=boolean}
Specifies whether to append all CLI command line activity to an existing output file, if one exists. If you set this switch to TRUE, the command appends the CLI command line activity to the file specified in {string}.
This switch defaults to FALSE (that is, the command does not append CLI command line activity to an existing output file).
This switch is supported on the following operating systems:
Examples
The following example (Windows NT) logs all output to a file called c:\ctrloginfo\afa0log17Nov98.txt. The .txt extension allows the file to be read by the Windows NT Notepad application:
AFA0> logfile start c:\ctrloginfo\afa0log17Nov98.txt
Executing: logfile start "c:\ctrloginfo\afa0log17Nov98.txt"
File c:\ctrloginfo\afa0log17Nov98.txt receiving all output.
The following example (Windows NT) logs subsequent output to an existing file:
AFA0> logfile start /append c:\ctrloginfo\afa0log17Nov98.txt
Executing: logfile start /append=TRUE
"c:\ctrloginfo\afa0log17Nov98.txt"
File c:\ctrloginfo\afa0log17Nov98.txt receiving all output.
Related Information
logfile Commands:
Back to Contents Page