Configuring Module And Facility Messages Logged - Cisco nexus 5000 series Cli Configuration Manual

Hide thumbs Also See for nexus 5000 series:
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 1
switch# configure terminal
Step 2
switch(config)# logging logfile
logfile-name severity-level [size bytes]
switch(config)# no logging logfile
[logfile-name severity-level [size bytes]]
Step 3
switch(config)# show logging info
Step 4
switch(config)# copy running-config
startup-config
The following example shows how to configure a switch to log system messages to a file:
switch# configure terminal
switch(config)# logging logfile my_log size 6
switch(config)# no logging logfile
switch(config)# show logging info
switch(config)# copy running-config startup-config

Configuring Module and Facility Messages Logged

To configure the severity level and time-stamp units of messages logged by modules and facilities,
perform this task:
Command
Step 1
switch# configure terminal
Step 2
switch(config)# logging module
[severity-level]
switch(config)# no logging module
[severity-level]
Step 3
switch(config)# show logging module
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
1-4
Chapter 1
Configuring System Message Logging
Purpose
Enters configuration mode.
Configures the name of the log file used to store
system messages and the minimum severity level to
log. You can optionally specify a maximum file size.
The default severity level is 5 and the file size is
10485760. Severity levels are listed in
The file size is from 4096 to 10485760 bytes.
Disables logging to the log file.
(Optional) Displays the logging configuration.
(Optional) Copies the running configuration to the
startup configuration.
Purpose
Enters configuration mode.
Enables module log messages that have the specified
severity level or higher. Severity levels, which range
from 0 to 7, are listed in
Table
level is not specified, the default of 5 is used.
Disables module log messages.
(Optional) Displays the module logging
configuration.
Table
1-1.
1-1. If the severity
OL-16597-01

Advertisement

Table of Contents
loading

Table of Contents