Skip to main content

displaylog command

This command displays CMM event log entries.

Note
  • See the Lenovo Flex System chassisCMM error messages for your Flex System chassis for a complete list of all non-device specific events and recommended actions, sorted by event ID. Device specific event information is in the documentation for the device.
  • When the CMM is set to Secure security mode, only secure file transfer methods, such as HTTPS and SFTP, can be used for tasks involving file transfer when the CMM is acting as a server. Unsecure file transfer protocols, such as HTTP, FTP, and TFTP, are disabled when the CMM is acting as a server when the security mode is set to Secure. Unsecure file transfer protocols remain available for a CMM acting as a client for all commands when the security mode is set to Secure.
  • For information about how to specify a URL for file transfer, see Specifying a URL for file transfer.

If command syntax is not correctly entered, or if a command fails to run, an error message is returned. See Common errors for a list of error messages that apply to all commands or displaylog command errors for a list of error messages that are specific to the displaylog command.

Table 1. displaylog (display CMM event log) command.

The command table is a multi-row, four-column table where each row describes a CMM CLI command option: column one lists command function, column two provides a detailed command description, column three shows command-option syntax, and column four lists valid command targets.

FunctionWhat it doesCommandTarget (see paths in Command targets)
Display CMM event log entriesDisplays five entries from the CMM event log. The first time the command is executed, the five most recent log entries are displayed. Each subsequent time the command is issued, the next five entries in the log display.displaylog
Primary CMM:
  • mm[p]
  • mm[P]
  • mm[x]
  • where x is the primary CMM bay number.
Display CMM event log entries (reset counter)Resets the counter and displays the first five most recent entries in the CMM event log.displaylog -f
Primary CMM:
  • mm[p]
  • mm[P]
  • mm[x]
  • where x is the primary CMM bay number.
Display log entries with Event IDDisplays log entries with Event ID.
Note
An asterisk ( * ) after the Event ID indicates that this is a compute node generated event ID.
displaylog -e
Primary CMM:
  • mm[p]
  • mm[P]
  • mm[x]
  • where x is the primary CMM bay number.
Display log entries with their call-home flagDisplays log entries with their call-home flag.displaylog -c
Primary CMM:
  • mm[p]
  • mm[P]
  • mm[x]
  • where x is the primary CMM bay number.
Display all CMM event log entriesDisplays all entries in the CMM event log.displaylog -a
Primary CMM:
  • mm[p]
  • mm[P]
  • mm[x]
  • where x is the primary CMM bay number.
Display log entries with log sequence numberDisplays log entries with their log sequence number event log.
Note
An asterisk ( * ) after the event sequence number indicates auxiliary data is available for that entry. This can be viewed using the -aux option.
displaylog -sn
Primary CMM:
  • mm[p]
  • mm[P]
  • mm[x]
  • where x is the primary CMM bay number.
Display log entries with auxiliary dataDisplays log entries with their auxiliary data.displaylog -aux
Primary CMM:
  • mm[p]
  • mm[P]
  • mm[x]
  • where x is the primary CMM bay number.
Display all event log filtersDisplays all filters that can be used to control CMM event log output.displaylog -filters
Primary CMM:
  • mm[p]
  • mm[P]
  • mm[x]
  • where x is the primary CMM bay number.
Display event log entries filtered by dateDisplays CMM event log information that meets the specified date filter criteria.
Note
  • This command displays the first five most recent entries in the CMM event log that meet the specified filter criteria. Adding the -a option to the command displays all entries that meet the specified filter criteria.
  • If the filter criteria entered does not match the criteria previously specified, this resets the counter and displays the first five most recent log entries that match the specified filter criteria.
  • The index number displayed for each filtered log entry might not match the index number shown for the same log entry displayed in an unfiltered list.
displaylog -date date_filter

where date_filter is a pipe ( | ) separated list of date filters in mm/dd/yy format.

Primary CMM:
  • mm[p]
  • mm[P]
  • mm[x]
  • where x is the primary CMM bay number.
Display event log entries filtered by severity levelDisplays CMM event log information that meets the specified severity level filter criteria.
Note
  • This command displays the first five most recent entries in the CMM event log that meet the specified filter criteria. Adding the -a option to the command displays all entries that meet the specified filter criteria.
  • If the filter criteria entered does not match the criteria previously specified, this resets the counter and displays the first five most recent log entries that match the specified filter criteria.
  • The index number displayed for each filtered log entry might not match the index number shown for the same log entry displayed in an unfiltered list.
displaylog -sev severity_filter

where severity_filter is a pipe ( | ) separated list of severity filters:

  • I (information)
  • E (error)
  • W (warning)
Primary CMM:
  • mm[p]
  • mm[P]
  • mm[x]
  • where x is the primary CMM bay number.
Display event log entries filtered by every flag except the one specifiedDisplays CMM log information that is stored in logs other than the specified log.
Note
  • This command displays the first five most recent entries in the CMM event log that meet the specified filter criteria. Adding the -a option to the command displays all entries that meet the specified filter criteria.
  • If the filter criteria entered does not match the criteria previously specified, this resets the counter and displays the first five most recent log entries that match the specified filter criteria.
  • The index number displayed for each filtered log entry might not match the index number shown for the same log entry displayed in an unfiltered list.
displaylog -src ! filter_out

where filter_out is the category of event log entries that is not to be displayed. Use the displaylog -filters command to discover excludable event log categories.

Primary CMM:
  • mm[p]
  • mm[P]
  • mm[x]
  • where x is the primary CMM bay number.
Display audit log entries filtered by sourceDisplays CMM audit log information that meets the specified source filter criteria.
Note
  • This command displays the first five most recent entries in the CMM event log that meet the specified filter criteria. Adding the -a option to the command displays all entries that meet the specified filter criteria.
  • If the filter criteria entered does not match the criteria previously specified, this resets the counter and displays the first five most recent log entries that match the specified filter criteria.
  • The index number displayed for each filtered log entry might not match the index number shown for the same log entry displayed in an unfiltered list.
displaylog -src source_filter

where source_filter is a pipe ( | ) separated list of source filters, such as Audit for the audit log. To specify a range of compute nodes as the source, use a hyphen ( - ), as follows: Blade_01-08 .

Primary CMM:
  • mm[p]
  • mm[P]
  • mm[x]
  • where x is the primary CMM bay number.
Display log entries filtered by call-home flagDisplays log entries that meet the specified call-home events filter criteria.
Note
  • This command displays the five most recent entries in the CMM event log that meet the specified filter criteria. Adding the -a option to the command displays all entries that meet the specified filter criteria.
  • If the filter criteria entered does not match the criteria previously specified, this resets the counter and displays the first five most recent log entries that match the specified filter criteria.
  • The index number displayed for each filtered log entry might not match the index number shown for the same log entry displayed in an unfiltered list.
displaylog -ch option

where option are:

  • C (call home)
  • N (non-serviceable)
  • S (serviceable)
Primary CMM:
  • mm[p]
  • mm[P]
  • mm[x]
  • where x is the primary CMM bay number.
Display the state of the log state event optionDisplays the state (enabled or disabled) of the log state event option, which generates an event when the event log becomes 75% or 100% full.displaylog -lse
Primary CMM:
  • mm[p]
  • mm[P]
  • mm[x]
  • where x is the primary CMM bay number.
Enable / disable monitoring of event log stateEnables or disables the monitoring of the event log state to generate an event when the log becomes 75% or 100% full.
Note
The displaylog -lse command must be run exclusive of other log-reading command options (-f, -a, -filters, -date, -sev, - src, -i, and -l).
displaylog -lse state

where state is enabled or disabled .

This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • Chassis log management
See Commands and user authority for additional information.
Primary CMM:
  • mm[p]
  • mm[P]
  • mm[x]
  • where x is the primary CMM bay number.
Save event logSaves the CMM event log to the specified location.displaylog -u URL

where URL is the fully qualified uniform resource locator, including file name, of the tftp, ftp, http, https, or sftp server where the event log is to be saved.

Primary CMM:
  • mm[p]
  • mm[P]
  • mm[x]
  • where x is the primary CMM bay number.

Example:

To display all log entries generated by the primary CMM in bay 1 other than those in the audit log, while the Lenovo Flex System chassis is set as the persistent command environment, at the system> prompt, type
displaylog -src !Audit -T mm[p]
To display audit log entries generated by the primary CMM in bay 1, while the Lenovo Flex System chassis is set as the persistent command environment, at the system> prompt, type
displaylog -src Audit -T mm[p]

The following example shows the information that is returned from these commands:

system> displaylog -src !Audit -T mm[p]
1 I SERVPROC 08/04/11 14:18:06 Recovery Event log full
2 I SERVPROC 08/04/11 14:18:06 Alarm Manager removed a MNR
alert during recovery of Event
log full
(There are no more entries in the event log.)
system> displaylog -src audit -T mm[p]
1 I Audit 08/04/11 14:28:38 Remote logoff successful for
user 'spdev'from Telnet at
IP 9.44.124.157
2 I Audit 08/04/11 14:28:18 Remote login successful for
user 'spdev' from Telnet at
IP 9.44.124.157
3 I Audit 08/04/11 14:18:15 Audit log cleared by 'spdev'.
(There are no more entries in the event log.)
system>