Category Archives: Unix

AIX: Add Swap Space (NON-HA)

1. lsps -a
Reports current swap space

2. errpt -a | more

3. lsvg -l rootvg
Displays all partitions in the rootvg

4. smitty lvm
Paging Space
Change / Show Characteristics of a Paging Space

AIX: Committing Software

1. smit
Software Installation and Maintenance
Software Maintenance and Utilities
Commit Applied Software Updates (Remove Saved Files)
SOFTWARE name [all]
PREVIEW only? (commit operation will NOT occur) yes
COMMIT requisites? yes
EXTEND file systems if space needed? yes
DETAILED output? yes
2. Check output of preview for FAIL, correct any found
3. Change:

PREVIEW only? (commit operation will NOT occur) yes
To:
PREVIEW only? (commit operation will NOT occur) no

4. Re-run commit

AIX 5: Forklifting Printer Setup

1. Copy /etc/qconfig from source server to target server
2. Copy /var/spool/lpd from source server to target server
3. Copy /var/spool/qdaemon from source server to target server
4. Run the following to force parsing of new /etc/qconfig enq -qP [queuename]

Spam Bashing

We finally have our spam filtering back in place at kulish.com. We’ve set it to a semi-aggressive filter where pretty much every incoming email is marked with a spam score.

We’re using the postfix+amavis+clamd+spamassassin setup.

While we’ve been doing without it for a few months (using client side stuff until I found time), I still don’t remember it working this well on the last server install.

Here’s a wopper of an email, just after the installation and testing were completed. The receiving parties and server names have been sanitized to protect the marginally innocent (**PROTECTED**).

Simple MySQL Backup Script

Below is a simple database backup script to use with MySQL.

#!/usr/bin/perl -w

use strict;

# Backup – Script used to backup MySQL databases to an NFS share.
# VERSION: 1.2
# DATE: 12152005
# AUTHOR: packetmad

# This is a Freebsd 4.x-centric script. It may run on other
# versions of Freebsd, or any other BSD for that matter, but I
# wrote it on a Freebsd 4.7 system. It’s not even guaranteed
# to run on that.