Displaying And Clearing Log Files; Verifying System Message Logging Configuration - Cisco AP775A - Nexus Converged Network Switch 5010 Configuration Manual

Cli software configuration guide
Hide thumbs Also See for AP775A - Nexus Converged Network Switch 5010:
Table of Contents

Advertisement

Verifying System Message Logging Configuration

Related Topics

Displaying and Clearing Log Files

You can display or clear messages in the log file and the NVRAM.
Procedure
Step 1
Step 2
Step 3
Step 4
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:
Command
switch# show logging console
switch# show logging info
switch# show logging internal info
switch# show logging last number-lines
OL-16597-01
Information About CFS, page 299
Command or Action
switch# show logging last
number-lines
switch# show logging logfile
[start-time yyyy mmm dd hh:mm:ss]
[end-time yyyy mmm dd hh:mm:ss]
switch# show logging nvram [last
number-lines]
switch# clear logging logfile
switch# clear logging nvram
Purpose
Displays the last number of lines in the logging file. You
can specify from 1 to 9999 for the last number of lines.
Displays the messages in the log file that have a time
stamp within the span entered. If you do not enter an end
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
of lines to display. You can specify from 1 to 100 for the
last number of lines.
Clears the contents of the log file.
Clears the logged messages in NVRAM.
Purpose
Displays the console logging configuration.
Displays the logging configuration.
Displays the syslog distribution information.
Displays the last number of lines of the log file.
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
Displaying and Clearing Log Files
345

Advertisement

Table of Contents
loading

Table of Contents