TSW202 - control PoE from CLI/SSH

Hello,

Is there a way to control PoE on a port via CLI/SSH? I need to do 4 power cycle on a Cambium AP to reset, but i cannot do this via web interface, because i have to switch off and on again in 4 secs.

Thank you for your help.

Cheers,
Zoltan

Hi,

Yes, you can control Power over Ethernet (PoE) on ports through SSH/CLI using uci commands. Follow this guide to achieve it:

Access your TSW202 device’s SSH or CLI via WebUI.
Execute the following commands:

To turn off port #1:

    uci set tswconfig.port1.poe_enable='0'

To turn on port #1:

     uci set tswconfig.port1.poe_enable='1'

Note: You can apply these commands to any of the 8 available ports.

000116

You can create a script using these commands for a quick PoE off/on cycle.

Best regards,

Marijus

Hello,

Thank you, its working :slight_smile: And yes, i can write a small script to add the timing to the power cycle.

Cheers,
Zoltan

This topic was automatically closed after 15 days. New replies are no longer allowed.