Configuring Logs and Thresholds for Outbound and Inbound Bandwidth Usage
Context
The bandwidth usage represents the load on a device. If the bandwidth usage exceeds the threshold, bandwidth of the device is insufficient for services and needs expansion. For example, if the bandwidth usage exceeds 95%, an alarm is generated to indicate that bandwidth resources are to be exhausted. Services may be interrupted before system expansion. You can set the upper and lower thresholds for bandwidth usage. When the bandwidth usage exceeds the lower threshold, the system generates a log. When the bandwidth usage exceeds the upper threshold, the system triggers an alarm.
The lower threshold must be smaller than the upper threshold. For example, you can set the lower threshold to 80% and the upper threshold to 95%. When the bandwidth usage exceeds 80%, the system generates a log, alerting users that the system needs expansion. When the bandwidth usage exceeds 95%, the system generates an alarm to prevent service interruption.
Procedure
- Run system-view
The system view is displayed.
- Run interface interface-type interface-number
The interface view is displayed.
- Run log-threshold { input-rate | output-rate } bandwidth-in-use [ resume-rate resume-threshold ]
The log threshold for the outbound or inbound bandwidth usage on the interface is configured.
By default, the log thresholds for the outbound and inbound bandwidth usage are both 100.
Maintain a proper gap between the bandwidth-in-use and resume-threshold values to prevent log flapping.
- Run trap-threshold { input-rate | output-rate } bandwidth-in-use [ resume-rate resume-threshold ]
The alarm threshold for the outbound or inbound bandwidth usage on the interface is configured.
By default, the alarm thresholds for the outbound and inbound bandwidth usage are both 100.
Maintain a proper gap between the bandwidth-in-use and resume-threshold values to prevent alarm flapping.