Oppure se avete switch poe unifi + controller, potete disattivare la funzionalità poe per poi rialimentarla al mattino, questo con un crojob nel controller
OFF
Prima shutdown sicuro dell'ap
sshpass -p 'password' ssh user@ip_AccessPoint "poweroff"
Poi rimozione del servizio poe
sshpass -p 'password' ssh user@ip_Switch "(echo -e ""enable""; sleep 1; echo -e ""configure""; sleep 1; echo -e ""interface 0/1""; sleep 1; echo -e ""poe opmode shutdown""; sleep 1; echo -e ""exit""; sleep 1; echo -e ""exit""; sleep 1; echo -e ""exit""; sleep 1; echo -e ""exit"";) | telnet 127.0.0.1 && exit"
ON
sshpass -p 'password' ssh user@ip_Switch "(echo -e ""enable""; sleep 1; echo -e ""configure""; sleep 1; echo -e ""interface 0/1""; sleep 1; echo -e ""poe opmode auto""; sleep 1; echo -e ""exit""; sleep 1; echo -e ""exit""; sleep 1; echo -e ""exit""; sleep 1; echo -e ""exit"";) | telnet 127.0.0.1 && exit"
Fonte