News, views, and rants (November 2006 Archive)
[ /home ]
[ /etc/motd ]
[ /bin ]
[ /etc ]
[ /var ]
[ /sbin ]
[ /usr/bin/find ]
[ Members ]
Are you looking for Current News?
Have you arrived via a search engine after searching for /etc/motd? If so,
head over to /etc where there is information about adding
colour to your /etc/motd file!
-
05/11/06 - Many scripts added in todays update. A handy utility called
watch exists on many systems to periodically execute a given command
and monitor the output. For systems where this does not exist, I've written a
substitute, watch.sh.
Next, a script to mail the last seven days worth of sccli <enclosure>
show events output for analysis. This script is intended to be scheduled via
cron to run daily. As well as the main script
(sccli_mon.sh), a helper script
(lastSevenDays.pl) is also
required.
If you run BIND nameservers with frequently changing named.conf configuration
files, you need to
notify slaves of newly added zones. To automate this, I've written a suite of three
scripts that will distribute named.conf from master to slave.
sync_to_slave.sh takes care
of synchronising the configuration file from master to slave.
install_slave_config.sh
installs the new configuration file on the slave nameserver, making the appropriate
backups along the way. This currently performs a complete BIND restart on the slave,
but (ToDo) this can be changed to a simple rndc reload.
All of this would be no use without a locking mechanism around
named.conf, so that files under edit are not transferred. Therefore, a
wrapper around vi named.conf,
vinamed is provided, which implements
a locking mechanism that both sync_to_slave.sh and
install_slave_config.sh utilise.
Lastly, I have written a very comprehensive script to check the OS-level
security of Red Hat Enterprise Linux AS 4 systems. Based upon guidelines from
CISecurity, and other sources,
the script checks the system for obvious security holes and recommended
security related configuration parameters across the operating system. You can grab
this script here.
News Archives