Display debugging on ssh session or console

To display Cisco debug output on the current SSH or Telnet session

switch# logging on        // enabled by default

switch# logging monitor     //command to enable logging on VTY lines

switch# terminal monitor    //unless you issue this command, you cannot see logs on your SSH or Telnet sessions.

To turn off Cisco debug output on the current SSH or Telnet session

switch# no terminal monitor

To display Cisco debug output on the Console

switch# logging console

To turn off Cisco debug output

switch# no logging console

Log Levels

0 Emergencies System shutting down due to missing fan tray
1 Alerts Temperature limit exceeded
2 Critical Memory allocation failures
3 Errors Interface Up/Down messages
4 Warnings Configuration file written to server, via SNMP request
5 Notifications Line protocol Up/Down
6 Information Access-list violation logging
7 Debugging Debug messages

The default logging level for Console and VTY lines is Debugging. hence there were no log level mentioned in the above commands. If you would like to keep only Information logs, then issue commands as

switch# logging monitor information

switch# logging console information

In this case, Debugging logs will not be shown.

All in One WordPress Hosting Starts at 30$ per month
All in One WordPress Hosting
WordPress
High optimized WordPress hosting, secure firewall, HTTPS, Backup, hack-fix guarantee and many others at 30$ per month