WRITE LOG
Use the WRITE LOG command to save the current data for a specific log to a file.
Note: This
command is to be used only if instructed to do so by IBM® service personnel.
Syntax
Parameters
The command has the following
parameters:
- LOGNAME=name
- The type of data to be recorded might be:
- analyzerlog
- Workload analysis results
- errorlog
- Unexpected errors that are detected during processing
- notificationlog
- Communications within the Provisioning Manager
- systemobservationlog
- Monitored metrics from the observed systems
- DEST=
- The destination of the log. The following destinations are supported:
- *
- (Default) specifies that the report be written to the standard log file in the log path specified during setup. This option can be used if logging is already active for the specified log and data is available in the log.
- file
- Specifies a file where the information is to be stored. If the name includes lowercase
characters, this parameter must be enclosed in single quotation marks (
'). The file must be in the file system. You can specify either an absolute path or a relative path to the file. If this is not absolute the path is relative to the home directory of the user who is running the Provisioning Manager. You must ensure that there is sufficient space in the selected location. The Provisioning Manager user must be authorized to write to this location. This option can always be used and does not require that log writing be activated for the specified log. This option can always be used and does not require that log writing be activated for the specified log.
Example
To write the notification log to
file nl.log, issue the following command:
MODIFY CPOSERV,APPL=WRITE LOG LOGNAME=NotificationLog DEST='nl.log'or: F CPOSERV,APPL=W L LOGNAME=NotificationLog DEST='nl.log'The
response on the console might be: CPO1040I Log NotificationLog successfully written to file nl.log