23-10
Catalyst 2950 Desktop Switch Software Configuration Guide
78-14982-01
Chapter 23 Configuring System Message Logging
Configur ing System Mes sage Loggin g

Limiting Syslog Messages Sent to the History Table and to SNMP

If you enable d syslog message traps to be sent to an SNMP network manage ment station by using the
snmp-server enable trap global configuration command, you can change the lev el of messages sent and
stored in t he sw itch hi story ta ble. You al so can ch an ge t he numb er of m essag es tha t a re st or ed i n the
history ta ble .
Messages are stored in the history table because SNMP traps are not guaranteed to reach their
destination. By def a ult , one message of the level warning and numerically lower levels (see Table 23-3
on page 23-9) ar e store d in th e history table even if sysl og tra ps are not ena bled.
Beginning in privileged EXEC mode, follow these steps to change the level and history table size
defaults:
When the histor y table is full (i t contains th e maximum num ber of messa ge entries s pecified with the
log ging his t ory size global configuration comm and), the ol de st message entr y is deleted f rom the table
to allow the new message entry to be stored.
To return the logging of syslog messages to the default level, use the no logging history glo ba l
configurati o n com mand. To retu rn the number of messages in the history table to the default value, use
the no logging history size global configurat ion comm and.

Configuring UNIX Syslog Servers

The next sections describe how to configure the UNIX server syslog daemon and how to define the UNIX
system logging facility.
Command Purpose
Step 1 configure terminal Enter globa l configurati on mode.
Step 2 logging histor y level1
1. Table 23-3 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.
Change the default level of syslog messages stored in the history file and
sent to the SNMP server.
See Tabl e 23-3 on page 23-9 for a list of level keywords.
By default, warnings, errors, critical, alerts, and emergencies messages
are sen t.
Step 3 logging histor y size number Specify the n umber of syslog messa ges that can b e stor ed in the history
table.
The defa ult i s to st ore one me ssage. T he r an ge i s 1 to 50 0 me ssag es.
Step 4 end Return to privileged EXEC mode.
Step 5 show running-config Verify your e ntri es.
Step 6 copy running-config startup-config (Optiona l) Save your entries in the co nfigurati on file.