FreeIPA Password Expiry Notification Script for Red Hat Identity Management

Hey there friends, I’ve got a quick’n’sloppy bash shell script that’s fairly useful, if you’re using a FreeIPA identity management domain on CentOS/RHEL/Scientific Linux and want to notify people via email of when their password is going to expire. The script assumes it’s being run on an IDM server system with access to the following… Continue reading FreeIPA Password Expiry Notification Script for Red Hat Identity Management

Incron, Watcher Python PyInotify Alternative. Recursively Watch A File System for Change Events using inotifywait, inotify

If you have a folder in your home directory called “/root/FilestoWatch” and in there you have a bunch of files and folders that you want to constantly be checked for changes. There are a few options out there for this type of thing: – crond (limited to every minute) – incrond (cannot recursively watch a… Continue reading Incron, Watcher Python PyInotify Alternative. Recursively Watch A File System for Change Events using inotifywait, inotify

PowerShell csv Reports for VMware vSphere Info via vSphere API/PowerCLI

PowerShell Script Lightning Round! This will give you reports of your vSphere VMs, Hosts and Datastores in csv files.  You’ll need to have PowerCLI installed and have your Get-ExecutionPolicy set to Unrestricted.  (Set-ExecutionPolicy unrestricted).  Also this will need a modern Windows OS because it uses PowerShell 2.0 $VCServerName = “Your vCenter Server’s IP Address Or Hostname”… Continue reading PowerShell csv Reports for VMware vSphere Info via vSphere API/PowerCLI

Simple ARP Poisoning Check Shell Script

Note that this doesn’t really work for servers using alias IP address on a parent interface since the MAC address will be used more than once by design. Put it in cron and make sure to change the EMAIL variable: #!/bin/sh # Simple ARP Poisoning Check currentmonth=`date “+%Y-%m-%d %H:%M:%S”` logpath=”/var/log” EMAIL=me@email.com logname=”arpwatch.log” echo “ARP Poisoning… Continue reading Simple ARP Poisoning Check Shell Script