Could someone please explain the difference between the console, monitor and buffer logging in Cisco IOS.

Console logging: level debugging, 32 messages logged, xml disabled,
                     filtering disabled
    Monitor logging: level debugging, 0 messages logged, xml disabled,
                     filtering disabled
    Buffer logging:  level debugging, 32 messages logged, xml disabled,
                    filtering disabled

I think I have an idea that when you telnet into the above device, and issue the command "terminal monitor", the debug messages are shown in the telnet session.Is that right? So when does the console logging and buffer logging used?

  • To what network make and model device are you referring? Different manufacturers have different options. – Ron Maupin Mar 8 '17 at 15:29
  • I'm sorry I forgot to mention. Cisco Indeed. – Juergen Mar 8 '17 at 15:54

Since you do not specify, I will assume you mean Cisco IOS.

If you are connected to the console or a VTY line, you can see the messages as they happen with console or terminal commands, respectively.

Log messages are sent to a buffer in the device, and you can retrieve the buffer to see past messages, no matter how you connect to the device, with the show logging command.

You can have different logging levels on each of those three, and you can adjust the size of the logging buffer.

Because the logging messages can pop up in the middle of a command you are typing in the terminal or console, you can place the logging synchronous command on the lines to restore the the command where you left off after the message is displayed.

| improve this answer | |
  • Thanks Ron. So does this mean that all console messages and monitor messages are buffered as well? – Juergen Mar 8 '17 at 15:55
  • 1
    No. The console and terminal messages are immediately sent to the console or terminal. Your application may buffer the lines, but the messages sent to the console or terminal are not buffered. The logging messages that are buffered are controlled separately, but they may overlap with the console and/or terminal messages depending on your configuration. – Ron Maupin Mar 8 '17 at 15:58
  • 1
    Possibly useful if you dont use logging synchronous... CTRL+R will give you a new line with the text you were in the middle of typing. – cpt_fink Mar 8 '17 at 20:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.