Seth D. Galitzer

Systems Administrator

Computer Science Department

Kansas State University

Calendar
Contact
CS Links
Useful Stuff
finger.vbs - I wanted a tool like *nix finger that would query a Windows AD directly (from a Windows client), so I came up with this. It returns the stuff you'd usually see from finger, but also the UID/GID, the last login [1], and whether or not the account is locked. Of course, it's customized for my setup, but it should be apparent how you can change it for your own needs. Got suggestions for improvements? Drop me a line.
rt.diff - patch for the RT CLI utility which fixes a bug related to adding and deleting values from multi-value fields
mythstatus.pl - perl script intended as a quick and dirty replacement for mythtv-status, used with the MythTV project
undenyhosts.sh - bash script which removes host names and IPs from hosts.deny and the denyhosts database
weather.pl - a perl script that downloads and formats weather data from NOAA
wootrss.pl - a perl script that parses the RSS feed for and displays the current item onsale at Woot.com
wunderground.pl - a perl script that downloads and formats weather data from Weather Underground
8ball.pl - perl script which uses randomness to simulate the classic Magic 8 Ball
Somwhat complete list of car makes and models - xml file compiled by slurping this site with a quick and dirty bash script
How good is your password? - a simple test to rate the entropy of a password or phrase. Original writeup and source by Dan Wheeler available here.
check_vg_size - Nagios plugin that checks the free space of one or more LVM volume groups. Based on plugin originally written by M. Koettenstorfer and updated by J. Schoepfer (http://www.lihas.de/anleitungen-und-service/nagios-plugins/) Note: you need to add setuid permissions on your /sbin/lvm binary for this to work.

Notes...
[1]It turns out that AD has two fields to keep track of the last time an account was logged in. The lastLogon attribute was used by Windows Server 2000 AD, and is not replicated. The lastLogonTimestamp was added with Windows Server 2003 AD and is replicated, but not frequently. By default, lastLogonTimestamp is replicated every 9-14 days. Thus it not a good way to get up-to-the-minute status on a user's actual last login time. It's a tunable value, but only down to a minimum of 5 days. If you want more granular data, you'll have to roll your own. (See here for more details.) For the purposes of this script, I just wanted a general idea (ie, see if they've logged in in the last 6 months) and not a specific timestamp, so this is good enough for me.