Purpose
Command or Action
Returns to privileged EXEC mode.
end
Example:
Switch(config)#
end
Step 4
Logging Messages to a UNIX Syslog Daemon
This task is optional.
Some recent versions of UNIX syslog daemons no longer accept by default syslog packets from the
network. If this is the case with your system, use the UNIX
man syslogd
command to decide what options
must be added to or removed from the syslog command line to enable logging of remote syslog messages.
Note
Before You Begin
•
Log in as root.
•
Before you can send system log messages to a UNIX syslog server, you must configure the syslog
daemon on a UNIX server.
SUMMARY STEPS
1.
Add a line to the file /etc/syslog.conf.
2.
Enter these commands at the UNIX shell prompt.
3.
Make sure the syslog daemon reads the new changes.
DETAILED STEPS
Purpose
Command or Action
Add a line to the file /etc/syslog.conf.
Step 1
•
local7
—
Specifies the logging facility.
Example:
local7.debug /usr/adm/logs/
cisco.log
•
debug
—
Specifies the syslog level. The file must already
exist, and the syslog daemon must have permission to
write to it.
Creates the log file. The syslog daemon sends messages at this
level or at a more severe level to this file.
Enter these commands at the UNIX shell prompt.
Example:
$
touch /var/log/
cisco.log
Step 2
Consolidated Platform Configuration Guide, Cisco IOS Release 15.2(4)E (Catalyst 2960-X Switches)
1608
How to Configure System Message Logs
Summary of Contents for Catalyst 2960 Series
Page 96: ......
Page 196: ......
Page 250: ......
Page 292: ......
Page 488: ......
Page 589: ...P A R T VI Cisco Flexible NetFlow Configuring NetFlow Lite page 509 ...
Page 590: ......
Page 619: ...P A R T VII QoS Configuring QoS page 539 Configuring Auto QoS page 645 ...
Page 620: ......
Page 750: ......
Page 1604: ......
Page 1740: ......
Page 2105: ...P A R T XII Configuring Cisco IOS IP SLAs Configuring Cisco IP SLAs page 2025 ...
Page 2106: ......
Page 2118: ......
Page 2164: ......