Cisco Nexus 5000 Series Switch CLI Software Configuration Guide (OL-16597-01, July 2009)
Related Topics
• Information About CFS, page 299
Displaying and Clearing Log Files
You can display or clear messages in the log file and the NVRAM.
Procedure
PurposeCommand or Action
Displays the last number of lines in the logging file. You
can specify from 1 to 9999 for the last number of lines.
switch# show logging last
number-lines
Step 1
Displays the messages in the log file that have a time
stamp within the span entered. If you do not enter an end
switch# show logging logfile
[start-time yyyy mmm dd hh:mm:ss]
[end-time yyyy mmm dd hh:mm:ss]
Step 2
time, the current time is used. You enter three characters
for the month time field, and digits for the year and day
time fields.
Displays the messages in the NVRAM. To limit the
number of lines displayed, you can enter the last number
switch# show logging nvram [last
number-lines]
Step 3
of lines to display. You can specify from 1 to 100 for the
last number of lines.
Clears the contents of the log file.switch# clear logging logfile
Step 4
Clears the logged messages in NVRAM.switch# clear logging nvram
Step 5
The following example shows how to display messages in a log file:
switch# show logging last 40
switch# show logging logfile start-time 2007 nov 1 15:10:0
switch# show logging nvram last 10
The following example shows how to clear messages in a log file:
switch# clear logging logfile
switch# clear logging nvram
Verifying System Message Logging Configuration
To display system message logging configuration information, perform one of the following tasks:
PurposeCommand
Displays the console logging configuration.switch# show logging console
Displays the logging configuration.switch# show logging info
Displays the syslog distribution information.switch# show logging internal info
Displays the last number of lines of the log file.
switch# show logging last number-lines
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
OL-16597-01 345
Verifying System Message Logging Configuration
Displaying and Clearing Log Files