Archive for the ‘Shell Scripting’ Category
Calculate total usage in AIX volume group
When looking at the output of the “lsvg” command in AIX, you’ll see a whole bunch of information regarding the volume group. The PP size, how many PPs are in the volume group, stale PVs, quorum, so on and so on. What I’m normally looking for when running the “lsvg” command is:
1. How much storage [...]
Maintain wtmp on AIX
/var/adm/wtmp on AIX maintains a list of past user sessions and information about the restart/shutdown of that particular system. While this file is normally very small in terms of file size, on an active box, this can grow if not properly maintained. You can use the “last” command to read wtmp, or export it to [...]
TSM: Lost Tapes
We had an issue not long ago were Tivoli Storage Manager was losing track of tapes. The issue ended up being how TSM manages database snapshots which are sent offsite using DRM (Bug in TSM which has been around for a while according to a colleague of mine).
I needed to find out quickly which tapes [...]
Monitor AIX filesystems V2
I updated this script a while back and made it a lot easier to maintain. It now checks for usage on all mounted filesystems, except for those listed in the $SKIPFS variable.
Monitor AIX filesystems
If you’re looking for something cheap and nasty to monitor your filesystem usage while you’re setting up something more robust, here is a cheap and very nasty script to do just that.