Log Threshold Configuration
show interface log-threshold
[Command] show interface log-threshold
[Purpose] Display interface bandwidth utilization alarms.
[View] System view
[Notes] If no specific alarm configuration is applied to a particular interface, this command will only display the default values and will not provide information for each individual interface.
[Use Cases]
sonic# show interface log-threshold
Interface Default Bandwidth utilization rx/tx alert_threshold: 80%, resume_threshold: 75%
customer defined
Interface rx_alert_threshold rx_resume_threshold tx_alert_threshold tx_resume_threshold
----------- -------------------- --------------------- -------------------- ---------------------
Ethernet2 70 60 70 60log-threshold {tx|rx|both}
[Command] log-threshold {tx|rx|both} alert_threshold resume_threshold
[Purpose] Configure the bandwidth utilization log threshold value for the interface.
[View] System view
[Parameter]
Parameter | Description |
|---|---|
tx | Interface outgoing direction |
rx | Interface incoming direction |
both | Configure both RX and TX simultaneously |
alert_threshold | Alarm threshold, range 50-100, default value 80 |
resume_threshold | Recovery threshold, range 50-100, default value 75 |
[View] interface view
[Usage Scenario] Users can use this command to customize the alarm thresholds and recovery thresholds for the outgoing and incoming directions of a specific interface. When the alarm threshold is exceeded, Syslog begins to generate alarm logs; when it falls below the recovery threshold, the alarm is canceled.
[Use Cases]
sonic(config)# interface ethernet 2
sonic(config-if-2)# log-threshold both 70 60