Kristijan.org

I’m back!

Posted by Kristijan on Sunday, December 21st, 2008

How could I stay away? From the shear number of e-mails flooding my inbox daily for updates to my infamous blog, I couldn’t keep the fans in the dark no more!
*cough*
Back to reality…I’m not reviving my old blog, but starting a new one. I’ve been working as a systems administrator for about 4 years now, [...]

continue reading

Archive for the ‘Shell Scripting’ Category

Calculate total usage in AIX volume group

Thursday, May 20th, 2010

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

Tuesday, April 13th, 2010

/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

Wednesday, September 30th, 2009

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

Wednesday, September 30th, 2009

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

Wednesday, February 25th, 2009

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.