Previous Topic: Group ManagementNext Topic: Dashboard Message Management


Log Management

This section describes commands that display and manage the system log on the grid controller.

This section contains the following topics:

log list

log mark

log reset

log list

List contents of controller's system log.

Syntax
log list [ --all | -p | n=val [--follow| -f] ]  
Parameters
--all

List all contents of the log.

-p

List contents of the log with pagination.

n=val

List the last <val> lines of the log.

--follow

Append output as the log file grows. This argument is only valid if invoked interactively.

Examples
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.

log mark

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.

Syntax
log mark comment=<message text>
Parameter
<message text>

Text that is to be written into the controller's system log.

Examples
log mark comment= "begin unattended script execution"
log mark comment= "end unattended script execution"
log reset

Clear the grid controller's message log.

Syntax
log reset
Parameters

None.

Example
log reset

Clear the system log.