Alwanza dot net homepage link

Alwanza.net Scripts and Applications -> Script Library

lan_ip_tester.sh
Pings each IP address in a subnet and reports if it responds or not. It writes a report to an output file.
rpm_backup.pl
Consecutively logs in (as a user) to multiple remote servers and backs up the rpm database.  Useful to run before running rpm upates.
bkup_rpm.sh
A script run locally by root (or root cron) to backup the rpm database for precautionary rollback.
bkup_dpkg.sh
A script run locally by root (or root cron) to backup the dpkg database for precautionary rollback.
AllYourBase.sh
I've lost count of the number of times I was told to administer and maintain a server when no documentation was provided to me about what was installed on that server, who the users were, or what the server's purpose was.  I created a script to help me figure those things out.
all_your_base_ubuntu.sh
Same as above, for ubuntu.
test_services.sh
Run this script before and after changes to the system, before and after reboots, and compare the output to determine if everything that was running before has been turned back on after the change.
services_sorter.pl
Sort /etc/services by numeric order.  Run script as unprivileged user, then visually evaluate the output and make changes as needed using sudo or root.  Helpful to find out stuff like:  your printer is interfering with your backups.
whos_logged_in.sh
A script to detect users using resources on a Linux system.
create_user.sh
A script to add a user login account on a Linux system, including primary and secondary groups.
disable_user.sh
A script to decommission a user account on a Linux system.
pw_stat_list.sh
A script to capture user password statistics from chage command into a file.
pw_expire.pl
A perl script to expire user passwords, thereby forcing them to create new passwords at next login.
ldappasswd_set.sh
A script to set an ldap password for a user already existing in ldap database in the ou "People".
df_watcher.sh
Run this script through cron to send yourself email or text messages when your server partitions or mounts are too full.
get_ntp_info.pl
An Expect Perl script to gather ntp information from remote servers.
differ.sh
A script that removes empty lines and comment lines before performing a diff comparision on two files.
moveme.sh
A bash script to automatically move files from a source directory to a destination directory.  Written so it can run in cron.
scp_expect.pl
An Expect Perl script to copy a file to remote hosts.
expect_launcher.pl
An Expect Perl script to use ssh to access remote hosts and run commands or scripts local to the host, with or without sudo.
date_time.txt
A collection of commands for dgetting and setting date and time.
temperature_alert.sh
A script run locally on cron to detect high temperatures on the server. Sends email notification. Requires that lm_sensors are installed on server.
process_timer.sh
A script run locally on cron to record time of completion of a long duration process.
win_icacls.pl
A script skeleton example of modifying Windows permissions using Perl.
win_mount_dir_copy_file.pl
A script skeleton example of mapping and mounting a drive in Windows and copying a file from the mounted drive using Perl.
function_call_eval.txt
Helpful for debugging long perl or cgi scripts.
add_debug_cgi.txt
Add a debug line for each subroutine in a cgi script.
cli_perl_replace_string.txt
Replace a variable or string globally in all files in directory at once.
filename_fixer.sh
Remove illegal characters from filenames to prepare them for tar backups, bash script.
filename_changer.pl
Remove illegal characters from filenames to prepare them for tar backups.  More comprehensive, in Perl.
make_tape_backup.sh
Using tar, make a tape backup.
find_new_files.sh
You input an absolute path to a directory and the number representing the maximum age in days of the files you want and this script spits out a list of all the files newer than that date limit in the target directory.  Output goes to both screen and log file.
openssl_version_checker.pl
A perl script that uses Net::SSH::Expect to login to remote servers and return their openssl version information to a csv file.
cpu_watcher.sh
A single line command displays CPU stats. Add a crontab entry that checks every 20 minutes and rotating logging.
ssh_setup.txt
Keys and permissions on ssh
rsync_backup.txt
rsync backup - suitable for cron
workstation_setup.txt
Setting up a Cygwin environment.
mintty_colors.txt
Different background colors for mintty terminals.
netapp_commands.txt
Little reminders of handy commands.
handy_commands.txt
Little reminders of handy commands.
code_snippets.txt
reuseable pieces of scripting code.
emergency_bootable_usb_create_it.txt
Keep one on hand for breaking into and modifying file systems.
emergency_bootable_usb_use_it.txt
How to modify a filesystem after you have made a mistake that locks you out, provided you have access to the hardware.
prep_for_upgrade.txt
Steps to ensure functionalty is retained after an upgrade