---
title: POE
slug: enterprise-v6p1/poe
createdAt: 2025-12-18T08:45:11.949Z
---

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

This chapter provides examples on how to use Netconf to manage POE configurations on AsterNOS devices.

## <font color="#1d50a2">Enable POE For Specified Interface</font>

Request example to Set POE configurations of specified interface via **edit-config**

```xml
<config>
  <top>
    <interfaces>
      <interface>
        <name>Ethernet1</name>
        <poe>
          <enable-mode>enable</enable-mode>
          <delay>10</delay>
          <priority>low</priority>
          <max-power>15w</max-power>
          <legacy-detect>true</legacy-detect>
        </poe>
      </interface>
    </interfaces>
  </top>
</config>
```

Response example

```xml
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:239fe0f4-e6fd-41fd-9350-d7d01076f2c3">
  <ok/>
</rpc-reply>
```

## <font color="#1d50a2">Get POE Configurations Of Specified Interface</font>

Request example to get POE configurations of specified interface via **get-config**

```xml
<filter type="subtree">
  <top xmlns="http://asterfusion.com/ns/yang/asternos-interfaces">
    <interfaces>
      <interface>
        <name>Ethernet1</name>
        <poe/>
      </interface>
    </interfaces>
  </top>
</filter>
```

Response example

```xml
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:642cbaa6-84b7-4fab-9ba6-f3e67d73f1cc">
  <data>
    <top>
      <interfaces xmlns="http://asterfusion.com/ns/yang/asternos-interfaces">
        <interface>
          <name>Ethernet1</name>
          <poe xmlns="http://asterfusion.com/ns/yang/asternos-poe">
            <enable-mode>enable</enable-mode>
            <delay>10</delay>
            <priority>low</priority>
            <max-power>15w</max-power>
            <legacy-detect>true</legacy-detect>
          </poe>
        </interface>
      </interfaces>
    </top>
  </data>
</rpc-reply>
```

## <font color="#1d50a2">Delete POE Of Specified Interface</font>

Request example to delete POE configurations of specified interface via **edit-config**

```xml
<config>
    <top>
        <interfaces>
            <interface>
                <name>Ethernet1</name>
                <poe operation="delete"/>
            </interface>
        </interfaces>
    </top>
</config>
```

Response example

```xml
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:639e30c3-b6dd-4a43-bdb5-6af477c00ce7">
  <ok/>
</rpc-reply>
```

## <font color="#1d50a2">Bind Time-range To POE Interface</font>

Request example to create time-range configurations via **edit-config**

```xml
<config>
    <top>
        <time-ranges>
            <time-range operation="create">
                <name>bbb</name>
                <days-in-week>sunday monday</days-in-week>
                <start>12:00</start>
                <end>13:30</end>
            </time-range>
        </time-ranges>
    </top>
</config>
```

Response example

```xml
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:f77af791-9b4b-412b-9b96-e9b2c4e63317">
  <ok/>
</rpc-reply>
```

Request example to bind time-range to POE interface via **edit-config**

```xml
<config>
    <top>
        <interfaces>
            <interface>
                <name>Ethernet1</name>
                <poe operation="merge">
                    <enable-mode>enable</enable-mode>
                    <delay>100</delay>
                    <priority>high</priority>
                    <max-power>15w</max-power>
                    <legacy-detect>true</legacy-detect>
                    <power-off-time-range>bbb</power-off-time-range>
                </poe>
            </interface>
        </interfaces>
    </top>
</config>
```

Response example

```xml
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:a9c0136e-a55f-452b-809c-e29c633f63df">
  <ok/>
</rpc-reply>
```

## <font color="#1d50a2">Set POE Global Configurations</font>

:::hint{type="warning"}
**NOTE:**
The sum of max power for all POE interfaces cannot exceed POE max power.

On the 102S\_HPW1 series switch, the max poe\_max\_power is 150 W;
On the 204Y\_HPW1 series switch, the max poe\_max\_power is 370 W.
On the 204Y\_HPW2 series switch, the max poe\_max\_power is 740 W.
On the 206Y\_HPW4 series switch, the max poe\_max\_power is 1440 W.
On the 206Y\_HPW8 series switch, the max poe\_max\_power is 2880 W.
:::

Request example to set POE global poe-max-power via **edit-config**

```xml
<config>
    <top>
        <poe>
            <poe_max_power>150</poe_max_power>
        </poe>
    </top>
</config>
```

Response example

```xml
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:639e30c3-b6dd-4a43-bdb5-6af477c00ce7">
  <ok/>
</rpc-reply>
```

## <font color="#1d50a2">Get POE Global Configurations</font>

Request example to get POE global configurations via **get-config**

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

Response example

```xml
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:93541c7b-26b8-4b5d-b164-9d247c8177bf">
  <data>
    <top>
      <poe xmlns="http://asterfusion.com/ns/yang/asternos-poe">
        <poe_max_power>150</poe_max_power>
      </poe>
    </top>
  </data>
</rpc-reply>
```

## <font color="#1d50a2">Delete POE Configurations</font>

Request example to delete POE global configurations via **edit-config**

```xml
<config>
    <top>
        <poe operation="delete"/>
    </top>
</config>
```

Response example

```xml
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:cdabecf2-d2b5-4eb7-9cbb-47542a1086d4">
  <ok/>
</rpc-reply>
```

## <font color="#1d50a2">Reinitialize POE</font>

Request example to reinitialize POE via rpc **reinitialize-poe**

```xml
<reinitialize-poe/>
```

Response example

```xml
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:b14004b7-1fa4-4467-8232-83af39c85555">
  <data xmlns="http://asterfusion.com/ns/yang/asternos-poe">
    Restore poe to factory setting
    Reinitalize poe finished
    Recover poe finished
  </data>
</rpc-reply>
```

## <font color="#1d50a2">Display Interface POE Initialization Information</font>

Request example to display interface POE initialization information via rpc **show-interface-poe-diagnose**

```xml
<show-interface-poe-diagnose/>
```

Response example

```xml
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:cb81abe4-1361-4e64-8b2a-9511ee84e83e">
  <data xmlns="http://asterfusion.com/ns/yang/asternos-poe">
    PSE device information:
    field              value
    -----------------  ------------------------------------
    version            0x5a42
    status             OK Expected PoE device Found (Zone1)
    event
    temperature        37 C
    temperature-alarm  110 C
    reset-count        0
    initialized        True
    PSE wrong port map:
    Interface    Current Id    Expect Id
    -----------  ------------  -----------
  </data>
</rpc-reply>
```

## <font color="#1d50a2">Display Interface POE Status</font>

Request example to display interface POE status via rpc **show-interface-poe-status**

```xml
<show-interface-poe-status/>
```

Response example

```xml
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:5ce6021c-da52-43a2-8e55-774796e37a65">
  <data xmlns="http://asterfusion.com/ns/yang/asternos-poe">
      Interface    poe_status    Poe_delay    Current(A)    Voltage(V)    Power(W)    MaxPower(W)    Power/MaxPower    Power/DevicePSU    Legacy_detect
    -----------  ------------  -----------  ------------  ------------  ----------  -------------  ----------------  -----------------  ---------------
      Ethernet1           N/A          N/A           N/A           N/A         N/A            N/A               N/A                N/A              N/A
      Ethernet2           N/A          N/A           N/A           N/A         N/A            N/A               N/A                N/A              N/A
      Ethernet3           N/A          N/A           N/A           N/A         N/A            N/A               N/A                N/A              N/A
      Ethernet4           N/A          N/A           N/A           N/A         N/A            N/A               N/A                N/A              N/A
      Ethernet5           N/A          N/A           N/A           N/A         N/A            N/A               N/A                N/A              N/A
      Ethernet6           N/A          N/A           N/A           N/A         N/A            N/A               N/A                N/A              N/A
      Ethernet7           N/A          N/A           N/A           N/A         N/A            N/A               N/A                N/A              N/A
      Ethernet8           N/A          N/A           N/A           N/A         N/A            N/A               N/A                N/A              N/A
      Ethernet9           N/A          N/A           N/A           N/A         N/A            N/A               N/A                N/A              N/A
    Ethernet10           N/A          N/A           N/A           N/A         N/A            N/A               N/A                N/A              N/A
    Ethernet11           N/A          N/A           N/A           N/A         N/A            N/A               N/A                N/A              N/A
    Ethernet12           N/A          N/A           N/A           N/A         N/A            N/A               N/A                N/A              N/A
    Ethernet13           N/A          N/A           N/A           N/A         N/A            N/A               N/A                N/A              N/A
    Ethernet14           N/A          N/A           N/A           N/A         N/A            N/A               N/A                N/A              N/A
    Ethernet15           N/A          N/A           N/A           N/A         N/A            N/A               N/A                N/A              N/A
    Ethernet16           N/A          N/A           N/A           N/A         N/A            N/A               N/A                N/A              N/A
    -----------  ------------  -----------  ------------  ------------  ----------  -------------  ----------------  -----------------  ---------------
    The sum of the above POEs power is: 0.000 w
    The maximum POEs power of the device is 150W, the ratio of (sum_POEs_power/maxPOEsPower) is :0.000%
  </data>
</rpc-reply>
```

