Displaying And Clearing Log Files; Verifying The System Message Logging Configuration - Cisco Nexus 7000 Series Configuration Manual

Hide thumbs Also See for Nexus 7000 Series:
Table of Contents

Advertisement

Configuring System Message Logging
Example:
$ kill -HUP ~cat /etc/syslog.pid~

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

Verifying the System Message Logging Configuration

To display system message logging configuration information, perform one of the following tasks:
Command
show logging console
Command or Action
show logging last number-lines
Example:
switch# show logging last 40
show logging logfile [start-time yyyy mmm
dd hh:mm:ss] [end-time yyyy mmm dd
hh:mm:ss]
Example:
switch# show logging logfile
start-time 2013 oct 1 15:10:0
show logging nvram [last number-lines]
Example:
switch# show logging nvram last 10
clear logging logfile
Example:
switch# clear logging logfile
clear logging nvram
Example:
switch# clear logging nvram
Cisco Nexus 7000 Series NX-OS System Management Configuration Guide
Displaying and Clearing Log Files
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
timestamp 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.
103

Advertisement

Table of Contents
loading

Table of Contents