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, there are no default alarm threshold for the port 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, case-insensitive. |
percentage percentage |
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.
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.