523
Configuring System Message Logging
How to Configure System Message Logging
Limiting Syslog Messages Sent to the History Table and to SNMP
If you enabled syslog message traps to be sent to an SNMP network management station by using the
snmp-server
enable trap
global configuration command, you can change the level of messages sent and stored in the switch history
table. You also can change the number of messages that are stored in the history table.
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.
Enabling the Configuration-Change Logger
You can enable a configuration logger to keep track of configuration changes made with the command-line interface
(CLI). When you enter the
logging enable
configuration-change logger configuration command, the log records the
session, the user, and the command that was entered to change the configuration. You can configure the size of the
configuration log from 1 to 1000 entries (the default is 100).
Configuring the UNIX System Logging Facility
When sending system log messages to an external device, you can cause the switch to identify its messages as
originating from any of the UNIX syslog facilities.
Command
Purpose
1.
configure terminal
Enters global configuration mode.
2.
logging history
level
Changes the default level of syslog messages stored in the history file and
sent to the SNMP server.
By default,
warnings
,
errors
,
critical
,
alerts
, and
emergencies
messages
are sent.
3.
logging history size
number
Specifies the number of syslog messages that can be stored in the history
table.
The default is to store one message. The range is 0 to 500 messages.
4.
end
Returns to privileged EXEC mode.
Command Purpose
1.
configure terminal
Enters global configuration mode.
2.
archive
Enters archive configuration mode.
3.
log config
Enters configuration-change logger configuration mode.
4.
logging enable
Enables configuration change logging.
5.
logging size
entries
(Optional) Configures the number of entries retained in the configuration
log. The range is from 1 to 1000. The default is 100.
Note:
When the configuration log is full, the oldest log entry is removed
each time a new entry is entered.
6.
end
Returns to privileged EXEC mode.
Summary of Contents for IE 4000
Page 12: ...8 Configuration Overview Default Settings After Initial Switch Configuration ...
Page 52: ...48 Configuring Interfaces Monitoring and Maintaining the Interfaces ...
Page 108: ...104 Configuring Switch Clusters Additional References ...
Page 128: ...124 Performing Switch Administration Additional References ...
Page 130: ...126 Configuring PTP ...
Page 140: ...136 Configuring CIP Additional References ...
Page 146: ...142 Configuring SDM Templates Configuration Examples for Configuring SDM Templates ...
Page 192: ...188 Configuring Switch Based Authentication Additional References ...
Page 244: ...240 Configuring IEEE 802 1x Port Based Authentication Additional References ...
Page 298: ...294 Configuring VLANs Additional References ...
Page 336: ...332 Configuring STP Additional References ...
Page 408: ...404 Configuring DHCP Additional References ...
Page 450: ...446 Configuring IGMP Snooping and MVR Additional References ...
Page 490: ...486 Configuring SPAN and RSPAN Additional References ...
Page 502: ...498 Configuring Layer 2 NAT ...
Page 770: ...766 Configuring IPv6 MLD Snooping Related Documents ...
Page 930: ...926 Configuring IP Unicast Routing Related Documents ...
Page 976: ...972 Configuring Cisco IOS IP SLAs Operations Additional References ...
Page 978: ...974 Dying Gasp ...
Page 990: ...986 Configuring Enhanced Object Tracking Monitoring Enhanced Object Tracking ...
Page 994: ...990 Configuring MODBUS TCP Displaying MODBUS TCP Information ...
Page 996: ...992 Ethernet CFM ...
Page 1066: ...1062 Using an SD Card SD Card Alarms ...