Log Files; System Message Logging Servers - Cisco DS-X9530-SF1-K9 - Supervisor-1 Module - Control Processor Configuration Manual

Mds 9000 family
Table of Contents

Advertisement

System Message Logging Configuration
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 .

Log Files

Logging messages may be saved to a log file. You can configure the name of this file and restrict its size
as required. The default log file name is messages. The file name can have up to 80 characters and the
file size ranges from 4096 bytes to 4194304 bytes.
To send log messages to file, follow these steps:
Command
Step 1
switch# config t
switch(config)#
Step 2
switch(config)# logging logfile
messages 3
Step 3
switch(config)# logging logfile
ManagerLog 3
Step 4
switch(config)# logging logfile
ManagerLog 3 size 3000000
Step 5
switch(config)# no logging
logfile
You can rename the log file using the logging logfile command.
Note
The configured log file is saved in the /var/log/external directory. The location of the log file cannot be
changed. You can use the show logging logfile and clear logging logfile commands to view and delete
the contents of this file. As of Cisco MDS SAN-OS Release 2.1(1a), you can use the the dir log:
command to view logging file statistics. You can use the delete log: command to remove the log file.
You can copy the logfile to a different location using the copy log: command using additional copy
syntax (see the

System Message Logging Servers

You can configure a maximum of three system message logging servers.
To send log messages to a UNIX system message logging server, you must configure the system message
logging daemon on a UNIX server. Log in as root, and follow these steps:
Add the following line to the /etc/syslog.conf file.
Step 1
local1.debug
Note
Cisco MDS 9000 Family Configuration Guide
44-6
"Copying Files" section on page
/var/log/myfile.log
Be sure to add five tab characters between local1.debug and /var/log/myfile.log. Refer to entries
in the /etc/syslog.conf file for further examples.
Chapter 44
Purpose
Enters configuration mode.
Configures logging of information for errors or events above with
a severity level 3 or above to the default log file named messages.
Configures logging of information for errors or events with a
severity level 3 or above to a file named ManagerLog using the
default size of 10,485,760 bytes.
Configures logging information for errors or events with a
severity level 3 or above to a file named ManagerLog. By
configuring a size, you are restricting the file size to 3,000,000
bytes.
Disables logging messages to the logfile.
7-6).
Configuring System Message Logging
OL-6973-03, Cisco MDS SAN-OS Release 2.x

Advertisement

Table of Contents
loading

Table of Contents