---
title: CRM
slug: routing/crm
createdAt: 2025-12-04T04:32:02.567Z
---

## <font color="#1d50a2">CRM</font>

### <font color="#1d50a2">show crm summary</font>

**\[Command]**
**show crm summary**

**\[Purpose]**
Display the summary information of CRM configuration

**\[View]**
System view

**\[Usage Scenario]**
When you want to view the resource statistics polling time configuration, you can do so by executing this command.

**\[Use Cases]**

```plaintext
sonic# show crm summary
Polling Interval: 300 second(s)
```

### <font color="#1d50a2">show crm thresholds \{acl \{counter|entry|group|table\}|all|dnat|fdb|\{ipv4|ipv6\} \{neighbor|nexthop|route\}|nexthop group \{member|object\}|snat\}</font>

**\[Command]**
**show crm thresholds \{acl \{counter|entry|group|table}|all|dnat|fdb|\{ipv4|ipv6} \{neighbor|nexthop|route}|nexthop group \{member|object}|snat}**

**\[Purpose]**
Display the threshold configuration of the CRM

**\[Parameter]**

| ****<font color="#0C121D">**Parameter**</font> | <font color="#0C121D">**Description**</font>                                                                        |
| ---------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- |
| *acl*                                          | Display the threshold configuration information of ACL-related resources, including counter, entry, group and table |
| *all*                                          | Display the threshold configuration information of all resources                                                    |
| *dnat*                                         | Display the threshold configuration information of the dnat resource                                                |
| *fdb*                                          | Display the threshold configuration information of the fdb resource                                                 |
| *IPv4*                                         | Display the threshold configuration information of ipv4 resources, including neighbor, nexthop, and route           |
| *IPv6*                                         | Display the threshold configuration information of ipv6 resources, including neighbor, nexthop, and route           |
| *nexthop group*                                | Display the threshold configuration information of the next-hop group resources, including member and object        |
| *snat*                                         | Display the threshold configuration information of the snat resource                                                |

**\[View]**
System view

**\[Usage Scenario]**
When you want to view the threshold configuration of different types of resources, you can do so by executing this command.

**\[Use Cases]**

```plaintext
sonic# show crm thresholds all
```

### <font color="#1d50a2">show crm resources \{acl \{counter|entry|group|table\}|all|dnat|fdb|\{ipv4|ipv6\} \{neighbor|nexthop|route\}|nexthop group \{member|object\}|snat\}</font>

**\[Command]**
**show crm resources \{acl \{counter|entry|group|table}|all|dnat|fdb|\{ipv4|ipv6} \{neighbor|nexthop|route}|nexthop group \{member|object}|snat}**

**\[Purpose]**
Display the resource information monitored by CRM

**\[Parameter]**

| ****<font color="#0C121D">**Parameter**</font> | ****<font color="#0C121D">**Description**</font>                                                                    |
| ---------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- |
| *acl*                                          | Display the threshold configuration information of ACL-related resources, including counter, entry, group and table |
| *all*                                          | Display the threshold configuration information of all resources                                                    |
| *dnat*                                         | Display the threshold configuration information of the dnat resource                                                |
| *fdb*                                          | Display the threshold configuration information of the fdb resource                                                 |
| *IPv4*                                         | Display the threshold configuration information of ipv4 resources, including neighbor, nexthop, and route           |
| *IPv6*                                         | Display the threshold configuration information of ipv6 resources, including neighbor, nexthop, and route           |
| *nexthop group*                                | Display the threshold configuration information of the next-hop group resources, including member and object        |
| *snat*                                         | Display the threshold configuration information of the snat resource                                                |

**\[View]**
System view

**\[Usage Scenario]**
When you want to view information about different types of resources, you can do so by executing this command.

**\[Use Cases]**

```plaintext
sonic# show crm resources all
```

### <font color="#1d50a2">show crm-resource configuration</font>

**\[Command]**
**show crm-resource configuration**

**\[Purpose]**
Display the configuration of CRM statistical history information

**\[View]**
System view

**\[Usage Scenario]**
When you want to view the configuration of resource statistics history information, you can do so by executing this command.

**\[Use Cases]**

```plaintext
sonic# show crm-resource configuration
```

### <font color="#1d50a2">show crm-resource history \{all|type\{acl \{counter|entry|group|table\}|all|dnat|fdb|\{ipv4|ipv6\} \{neighbor|nexthop|route\}|nexthop group \{member|object\}|snat\}\}</font>

**\[Command]**
**show crm-resource history \{all|type\{acl \{counter|entry|group|table}|all|dnat|fdb|\{ipv4|ipv6} \{neighbor|nexthop|route}|nexthop group \{member|object}|snat}}**

**\[Purpose]**
Display the historical resource information of CRM statistics

**\[Parameter]**

| <font color="#0C121D">**Parameter**</font> | ****<font color="#0C121D">**Description**</font>                                                                                   |
| ------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------- |
| *all*                                      | Display historical statistical information of all types of resources                                                               |
| *type*                                     | Display historical statistical information of different types of resources, including acl, dnat, fdb, ipv4, ipv6, nexthop and snat |

**\[View]**
System view

**\[Usage Scenario]**
When you want to view the historical statistics of various types of resources, you can do so by executing this command.

**\[Use Cases]**

```plaintext
sonic# show crm-resource history all
```

### <font color="#1d50a2">crm polling interval *interval*</font>

**\[Command]**
**crm polling interval *interval***

**\[Purpose]**
Configure the CRM polling interval

**\[Parameter]**

| <font color="#0C121D">**Parameter**</font> | ****<font color="#0C121D">**Description**</font> |
| ------------------------------------------ | ------------------------------------------------ |
| *intervarl*                                | Value range: 1-9999, unit: seconds               |

**\[View]**
System configuration view

**\[Usage Scenario]**
When adjusting the polling time for resource statistics, you can configure it by executing this command.

**\[Use Cases]**

```plaintext
sonic# configure terminal
sonic(config)# crm polling interval 10
```

### <font color="#1d50a2">crm thresholds \{acl \{&#x7B;group\}\{counter|entry\}|table\}|dnat|fdb|\{ipv4|ipv6\} \{neighbor|nexthop|route\}|nexthop group \{member|object\}|snat\} type \{percentage|used|free\}</font>

**\[Command]**
**crm thresholds \{acl \{&#x7B;group}\{counter|entry}|table}|dnat|fdb|\{ipv4|ipv6} \{neighbor|nexthop|route}|nexthop group \{member|object}|snat} type \{percentage|used|free}**

**\[Purpose]**
Configure the threshold type of CRM statistical resources

**\[Parameter]**

| <font color="#0C121D">**Parameter**</font> | <font color="#0C121D">**Description**</font>                                                               |
| ------------------------------------------ | ---------------------------------------------------------------------------------------------------------- |
| *percentage/used/free*                     | The resource types are respectively percentage, the number of used items and the number of available items |

**\[View]**
System configuration view

**\[Usage Scenario]**
When adjusting the threshold types for statistics of various types of resources, you can configure them by executing this command.

**\[Use Cases]**

```plaintext
sonic# configure terminal
sonic(config)# crm thresholds fdb type used
```

### <font color="#1d50a2">crm thresholds \{acl \{&#x7B;group\}\{counter|entry\}|table\}|dnat|fdb|\{ipv4|ipv6\} \{neighbor|nexthop|route\}|nexthop group \{member|object\}|snat\} \{high|low\} *crm threshold*</font>

**\[Command]**
**crm thresholds \{acl \{&#x7B;group}\{counter|entry}|table}|dnat|fdb|\{ipv4|ipv6} \{neighbor|nexthop|route}|nexthop group \{member|object}|snat} \{high|low} *crm threshold***

**\[Purpose]**
Configure the threshold for CRM statistical resources

**\[Parameter]**

| ****<font color="#0C121D">**Parameter**</font> | <font color="#0C121D">**Description**</font>                        |
| ---------------------------------------------- | ------------------------------------------------------------------- |
| *high/low*                                     | The maximum and minimum values of the resource statistics threshold |
| *crm threshold*                                | Resource statistics threshold, value range: 0-65535                 |

**\[View]**
System configuration view

**\[Usage Scenario]**
When adjusting the thresholds for statistics of various types of resources, you can configure them by executing this command.

**\[Use Cases]**

```plaintext
sonic# configure terminal
sonic(config)# crm thresholds ipv4 neighbor high 85
```

### <font color="#1d50a2">crm history frequency *frequency*</font>

**\[Command]**
**crm history frequency *frequency***

**\[Purpose]**
Configure the frequency of CRM statistics on historical resource information and use it in conjunction with the polling time

**\[Parameter]**

| <font color="#0C121D">**Parameter**</font> | <font color="#0C121D">**Description**</font>                          |
| ------------------------------------------ | --------------------------------------------------------------------- |
| *frequency*                                | Historical resource statistics frequency, value range: 1-9999 seconds |

**\[View]**
System configuration view

**\[Usage Scenario]**
When adjusting the frequency of statistical historical resource information, this command can be executed to configure it.

**\[Use Cases]**

```plaintext
sonic# configure terminal
sonic(config)# crm history frequency 10
```

### <font color="#1d50a2">crm history max *max*</font>

**\[Command]**
**crm history max *max***

**\[Purpose]**
Configure the maximum number of record entries for historical resource information statistics in CRM

**\[Parameter]**

| <font color="#0C121D">**Parameter**</font> | <font color="#0C121D">**Description**</font> |
| ------------------------------------------ | -------------------------------------------- |
| *max*                                      | Value range: 1 to 100 items                  |

**\[View]**
System configuration view

**\[Usage Scenario]**
When adjusting the maximum number of entries for statistical historical resource information records, this command can be executed to configure it.

**\[Use Cases]**

```plaintext
sonic# configure terminal
sonic(config)# crm history max 20
```

