PFC Watch Dog
Table 1 PFCWD View
| Command | Purpose |
|---|---|
| show pfcwd configuration | Display PFCWD configuration information. |
| show pfcwd stats | Display PFCWD statistics information. |
show pfcwd configuration
Section titled “show pfcwd configuration”[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------ -------- ---------------- ------------------show pfcwd stats
Section titled “show pfcwd stats”[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------- -------- ------------------------- ------------ ------------ ----------------- -----------------PFCWD Config
Section titled “PFCWD Config”Table 2 PFCWD Config
| Command | Purpose |
|---|---|
| pfcwd enable {all|interface_name} detection-time d_time [action pfcwd_action | restoration-time r_time] | Enable PFCWD. |
| pfcwd counter_poll | Enable PFCWD counter polling. |
| pfcwd interval poll_interval | Set the PFCWD polling interval. |
| pfcwd start_default | Start PFC WD by default configurations. |
pfcwd enable {all|
Section titled “pfcwd enable {all|”[Command] pfcwd enable {all|interface_name} detection-time d_time [action pfcwd_action | restoration-time r_time]
[Purpose] Enable PFCWD.
[Parameters]
| Parameter | Description |
|---|---|
| all | Applies to all interfaces |
| interface_name | Specify the interface, for example: 0/0 |
| d_time | Detection time, range is [100,5000] |
| pfcwd_action | Action after detection of PFC pause storms, optional parameters are drop, forward, alert. |
| r_time | Recovery time, range is [100,60000] |
[View] Global Configuration View
[Notes] Run command pfcwd disable {all|interface_name } to disable PFCWD.
[Use Cases]
sonic# configuresonic(config)# pfcwd enable all detection-time 100 action drop restoration-time 400pfcwd counter_poll
Section titled “pfcwd counter_poll”[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# configuresonic(config)# pfcwd counter_pollpfcwd interval
Section titled “pfcwd interval”[Command] pfcwd interval poll_interval
[Purpose] Set the PFCWD polling interval.
[Parameters]
| Parameter | Description |
|---|---|
| poll_interval | Polling interval in ms, range [100,3000] |
[View] Global Configuration View
[Use Cases]
sonic# configuresonic(config)# pfcwd interval 100pfcwd start_default
Section titled “pfcwd start_default”[Command] pfcwd counter_poll
[Purpose] Start PFC WD by default configurations.
[View] Global Configuration View
[Use Cases]
sonic# configuresonic(config)# pfcwd start_default