Debug Logfile - Cisco AJ732A - MDS 9134 Fabric Switch Command Reference Manual

Cisco mds 9000 family command reference guide - release 4.x (ol-18089-01, february 2009)
Hide thumbs Also See for AJ732A - Cisco MDS 9134 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, 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#
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.
(Optional) Specifies the logfile size in bytes. The range is 4096 to
4194304.
Enter URL "log:[//<module-number>]/<filename>"
Chapter 6
Debug Commands
OL-18089-01, Cisco MDS NX-OS Release 4.x

Advertisement

Table of Contents
loading

Table of Contents