Thursday, April 7, 2011

Aix General Commands and Tips

1. creation and deletion of user accounts
mkuser
rmuser

2. list all users
lsuser -f ALL

3. change user account
chuser -a

4. smit

5. hostid -For checking the hostid

6. Top,Sar,vmstat,iostat for performance troubleshooting
topas
sar 4 5 (4 seconds and 5 readings)
vmstat
iostat

9.How to Check the logs?
alog -o -t

10.How to see the size in MBs?
df -m

11.Display the swap size?
lsps -a

12.How to ativate the swap?
swapon -a

13. How to check the runlvel in AIX?
uname -r (runlevel)

14.For device listing
lsdev -C

15.network parameters
no -a

16.
bootinfo -s hdisk#

17. How to list the physical volumes?
lspv

18.How to create a Volume Group?
mkvg

19.How to list the logical volumes?
lslv

20.How to create a Logical Volume?
mklv

21.How to extend the logical volume?
extendlv

22.How to remove the logical volume?
rmlv

23.How to list the devices of particular Class (processor,tape)

lsdev -Cc processor
lsdev -Cc tape

24.How to check the model number?
bootinfo -m

25.How to find out the kernel parameter?
bootinfo -K

26.How to uninstall the software?
installp -u

27.How to install a software?
installp -a

28.How to verify the software is installed?
lppchk -v

29. How to list all softwares?
lslpp -L all

30.Where the software directory is located?
/sw/lpp

31.How to list the installed patches?
instfix -i

32.How to install devices for the attached peripherals?
cfgmgr -v

No comments: