Process health monitors

This chapter describes how to manage and monitor the health of various components of your router.

Control plane resources

Control plane resources refer to the memory and CPU components that are monitored to ensure optimal operation of the Cisco IOS process and the overall control plane.

  • Includes monitoring of both memory and CPU usage.

  • Focuses on the Cisco IOS process and the overall control plane.

  • Helps in identifying and preventing potential resource-related issues.

Details of memory and CPU monitoring for control plane resources

These sections provide more information about monitoring memory and CPU resources in the control plane:

System process monitors

Regular monitoring is a proactive approach that ensures system processes and resources are functioning correctly by providing status notifications and enabling timely intervention.

  • Processes provide monitoring and notification of their status or health.

  • Syslog error messages are displayed when a process fails, is stuck, or crashes.

  • Automatic actions include restarting the process or rebooting the router if necessary.

System resources and process health

Monitoring system resources enables early detection of potential problems, helps avoid outages, and establishes a baseline for normal system load.

Consider an scenario where after upgrading hardware or software, you can compare current resource usage with the established baseline to determine if the upgrade has affected system performance. This explains how the system resources monitoring helps maintain the process health.

View Cisco IOS process resource

You can use the show memory and show process cpu commands to view CPU and memory utilization statistics for active processes in Cisco IOS. These commands provide a representation of memory and CPU utilization from the perspective of only the Cisco IOS process; they do not include information for resources on the entire platform.

Procedure


Step 1

Use the Enter the show memory command in privileged EXEC mode to display memory usage for the Cisco IOS process.

Example:

Router# show memory
Tracekey : 1#b93c0f1c0d5d16ddc3ab8e54342a8dd5
Head    Total(b)     Used(b)     Free(b)   Lowest(b)  Largest(b)
Processor  7F5F358048   1997625144   290200588   1707424556   487419128   1509949348
reserve P  7F5F3580A0      102404          92      102312      102312      102312
lsmpi_io  7F5D9901A8     6295128     6294304         824         824         412
Dynamic heap limit(MB) 1440      Use(MB) 0
Processor memory
Address      Bytes      Prev       Next    Ref   PrevF     NextF          what               Alloc PC
7F5F358048 0000102408 00000000 7F5F3710A8 001  -------- -------- *Init*           :555F22A000+5E5691C
7F5F3710A8 0000000056 7F5F358048 7F5F371138 001  -------- -------- *Init*           :555F22A000+5E56938
7F5F371138 0000008224 7F5F3710A8 7F5F3731B0 001  -------- -------- *Init*           :555F22A000+5E56958
 ...
7F5F594D38 0000020008 7F5F5942B8 7F5F599BB8 001  -------- -------- Peer uid cb chu  :555F22A000+ACBBE98

The output displays memory usage statistics for the Cisco IOS process, including total, used, and free memory, as well as detailed memory allocation information.

Step 2

Use the show process cpu command to display CPU utilization for the Cisco IOS process.

Example:

Router# show process cpu 
CPU utilization for five seconds: 0%/0%; one minute: 0%; five minutes: 0%
PID Runtime(ms)     Invoked      uSecs   5Sec   1Min   5Min TTY Process
1           8          31        258  0.00%  0.00%  0.00%   0 Chunk Manager
2           8       10141          0  0.00%  0.00%  0.00%   0 Load Meter
3           0           1          0  0.00%  0.00%  0.00%   0 PKI Trustpool
4           0           1          0  0.00%  0.00%  0.00%   0 Retransmission o
...
45           0           1          0  0.00%  0.00%  0.00%   0 IPC Seat Manager

This command displays CPU utilization averages for five seconds, one minute, and five minutes, as well as per-process statistics for the Cisco IOS process.

Step 3

Use the show process cpu platform sorted command to view platform-level CPU utilization.

Example:

show process cpu platform sorted
CPU utilization for five seconds:  9%, one minute: 10%, five minutes: 10%
Core 0: CPU utilization for five seconds:  3%, one minute:  4%, five minutes:  4%
Core 1: CPU utilization for five seconds:  4%, one minute:  4%, five minutes:  4%
Core 2: CPU utilization for five seconds:  2%, one minute:  2%, five minutes:  2%
Core 3: CPU utilization for five seconds: 38%, one minute: 38%, five minutes: 38%
Pid    PPid    5Sec    1Min    5Min  Status        Size  Name
--------------------------------------------------------------------------------
18700   18679     44%     44%     44%  S           235192  qfp-ucode-avent
5226    5216      2%      3%      3%  S           697124  linux_iosd-imag
24238   24231      1%      1%      1%  S             8288  ngiolite
...
13884   13874      0%      0%      0%  S             2816  flash_check.sh

This command provides CPU utilization statistics for each core and process on the platform, allowing you to identify resource usage beyond the Cisco IOS process.


Overall Control Plane resources

Provides visibility into control plane resource utilization using the show platform software status control-processor brief and how platform software status control-processor s commands.

Identifies the status values for control processors:

  • Healthy: The processor is operating within normal parameters.

  • Warning: The router is operational, but the operating level requires review.

  • Critical: The router is nearing failure.

Outlines recommended actions when a Warning or Critical status is observed:

  • Reduce static and dynamic loads on the system by limiting configuration elements or dynamic service capacity.

  • Reduce the number of routes, adjacencies, and ACL rules.

Load average

Load average represents the process queue or process contention for CPU resources. For example, on a single-core processor, an instantaneous load of 7 would mean that seven processes are ready to run, one of which is currently running. On a dual-core processor, a load of 7 would mean that seven processes are ready to run, two of which are currently running.

Memory utilization

Memory utilization is represented by the following fields:

  • Total: Total system memory

  • Used: Consumed memory

  • Free: Available memory

  • Committed: Virtual memory committed to processes

CPU utilization

CPU utilization indicates the percentage of time the CPU is busy, represented by the following fields:

  • CPU: Allocated processor

  • User: Non-Linux kernel processes

  • System: Linux kernel process

  • Nice: Low-priority processes

  • Idle: Percentage of time the CPU was inactive

  • IRQ: Interrupts

  • SIRQ: System Interrupts

  • IOwait: Percentage of time CPU was waiting for I/O

Router# show platform software status control-processor
RP0: online, statistics updated 10 seconds ago
Load Average: healthy
1-Min: 1.28, status: healthy, under 5.00
5-Min: 0.74, status: healthy, under 5.00
15-Min: 0.78, status: healthy, under 5.00
Memory (kb): healthy
Total: 8154204
Used: 2282364 (28%), status: healthy
Free: 5871840 (72%)
Committed: 2025108 (25%), under 90%
Per-core Statistics
CPU0: CPU Utilization (percentage of time spent)
User:  2.46, System:  5.53, Nice:  0.00, Idle: 90.87
IRQ:  0.82, SIRQ:  0.20, IOwait:  0.10
CPU1: CPU Utilization (percentage of time spent)
User:  2.24, System:  5.91, Nice:  0.00, Idle: 90.91
IRQ:  0.71, SIRQ:  0.20, IOwait:  0.00
CPU2: CPU Utilization (percentage of time spent)
User:  0.50, System:  1.82, Nice:  0.00, Idle: 97.16
IRQ:  0.50, SIRQ:  0.00, IOwait:  0.00
CPU3: CPU Utilization (percentage of time spent)
User: 13.03, System: 12.88, Nice:  0.00, Idle: 62.51IRQ: 11.55, SIRQ:  0.00, IOwait:  0.00
Router# show platform software status control-processor brief
Load Average
Slot  Status  1-Min  5-Min 15-Min
RP0 Healthy   0.99   0.72   0.77
Memory (kB)
Slot  Status    Total     Used (Pct)     Free (Pct) Committed (Pct)
RP0 Healthy  8154204  2281012 (28%)  5873192 (72%)   2032232 (25%)
CPU Utilization
Slot  CPU   User System   Nice   Idle    IRQ   SIRQ IOwait
RP0    0   1.02   1.84   0.00  96.30   0.61   0.10   0.10
1   0.72   1.85   0.00  96.60   0.61   0.20   0.00
2   0.50   1.62   0.00  97.25   0.60   0.00   0.00
3  11.78  14.28   0.00  62.44  11.34   0.14   0.00
Boot Flash Disk Monitoring
Aug 24 07:48:31.088 GMT: %FLASH_CHECK-3-DISK_QUOTA: R0/0: flash_check: Flash disk quota exceeded 
[free space is 83820 kB] - Please clean up files on flash1.

Monitoring hardware using alarms

This reference provides information on monitoring hardware components using system alarms.

Router design and monitoring hardware

The router sends alarm notifications when problems are detected, allowing you to monitor the network remotely. You do not need to use show commands to poll devices on a routine basis; however, you can perform onsite monitoring if you choose.

BootFlash Disk Monitoring

Ensures the bootflash disk maintains enough free space to store two core dumps.

The bootflash disk must have enough free space to store two core dumps. This condition is monitored, and if the bootflash disk is too small to store two core dumps, a syslog alarm is generated, as shown in the following example:

Oct  6 14:10:56.292: %FLASH_CHECK-3-DISK_QUOTA: R0/0: flash_check: Flash disk quota exceeded 
[free space is 1429020 kB] - Please clean up files on bootflash.

Approaches for monitoring hardware alarms

Provides an overview of the monitoring strategies used to identify and respond to hardware-related alerts.

Viewing the console or syslog for alarm messages

The network administrator monitors alarm messages by reviewing messages sent to the system console or to a system message log (syslog).

Enabling the logging alarm command

The logging alarm command allows the system to transmit alarm messages to configured logging destinations.

The logging alarm command is not enabled by default. You can specify the severity level of the alarms to be logged, where all alarms at and above the specified threshold generate alarm messages.

If alarm severity is not specified, alarm messages for all severity levels are sent to logging devices.

Router(config)# logging alarm critical

Network management system alerts a network administrator when an alarm is reported through SNMP

SNMP is an application-layer protocol that provides a standardized framework and a common language used for monitoring and managing devices in a network.

  • Provides notification of faults, alarms, and conditions that might affect services.

  • Allows a network administrator to access router information through a network management system (NMS).

  • Eliminates the need for manual log reviews, device polling, or log report analysis.

SNMP alarm notification MIB requirements

To use SNMP to get alarm notification, use these MIBs:

  • ENTITY-MIB, RFC4133 (required for the CISCO-ENTITY-ALARM-MIB, ENTITY-STATE-MIB and CISCO-ENTITY-SENSOR-MIB to work)

  • CISCO-ENTITY-ALARM-MIB

  • ENTITY-STATE-MIB

  • CISCO-ENTITY-SENSOR-MIB (for transceiver environmental alarm information, which is not provided through the CISCO-ENTITY-ALARM-MIB)