Messages are stored in the history table because SNMP traps are not guaranteed to reach their destination. By
default, one message of the level
warning
and numerically lower levels are stored in the history table even
if syslog traps are not enabled.
When the history table is full (it contains the maximum number of message entries specified with the
logging
history size
global configuration command), the oldest message entry is deleted from the table to allow the
new message entry to be stored.
The history table lists the level keywords and severity level. For SNMP usage, the severity level values increase
by 1. For example,
emergencies
equal 1, not 0, and
critical
equals 3, not 2.
How to Configure System Message Logs
Setting the Message Display Destination Device
If message logging is enabled, you can send messages to specific locations in addition to the console.
This task is optional.
SUMMARY STEPS
1.
configure terminal
2.
logging buffered
[
size
]
3.
logging host
4.
logging file flash: filename
[
max-file-size
[
min-file-size
]] [
severity-level-number
|
type
]
5.
end
6.
terminal monitor
DETAILED STEPS
Purpose
Command or Action
Enters global configuration mode.
configure terminal
Example:
Switch#
configure terminal
Step 1
Logs messages to an internal buffer on the switch or on a standalone switch or,
in the case of a switch stack, on the active switchstack master. The range is 4096
to 2147483647 bytes. The default buffer size is 4096 bytes.
logging buffered
[
size
]
Example:
Switch(config)#
logging buffered
Step 2
If a standalone switch or the active switchstack master fails, the log file is lost
unless you previously saved it to flash memory. See Step 4.
8192
Do not make the buffer size too large because the switch could run out
of memory for other tasks. Use the
show memory
privileged EXEC
command to view the free processor memory on the switch. However,
this value is the maximum available, and the buffer size should
not
be
set to this amount.
Note
Consolidated Platform Configuration Guide, Cisco IOS Release 15.2(4)E (Catalyst 2960-X Switches)
1600
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: ......