Troubleshooting guide
(DRAFT LABEL) FINAL DRAFT - CISCO CONFIDENTIAL 2/13/02
A-6
ATM and Layer 3 Switch Router Troubleshooting Guide
OL-1969-01
Appendix
Enabling Message Logging
Enabling Message Logging
By logging messages you can redirect debug output to a file, memory, or a remote host connection.
This section contains the following:
• Setting the Message Logging Levels
• Limiting the Types of Logging Messages Sent to the Console
• Logging Messages to an Internal Buffer
• Limiting the Types of Logging Messages Sent to Another Monitor
• Logging Messages to a UNIX Syslog Server
• Limiting Messages to a Syslog Server
• Displaying the Logging Configuration
To configure message logging, use any of the following global configuration commands. Use the no form
of the command to assign the default value:
Command Purpose
logging on Enables message logging.
logging hostname | ip-address Enables logging to a sys server host.
logging buffered [buffer-size] [0 - 7 | alerts |
critical | debugging | emergencies | errors |
informational | notifications | warnings]
Enables logging to an internal buffer
instead of writing to the console, and
configures the buffer size.
logging console [0 - 7 | alerts | critical |
debugging | emergencies | errors | informational
| notifications | warnings]
Enables logging to the console, and
configures the level displayed.
logging facility {auth | cron | daemon | kern |
local0 - local7 | lpr | mail | news | sys9 - sys14 |
syslog | user | uucp}
Enables logging to a specific facility.
logging monitor [0 - 7 | alerts | critical |
debugging | emergencies | errors | informational
| notifications | warnings]
Enables logging to a monitor, and
configures the level displayed.
logging source-interface {{atm | atm-p}
card/subcard/port | async 1 | bvi number | dialer |
ethernet number | lex number | loopback number
| null 0 | tunnel number | virtual-template
number | virtual-tokenring number | vlan
number}
Enables logging from a specific source
interface.
logging trap [0 - 7 | alerts | critical | debugging |
emergencies | errors | informational |
notifications | warnings]
Enables logging of SNMP
1
traps.
1. SNMP = Simple Network Management Protocol