Go Back   Cyber Tech Help Support Forums > Operating Systems > Linux

Notices

Linux Problem solving for all open source distributions of Linux, such as Debian/Ubuntu, Fedora, RedHat, Suse, Mandriva and other proprietary unixes such as Solaris, SGI Irix. Newbie friendly too!

Reply
 
Topic Tools
  #1  
Old June 19th, 2006, 04:35 PM
r0ck3r r0ck3r is offline
New Member
 
Join Date: Jun 2006
Posts: 3
tired of scheduling

hi guys/gals
i have become tired of scheduling tasks on our office's 100 linux-computer network setup (RH-EL-4). i have to manually edit and add/remove tasks from crontab! can you guys help me with this? i have to add tasks to update software and manage patches and maintain which all computers have been updated!
Reply With Quote
  #2  
Old June 19th, 2006, 09:27 PM
kage's Avatar
kage kage is offline
CTH Subscriber
 
Join Date: Apr 2004
O/S: Linux
Posts: 1,644
If all of the machines use the same OS, and you need to apply the same settings to each machine, could you not create a bash script to automate the process?
Reply With Quote
  #3  
Old June 21st, 2006, 04:53 AM
r0ck3r r0ck3r is offline
New Member
 
Join Date: Jun 2006
Posts: 3
re: bash script

thanks for the quick response!
hmm. that can be done. i can create a script that will execute all the tasks.

1. but how do i update the scripts for different tasks?
2. how do i schedule the tasks automatically?
3. how can i be certain that the scripts executed properly (system may be down, other interruptions, etc.)

these questions are a real bother for me

hope you can help me with that.
Reply With Quote
  #4  
Old June 21st, 2006, 08:36 AM
kage's Avatar
kage kage is offline
CTH Subscriber
 
Join Date: Apr 2004
O/S: Linux
Posts: 1,644
Hm, I do not know of an official way...however. You could set one machine up to be an nfs or sfs (secure version of nfs) server and have your script file on this machine. Set all the other machines up to be nfs clients, and mount that file onto a directory in each other machine. Then you could set them up to run this script say once a week? Maybe one every two weeks, etc. That way you would only need to edit the one file.

To be certain the scripts executed properly, you could include something within the script that will let the other machines send their status to the nfs/sfs server. Either sending a mail message or echoing their status into a file on the nfs server should work, and would not be hard to setup.
Reply With Quote
  #5  
Old June 22nd, 2006, 03:54 PM
r0ck3r r0ck3r is offline
New Member
 
Join Date: Jun 2006
Posts: 3
Quote:
Originally Posted by kage
Hm, I do not know of an official way...however. You could set one machine up to be an nfs or sfs (secure version of nfs) server and have your script file on this machine. Set all the other machines up to be nfs clients, and mount that file onto a directory in each other machine. Then you could set them up to run this script say once a week? Maybe one every two weeks, etc. That way you would only need to edit the one file.

To be certain the scripts executed properly, you could include something within the script that will let the other machines send their status to the nfs/sfs server. Either sending a mail message or echoing their status into a file on the nfs server should work, and would not be hard to setup.
Whoa! wonderful idea! simply brilliant. so the script can take all the load off my back. just to be more specific, i can maintain some kind of a flag on the individual systems (or a counter) that will indicate the last patch that was successfully installed. that way, every system that runs a script updates from the last patch that was successfully installed on the system. great!
so in case a system misses a patch because it was down, it will catch it the next time. and i'll schedule it for every night - so that i can push patches in an urgency/more frequently

good good. i'll have to stagger some of the updates on the machines in time, so that the server doesn't get loaded all at once from 100 machines

and i'll build a log monitoring system on the server side that will monitor the logs every morning and flag out the computer which didn't take in the update.

great idea dude! thanks a zillion!
Reply With Quote
Reply

Bookmarks

Topic Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Topics
Topic Topic Starter Forum Replies Last Post
New Computer, ST Scheduling Services error message at startup RDG Windows Vista 5 September 16th, 2009 08:25 PM
Scheduling tasks ... Raven2490 Windows XP 2 December 18th, 2006 11:13 AM
Scheduling COMPLETE tasks in XP Smokey Windows XP 3 February 26th, 2006 10:20 AM
Looking for a Scheduling program Josh0571 Applications 1 August 22nd, 2005 08:20 PM
scheduling someof the task fantasy Windows 98 1 February 15th, 2002 07:23 AM


All times are GMT +1. The time now is 08:13 AM.