Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 12-14-2009, 03:57 PM   #1
Registered: Oct 2004
Location: Atlanta
Distribution: CentOS, RHEL, HP-UX, OS X
Posts: 567

Rep: Reputation: 57
Common Administration Task

I need to brush up on my scripting skills. What are some common day to day task that need to be done in a NOC enviornment for a Linux Node?

One of the day to day task I used to do was all of our Network Routers Config files were backed up to a CentOS machine. I had a script that would allow our network engineers to select a date and it would email them the config files that were backed up on that date. I also had a script that would copy files to a remote windows server to be backed up to tape. Another script I had was to clean up the archive of the router back ups that were made nightly.

Any similar task like that you do that I could tinker with to work on my scripting skills?
Old 12-14-2009, 04:14 PM   #2
Senior Member
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 164Reputation: 164
There's a ton of common tasks that people do on a regular basis.

Make backups, rotate backups, take a daily dump of the databases for all databases on a system automatically, perform a md5sum check on a file on a remote machine vs the locally backed up copy, add all users on a remote machine that don't exist there that exist on central server, clean up /tmp directory, verify that the logrotate graceful restarts of apache have been actually occuring and that apache isn't effectively doubling memory usage nightly (nice spiral of death from hung G/W connections), etc.

There's an invite number of probabilities of varying complexity, you have to have some tasks you still do manually on your servers, find a way to automate them

Posting a couple 'easy to use' remote backup scripts using rsync that do verification would probably be of notable benefit to much of the community, backups seem to be something most people skip (at least until the first time they lose important data.)

Last edited by rweaver; 12-14-2009 at 04:15 PM.
Old 12-14-2009, 08:35 PM   #3
Senior Member
Registered: Aug 2007
Location: Massachusetts, USA
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,194

Rep: Reputation: 105Reputation: 105
Write a cron script to check for partitions that are filling up and email sysadmins with details if any are found, write a script to automatically check the integrity of raid arrays and alert sysadmins by email if any are in degraded mode, write a script to tail a log file (only read what hasn't already been read) and look for something that needs action (e.g. attempt at ssh root login noted in authlog, echo IP address in the form "ALL:" to the end ">>" of hosts.deny), use your imagination to think of anything you might do regularly enough to want to automate and then automate it.

The flip side is that many of these things have been done and done better than you could hope to do yourself. Check out public domain software and see how things have been done. They aren't necessarily all in C or C++. You can find projects that are in perl and pieces that are in shell. You can gain a lot of mileage by learning open source software, adopting it, and adapting details to your own needs. Good sysadmins learn to code, but they also learn not to code when it's already been done for them. If you have the time and passion, you could join in on an open source project and contribute pieces. You don't have to dive into the core code, you can add utilities or wrappers, or you can read through reported bugs, try to actually locate them in the code and submit a patch. Learning how to make a patch is a useful skill. Follow your nose and chase your interests.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Task bar no longer shows task Richard Rahl Linux - Newbie 3 04-12-2010 09:39 AM
xfree86-common xserver-common xfonts-base missing in etch/lenny unev_21 Debian 2 09-11-2009 02:12 AM
linux system administration including network administration linux_linux Linux - Hardware 3 03-15-2008 10:07 PM
LXer: System Administration Toolkit: Distributed administration using SSH LXer Syndicated Linux News 0 08-15-2007 07:20 AM
BOGUS.common.04y -> /home/common/Mailbox jayakrishnan Linux - Networking 0 11-19-2005 04:48 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:35 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration