---
title: PFC Watch Dog
slug: aidc/pfc-watch-dog
createdAt: 2025-12-01T11:11:08.000Z
---

## <font color="#1d50a2">PFCWD View</font>

<font color="#1d05a2">Table 1 PFCWD View</font>

| **Command**                  | **Purpose**                              |
| ---------------------------- | ---------------------------------------- |
| **show pfcwd configuration** | Display PFCWD configuration information. |
| **show pfcwd stats**         | Display PFCWD statistics information.    |

### <font color="#1d50a2">show pfcwd configuration</font>

**\[Command]**
**show pfcwd configuration**

**\[Purpose]**
Display PFCWD configuration information.

**\[View]**
Privileged User View

**\[Use Cases]**

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

### <font color="#1d50a2">show pfcwd stats</font>

**\[Command]**
**show pfcwd configuration**

**\[Purpose]**
Display PFCWD statistics information.

**\[View]**
Privileged User View

**\[Use Cases]**

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

## <font color="#1d50a2">PFCWD Config</font>

<font color="#1d05a2">Table 2 PFCWD Config</font>

| 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. |

### <font color="#1d50a2">pfcwd enable \{all|*interface\_name*\} detection-time *d\_time* \[action *pfcwd\_action* | restoration-time *r\_time*\]</font>

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

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

### <font color="#1d50a2">pfcwd counter\_poll</font>

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

```plaintext
sonic# configure
sonic(config)# pfcwd counter_poll
```

### <font color="#1d50a2">pfcwd interval *poll\_interval*</font>

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

```plaintext
sonic# configure
sonic(config)# pfcwd interval 100
```

### <font color="#1d50a2">pfcwd start\_default</font>

**\[Command]**
**pfcwd counter\_poll**

**\[Purpose]**
Start PFC WD by default configurations.

**\[View]**
Global Configuration View

**\[Use Cases]**

```plaintext
sonic# configure
sonic(config)# pfcwd start_default
```

