Skip to content
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

ssh batch script #32

Open
jjakob opened this issue Dec 17, 2024 · 0 comments
Open

ssh batch script #32

jjakob opened this issue Dec 17, 2024 · 0 comments

Comments

@jjakob
Copy link

jjakob commented Dec 17, 2024

I wrote a script that runs a batch of commands over ssh, to run the fan commands on my servers. It might be useful to others too. It's written generically, so it's not iLO specific, it can work with any ssh console, any number of hosts can be scripted using per-host configs in /etc and a systemd instantiated service. It's written in Tcl/expect and doesn't just run the commands blindly, but waits for a prompt (can be configured per-host) and also passes through the ssh known hosts authentication prompt interactively (which is prompted by ssh on first connection). I documented how to set it up with iLO (with public key login) in the readme.
https://github.com/jjakob/ssh-batch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant