AIX Cheatsheet
| topas | top equivalent |
| errclear 0 | clears errpt |
| errpt -a | shows errors |
| extendvg | Adds 1 or more hdisks to an existing VG |
| refresh -s inetd | re-reads inetd.conf |
| dlnkmgr view | Reports status of SAN connection (Hitachi) |
| dlnkmgr view -sys | Shows info on SAN subsystem |
| dlnkmgr set -lb off | sets load balancing off |
| dlnkmgr set -afb off | sets automatic failback off |
| lsvpcfg | Reports status on SAN connection (Shark) |
| qcan -X -P | Cancels all print jobs |
| lp -dQUEUENAME filename | send file to printer |
| snap -gc | places a snap.pax.Z file in /tmp for IBM engineers to look at |
| datapath query device | reports info on shark disk |
| dsmc q sched | check TSM scheduler |
| prtconf | system configuration |
| oslevel -r | OS and ML level |
| netstat -v | NIC statistics |
| lsps -a | check usage of the swapfile |
| lsattr -El sys0 | list attributes of sys0 |
| lsvg -l | list volume groups |
| df -k | shows what lv a fs lives in |
| lslv -l | list info on volume |
| lspv | shows disks in volume group |
| chfs -a size=+131072 /filesystem | extend 'filesystem' by 128MB |
| history -1000 | grep whatever | command history search |
| du -sk ./* | get usage stats |
| lpstat | status of print queues |
| qconfig | printer configuration |
| lprm -Pprinter_queue 676 | Remove print job 676 from printer_queue |
| lscfg | grep fcs | get fibercard info |
| lscfg -vl fcsx | list stats for card fcsx |
| lscfg | grep U1.9-P1-I7/Q1 | 1st step to find port |
| lscfg -vl hdisk135 | get port number |
| lscfg -vl fcs0 | Get WWN for SAN request |
| fuser -cuxd | who is using what |
Reading in from a list:
while read line
do
set $line
chdev -l $1 (or whatever you want to do)
done < /tmp/inputfile > outputfile
TECH.kulish.com
Technology Junk Drawer