Debug Logfile - Cisco MDS 9124 - Fabric Switch Reference

Cisco mds 9000 family command reference - cisco mds san-os release 3.0(1) through 3.3(1a) (ol-16217-01, april 2008)
Hide thumbs Also See for Cisco MDS 9124 - Fabric Switch:
Table of Contents

Advertisement

debug logfile

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
Cisco MDS 9000 Family Command Reference
6-76
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>"
Chapter 6
Debug Commands
OL-16217-01, Cisco MDS SAN-OS Release 3.x

Advertisement

Table of Contents
loading

Table of Contents