readlog command
This command displays the IMM2 event logs.
Use the readlog command to display the IMM2 event log entries. Five event logs are displayed at a time. The entries are displayed from the most recent to the oldest.
- readlog displays the first five entries in the event log, starting with the most recent, on its first execution, and then the next five for each subsequent call.
- readlog -a displays all entries in the event log, starting with the most recent.
- readlog -f resets the counter and displays the first 5 entries in the event log, starting with the most recent.
- readlog -date date displays event log entries for the specified date, specified in mm/dd/yy format. It can be a pipe (|) separated list of dates.
- readlog -sev severity displays event log entries for the specified severity level (E, W, I). It can be a pipe (|) separated list of severity levels.
- readlog -i ip_address 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.
- readlog -l filename sets the file name of the event log file. The -i and -l command options are used together to specify the location.
- readlog -pn port_number displays or sets the port number of the TFTP or SFTP server (default 69/22).
- readlog -u username specifies the user name for the SFTP server.
- readlog -pw password specifies the password for the SFTP server.
Syntax:
readlog [<em className="ph i">options</em>]
option:
-a
-f
-date <em className="ph i">date</em>
-sev <em className="ph i">severity</em>
-i <em className="ph i">ip_address</em>
-l <em className="ph i">filename</em>
-pn <em className="ph i">port_number</em>
-u <em className="ph i">username</em>
-pw <em className="ph i">password</em>
Example:
system> readlog -f
1 I SERVPROC 12/18/03 10:18:58 Remote Login Successful.
Login ID:''USERID' CLI authenticated from 192.168.70.231 (Telnet).'
2 I SERVPROC 12/18/03 10:12:22 Remote Login successful.
Login ID: ''USERID' from web browser at IP@=192.168.70.231'
3 E SERVPROC 12/18/03 10:10:37 Failure reading I2C device.
4 E SERVPROC 12/18/03 10:10:37 Environmental monitor not responding.
5 E SERVPROC 12/18/03 10:10:37 Failure reading I2C device.
system> readlog
6 E SERVPROC 12/18/03 10:09:31 Fan 2 Fault. Multiple fan failures
7 E SERVPROC 12/18/03 10:09:31 Fan 1 Fault. Single fan failure
8 I SERVPROC 12/18/03 10:09:25 Ethernet[0] Link Established at 100Mb, Full Duplex.
9 I SERVPROC 12/18/03 10:09:24 Ethernet[0] configured to do Auto Speed/Auto Duplex.
10 I SERVPROC 12/18/03 10:09:24 Ethernet[0] MAC Address currently
being used: 0x00-09-6B-CA-0C-80
system>
Give documentation feedback