524
Configuring System Message Logging
Monitoring and Maintaining the System Message Log
Monitoring and Maintaining the System Message Log
Configuration Examples for the System Message Log
System Message: Example
This example shows a partial switch system message:
00:00:46: %LINK-3-UPDOWN: Interface Port-channel1, changed state to up
00:00:47: %LINK-3-UPDOWN: Interface GigabitEthernet1/17, changed state to up
00:00:47: %LINK-3-UPDOWN: Interface GigabitEthernet1/18, changed state to up
00:00:48: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to down
00:00:48: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/17, changed state to down 2
*Mar 1 18:46:11: %SYS-5-CONFIG_I: Configured from console by vty2 (10.34.195.36)
18:47:02: %SYS-5-CONFIG_I: Configured from console by vty2 (10.34.195.36)
*Mar 1 18:48:50.483 UTC: %SYS-5-CONFIG_I: Configured from console by vty2 (10.34.195.36)
Logging Display: Examples
This example shows part of a logging display with the service timestamps log datetime global configuration command
enabled:
*Mar 1 18:46:11: %SYS-5-CONFIG_I: Configured from console by vty2 (10.34.195.36)
This example shows part of a logging display with the service timestamps log uptime global configuration command
enabled:
00:00:46: %LINK-3-UPDOWN: Interface Port-channel1, changed state to up
This example shows part of a logging display with sequence numbers enabled:
Command Purpose
1. configure terminal Enters global configuration mode.
2. logging host Logs messages to a UNIX syslog server host by entering its IP address.
To build a list of syslog servers that receive logging messages, enter this
command more than once.
3. logging trap level Limits messages logged to the syslog servers.
Be default, syslog servers receive informational messages and lower.
4. logging facility facility-type Configures the syslog facility.
The default is local7.
5. end Returns to privileged EXEC mode.
Command Purpose
show logging Displays logging messages.
show archive log config Displays the configuration log.