Friday, June 09, 2006

AIX

--------------------------------------------------------------------------------

Copying diskettes and tape

--------------------------------------------------------------------------------

COPYING DISKETTES

-----------------

dd if=/dev/fd0 of=(filename) bs=36b

dd if=(filename) of=/dev/fd0 bs=36b conv=sync or flcopy

COPYING TAPES

-------------

dd if=/dev/rmt0 of=(filename)

dd if=(filename) of=/dev/rmt0 or tcopy

--------------------------------------------------------------------------------

VI Commands

--------------------------------------------------------------------------------

:g/xxx/s//yyy/ global change where xxx is to be changed by yyy

sed 's(ctrl v ctrl m)g//g' old.filename > new.filename

Strips out ^M characters from ascii files that have been transferred as binary.

To enter crontrol characters type ctrl v then ctrl ? where ? is whatever

ctrl character you need.

--------------------------------------------------------------------------------

DEVICES

--------------------------------------------------------------------------------

lscfg lists all installed devices

lscfg -v lists all installed devices in detail

lscfg -vl (device name) lists device details

bootinfo -b reports last device the system booted from

bootinfo -k reports keyswitch position

1=secure, 2=service, 3=normal

bootinfo -r reports amount of memory (/ by 1024)

bootinfo -s (disk device) reports size of disk drive

bootinfo -T reports type of machine

ie rspc,rs6ksmp,rspc or chrp

lsattr -El sys0 -a realmem reports amount of useable memory

mknod (device) c (major no) (minor no) Creates a /dev/ device file.

mknod /dev/null1 c 2 3

lsdev -C lists all customised devices ie installed

lsdev -P lists all pre-defined devices ie supported

lsdev -(C or P) -c (class) -t (type) -s (subtype)

chdev -l (device) -a (attribute)=(new value) Change a device attribute

chdev -l sys0 -a maxuproc=80

lsattr -EH -l (device) -D Lists the defaults in the pre-defined db

lsattr -EH -l sys0 -a modelname

rmdev -l (device) Change device state from available to defined

rmdev -l (device) -d Delete the device

rmdev -l (device) -SR S stops device, R unconfigures child devices

lsresource -l (device) Displays bus resource attributes of a device.

cfgmgr Configures devices

cfgmgr -i /dev/cd0 Configure devices and install drivers from /dev/cd0

if required

cfgmgr -S Run in serial, used with a larger number of disks

cfgmgr -l scsi0 Configure devices on adapter scsi0 only

diag Run hardware diagnostic menu

smitty diag Run hardware diagnostic menu

( 7020-40P and 7248-43P machines cannot run diagnostics, use diagnostics

in the SMS menus instead

diag -d (device) Run diagnostics against a device.

lsslot Displays all hot swap slots

lsslot -c pci Lists all pci hot swap slots

lsslot -c pci -a Lists all available pci hot swap slots

drslot Reconfgiures PCI hot-plug slots

drslot -i -c pci -s U0.1-P1-I3 Display a slot, flashes the LED next to

the slot so that it can be identified.

Power Management (PCI machines)

-------------------------------

pmctrl -a Displays the Power Management state

rmdev -l pmc0 Unconfigure Power Management

mkdev -l pmc0 Configure Power Management

0 comments: