Logging, Monitoring & Debugging

This guide explains how to set up monitoring & logging. This helps the administrator to be notified about important system events. The guide also covers how to use multiple different troubleshooting and debugging tools.

Introduction

Logging, monitoring & debugging are crucial tools and processes for managing and maintaining software systems, networks, and applications. These tools can be used to troubleshoot errors.

Description
Identifying and diagnosing problems: Logging, monitoring, and troubleshooting can help detect issues and diagnose problems in a software system or network. This enables faster resolution of issues, reducing downtime and minimizing the impact on users.
Predictive maintenance: With monitoring, it is possible to detect problems before they cause significant issues, enabling proactive and preventive maintenance.
Performance optimization: Monitoring and logging allow you to analyze system performance over time and identify areas that need optimization. This can help improve the user experience and increase the efficiency of the system.
Security: Logging and monitoring can help detect suspicious activity, enabling faster response to security threats and preventing data breaches.
Compliance: Logging and monitoring can help organizations comply with industry regulations and standards by providing an audit trail of system activity.
Debugging: Debugging is the process of finding and fixing defects or bugs in a software application. Debugging tools and techniques are essential for identifying and resolving errors in software applications.

Terminal Monitor

Terminal monitor is used to enable console line logging. When console line logging is enabled, all output displayed on the device's console port is also displayed on the terminal screen. To enable console line logging, the user must first be in privileged mode. Once in privileged mode, the user can activate the "terminal monitor" command to enable console line logging.

Description
Enable terminal monitor (on by default when connected via serial cable)
Disable terminal monitor
CLI command output will display without stops inbetween
Change the CLI monitor lines back to the default or a different value
Display monitor settings
CLI Commands
terminal monitor
terminal no monitor
terminal length 0
terminal lengt 24
show terminal
terminal length 0

LABSWITCH01#
LABSWITCH01#terminal monitor
% Console already monitors
LABSWITCH01#term leng 0
LABSWITCH01#show terminal
Line 0, Location: "", Type: ""
Length: 0 lines, Width: 80 columns
Baud rate (TX/RX) is 9600/9600, no parity, 1 stopbits, 8 databits
Status: PSI Enabled, Ready, Active, Automore On
Capabilities: none
Modem state: Ready
Switch 1: RJ45 Console is in use
Special Chars: Escape  Hold  Stop  Start  Disconnect  Activation
                ^^x    none   -     -       none
Timeouts:      Idle EXEC    Idle Session   Modem Answer  Session   Dispatch
               00:10:00        never                        none     not set
                            Idle Session Disconnect Warning
                              never
                            Login-sequence User Response
                             00:00:30
                            Autoselect Initial Wait
                              not set
Modem type is unknown.
Session limit is not set.
Time since activation: 00:00:40
Editing is enabled.
History is enabled, history size is 10.
DNS resolution in show commands is enabled
Full user help is disabled
Allowed input transports are none.
Allowed output transports are telnet ssh.
Preferred transport is telnet.
Shell: disabled
Shell trace: off
No output characters are padded
No special data dispatching characters
LABSWITCH01#
terminal length 50

LABSWITCH01#
LABSWITCH01#terminal len 50
LABSWITCH01#show terminal
Line 0, Location: "", Type: ""
Length: 50 lines, Width: 80 columns
Baud rate (TX/RX) is 9600/9600, no parity, 1 stopbits, 8 databits
Status: PSI Enabled, Ready, Active, Automore On
Capabilities: none
Modem state: Ready
Switch 1: RJ45 Console is in use
Special Chars: Escape  Hold  Stop  Start  Disconnect  Activation
                ^^x    none   -     -       none
Timeouts:      Idle EXEC    Idle Session   Modem Answer  Session   Dispatch
               00:10:00        never                        none     not set
                            Idle Session Disconnect Warning
                              never
                            Login-sequence User Response
                             00:00:30
                            Autoselect Initial Wait
                              not set
Modem type is unknown.
Session limit is not set.
Time since activation: 00:03:06
Editing is enabled.
History is enabled, history size is 10.
DNS resolution in show commands is enabled
Full user help is disabled
Allowed input transports are none.
Allowed output transports are telnet ssh.
Preferred transport is telnet.
Shell: disabled
Shell trace: off
No output characters are padded
No special data dispatching characters
LABSWITCH01#

Premium Access

Log in or register - Premium members can access all content without restrictions.

Get Premium

0 Comments

Submit a Comment