Koozali.org: home of the SME Server
Obsolete Releases => SME 8.x Contribs => Topic started by: smeghead on September 30, 2013, 04:11:35 PM
-
Hi all
I am pondering the best way to update multiple servers with global block entries I make to my own SME. At the moment I log into each server & update via the Server Manager, effective but time consuming. I am thinking of scripting this & would like some input from the 'SME brains trust' on the best way to proceed.
I am assuming no more than a 'vanilla' stock SME install as my base, or maybe use the smeserver-wbl contrib for additional features.
I'm thinking:
. data file (with remote server hostname, login name, password) to be parsed for connection & logon info
. script will need to loop through data file one entry at a time
. test for required contribs (if any), abort/log if not found
. script to be passed <domain name> as variable on command line
. db command to add entry to appropriate 'db' file; will need to append info
. run appropriate signal-event routine
. logout
All suggestions, recommendations, code snippets welcome.
If/when completed this will be added to Howto database.
Start cranking up the old 'grey matter'.
Ta muchly
-
since almost everything can be done via CLI, you can think about using clusterssh, a ssh client that can open more ssh sessions (to different servers, of course) at the same time..
no need for scripting :)
HTH