01-28-2025 10:53 AM
There is a python task in Site Engine called "Restart Device". It works well and I have it schedules for 2am on Sundays when no one is here.
But it only reboots the x465 and none of the x400 slots (port extenders). The cli command to make all the devices reboot is "reboot all". How can I modify the Python script to do "reboot all"?
I have tried to create a CLI task, and that task works, but I cannot seem to schedule saved CLI tasks to run at a certain day and time.
01-28-2025 08:43 PM - edited 02-11-2025 02:28 AM
Modify your Python task to send the "reboot all" command instead of just rebooting the x465. Locate the part of the script that executes the reboot command and replace it with or the equivalent function in your script. Ensure the script waits for confirmation if required. If scheduling CLI tasks isn't possible, embedding the command in Python is the best approach. Download Snaptube Premium APK