Configuring the Utilization Alarm

Utilization Alarm Overview

The device utilization alarm function is used to monitor the bandwidth of the device, CPU resource consumption, and generate alarm notification in the event of congestion, so that the administrator can keep abreast of the network and equipment running.

The port utilization alarm function can set two trigger alarm thresholds:

  • Exceed: When the port bandwidth utilization equals or exceeds the exceed value, a congestion alarm is triggered.

  • Normal: When the port bandwidth utilization falls below the normal value, the recovered alarm is triggered.

The CPU utilization alarm function can also set two trigger alarm thresholds:

  • Busy: When the CPU utilization equals or exceeds the busy value, an alarm is triggered, indicating that the CPU is busy.

  • Unbusy: When the CPU utilization is equal to or lower than the unbusy value, an alarm is triggered, indicating that the CPU is idle.


Note

The alarm information is moved as output to the Syslog by default. To show output in the terminal, enable the command.


How to Configure the Utilization Alarm

Configuring the Port Utilization Alarm

To configure the port utilization alarm, perform the following steps:

SUMMARY STEPS

  1. enable
  2. configure terminal
  3. alarm all-packets
  4. interface port-number
  5. alarm all-packets
  6. alarm all-packets threshold exceed exceed-value normal normal-value

DETAILED STEPS

  Command or Action Purpose
Step 1

enable

Example:

Device> enable 

Enables privileged EXEC mode.

Enter your password, if prompted.

Step 2

configure terminal

Example:

Device#configure terminal 

Enters global configuration mode.

Step 3

alarm all-packets

Example:

Device(config)# alarm all-packets

Enables alarms on all ports.

Use the no form of the command to disable alarms on all ports.

Step 4

interface port-number

Example:

Device(config)# interface gpon 0/1

Enters the port configuration mode.

Step 5

alarm all-packets

Example:

Device(config-if-gpon-0/1)# alarm all-packets

Enables port alarm.

Use the no form of the command to disable port alarm.

Step 6

alarm all-packets threshold exceed exceed-value normal normal-value

Example:

Device(config-if-gpon-0/1)# alarm all-packets threshold exceed 34 normal 4

Configures port threshold information.

Configuring the CPU Utilization Alarm

To configure the CPU utilization alarm, perform the following steps:

SUMMARY STEPS

  1. enable
  2. configure terminal
  3. alarm cpu
  4. alarm cpu threshold {[ busy busy-value ] | [ unbusyunbusy-value]}
  5. show alarm cpu

DETAILED STEPS

  Command or Action Purpose
Step 1

enable

Example:

Device> enable 

Enables privileged EXEC mode.

Enter your password, if prompted.

Step 2

configure terminal

Example:

Device#configure terminal 

Enters global configuration mode.

Step 3

alarm cpu

Example:

Device(config)# alarm all-packets

Enables CPU alarm.

Use the no form of the command to disable CPU alarm.

Step 4

alarm cpu threshold {[ busy busy-value ] | [ unbusyunbusy-value]}

Example:

Device(config)# alarm cpu threshold busy 63 normal 20

Configures port threshold information.

Step 5

show alarm cpu

Example:

Device(config)# show alarm cpu

(Optional) Displays the CPU alarm information.

Configuration Examples for Utilization Alarm

The following example shows how to configure the port alarm:

Device> enable
Device# configure terminal
Device(config)# alarm all-packets
Device(config)# interface ethernet 1/2
Device(config-if-ethernet-1/2)# alarm all-packets
Device(config-if-ethernet-1/2)# alarm all-packets threshold exceed 50 normal 40

The following example shows how to configure the CPU alarm:

Device> enable
Device# configure terminal
Device(config)# alarm cpu
Device(config)# alarm cpu threshold busy 90 unbusy 85

The following is a sample output of the show alarm cpu command:

Device(config)# show alarm cpu 
CPU status alarm        : enable
CPU busy threshold(%)   : 90
CPU unbusy threshold(%) : 85
CPU status              : unbusy