This section describes commands that display and manage the system log on the grid controller.
List contents of controller's system log.
log list [ --all | -p | n=val [--follow| -f] ]
List all contents of the log.
List contents of the log with pagination.
List the last <val> lines of the log.
Append output as the log file grows. This argument is only valid if invoked interactively.
log list
List the last 30 lines of the log file.
log list --all
List all contents of the log file.
log list -p
List all contents of the log file with pagination.
log list n=10
List the last 10 lines of the log file.
log list n=10 --follow
Show last 10 lines in the system log and append output as the log file grows.
Note: If invoked interactively, allows the user to browse the contents of the log similar to the Linux 'less' command. If not invoked interactively, lists the whole log or the last n lines of the log.
Write a user-defined message into the controller's system log. This is useful for logging errors in unattended scripts that call 3tshell commands, so the messages are written into the same place where controller-generated error messages are written.
log mark comment=<message text>
Text that is to be written into the controller's system log.
log mark comment= "begin unattended script execution" log mark comment= "end unattended script execution"
Clear the grid controller's message log.
log reset
None.
log reset
Clear the system log.
|
Copyright © 2012 CA.
All rights reserved.
|
|