Displaying And Clearing Log Files - Cisco AJ732A - MDS 9134 Fabric Switch Configuration Manual

Cisco nexus 5000 series switch cli software configuration guide, nx-os 4.0(1a)n1 (ol-16597-01, january 2009)
Hide thumbs Also See for AJ732A - Cisco MDS 9134 Fabric Switch:
Table of Contents

Advertisement

Configuring System Message Logging
S e n d f e e d b a c k t o n x 5 0 0 0 - d o c f e e d b a c k @ c i s c o . c o m
Command
Step 6
switch(config)# logging commit
switch(config)# logging abort
Step 7
switch(config)# show logging internal
info
Step 8
switch(config)# copy running-config
startup-config

Displaying and Clearing Log Files

To display or clear messages in the log file and the NVRAM , perform this task:
Command
Step 1
switch# show logging last number-lines
Step 2
switch# show logging logfile [start-time
yyyy mmm dd hh:mm:ss] [end-time yyyy mmm
dd hh:mm:ss]
Step 3
switch# show logging nvram [last
number-lines]
Step 4
switch# clear logging logfile
Step 5
switch# clear logging nvram
The following example shows how to display or clear 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
switch# clear logging logfile
switch# clear logging nvram
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
25-8
Chapter 25
Configuring System Message Logging
Purpose
Commits the pending changes to the syslog server
configuration for distribution to the switches in the
fabric.
Cancels the pending changes to the syslog server
configuration.
(Optional) Displays information about the current
state of syslog server distribution and the last action
taken.
(Optional) Copies the running configuration to the
startup configuration.
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.
OL-16597-01

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents