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.
Содержание IE 4000
Страница 12: ...8 Configuration Overview Default Settings After Initial Switch Configuration ...
Страница 52: ...48 Configuring Interfaces Monitoring and Maintaining the Interfaces ...
Страница 108: ...104 Configuring Switch Clusters Additional References ...
Страница 128: ...124 Performing Switch Administration Additional References ...
Страница 130: ...126 Configuring PTP ...
Страница 140: ...136 Configuring CIP Additional References ...
Страница 146: ...142 Configuring SDM Templates Configuration Examples for Configuring SDM Templates ...
Страница 192: ...188 Configuring Switch Based Authentication Additional References ...
Страница 244: ...240 Configuring IEEE 802 1x Port Based Authentication Additional References ...
Страница 274: ...270 Configuring SGT Exchange Protocol over TCP SXP and Layer 3 Transport Configuring Cisco TrustSec Caching ...
Страница 298: ...294 Configuring VLANs Additional References ...
Страница 336: ...332 Configuring STP Additional References ...
Страница 408: ...404 Configuring DHCP Additional References ...
Страница 450: ...446 Configuring IGMP Snooping and MVR Additional References ...
Страница 490: ...486 Configuring SPAN and RSPAN Additional References ...
Страница 502: ...498 Configuring Layer 2 NAT ...
Страница 559: ...555 Configuring Network Security with ACLs How to Configure Network Security with ACLs Creating a Numbered Extended ACL ...
Страница 770: ...766 Configuring IPv6 MLD Snooping Related Documents ...
Страница 930: ...926 Configuring IP Unicast Routing Related Documents ...
Страница 956: ...952 Configuring IPv6 Unicast Routing Configuring IPv6 network 2010 AB8 2 48 network 2010 AB8 3 48 exit address family ...
Страница 976: ...972 Configuring Cisco IOS IP SLAs Operations Additional References ...
Страница 978: ...974 Dying Gasp ...
Страница 990: ...986 Configuring Enhanced Object Tracking Monitoring Enhanced Object Tracking ...
Страница 994: ...990 Configuring MODBUS TCP Displaying MODBUS TCP Information ...
Страница 996: ...992 Ethernet CFM ...
Страница 1030: ...1026 Working with the Cisco IOS File System Configuration Files and Software Images Working with Software Images ...
Страница 1066: ...1062 Using an SD Card SD Card Alarms ...