Showing posts with label aix. Show all posts
Showing posts with label aix. Show all posts

Monday, May 20, 2013

Aix -How to find RAM on the server?


The bootinfo command uses the device configuration databases in information searches.
Just type the following command as the root user:
#bootinfo -r
It will displays amount of real memory in kilobytes. bootinfo command may not be available in latest AIX UNIX version, try following command:

#lsattr -El sys0 | grep realmem

Aix- How to check if kernel is 32bit or 64 bit?

KERNEL_BITMODE

# getconf KERNEL_BITMODE
64

HARDWARE_BITMODE

# getconf HARDWARE_BITMODE
64

Aix -How to find processor Type on IBM Power Systems

Find the type of processor on AIX

Method 1-Using lsattr

#lsattr -El proc0|grep type
type        PowerPC_POWER6 Processor type        False

# lsattr -El proc0|grep type
type        PowerPC_POWER7 Processor type        False


Method 2- Using lscfg

# lscfg -vpl proc0 |grep Name  Name:  PowerPC,POWER5

Sunday, May 19, 2013

Configuring NFS on AIX

NFS services are being used for sharing the files across the Unix platform.

1. Update /etc/exports
directory     -option[,option]

Eg:

/home -root=ballet,access=ballet

2. Start the nfs services

startrc -s nfs

3. Check the status of the NFS services
lssrc -g nfs

Sunday, April 17, 2011

AIX Commands User Management

-----
USERS / ENVIRONMENT
-----

passwd -f Change current users gecos (user description)
passwd -s Change current users shell

chfn (username) Changes users gecos
chsh (username) (shell) Changes users shell

env Displays values of environment variables
printenv

id Displays current user's uid and gid details
id (user) Displays user uid and gid details

whoami Displays current user details
who am i (or who -m)

who Displays details of all users currently logged in.
w
who -b Displays system reboot time

uptime Displays number of users logged in, time since last
reboot, and the machine load averages.

lsuser ALL Lists all users details
lsuser (username) Lists details for user
lsuser -a(attribute) (username or ALL) Lists user attributes
lsuser -a home ALL

mkuser -a(attributes) (newuser) Add a new user

chuser (attributes) (user) Change a user
chuser login=false (user) Lock a user account

rmuser -p (user) Removes a user and all entries in security files

usrck -t ALL Checks all the user entires are okay.

fuser -u (logical volume) Displays processes using the files in that LV
fuser -k /dev/lv02 Will send a kill signal to all processes using
/dev/lv02

lsattr -D -l sys0 -a maxuproc Displays max number of processes per user
chdev -l sys0 -a maxuproc=(number) Changes max number of processes per user

chlang (language) Changes the language settings for system or user.
En_GB = PC850 code pages
en_GB = ISO8859 code pages (Great Britain)
C = posix

su - (user) Switch to new user and change to the new users environment.
su (user) Switch to new user, current environment is propated to the
new shell.

-----
REMOTE USERS
-----

ruser -a -f (user) Adds entry into /etc/ftpusers file
ruser -a -p (host) Adds entry into /etc/host.lpd file
ruser -a -r (host) Adds entry into /etc/hosts.equiv file

ruser -d -f (user) Deletes entry in /etc/ftpusers file
ruser -d -p (host) Deletes entry in /etc/host.lpd file
ruser -d -r (host) Deletes entry in /etc/hosts.equiv file

ruser -s -F Shows all entries in /etc/ftpusers file
ruser -s -P Shows all entries in /etc/host.lpd file
ruser -s -R Shows all entries in /etc/hosts.equiv file

ruser -X -F Deletes all entries in /etc/ftpusers file
ruser -X -P Deletes all entries in /etc/host.lpd file
ruser -X -R Deletes all entries in /etc/hosts.equiv file

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