Clearing the Routers Log

Clearing the Router s Log

Problem

You want to clear the router's log buffer.

Solution

Use the clear logging command to clear the router's internal log buffer:

Router#clear logging 
Clear logging buffer [confirm]
Router#

 

Discussion

There are times when it is useful to be able to clear your router's internal buffer log. For instance, while debugging a network problem, old debug messages can cause unnecessary confusion during stressful moments. This will clear the router log:

Router#clear logging
Clear logging buffer [confirm]
Router>show logging
Syslog logging: enabled (0 messages dropped, 0 messages rate-limited, 0 flushes, 0 overruns)
 Console logging: level debugging, 64201 messages logged
 Monitor logging: level debugging, 64820 messages logged
 Buffer logging: level debugging, 9 messages logged
 Logging Exception size (4096 bytes)
 Trap logging: level debugging, 2253 message lines logged
 Logging to 172.25.1.1, 2253 message lines logged
 
Log Buffer (4096 bytes):
Router>

Note that this command has no effect on the other forms of logging.





Cisco IOS Cookbook
Cisco IOS Cookbook (Cookbooks (OReilly))
ISBN: 0596527225
EAN: 2147483647
Year: 2004
Pages: 505
Simiral book on Amazon

Flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net