< Home

Displaying PoE Power Supply Status

This section provides a sample of obtaining the PoE power supply status using the get method.

Table 1 Displaying PoE power supply status

Operation

XPATH

get

/huawei-poe:get-poe-power-state

Data Requirements

Table 2 Displaying PoE power supply status based on interfaces

Item

Data

Description

Interface name

GigabitEthernet0/0/2

-

Request Example
<?xml version="1.0" encoding="UTF-8"?>
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
  <huawei-poe:get-poe-power-state xmlns:huawei-poe="urn:huawei:params:xml:ns:yang:huawei-poe">
    <huawei-poe:port-name>GigabitEthernet0/0/2</huawei-poe:port-name>
  </huawei-poe:get-poe-power-state>
</rpc>
Response Example
<?xml version='1.0' encoding='UTF-8'?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
  <data>
    <get-poe-power-state xmlns="urn:huawei:params:xml:ns:yang:huawei-poe">
      <ports-state>
        <port-state>
          <port-name>GigabitEthernet0/0/2</port-name>
          <port-index>8</port-index>
          <power-state>off</power-state>
          <enable>enable</enable>
          <fast-on>disable</fast-on>
          <priority>low</priority>
          <status>detecting</status>
          <legacy>0</legacy>
          <class>0</class>
          <reference-power>0</reference-power>
          <max-power>30000</max-power>
          <power>0</power>
          <peak-power>0</peak-power>
          <average-power>0</average-power>
          <current>0</current>
          <voltage>0</voltage>
        </port-state>
      </ports-state>
    </get-poe-power-state>
  </data>
</rpc-reply>
Table 3 Displaying PoE power supply status based on slot IDs

Item

Data

Description

Slot ID

0

Display the PoE power supply status of all interfaces in the specified slot.

Request Example
<?xml version="1.0" encoding="UTF-8"?>
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="2">
  <huawei-poe:get-poe-power-state xmlns:huawei-poe="urn:huawei:params:xml:ns:yang:huawei-poe">
    <huawei-poe:slot-id>0</huawei-poe:slot-id>
  </huawei-poe:get-poe-power-state>
</rpc>
Response Example
<?xml version='1.0' encoding='UTF-8'?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="2">
  <data>
    <get-poe-power-state xmlns="urn:huawei:params:xml:ns:yang:huawei-poe">
      <ports-state>
        <port-state>
          <port-name>GigabitEthernet0/0/1</port-name>
          <port-index>7</port-index>
          <power-state>off</power-state>
          <enable>disable</enable>
          <fast-on>disable</fast-on>
          <priority>low</priority>
          <status>disabled</status>
          <legacy>0</legacy>
          <class>0</class>
          <reference-power>0</reference-power>
          <max-power>30000</max-power>
          <power>0</power>
          <peak-power>0</peak-power>
          <average-power>0</average-power>
          <current>0</current>
          <voltage>0</voltage>
        </port-state>
        <port-state>
          <port-name>GigabitEthernet0/0/2</port-name>
          <port-index>8</port-index>
          <power-state>off</power-state>
          <enable>enable</enable>
          <fast-on>disable</fast-on>
          <priority>low</priority>
          <status>detecting</status>
          <legacy>0</legacy>
          <class>0</class>
          <reference-power>0</reference-power>
          <max-power>30000</max-power>
          <power>0</power>
          <peak-power>0</peak-power>
          <average-power>0</average-power>
          <current>0</current>
          <voltage>0</voltage>
        </port-state>
        <port-state>
          <port-name>GigabitEthernet0/0/3</port-name>
          <port-index>9</port-index>
          <power-state>off</power-state>
          <enable>enable</enable>
          <fast-on>disable</fast-on>
          <priority>low</priority>
          <status>detecting</status>
          <legacy>0</legacy>
          <class>0</class>
          <reference-power>0</reference-power>
          <max-power>30000</max-power>
          <power>0</power>
          <peak-power>0</peak-power>
          <average-power>0</average-power>
          <current>0</current>
          <voltage>0</voltage>
        </port-state>
        ............
      </ports-state>
    </get-poe-power-state>
  </data>
</rpc-reply>
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic