The port-queue-alarm buffer command configures an alarm threshold for the usage of port queues.
The undo port-queue-alarm buffer command cancels the configuration.
By default, the alarm threshold for the usage of CS6 and CS7 queues is 99, and there are no default alarm thresholds for other queues.
Parameter | Description | Value |
---|---|---|
cos-value | Specifies the class of service. |
The value is an enumerated type and can be cs7, cs6, ef, af4, af3, af2, af1, or be. |
percentage percentage-value | Specifies an alarm threshold for the usage of queues. |
The value is an integer in the range 0 to 100. If the value is 0, an alarm is generated as long as packets are transmitted. |
Usage Scenario
To monitor the use of queues, you can run the port-queue-alarm buffer command to configure an alarm threshold for the usage of queues. If the usage of a queue (the ratio of the current queue length to the total queue length) exceeds the alarm threshold, an alarm is sent.The system checks the queue usage every 2s. If the queue usage exceeds the alarm threshold for more than eight times within 16 consecutive checks, the system determines that the alarm condition is met.
An alarm threshold for the buffer usage in the port queue can be configured both in the slot view and interface view. Therefore, the conditions for the configurations to take effect are as follows:Follow-up Procedure
If the usage of a queue exceeds the configured alarm threshold, run the queue-depth command to adjust the size of the queue cache.