Chapter 25
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 1
switch# configure terminal
Step 2
switch(config)# logging console
[severity-level]
switch(config)# no logging console
[severity-level]
Step 3
switch(config)# show logging console
Step 4
switch(config)# logging monitor
[severity-level]
switch(config)# no logging monitor
[severity-level]
Step 5
switch(config)# show logging monitor
Step 6
switch(config)# copy running-config
startup-config
The following example shows how to configure a switch to log messages:
switch# configure terminal
switch(config)# logging console 3
switch(config)# no logging console
switch(config)# show logging console
switch(config)# logging monitor 3
switch(config)# no logging monitor
switch(config)# show logging monitor
switch(config)# copy running-config startup-config
Configuring System Message Logging to a File
You can configure the switch to log system messages to a file. By default, system messages are logged
to the file log:messages.
For information about displaying and clearing log files, see the
section on page
To configure the switch to log system messages to a file, perform this task:
OL-16597-01
25-8.
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
Configuring System Message Logging
Purpose
Enters configuration mode.
Enables the switch to log messages to the console
session based on a specified severity level or higher.
Severity levels, which can range from 0 to 7, are listed
in
Table
25-1. If the severity level is not specified, the
default of 2 is used.
Disables the switch's ability to log messages to the
console.
(Optional) Displays the console logging
configuration.
Enables the switch to log messages to the monitor
based on a specified severity level or higher. The
configuration applies to Telnet and SSH sessions.
Severity levels, which can range from 0 to 7, are listed
in
Table
25-1. If the severity level is not specified, the
default of 2 is used.
Disables logging messages to telnet and SSH
sessions.
(Optional) Displays the monitor logging
configuration.
(Optional) Copies the running configuration to the
startup configuration.
"Displaying and Clearing Log Files"
25-3