New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Comments
use a bit of bash and pipe the commands to ssh?
Automatic or manual?
If automatic:
python + paramiko
If manual:
tmux, sync panes
Or you can use something like SaltStack, or Ansible, and others to remotely manage and execute commands to your infrastructure.
Well what's the best way you think. My current method is @SplitIce but needs to become easier because why not.
Just FYI, we use Ansible for deployment. Normally though you dont "execute commands" with it.
You define a configuration state for each service a server has, then send to ansible for deployment. Or at-least thats how you should do it.
Yeah.
Writing your own command executor isn't hard:
Notes:
You might consider scping a script and executing it, which avoids some of these problems.
RoyalTS or RoyalTSX has a broadcasting feature to send command to multiple servers.
I use pssh.
Unix-based command line tools such as pdsh or GNU parallel might be what you want.
Was going to say that one.
I'd SCP/rsync a bash script to each server like Raindog suggests (if its more than one or two commands) and then run the command. You can use exit codes from the bash script if you need an indication of what happened.
+1 for SaltStack. Super easy.