Logging Logfile - Cisco MDS 9000 series Command Reference Manual

Hide thumbs Also See for MDS 9000 series:
Table of Contents

Advertisement

Chapter 14
L Commands
S e n d d o c u m e n t a t i o n c o m m e n t s t o m d s f e e d b a c k - d o c @ c i s c o . c o m

logging logfile

To set message logging for logfile, use the logging logfile command.To negate the previously issued
command or to revert to factory defaults, use the no form of the command.
Syntax Description
filename
severity-level
size filesize
Defaults
None.
Command Modes
Configuration mode.
Command History
Release
1.0(2)
Usage Guidelines
The switch logs messages at or above the configured severity level.
Examples
The following example configures logging information for errors or events above a severity level of 3
(errors) to be logged in a file named ManagerLogFile. By configuring this limit, the file size is restricted
to 3,000,000 bytes.
switch# config terminal
switch(config)# logging logfile ManagerLogFile 3 size 3000000
Related Commands
Command
show logging
OL-8413-07, Cisco MDS SAN-OS Release 3.x
logging logfile filename severity-level [size filesize]
no logging logfile
Specifies the log filename. Maximum length is 80 characters.
Specifies the maximum severity of messages logged. The range is 0 to 7,
where 0 is emergency, 1 is alert, 2 is critical, 3 is error, 4 is warning, 5 is
notify, 6 is informational, and 7 is debugging.
Specifies the log file size. The range is 4096 to 4194304 bytes.
Modification
This command was introduced.
Description
Displays logging configuration information.
Cisco MDS 9000 Family Command Reference
logging logfile
14-17

Advertisement

Table of Contents
loading

Table of Contents