log-threshold
Function
The log-threshold command sets the inbound and outbound bandwidth usage thresholds for generating a log.
The undo log-threshold command restores the default inbound and outbound bandwidth usage thresholds for generating a log.
The default inbound and outbound bandwidth usage thresholds for generating a log is 100.
Format
log-threshold { input-rate | output-rate } bandwidth-in-use [ resume-rate resume-threshold ]
undo log-threshold { input-rate | output-rate }
Parameters
Parameter | Description | Value |
---|---|---|
input-rate | Specifies the inbound bandwidth. | - |
output-rate | Specifies the outbound bandwidth. | - |
bandwidth-in-use | Specifies the bandwidth usage threshold for generating a log, prompting for a bandwidth increase request. | The value is an integer that ranges from 1 to 100. |
resume-rate resume-threshold | Specifies the bandwidth usage threshold for generating a log, indicating that bandwidth usage has been restored. | The value is an integer that ranges from 1 to the value of bandwidth-in-use. The default value is the value of bandwidth-in-use. |
Usage Guidelines
Monitoring bandwidth usage helps you learn about current device load. If the bandwidth usage exceeds a configured threshold, a log or an alarm is generated, indicating that bandwidth resources become insufficient and need an increase. For example, if bandwidth usage exceeds 95% of total bandwidth, an alarm is generated, indicating that bandwidth is exhausted. Some services may be interrupted before the bandwidth increases. To help prevent service interruption, setting two bandwidth usage thresholds, one for generating a log and the other for generating an alarm helps you increase bandwidth in time.
Outbound bandwidth usage = (Outbound interface rate/Outbound physical interface bandwidth) x 100
Inbound bandwidth usage = (Inbound interface rate/Inbound physical interface bandwidth) x 100
If the offset between the value of bandwidth-in-use and the value of resume-threshold is too small, log information may be frequently displayed.
Example
# Configure GE0/0/1 to generate a log when the outbound interface rate exceeds 80% of the bandwidth.
<AC6605> system-view [AC6605] interface gigabitethernet 0/0/1 [AC6605-GigabitEthernet0/0/1] log-threshold output-rate 80
# Configure GE0/0/1 to generate a log when the outbound interface rate exceeds 80% of the bandwidth and to generate a log indicating that bandwidth usage has been restored, when the outbound interface rate is lower than 60% of the bandwidth.
<AC6605> system-view [AC6605] interface gigabitethernet 0/0/1 [AC6605-GigabitEthernet0/0/1] log-threshold output-rate 80 resume-rate 60