Clearing the Routers Log

Table of contents:

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.

Router Configuration and File Management

Router Management

User Access and Privilege Levels

TACACS+

IP Routing

RIP

EIGRP

OSPF

BGP

Frame Relay

Handling Queuing and Congestion

Tunnels and VPNs

Dial Backup

NTP and Time

DLSw

Router Interfaces and Media

Simple Network Management Protocol

Logging

Access-Lists

DHCP

NAT

First Hop Redundancy Protocols

IP Multicast

IP Mobility

IPv6

MPLS

Security

Appendix 1. External Software Packages

Appendix 2. IP Precedence, TOS, and DSCP Classifications

Index



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

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