Script to trim wtmp file

#!/bin/sh
#########
# wtmptrim.sh - Trim old entrues off of the wtmp file so it doesn't grow
# forever.
#
# V1.0 - 12/07/00
#

/usr/sbin/acct/fwtmp < /var/adm/wtmp | tail -20000 > /tmp/wtmp.ascii.new

if [ "$?" != 0 ]
then
	echo "$0" "Error extracting wtmp file"
	exit
fi
/usr/sbin/acct/fwtmp -ic < /tmp/wtmp.ascii.new > /var/adm/wtmp
if [ "$?" != 0 ]
then
	echo "$0" "Error recompressing wtmp file"
	exit
else
	rm /tmp/wtmp.ascii.new
fi

Setting HBAs to init in Point-to-Point mode

The HBA does not need to be configured in most cases. Nevertheless, you should verify if your HBA runs in Point to Point mode if applicable (such as switched fabric). By default the HBA tries first to run in FC_AL instead of Point to Point. If the system is booted without being connected to a switch, it may operate in FC_AL mode even after it is connected to a switch. In some circumstances you may have problems with missing devices if your HBA does not run in the correct mode.