Sunday, October 19, 2008

Commonly used AIX commands

Commonly used AIX commands

/etc/methods/cfgvscsi -1 vscsi1 Scans all devices on virtual scsi bus 1--pulls devices into ODM
/usr/lpp/diagnostics/bin/usysfault -l U0.1 -s norm Resets the led from aix # Promt
bootinfo -b Locates logical boot hard file
cat /dev/null /tmp/htxerr Clearing out a file (eg /tmp/htxerr)
cat /tmp/htx.start.stop.time Look at HTX errors in htx.start.stop.time file
cat /tmp/htxerr | pg Look at HTX errors in htxerr file
cat /tmp/pg ourun.FAIL Look at HTX errors in ourun.FAIL file
cfgmgr -v configure all devices in machine
clr_config clear current config (removing device form ODM) and reconfigure
df Lists mounted filesystems
fsck y /dev/hd1 Checks filesystems and repair
diag Start a diagnostic session
diag -ed scsi3 Run diags on one card only eg scsi3
certify_all Run certification on all available DASDs
errclear 0 Clears AIX errors
errpt Lists AIX errors
errpt -aj XXXXXXX | pg Lists deatiled info on a specified error XXXXXXX
history Lists previous commands
lscfg -v1 hdisk0 Lists VPD for device hdisk0
lsdev -C | pg Lists all devices detected in machine by page
lsdev -Ccadapter | pg Lists all adapters detected in machine by page
lsdev -Ccdisk | pg Lists all hard files detected in machine by page
lsdev -Csisa | pg Lists all ISA adapters detected in machine by page
lsdev -Csmci | pg Lists all MCI adapters detected in machine by page
lsdev -Cspci | pg Lists all PCI adapters detected in machine by page
lsdev -Csscasi | pg Lists all SCSI devices detected in machine by page
lsslot -c pci | pg Lists all hot plug PCI slot and the adapter connected by page
mkdev -1 hdisk1 Moves device from "Defined" state to "Available"
mkhtxps -2 Increases htx paging space to double the current memory size
rmdev -1 hdisk1 Move logical hdisk From "Available" status to "Defined"
rmdev -1 hdisk1 -d Move logical hdisk From "Available" status to "Defined" and also remove it from ODM
uname -m System serial number

No comments: