readlog command
This command displays the BMC event logs.
Use the readlog command to display the BMC event log entries. Five event logs are displayed at a time. The entries are displayed from the most recent to the oldest.
Note
- R - invalid
- I - info
- W - warning
- E - critical
Syntax:
readlog [-options]
| Option | Description | Values |
|---|---|---|
| -a | Displays all entries in the event log, starting with the most recent. | |
| -f | Resets the counter and displays the first 5 entries in the event log, starting with the most recent. | |
| -date | Displays event log entries for the specified date | Use the following format: mm/dd/yyyy |
| -sev | Displays event log entries for the specified severity level. | R, I, W, E |
| -i | Sets the IPv4 or IPv6 IP address of the TFTP or SFTP server where the event log is saved. The -i and -l command options are used together to specify the location. | Valid IP address |
| -l | Sets the file name of the event log file. The -i and -l command options are used together to specify the location. | Valid filename |
| -pn | Displays or sets the port number of the TFTP or SFTP server. | Valid port number (default 69/22) |
| -u | Specifies the user name for the SFTP server. | Valid user name |
| -pw | Specifies the password for the SFTP server. | Valid password |
| -di | Extended audit log capability | none, ipmi |
Example:
system> readlog
1 I 2024-11-15T15:44:11 User root has unmounted file from CLI at IP address 10.240.218.13.
2 I 2024-11-15T15:43:06 User root has mounted file UEFI-Shell-2.2.iso from CLI at IP address 10.240.218.13.
3 I 2024-11-15T15:37:53 User root has mounted file UEFI-Shell-2.2.iso from CLI at IP address 10.240.218.13.
4 I 2024-11-15T15:30:05 Server Power Off Delay set to disabled by user root from CLI at IP address 10.240.218.13.
5 I 2024-11-15T15:29:58 Server Shut Down scheduled for every Sunday at 13:13 by user root from CLI at IP address 10.240.218.13.
system> readlog -sev E
No matched entries found
system> readlog -sev W
1 W 2024-11-15T10:42:57 DHCP[6] failure, no IP address assigned.
2 W 2024-11-15T10:42:57 DHCP[6] failure, no IP address assigned.
3 W 2024-11-15T10:42:57 DHCP[4] failure, no IP address assigned.
4 W 2024-11-15T09:46:55 DHCP[6] failure, no IP address assigned.
5 W 2024-11-15T09:46:55 DHCP[6] failure, no IP address assigned.
Give documentation feedback