Configuration

  • logging console <level> -> configure the logging to the console line.

    • You can use the level number (6) or keyword (informational), this will enable logging for the informational severity and higher.

  • logging monitor <level> -> configure logging to the vty lines.

    • Same points as above about the level.

  • logging buffered [size] <level> -> configure logging to the buffer.

    • Same point as above about the level.

    • Buffer size is in bytes.

  • logging <server-ip> or logging host <server-ip> -> configure logging to an external server.

  • logging trap <level> -> same points as above about the level. This sets the logging level for the external server.

Terminal monitor

Even if logging monitor <level> is enabled, by default Syslog messages will not be displayed when connected via Telnet or SSH.

For the messages to be displayed, you must use the following command:

R1# terminal monitor

This command must be used every time you connect to the device via Telnet or SSH.

logging synchronous

By default, logging messages displayed in the CLI while you are in the middle of typing a command will result in something like this:

To prevent this, you should use the logging synchronous on the appropriate line.

This will cause a new line to be printed if your typing is interrupted by a message.

show ip int was reprinted on a new line. This maked it easier to continue typing the command.

service timestamps / service sequence-numbers

  • datetime - timestamps will display the date/time when the event occurred.

  • uptime - timestamps will display how long the device had been running when the event occurred.

Last updated