Locked History Actions

rb5009

Mikrotik RB5009UPr+S+IN mit openwrt

PoE Steuerung

mit dem Tool mtpoe-ctrl https://github.com/adron-s/mtpoe_ctrl/

Examples of using:
        mtpoe_ctrl -dumpvars #shows the values of parameter variables
        mtpoe_ctrl #shows full information about PoE controller state/work
        mtpoe_ctrl --action=get_fw_ver #shows firmware version of the Attiny PoE microcontroller
        mtpoe_ctrl --action=get_voltage #shows the input voltage
        mtpoe_ctrl --action=get_temperature #shows the temperature
        mtpoe_ctrl --action=get_poe #shows the status of PoE for the ports. 0->ether2, 1..2, 3->ether5
        mtpoe_ctrl --action=set_poe --port=0 --val=1 #force-on PoE for port ether2
        mtpoe_ctrl --action=set_poe --port=1 --val=2 #auto-on PoE for port ether3
        mtpoe_ctrl --action=set_poe --port=2 --val=1 #force-on PoE for port ether4
        mtpoe_ctrl --action=set_poe --port=3 --val=0 #turn off PoE for port ether5
        mtpoe_ctrl --action=load_poe_from_uci #load PoE port settings from uci->network->mtik_poe

In /etc/config/network the mtik_poe section should be present:
config mtik_poe
        option port0 '1'
        option port1 '0'
        option port2 '1'
        option port3 '0'