-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Idea: Shutdown machines in linbo_sync #209
Comments
I can implement the Backend, but someone else has to do the frontend for this 🙂 |
Hi, I wanted to achieve this feature, and I would love to have it in my network, but there's too many constraint for this :
I can naturally develop my own methods for my own network, but the webui has to stay as general as possible, and I don't see a simple way to achieve this, because you need control on the client. Arnaud |
Yes, you are right, It's not optimal. A solution for linuxclients could be to automatically setup ssh in the linuxclient7 or with Linbo. But we need to discuss this. |
I'm glad you came up to this idea, that's exactly what I wanted to silently suggest :) |
Just adding my 2 cents to this: I would like to see something like this as well. I wouldn't mind to share the public key of the school server to all the linux clients as requirement. For the implementation: This should not be part of the webui. The webui can of course trigger this but we need to have this separated like all the other functions we have right now. If @dorianim is okay with it I would suggest he can provide a backend solution which we can add to linuxmuster-base or its own package (we already had this discussion in the last developer conference if such things needs its own package or should be added to base, i would prefer last.). Afterwards we, or should I say @kiarn ;), can implement this in the linbo_sync plugin. Having the backend tool in linuxmuster-base would make this easier because the plugin does not have to check for the separate plugin as dependency... This was way more in detail than intended... :) |
I would not like to use ssh. It is a pain to setup in windows and its not particularly fast to connect to it. I would prefer the following solution:
This way we have a bidirectional communication between server and client, wich ist very flexible and could be used for a variety of things. And most importantly, we'd have a unified interface for all clients. I'd love this solution, but it would require some effort and you guys would need to become familiar with mqtt and (in case we decide to use it) gloang. |
I get your point and see the benefits of having a real unified client-software running on each client. I agree not using ssh for windows, using rpc commands should be the way to go for this, I did not adressed windows at all in my post. |
The problem with using the default tools is again, that we don't have a nice way for determining what os the client is running. Currently we only use port scanning and this may be unreliable in some cases. In addition to that, we would not have the ability to get fine-grained information fron the client in a fast way. E.g. uptime, logged in useres, os version, available updates, ... |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
But I am getting off-topic, sorry. We should start with a small proof-of concept which will only provide the functionality for this issue. If that works and we are hapoy with it, we can go further 😅 |
Good, we all have a lot of differents ideas, what a time to be creative. |
We have this functionality within a simple bash script we use for some years now. Host OS detection is done by checking certain ports (2222 -> Linbo) and timeouts (for devices powered off or disconnected). This script also allows to issue Linbo commands that are then run with the -p parameter before a restart. If this script is of any interest, I can provide it. But technically it is quite basic stuff. |
Hi,
I think, it might be a nice to have feature to be able to shut down machines in Linbo_sync. It could work like this:
ssh -o ConnectTimeout=2 -o StrictHostKeyChecking=no -p 2222 root@$IP /sbin/poweroff
ssh -o ConnectTimeout=2 -o StrictHostKeyChecking=no root@$IP shutdown now
net rpc -S $IP -U global-admin%$PASSWORD shutdown -t 1 -f
For windows, it might be possible to use the
--use-kerberos
parameter. If that does not work, the user has to input their password. (see the docs)Regards,
Dorian
The text was updated successfully, but these errors were encountered: