Linux Pengiun

Tools for managing Linux boxes with Domino
Anthony Barker

April 4, 2002

My Favorite tools for managing linux boxes with Domino (all are free)

Items in green tools should be included in your distro and others may be downloaded

Remote Admin
SSH Tools - because you shouldn't be using insecure communication protocols such as telnet or ftp.
putty - Secure shell access (ssh) to a linux box from any windows machine
winscp - an excellent tool you can use to securely copy files to or from a Linux box

cconsole - built into Domino - allows console access
webmin - an open source web based administration tool that Caldera bought and still develops. Nice if you want to distribute system management to a help desk.

wget filename
Use wget to download a file from the internet to your server directly. It supports proxies and can reconnect to failed downloads with the -c command. Normally I will use ssh to get into a box and copy and paste the url from my desktop browser into the terminal window. Apt-get (debian linux ) and urpmi (mandrake) are alternatives but they don't necessarily work through all firewalls.

pico - an easy to use text editor ( others may prefer vi)

python/perl - for automating system administration tasks on many servers. I use python with expect to automate telnet sessions with routers, other servers and other devices.


Network Monitoring

iptraf/ntop - tools which allow you to monitor network traffic on your machine or the subnet of your machine. ntop is particularly impressive in terms of ease of use and power.

Mail forwarding

fetchmail - a tool that allows you to retrieve POP3 and IMAP mail from another server and forward it to domino users.(Included in most distros)
gotmail - a perl script which can forward email from hotmail accounts (not very scalable)

Misc
nedit another gui text editor that is nice.
fluxbox - a linux desktop that is extremely fast and takes only 1 meg of RAM
bastille linux - some scripts that harden your machine and help you setup a firewall.

Charting your logs
Use these tools to chart your Domino http logs with and make nice charts. Note these provide all the statistics that commercial products do - but they don't make up stats and they don't feed cookies to track users. (ie you don't have to modify your web pages).

webalizer - a nice easy to setup log analyzer
analog - The most popular logfile analyser in the world

Server performance charting

rrdtool - a complex, but brilliant tool for charting server performance
netstaint - I don't use this - but many use it for monitoring server performance
logtool - a command line program that will parse syslog (and syslog-like) - you can then have errors in the logs mailed to you.

 

Essential Linux command line tools that you should know

This is above and beyond the basic directory navigation tools. Note - I list the non - GUI ones because although the linux GUI is getting better ( and changes rapidly) you will eventually end up using the command prompt. Particularly if you are troubleshooting a problem or writing a shell script to automate administration.

df -h - shows you the disk free (in meg or gig) - or you can use the notes admin client

du - shows the disk usage of a specific directory
du -sh /local/notesdata*

top - allows you to monitor cpu usage

ps -ef - lists processes that are running - you can do a kill -9 PID on any process that doesn't seem to be responding

lsof - shows open file handles and owners (good for locked files)

netstat -vat
Allows you to look at the open network connections on your machine

grep - allows you to filter any command with a pipe
eg ps -ef | grep lotus - will show all the notes processes

dig - is useful for checking dns settings
eg to do a full zone transfer dig @dns01.servername.com notes.companyname.com axfr > notes.txt

Alt+Fn - This will open up another terminal ( great if the one you are on is hung) also try to ssh into a box if it doesn't seem to be responding.

locate filename
allows you to locate a file located somewhere on your hard drive. E.g. locate notesdata | grep mail will list all your mail files or e.g. locate -r 'lotus*'

dmesg - shows you any boot errors that the machine may have had.
dmesg > bootmsg (pipes the output to a file)
dmesg | less page through the output

vmstat/iostat/mpstat/sar - tools that allow you to easily monitor and chart system performance. Grab the lastest versions of these tools if you need them.

tar xvzf filename.tar.gz - un tar and unzip a file
rpm -ivh filename.ver.rpm - install an file that is in rpm format
rpm -qa - list all programs and versions installed on the machine
rpm -e file.ver - erase /uninstall program

setup/setuptool/linuxconf - allows you do essential system setup from the command line (redhat/mandrake). Some people like linuxconf to manage a machine as well

ifconfig -a - show your network card configuration information

Seem to be having CPU performance problems? Get a quick baseline with
sar -A -o sarfile 5 30 >/dev/null &
sar -u -f sarfile
(to read it - it as stored as a binary for better performance)

smbclient //servername/g$ -W WINDOWS_DOMAIN -U user%passwd

A quick tool to get to other windows servers. Where g$ is the drive where the domino data directory is located( or it could be a share that you create). For more security drop the passwd and you will be prompted.

This will attempt to connect you to the remote disk or print share. If successful, you will be sitting at a command prompt at which you can use commands like cd, ls, get, and put, mkdir, rmdir, rm, ..., provided, of course, the username and password you used allow you such access to the
remote share. The samba client software must have been installed when you installed linux

history - shows command line history - use CTRL + R to search or !command to repeat

Sources of information
Linux documentation project http://www.tldp.org/
A nice online tutorial http://rute.sourceforge.net/
man/info pages man command or info command

 

Fun stuff
Because you need it
bubblemon - show your cpu and memory usage via a duck sitting in bubbles
wmfishmon - time date
xplanet - shows the time clock via the planet
fortune with cowsay - add /usr/games/fortune | /usr/local/bin/cowsay
to your /etc/profile file and get


[root@ns1 root]# su - notes
 ________________________________

< It's all in the mind, ya know. >
 --------------------------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||

>>> Back

>>> Home

Comments:

 
Warning: main(/home/ant/public_html/comments/annotate.php3): failed to open stream: No such file or directory in /home/ant/public_html/linux/Tools4LinuxLotusDomino.php on line 204

Fatal error: main(): Failed opening required '/home/ant/public_html/comments/annotate.php3' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/ant/public_html/linux/Tools4LinuxLotusDomino.php on line 204