Thursday, September 08, 2005

Mike's goodies

This shar archive contains all the "Auto Admin" files which originated
on the HP-UX systems running HP-UX 9.01 in the Department of Chemistry
at the University of Toronto. Except for "Localstuff", these files are
now being used on our SGI IRIX 5.X and 6.X systems, SunOS 4.1.X
systems, Solaris 2.X systems, on Linux Red Hat 5.X, and on FreeBSD
3.X. Unfortunately, I don't have a newer HP system to check that these
scripts still work properly on HP-UX.

The 'autoadmin.tex' file contains the text of the talk I gave at the
InterWorks Conference in Orlando (May 1994), but does not completely
describe all the "Auto Admin" files in this archive, or all their
features, since the files here are my latest versions.

Look over the files CAREFULLY before using them on your system.

The 'installhp.out' file is located in '/usr/local/doc' on my systems.
The rest of the files are in '/usr/local/bin' on my systems.

You will also need to create a soft link in '/usr/local/bin':
ln -s Find_setuid Find_links

The crontab entries used to run these commands are:

# General checks.
#0,15,30,45 * * * * /bin/csh -c /usr/local/bin/Hourlystuff >/dev/null 2>&1
00 * * * * /bin/csh -c /usr/local/bin/Hourlystuff >/dev/null 2>&1
# Accounting and clean up.
# Do cpu accounting and other stuff at 6:15 AM every day.
15 6 * * * /bin/csh -c /usr/local/bin/Dailystuff >/dev/null 2>&1
# Do disk accounting and other stuff at 12:30 AM every Sunday.
30 0 * * 0 /bin/csh -c /usr/local/bin/Weeklystuff >/dev/null 2>&1
# Do cpu accounting and other stuff at 6:45 AM every month.
45 6 1 * * /bin/csh -c /usr/local/bin/Monthlystuff >/dev/null 2>&1
# Do Teststuff - activate when needed.
#00,05,10,15,20,25,30,35,40,45,50,55 8-16 * * * /bin/csh -c
/home/mikep/bin/Teststuff >/dev/null 2>&1

and should be installed by root with 'crontab -l >/tmp/root',
edit "/tmp/root", 'crontab -r', 'crontab /tmp/root'.

I have included 'installhp.out' which contains the HP-UX system
install/update steps that are carried out manually; some of these could
probably be added to the 'Localstuff' given some effort. I'd like to
hear about other steps which you automate.

You might also want to check out the following URL for some other
information on automating various aspects of system administration:


Post a Comment

<< Home