Cisco AJ732A - MDS 9134 Fabric Switch Configuration Manual page 352

Cisco nexus 5000 series switch cli software configuration guide, nx-os 4.0(1a)n1 (ol-16597-01, january 2009)
Hide thumbs Also See for AJ732A - Cisco MDS 9134 Fabric Switch:
Table of Contents

Advertisement

Configuring System Message Logging
S e n d f e e d b a c k t o n x 5 0 0 0 - d o c f e e d b a c k @ c i s c o . c o m
Table 25-2
.
Table 25-2
Field
Facility
Level
Action
To configure a syslog server on a UNIX or Linux system, follow these steps:
Log debug messages with the local7 facility in the file /var/log/myfile.log by adding the following line
Step 1
to the /etc/syslog.conf file:
debug.local7
Create the log file by entering these commands at the shell prompt:
Step 2
$ touch /var/log/myfile.log
$ chmod 666 /var/log/myfile.log
Step 3
Make sure the system message logging daemon reads the new changes by checking myfile.log after
entering this command:
$ kill -HUP ~cat /etc/syslog.pid~
To configure syslog servers, perform this task:
Command
Step 1
switch# configure terminal
Step 2
switch(config)# logging server host
[severity-level [facility]]
switch(config)# no logging server host
Step 3
Repeat Step 2 for up to three syslog servers.
Step 4
switch(config)# show logging server
Step 5
switch(config)# copy running-config
startup-config
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
25-6
describes the syslog fields that you can configure.
syslog Fields in syslog.conf
Description
Creator of the message, which can be auth, authpriv, cron, daemon, kern, lpr, mail,
mark, news, syslog, user, local0 through local7, or an asterisk (*) for all. These facility
designators allow you to control the destination of messages based on their origin.
Note
Check your configuration before using a local facility.
Minimum severity level at which messages are logged, which can be debug, info,
notice, warning, err, crit, alert, emerg, or an asterisk (*) for all. You can use none to
disable a facility.
Destination for messages, which can be a filename, a host name preceded by the at sign
(@), or a comma-separated list of users or an asterisk (*) for all logged-in users.
/var/log/myfile.log
Chapter 25
Configuring System Message Logging
Purpose
Enters configuration mode.
Configures a syslog server at the specified host name
or IPv4 or IPv6 address. You can limit logging of
messages with a minimum severity level and for a
specific facility. Severity levels, which range from 0
to 7, are listed in
Table
25-1. The default outgoing
facility is local7.
Removes the logging server for the specified host.
(Optional) Displays the syslog server configuration.
(Optional) Copies the running configuration to the
startup configuration.
OL-16597-01

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents