Skip to content
Ask AI

PFC Watch Dog

Table 1 PFCWD View

CommandPurpose
show pfcwd configurationDisplay PFCWD configuration information.
show pfcwd statsDisplay PFCWD statistics information.

[Command] show pfcwd configuration

[Purpose] Display PFCWD configuration information.

[View] Privileged User View

[Use Cases]

sonic# show pfcwd configuration
PORT ACTION DETECTION TIME RESTORATION TIME
------ -------- ---------------- ------------------

[Command] show pfcwd configuration

[Purpose] Display PFCWD statistics information.

[View] Privileged User View

[Use Cases]

sonic# show pfcwd stats
QUEUE STATUS STORM DETECTED/RESTORED TX OK/DROP RX OK/DROP TX LAST OK/DROP RX LAST OK/DROP
------- -------- ------------------------- ------------ ------------ ----------------- -----------------

Table 2 PFCWD Config

CommandPurpose
pfcwd enable {all|interface_name} detection-time d_time [action pfcwd_action | restoration-time r_time]Enable PFCWD.
pfcwd counter_pollEnable PFCWD counter polling.
pfcwd interval poll_intervalSet the PFCWD polling interval.
pfcwd start_defaultStart PFC WD by default configurations.

[Command] pfcwd enable {all|interface_name} detection-time d_time [action pfcwd_action | restoration-time r_time]

[Purpose] Enable PFCWD.

[Parameters]

ParameterDescription
allApplies to all interfaces
interface_nameSpecify the interface, for example: 0/0
d_timeDetection time, range is [100,5000]
pfcwd_actionAction after detection of PFC pause storms, optional parameters are drop, forward, alert.
r_timeRecovery time, range is [100,60000]

[View] Global Configuration View

[Notes] Run command pfcwd disable {all|interface_name } to disable PFCWD.

[Use Cases]

sonic# configure
sonic(config)# pfcwd enable all detection-time 100 action drop restoration-time 400

[Command] pfcwd counter_poll

[Purpose] Enable PFCWD counter polling.

[View] Global Configuration View

[Notes] Run command no pfcwd counter_poll to disable PFCWD counter polling.

[Use Cases]

sonic# configure
sonic(config)# pfcwd counter_poll

[Command] pfcwd interval poll_interval

[Purpose] Set the PFCWD polling interval.

[Parameters]

ParameterDescription
poll_intervalPolling interval in ms, range [100,3000]

[View] Global Configuration View

[Use Cases]

sonic# configure
sonic(config)# pfcwd interval 100

[Command] pfcwd counter_poll

[Purpose] Start PFC WD by default configurations.

[View] Global Configuration View

[Use Cases]

sonic# configure
sonic(config)# pfcwd start_default