Originally Posted by WojtekO
I'm administering about two dozen asterisk servers and I'd like to know if there would be a way to administer cron remotely instead of having to open a ssh session for each to initiate some changes.
I though about hosting .sh files on the main server and the other ones would wget the file every hour and execute it.
Any other tips or ideas for what I'd like to do?
Hmm..I wouldn't have thought of wget, interesting train of thought.
I would probably put whatever scripts/jobs onto each of the two dozen servers, but have CRON on a central server, call smaller scripts, which use SSH and keyswapped ID's (for passwordless logins), to execute. Something like:
echo "Job for Asterisk1 starting at `date` >> /log/asterisk1.cron.out
ssh userID@asterisk1 "whatever shell script to do something.sh" >> /log/asterisk1.cron.out 2>&1&
echo "Job <name> for Asterisk1 ended at `date` >> /log/asterisk1.cron.out
To grab any errors, messages, etc., and give you times/dates for the job starts/ends, into a log file, one for each server.
Just a thought.