---
title: CRM
slug: enterprise-v6p1/crm
createdAt: 2025-12-18T08:45:20.337Z
---

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

This chapter provides examples on how to use Netconf to manage CRM configurations and resource information on AsterNOS devices.
CRM resource information include details of real-time resource information and historical resource information.

## <font color="#1d50a2">Modify CRM frequency and period configurations</font>

Request example to set CRM configurations via **edit-config**.

```xml
<config>
  <top>
    <crm>
      <crm-config operation="merge">
        <frequency>300</frequency>
        <period>600</period>
      </crm-config>
    </crm>
  </top>
</config>
```

Response example

```xml
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:6d3b9c6e-cdfe-491d-89c4-d8da527fbada">
  <ok/>
</rpc-reply>
```

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

Request example to retrieve CRM configurations via **get-config** with subtree filter.

```xml
<filter type="subtree">
  <top>
    <crm>
      <crm-config/>
    </crm>
  </top>
</filter>
```

Response example

```xml
<data>
  <top>
    <crm xmlns="http://asterfusion.com/ns/yang/asternos-crm">
      <crm-config>
        <frequency>300</frequency>
        <period>600</period>
      </crm-config>
    </crm>
  </top>
</data>
```

## <font color="#1d50a2">Get all CRM real-time resource information</font>

Request example to retrieve all CRM real-time resource information via **get** with subtree filter.

```xml
<filter type="subtree">
  <top>
    <crm>
      <crm-resource>
        <realtime-resources/>
      </crm-resource>
    </crm>
  </top>
</filter>
```

Response example

```xml
<data>
  <top>
    <crm xmlns="http://asterfusion.com/ns/yang/asternos-crm">
      <crm-resource>
        <realtime-resources>
          <realtime-resource>
            <resource>ipv4-neighbor</resource>
            <used-count>0</used-count>
            <used-rate>%0.0</used-rate>
            <available-count>32767</available-count>
            <max-count>32768</max-count>
          </realtime-resource>
          <realtime-resource>
            <resource>ipv4-route</resource>
            <used-count>4</used-count>
            <used-rate>%0.01</used-rate>
            <available-count>38328</available-count>
            <max-count>38338</max-count>
          </realtime-resource>
          <realtime-resource>
            <resource>ipv6-neighbor</resource>
            <used-count>0</used-count>
            <used-rate>%0.0</used-rate>
            <available-count>16383</available-count>
            <max-count>16384</max-count>
          </realtime-resource>
          <realtime-resource>
            <resource>ipv6-route</resource>
            <used-count>3</used-count>
            <used-rate>%0.02</used-rate>
            <available-count>19164</available-count>
            <max-count>19169</max-count>
          </realtime-resource>
          <realtime-resource>
            <resource>mac</resource>
            <used-count>1</used-count>
            <used-rate>%0.0</used-rate>
            <available-count>32767</available-count>
            <max-count>32768</max-count>
          </realtime-resource>
          <realtime-resource>
            <resource>route-nexthop</resource>
            <used-count>3</used-count>
            <used-rate>%0.2</used-rate>
            <available-count>1533</available-count>
            <max-count>1536</max-count>
          </realtime-resource>
        </realtime-resources>
      </crm-resource>
    </crm>
  </top>
</data>
```

## <font color="#1d50a2">Get CRM real-time resource information for specific table</font>

Request example to retrieve CRM real-time resource information for table 'mac' via **get** with subtree filter.
Supported table entry types include: mac, ipv4-route, ipv6-route, ipv4-neighbor, ipv6-neighbor and route-nexthop.

```xml
<filter type="subtree">
  <top>
    <crm>
      <crm-resource>
        <realtime-resources>
          <realtime-resource>
            <resource>mac</resource>
          </realtime-resource>
        </realtime-resources>
      </crm-resource>
    </crm>
  </top>
</filter>
```

Response example

```xml
<data>
  <top>
    <crm xmlns="http://asterfusion.com/ns/yang/asternos-crm">
      <crm-resource>
        <realtime-resources>
          <realtime-resource>
            <resource>mac</resource>
            <used-count>1</used-count>
            <used-rate>%0.0</used-rate>
            <available-count>32767</available-count>
            <max-count>32768</max-count>
          </realtime-resource>
        </realtime-resources>
      </crm-resource>
    </crm>
  </top>
</data>
```

## <font color="#1d50a2">Get all CRM historical resource information</font>

Request example to retrieve all CRM historical resource information via **get** with subtree filter.

```xml
<filter type="subtree">
  <top>
    <crm>
      <crm-resource>
        <history/>
      </crm-resource>
    </crm>
  </top>
</filter>
```

Response example

```xml
<data>
  <top>
    <crm xmlns="http://asterfusion.com/ns/yang/asternos-crm">
      <crm-resource>
        <history>
          <resource>mac</resource>
          <history-resources>
            <history-resource>
              <timestamp>2025/9/26 16:31:25</timestamp>
              <used-count>1</used-count>
              <used-rate>%0.0</used-rate>
              <available-count>32767</available-count>
              <max-count>32768</max-count>
            </history-resource>
            <history-resource>
              <timestamp>2025/9/26 16:36:25</timestamp>
              <used-count>1</used-count>
              <used-rate>%0.0</used-rate>
              <available-count>32767</available-count>
              <max-count>32768</max-count>
            </history-resource>
          </history-resources>
        </history>
        <history>
          <resource>ipv4-route</resource>
          <history-resources>
            <history-resource>
              <timestamp>2025/9/26 16:31:25</timestamp>
              <used-count>4</used-count>
              <used-rate>%0.03</used-rate>
              <available-count>38328</available-count>
              <max-count>38338</max-count>
            </history-resource>
            <history-resource>
              <timestamp>2025/9/26 16:36:25</timestamp>
              <used-count>4</used-count>
              <used-rate>%0.03</used-rate>
              <available-count>38328</available-count>
              <max-count>38338</max-count>
            </history-resource>
          </history-resources>
        </history>
        <history>
          <resource>ipv6-route</resource>
          <history-resources>
            <history-resource>
              <timestamp>2025/9/26 16:31:25</timestamp>
              <used-count>3</used-count>
              <used-rate>%0.03</used-rate>
              <available-count>19164</available-count>
              <max-count>19169</max-count>
            </history-resource>
            <history-resource>
              <timestamp>2025/9/26 16:36:25</timestamp>
              <used-count>3</used-count>
              <used-rate>%0.03</used-rate>
              <available-count>19164</available-count>
              <max-count>19169</max-count>
            </history-resource>
          </history-resources>
        </history>
        <history>
          <resource>ipv4-neighbor</resource>
          <history-resources>
            <history-resource>
              <timestamp>2025/9/26 16:31:25</timestamp>
              <used-count>0</used-count>
              <used-rate>%0.0</used-rate>
              <available-count>32767</available-count>
              <max-count>32768</max-count>
            </history-resource>
            <history-resource>
              <timestamp>2025/9/26 16:36:25</timestamp>
              <used-count>0</used-count>
              <used-rate>%0.0</used-rate>
              <available-count>32767</available-count>
              <max-count>32768</max-count>
            </history-resource>
          </history-resources>
        </history>
        <history>
          <resource>ipv6-neighbor</resource>
          <history-resources>
            <history-resource>
              <timestamp>2025/9/26 16:31:25</timestamp>
              <used-count>0</used-count>
              <used-rate>%0.0</used-rate>
              <available-count>16383</available-count>
              <max-count>16384</max-count>
            </history-resource>
            <history-resource>
              <timestamp>2025/9/26 16:36:25</timestamp>
              <used-count>0</used-count>
              <used-rate>%0.0</used-rate>
              <available-count>16383</available-count>
              <max-count>16384</max-count>
            </history-resource>
          </history-resources>
        </history>
        <history>
          <resource>route-nexthop</resource>
          <history-resources>
            <history-resource>
              <timestamp>2025/9/26 16:31:25</timestamp>
              <used-count>3</used-count>
              <used-rate>%0.2</used-rate>
              <available-count>1533</available-count>
              <max-count>1536</max-count>
            </history-resource>
            <history-resource>
              <timestamp>2025/9/26 16:36:25</timestamp>
              <used-count>3</used-count>
              <used-rate>%0.2</used-rate>
              <available-count>1533</available-count>
              <max-count>1536</max-count>
            </history-resource>
          </history-resources>
        </history>
      </crm-resource>
    </crm>
  </top>
</data>
```

## <font color="#1d50a2">Get CRM historical resource information for specific table</font>

Request example to retrieve CRM historical resource information for table 'mac' via **get** with subtree filter.
Supported table entry types include: mac, ipv4-route, ipv6-route, ipv4-neighbor, ipv6-neighbor and route-nexthop.

```xml
<filter type="subtree">
  <top xmlns="http://asterfusion.com/ns/yang/asternos-crm">
    <crm>
      <crm-resource>
        <history>
          <resource>mac</resource>
        </history>
      </crm-resource>
    </crm>
  </top>
</filter>
```

Response example

```xml
<data>
  <top>
    <crm xmlns="http://asterfusion.com/ns/yang/asternos-crm">
      <crm-resource>
        <history>
          <history-resources>
            <history-resource>
              <timestamp>2025/9/26 16:31:25</timestamp>
              <used-count>1</used-count>
              <used-rate>%0.0</used-rate>
              <available-count>32767</available-count>
              <max-count>32768</max-count>
            </history-resource>
            <history-resource>
              <timestamp>2025/9/26 16:36:25</timestamp>
              <used-count>1</used-count>
              <used-rate>%0.0</used-rate>
              <available-count>32767</available-count>
              <max-count>32768</max-count>
            </history-resource>
          </history-resources>
        </history>
      </crm-resource>
    </crm>
  </top>
</data>
```

## <font color="#1d50a2">Get CRM configurations and all resource information</font>

Request example to retrieve CRM configurations and all resource information via **get** with subtree filter.

```xml
<filter type="subtree">
  <top>
    <crm/>
  </top>
</filter>
```

Response example

```xml
<data>
  <top>
    <crm xmlns="http://asterfusion.com/ns/yang/asternos-crm">
      <crm-config>
        <frequency>300</frequency>
        <period>600</period>
      </crm-config>
      <crm-resource>
        <realtime-resources>
          <realtime-resource>
            <resource>ipv4-neighbor</resource>
            <used-count>0</used-count>
            <used-rate>%0.0</used-rate>
            <available-count>32767</available-count>
            <max-count>32768</max-count>
          </realtime-resource>
          <realtime-resource>
            <resource>ipv4-route</resource>
            <used-count>4</used-count>
            <used-rate>%0.01</used-rate>
            <available-count>38328</available-count>
            <max-count>38338</max-count>
          </realtime-resource>
          <realtime-resource>
            <resource>ipv6-neighbor</resource>
            <used-count>0</used-count>
            <used-rate>%0.0</used-rate>
            <available-count>16383</available-count>
            <max-count>16384</max-count>
          </realtime-resource>
          <realtime-resource>
            <resource>ipv6-route</resource>
            <used-count>3</used-count>
            <used-rate>%0.02</used-rate>
            <available-count>19164</available-count>
            <max-count>19169</max-count>
          </realtime-resource>
          <realtime-resource>
            <resource>mac</resource>
            <used-count>1</used-count>
            <used-rate>%0.0</used-rate>
            <available-count>32767</available-count>
            <max-count>32768</max-count>
          </realtime-resource>
          <realtime-resource>
            <resource>route-nexthop</resource>
            <used-count>3</used-count>
            <used-rate>%0.2</used-rate>
            <available-count>1533</available-count>
            <max-count>1536</max-count>
          </realtime-resource>
        </realtime-resources>
        <history>
          <resource>mac</resource>
          <history-resources>
            <history-resource>
              <timestamp>2025/9/26 16:1:30</timestamp>
              <used-count>1</used-count>
              <used-rate>%0.0</used-rate>
              <available-count>32767</available-count>
              <max-count>32768</max-count>
            </history-resource>
            <history-resource>
              <timestamp>2025/9/26 16:6:30</timestamp>
              <used-count>1</used-count>
              <used-rate>%0.0</used-rate>
              <available-count>32767</available-count>
              <max-count>32768</max-count>
            </history-resource>
          </history-resources>
        </history>
        <history>
          <resource>ipv4-route</resource>
          <history-resources>
            <history-resource>
              <timestamp>2025/9/26 16:1:30</timestamp>
              <used-count>4</used-count>
              <used-rate>%0.03</used-rate>
              <available-count>38328</available-count>
              <max-count>38338</max-count>
            </history-resource>
            <history-resource>
              <timestamp>2025/9/26 16:6:30</timestamp>
              <used-count>4</used-count>
              <used-rate>%0.03</used-rate>
              <available-count>38328</available-count>
              <max-count>38338</max-count>
            </history-resource>
          </history-resources>
        </history>
        <history>
          <resource>ipv6-route</resource>
          <history-resources>
            <history-resource>
              <timestamp>2025/9/26 16:1:30</timestamp>
              <used-count>3</used-count>
              <used-rate>%0.03</used-rate>
              <available-count>19164</available-count>
              <max-count>19169</max-count>
            </history-resource>
            <history-resource>
              <timestamp>2025/9/26 16:6:30</timestamp>
              <used-count>3</used-count>
              <used-rate>%0.03</used-rate>
              <available-count>19164</available-count>
              <max-count>19169</max-count>
            </history-resource>
          </history-resources>
        </history>
        <history>
          <resource>ipv4-neighbor</resource>
          <history-resources>
            <history-resource>
              <timestamp>2025/9/26 16:1:30</timestamp>
              <used-count>0</used-count>
              <used-rate>%0.0</used-rate>
              <available-count>32767</available-count>
              <max-count>32768</max-count>
            </history-resource>
            <history-resource>
              <timestamp>2025/9/26 16:6:30</timestamp>
              <used-count>0</used-count>
              <used-rate>%0.0</used-rate>
              <available-count>32767</available-count>
              <max-count>32768</max-count>
            </history-resource>
          </history-resources>
        </history>
        <history>
          <resource>ipv6-neighbor</resource>
          <history-resources>
            <history-resource>
              <timestamp>2025/9/26 16:1:30</timestamp>
              <used-count>0</used-count>
              <used-rate>%0.0</used-rate>
              <available-count>16383</available-count>
              <max-count>16384</max-count>
            </history-resource>
            <history-resource>
              <timestamp>2025/9/26 16:6:30</timestamp>
              <used-count>0</used-count>
              <used-rate>%0.0</used-rate>
              <available-count>16383</available-count>
              <max-count>16384</max-count>
            </history-resource>
          </history-resources>
        </history>
        <history>
          <resource>route-nexthop</resource>
          <history-resources>
            <history-resource>
              <timestamp>2025/9/26 16:1:30</timestamp>
              <used-count>3</used-count>
              <used-rate>%0.2</used-rate>
              <available-count>1533</available-count>
              <max-count>1536</max-count>
            </history-resource>
            <history-resource>
              <timestamp>2025/9/26 16:6:30</timestamp>
              <used-count>3</used-count>
              <used-rate>%0.2</used-rate>
              <available-count>1533</available-count>
              <max-count>1536</max-count>
            </history-resource>
          </history-resources>
        </history>
      </crm-resource>
    </crm>
  </top>
</data>
```

