Monday, July 02, 2007

AIX

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

PAGING SPACE (PS's)

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

lsps -a Lists out all paging space

lsps -s Displays total paging and total useage

lsps (ps)

swappon /dev/ps Activates a paging device eg /dev/paging00

swappoff /dev/ps Deactivates a paging device ( AIX 5.x only

mkps -s(No of PP's) -n -a (vg)

mkps -s(No of PP's) -n -a (vg) (pv)

-n = don't activate/swapon now -a = activate/swapon at reboot

mklv -b n -t paging -y hd6 (vg) (No of PP's) (pv)

Creates paging space using the mklv command.

chps -a n (ps) Turns off paging space.

chps -s(No of PP's) (ps) Increases paging space.

chps -d(No of PP's) (ps) Decreases paging space ( AIX 5.x only

chlv -n (new name) (old name) Change paging space name

rmps (ps) Remove paging space. PS must have been turned off

and then the system rebooted before it can be removed.

Note : Need to change the swapon entry in /sbin/rc.boot script if you are

changing the default paging space from /dev/hd6. You also need to

do a "bosboot -a -d /dev/hdiskx" before the reboot.

/etc/swapspaces File that lists all paging space devices that are

activated/swapon during reboot.

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

SCHEDULING

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

crontab -l List out crontab entrys

crontab -e Edit crontab entrys

crontab -l > (filename) Output crontab entrys to a file

crontab (filename) Enter a crontab from a file

crontab -r Removes all crontab entrys

crontab -v Displays crontab submission time.

/var/adm/cron/cron.allow File containing users allowed crontab use.

/var/adm/cron/cron.deny File containing users denied crontab use.

/var/adm/cron/crontab Directory containing users crontab entries.

/var/adm/cron/log Cron log file.

at (now + 2 minutes, 13:05, etc) {return} Schedule a job using at

Command or schell script {return}

{CTRL D}

echo "shutdown -Fr" | at now + 1 minute

at -l

atq Lists out jobs scheduled to run via at command

at -r (at job No)

atrm (at job No) Removes an at job scheduled to run.

/var/adm/cron/at.allow File containing users allowed at use.

/var/adm/cron/at.deny File containing users denied at use.

/var/adm/cron/atjobs Directory containing users at entries.

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

SECURITY

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

nulladm /var/adm/wtmp To recreate/clear down the wtmp file.

groups Lists out the groups that the user is a member of

0 comments: