I noted this thread for controlling the POE from CLI/SSH
When I attempted the command, I initially got an error
admin@TSW202:~$ uci set tswconfig.port1.poe_enable=‘0’
uci: I/O error
admin@TSW202:~$
I logged in as “root” and the command was accepted without error but the POE on the port did not go off.
root@TSW202:~# uci set tswconfig.port1.poe_enable=‘0’
root@TSW202:~#
root@TSW202:~# uci set tswconfig.port4.poe_enable=‘0’
root@TSW202:~#
root@TSW202:~#
the uci show status indicates that the value was set to “0” on the ports that had the command run.
root@TSW202:~# uci show tswconfig.port1.poe_enable
tswconfig.port1.poe_enable=‘0’
root@TSW202:~# uci show tswconfig.port4.poe_enable
tswconfig.port4.poe_enable=‘0’
root@TSW202:~# uci show tswconfig.port2.poe_enable
uci: Entry not found
The command
uci set poe.port1.poe_enable=‘0’ && uci commit && reload_config
worked to turn off the POE on the required port but I was unable to turn POE back on using the same script even though the get command indicated it was set back to 1
root@aucct-aqt-esw-l01:~# uci set poe.port1.poe_enable=‘0’ && uci commit && reload_config
root@aucct-aqt-esw-l01:~#
root@aucct-aqt-esw-l01:~# uci get poe.port1.poe_enable
‘0’
root@aucct-aqt-esw-l01:~#
root@aucct-aqt-esw-l01:~# uci set poe.port1.poe_enable=‘1’ && uci commit && reload_config
root@aucct-aqt-esw-l01:~#
root@aucct-aqt-esw-l01:~# uci get poe.port1.poe_enable
‘1’
root@aucct-aqt-esw-l01:~#