Cisco Nexus 9000 Series Configuration Manual page 56

Nx-os system management configuration guide, release 6.x
Hide thumbs Also See for Nexus 9000 Series:
Table of Contents

Advertisement

Logging System Messages to a File
Procedure
Step 1
Step 2
Step 3
Step 4
Cisco Nexus 9000 Series NX-OS System Management Configuration Guide, Release 6.x
36
Command or Action
configure terminal
Example:
switch# configure terminal
switch(config)#
[no] logging logfile logfile-name
severity-level [size bytes]
Example:
switch(config)# logging logfile
my_log 6
logging event {link-status |
trunk-status} {enable | default}
Example:
switch# logging event link-status
default
switch(config)#
show logging info
Example:
switch(config)# show logging info
Configuring System Message Logging
Purpose
Enters global configuration mode.
Configures the name of the log file used to store system
messages and the minimum severity level to log. A lower
number indicates a higher severity level. Severity levels
range from 0 to 7:
• 0 – emergency
• 1 – alert
• 2 – critical
• 3 – error
• 4 – warning
• 5 – notification
• 6 – informational
• 7 – debugging
You can optionally specify a maximum file size.
The default severity level is 5, and the file size is
10485760. The file size is from 4096 to 4194304 bytes.
Logs interface events.
• link-status—Logs all UP/DOWN and CHANGE
messages.
• trunk-status—Logs all TRUNK status messages.
• enable—Specifies to enable logging to override the
port level configuration.
• default—Specifies that the default logging
configuration is used by interfaces not explicitly
configured.
(Optional)
Displays the logging configuration.

Advertisement

Table of Contents
loading

Table of Contents