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
6-76
Cisco MDS 9000 Family Command Reference
OL-18089-01, Cisco MDS NX-OS Release 4.x
Chapter 6 Debug Commands
debug logfile
debug logfile
To direct the output of the debug commands to a specified file, use the
debug logfile
command in EXEC
mode. To disable a
debug
command, use the
no
form of the command or use the
no debug all
command
to turn off all debugging.
debug logfile
filename
[
size
bytes
]
Syntax Description
Defaults
Disabled.
Command Modes
EXEC mode.
Command History
Usage Guidelines
Use this command to log debug messages to a special log file. This file is more secure and easier to
process than sending the debug output to the console.
When you use the
debug logfile
command to create a log file, the file is automatically created in the log:
directory on the supervisor module unless you specify a different path.
For example, when you use the
debug logfile
command to create a log file named captureDebug, you
must enter the
dir log://sup-local/?
command to find the log file you created. This example shows you
how to find the log file created:
switch#
debug logfile captureDebug
switch#
dir log://sup-local/?
log: Enter URL "log:[//<module-number>]/<filename>"
log://sup-local/dmesg
log://sup-local/messages
log://sup-local/captureDebug
switch# dir log://sup-local/
Examples
The following example redirects the output of the debug commands to the file named
sample
:
switch#
debug logfile sample
The following example assigns the log file size for the file named
sample
:
switch#
debug logfile sample size 410000
filename
Assigns the name of the log file. Maximum length is 80 characters.
size
bytes
(Optional) Specifies the logfile size in bytes. The range is 4096 to
4194304.
Release
Modification
1.0(2)
This command was introduced.