---
title: MonitorLink
slug: enterprise-v6p1/monitorlink
createdAt: 2025-12-18T08:23:41.140Z
---

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

Monitor Link Module provides a capability to monitor the status of uplink and downlink interfaces on a network device.

User can add a couple of members into a monitor link group with different mode,
if uplink member is down, the downlink member will be shutdown automatically.

## <font color="#1d50a2">Create Monitor Link Group</font>

Request example to create a monitor link group via **edit-config**

```xml
<config>
    <top>
        <monitor-link>
            <monitor-link-group operation="create">
                <name>CE_UPLINK_AL2</name>
                <delay>30</delay>
                    <members>
                        <member>
                            <port>Ethernet18</port>
                            <mode>uplink</mode>
                        </member>
                        <member>
                            <port>Ethernet19</port>
                            <mode>downlink</mode>
                        </member>
                    </members>
            </monitor-link-group>
        </monitor-link>
    </top>
</config>
```

Response example

```xml
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:c9dae25f-3302-4874-8439-35c074b6fc8c">
  <ok/>
</rpc-reply>
```

## <font color="#1d50a2">Get Monitor Link Group</font>

Request example to retrieve the current monitor link group configuration via **get-config**

```xml
<filter type="subtree">
  <top>
    <monitor-link/>
  </top>
</filter>
```

Response example

```xml
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:1c4f4ec8-d66d-494e-a266-0071bdcad92d">
    <data>
        <top>
            <monitor-link xmlns="http://asterfusion.com/ns/yang/asternos-monitor-link">
                <monitor-link-group>
                    <name>CE_UPLINK_AL2</name>
                    <delay>30</delay>
                    <members>
                        <member>
                            <port>Ethernet18</port>
                            <mode>uplink</mode>
                        </member>
                        <member>
                            <port>Ethernet19</port>
                            <mode>downlink</mode>
                        </member>
                    </members>
                </monitor-link-group>
            </monitor-link>
        </top>
    </data>
</rpc-reply>
```

## <font color="#1d50a2">Delete Monitor Link Group</font>

Request example to delete a specific monitor link group via **edit-config**

```xml
<config>
  <top>
    <monitor-link>
      <monitor-link-group operation="delete">
        <name>CE_UPLINK_AL2</name>
      </monitor-link-group>
    </monitor-link>
  </top>
</config>
```

Response example

```xml
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:25ba6658-4551-40e9-a335-c35deb9d3b9b">
    <ok/>
</rpc-reply>
```

