POE
18 min
\<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 \<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 \<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 \<filter type="subtree"> \<top xmlns="http //asterfusion com/ns/yang/asternos interfaces"> \<interfaces> \<interface> \<name>ethernet1\</name> \<poe/> \</interface> \</interfaces> \</top> \</filter> response example \<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 \<config> \<top> \<interfaces> \<interface> \<name>ethernet1\</name> \<poe operation="delete"/> \</interface> \</interfaces> \</top> \</config> response example \<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 \<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 \<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 \<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 \<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> 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 \<config> \<top> \<poe> \<poe max power>150\</poe max power> \</poe> \</top> \</config> response example \<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 \<filter type="subtree"> \<top> \<poe/> \</top> \</filter> response example \<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 \<config> \<top> \<poe operation="delete"/> \</top> \</config> response example \<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 \<reinitialize poe/> response example \<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 \<show interface poe diagnose/> response example \<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 \<show interface poe status/> response example \<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>
