Debug Logfile - Cisco MDS 9000 series Command Reference Manual

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

Advertisement

Chapter 6
Debug 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

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.
Syntax Description
filename
size bytes
Defaults
Disabled.
Command Modes
EXEC mode.
Command History
Release
1.0(2)
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, using the debug logfile command to created a log file named captureDebug, you must enter
the dir log://sup-local/? command to find the log file you created. Following example shows you how
to find the log file created.
switch# debug logfile captureDebug
switch#
log:
log://sup-local/dmesg
log://sup-local/messages
log://sup-local/captureDebug
switch#
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
OL-8413-07, Cisco MDS SAN-OS Release 3.x
debug logfile filename [size bytes]
Modification
This command was introduced.
dir log://sup-local/?
dir log://sup-local/
Assigns the name of the log file. Maximum length is 80 characters.
Specifies the logfile size in bytes. The range is 4096 to 4194304.
Enter URL "log:[//<module-number>]/<filename>"
Cisco MDS 9000 Family Command Reference
debug logfile
6-77

Advertisement

Table of Contents
loading

Table of Contents