Home   ::  Login   ::  Register   ::  Post

:: Computers & Technology

use of cisco logging command

Posted: 2014-02-26

logging allows you to log the events of your router. There are different options of logs available under this command. The easiest use of this command is: router# conf t - Takes you to the router configuration mode router(config)# logging - Enable the syslog, you can add more options at the end. To setup logs to the router memory buffer, use: Router(config)# logging buffered 4096 You can log specific event such as: Router(config)# logging buffered critical Other logging event options include: Emergencies (0) Alerts (1) Critical (2) Errors (3) Warnings (4) Notification (5) Informational (6) Debugging (7) Using SysLog server to monitor router events First setup a syslog server. There are number of free software you can download and use as Syslog service, including Kiwi Syslog Server, PRTG Syslog, Syslog Watcher, etc. Use this command to log the router events to a Syslog server: Router(config)# logging - Change the to your Syslog server IP address. Using the SysLog Server, your configuration should be similar to the output below depend on the options you setup: Router#show logging Syslog logging: enabled (0 messages dropped, 3 messages rate-limited, 0 flushes, 0 overruns, xml disabled, filtering disabled) No Active Message Discriminator. No Inactive Message Discriminator. Console logging: level debugging, 36 messages logged, xml disabled, filtering disabled Monitor logging: level debugging, 0 messages logged, xml disabled, filtering disabled Buffer logging: level debugging, 1 messages logged, xml disabled, filtering disabled Logging Exception size (4096 bytes) Count and timestamp logging messages: enabled Persistent logging: disabled Trap logging: level informational, 33 message lines logged Logging to (udp port 514, audit disabled, authentication disabled, encryption disabled, link up), 5 message lines logged, 0 message lines rate-limited, 0 message lines dropped-by-MD, xml disabled, sequence number disabled filtering disabled Log Buffer (2000000 bytes): Router#

© Copyright 2019-2020 SpiderTip.Com