Skip to content
Ask AI

Log Threshold Configuration

***[***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 60

[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]

ParameterDescription
txInterface outgoing direction
rxInterface incoming direction
bothConfigure both RX and TX simultaneously
alert_thresholdAlarm threshold, range 50-100, default value 80
resume_thresholdRecovery 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