#!/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
Sometimes after an AIX upgrade, reload, or new system installation, you’ll get “The X-Server can not be started on display:0:” on the ASCII console. To fix it Delete the bottom line beginning with :0 in the /usr/dt/config/Xservers file.
When creating HACMP concurrent volume groups, it’s necessary to sync the major device numbers between the nodes. To see what each node has available for major devices run:
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.
If you need to poweroff or poweron an LPAR remotely, you can do it with command lines.
You can query the LPARs and status of any managed system on a HMC.
You can’t get support without the serial number, and sometimes it’s just not available. Here’s how to query the system for it:
lscfg -pv | grep Cabinet
To switch from 32bit to 64bit kernels:
This info is generally applicable to AIX systems using FAStT storage and is thought to improve performance. Some of these may be outdated, investigate before using.
If you need to find out which processes are hogging all the RAM, run:
ps -Ao vsz,pid,args | sort -nr | head -n 20