Command
Logging Buffered
Use
This is a handy command that stores log messages so they can be reviewed later.
This is especially useful when you are telneting between multiple routers as you would normally miss the console or debug messages on the router your not connected to.
Each logging level also enables the logging level below it, so logging buffered 7 or logging buffered debug will enable all log messages.
Syntax
R1(config)#logging buffered <level>
Optional Switches
<0-7> <4096-2147483647> alerts critical debugging emergencies errors filtered informational notifications warnings xml |
Logging severity level Logging buffer size Immediate action needed (severity=1) Critical conditions (severity=2) Debugging messages (severity=7) System is unusable (severity=0) Error conditions (severity=3) Enable filtered logging Informational messages (severity=6) Normal but significant conditions (severity=5) Warning conditions (severity=4) Enable logging in XML to XML logging buffer |
Example
In this example, we will enable logging buffered debug.
R2(config)#logging buffered debug |
Now we will telnet from R1 to R2 and check the debug output.
R1(config)#do telnet 2.2.2.2 User Access Verification Password: No active filter modules. Trap logging: level informational, 30 message lines logged Log Buffer (4096 bytes): |