< Home

Configuring PoE Power-Off Time Range

This section describes how to configure the PoE power-off time range using the rpc method.

Table 1 Configuring PoE power-off time range

Operation

XPATH

rpc

/huawei-time-range:time-ranges/time-range/

Data requirement

Table 2 Configuring PoE power-off time range

Item

Data

Description

Name of the policy used in the power-off time range

timerangege0/0/2

-

Start time of the power-off time range

8:00

End time of the power-off time range

18:00

Power-off weekdays

Monday to Friday

Request example

<?xml version='1.0' encoding='UTF-8'?>
<rpc message-id="4" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
  <edit-config>
    <target>
      <running/>
    </target>
    <config>
      <hw-time-range:time-ranges xmlns:hw-time-range="urn:huawei:params:xml:ns:yang:huawei-time-range">
        <hw-time-range:time-range>
          <hw-time-range:vsys>public</hw-time-range:vsys>
          <hw-time-range:name>timerangege0/0/2</hw-time-range:name>
          <hw-time-range:period-time>
            <hw-time-range:start>8:0:0</hw-time-range:start>
            <hw-time-range:end>18:0:0</hw-time-range:end>
            <hw-time-range:weekday>monday</hw-time-range:weekday>
            <hw-time-range:weekday>tuesday</hw-time-range:weekday>
            <hw-time-range:weekday>wednesday</hw-time-range:weekday>
            <hw-time-range:weekday>thursday</hw-time-range:weekday>
            <hw-time-range:weekday>friday</hw-time-range:weekday>
          </hw-time-range:period-time>
        </hw-time-range:time-range>
      </hw-time-range:time-ranges>
    </config>
  </edit-config>
</rpc>

Response example

Sample of successful response

<?xml version='1.0' encoding='UTF-8'?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="4">
  <ok/>
</rpc-reply>

Sample of failed response

<?xml version='1.0' encoding='UTF-8'?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="5">
  <rpc-error>
    <error-type>application</error-type>
    <error-tag>operation-failed</error-tag>
    <error-severity>error</error-severity>
    <error-message>parse rpc config error.</error-message>
  </rpc-error>
</rpc-reply>
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >