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

The "terminal monitor" command is used on the Cisco ASA device to display logging messages on the console or SSH session. By default, logging messages are not displayed on the console, but the "terminal monitor" command enables the display of real-time log messages. 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
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 pager 0
terminal pager 24
show terminal

To change the number of lines displayed permanently, the "pager line" configuration can be used.

Description
Enter into global configuration mode
Define the number of lines in a page (24 = default)
Exit from configuration mode
Display the pager settings
CLI Commands
configure terminal
pager line #
end
show pager
terminal monitor

LABASA01#
LABASA01# terminal monitor
LABASA01# terminal no monitor
LABASA01# terminal pager 0
LABASA01# terminal pager 24
LABASA01#
LABASA01# show terminal

Width = 80, no monitor

LABASA01#
LABASA01# terminal monitor
Feb 19 2023 10:18:34 LABASA01 : %ASA-2-106007: Deny inbound UDP from 8.8.8.8/53 to 192.168.2.11/58162 due to DNS Response
Feb 19 2023 10:18:34 LABASA01 : %ASA-2-106007: Deny inbound UDP from 8.8.8.8/53 to 192.168.2.11/58768 due to DNS Response
Feb 19 2023 10:18:34 LABASA01 : %ASA-2-106007: Deny inbound UDP from 8.8.8.8/53 to 192.168.2.11/60859 due to DNS Response

LABASA01# show terminal

Width = 80, monitor
LABASA01#
terminal length 50

LABASA01#
LABASA01# conf t
LABASA01(config)# pager line 70
LABASA01(config)# end
LABASA01#
LABASA01# show pager
pager lines 70
LABASA01#

Premium Access

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

Get Premium

0 Comments

Submit a Comment