Skip to Content
Cisco IOS Cookbook, 2nd Edition
book

Cisco IOS Cookbook, 2nd Edition

by Kevin Dooley, Ian Brown
December 2006
Intermediate to advanced
1188 pages
72h 8m
English
O'Reilly Media, Inc.
Content preview from Cisco IOS Cookbook, 2nd Edition

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]<enter>
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]<enter>
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.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

IP Routing on Cisco IOS, IOS XE, and IOS XR: An Essential Guide to Understanding and Implementing IP Routing Protocols

IP Routing on Cisco IOS, IOS XE, and IOS XR: An Essential Guide to Understanding and Implementing IP Routing Protocols

Brad Edgeworth, Aaron Foss, Ramiro Garza Rios
Cisco Software-Defined Access

Cisco Software-Defined Access

Srilatha Vemula, Jason Gooley, Roddie Hasan

Publisher Resources

ISBN: 0596527225Supplemental ContentErrata Page