server
server copied to clipboard
[EPIC] Agent management improvements
In #759 there was a request to be able to manage agents through Hashtopolis. Use this issue to mark your interests in the problem.
Managing agents means for example:
- [ ] Issue wake on lan command
- [ ] Shutdown the agent
- [ ] #218
- [ ] #768
- [ ] #957
A few implementation ideas i'd have:
Wake on Lan
The HT Client could send the hosts MAC-Address to the HT Server which stores it as another field in the Agents table. The HT Server could then use a binary like wakeonlan
to wake up the PC which was clicked on in the UI, using the MAC-Address from the Agents table.
I think this could then be extended later with the functionality of automatically waking up Clients which are needed for a Task and shutting them down after a specific Idle time.
Shutdown
Since there is no sort of Shutdown on Lan, i would suggest to provide the Python Client with the ability to shutdown the Host. Since the Python Client polls the Server for new Tasks, it could get a Shutdown Task
and then initialize the shutdown of the Host. I guess the Python Client then needs Sudo rights?
What do you think?