Follow on Google News News By Tag Industry News Country(s) Industry News
Follow on Google News | How to Configure logging in Cisco IOSLogging can use for fault notification, network forensics, and security auditing. Cisco routers log messages can handle in five different ways: SNMP trap logging, Console logging, Terminal logging, Buffered logging, Syslog Server logging.
By: 3anetwork.com 1. Console logging: The Cisco router does not check if a user is logged into the console port or a device is attached to it; if console logging is enabled, messages are always sent to the console port that can cause CPU load. To stop the console logging, use the “no logging console” global configuration command .you might want to limit the amount of messages sent to the console with the “logging console level” configuration command (for example, logging console Informational) 2. Buffered logging: You want your router to record log messages, instead of just displaying them on the console.To use logging buffered configuration command to enable the local storage of router log messages: Router#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)# Router(config)# You can also Set the Log Size on router. Router#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)# Router(config)# 3. Terminal logging You want the router to display log messages to your VTY session in real time.Use the terminal monitor command to enable the displaying of log messages to your VTY: Router#terminal monitor Router# To disable logging to your VTY session, use the following command: Router#terminal no monitor Router# 4. Syslog Server logging: You want to send log messages to a remote syslog server. By using this we can send messages to an external device for storing this logs and the storage size does depend on the available disk space of the external syslog server. This option is not enabled by default. If you have any syslog server please find the below simple config. router#conf Router(config# Router(config)# before enabling logging be sure that your router is properly configure to collect proper time from any NTP server or manually configure to get time. Command to set time manually on router is (set clock) or to use ntp server use “ntp server x.x.x.x” to sync clock to router. Use the logging source-interface configuration command to specify a particular IP address for syslog messages: Router(config)# 5. Clearing the Router’s Log Use the clear logging command to clear the router’s internal log buffer: Router#clear logging Clear logging buffer [confirm]< Router# 6. To display the state of system logging (syslog) and the contents of the standard system logging message buffer, use the show logging privileged EXEC command. Router# show logging Syslog logging: enabled Console logging: disabled Monitor logging: level debugging, 266 messages logged. Trap logging: level informational, 266 messages logged. Logging to 10.1.1.1 SNMP logging: disabled, retransmission after 30 seconds 0 messages logged Router#. This configuration works for Cisco switch and router, or other products of Cisco. The Cisco Switch Cisco 2960 competitive price on 3anetwork.com, pleae refer to the below links: http://www.3anetwork.com/ End
|
|