Friday, April 17, 2009

Some fundametals and tweaks in AIX

Default Multi-user runlevel in AIX : runlevel 2

To bring down system in Maintenance mode/Single user mode
#shutdown -m

To bring back system in runlevel 2
#telinit 2

*********************************
SRC ( System Resource Controller) for easy management of group of Deamon/Subsystem in AIX

#lssrc -a
#ps -ef

notice the output of above commands

#stopsrc -s
#startsrc -s
#refresh -s : this command enables deamon to reread any of it's configuration file; so whenever we made any changes in deamon config files, we can use refresh command to bring the changes into effect.

Not all process are controller by SRC/ srcmstr; those process which are not controlled by SRC can be killed by
#kill

*****************************

Manage the System Environment (e.g time, license, characteristics of OS etc)

#smit system

Manage the system language environment

#smit mlang

***************************
SU command:
The su command allows you to assume the permissions of any user whose password you
know.
Every time the su command is used an entry is placed in the file /var/adm/sulog (this is an
ASCII text file). This makes it easy to record access as the superuser. Normal logins are
recorded in the file /var/adm/wtmp. To read the contents of this file use the command:
who /var/adm/wtmp.
The su command can also be specified with the - option. The - specifies that the process
environment is to be set as if the user had logged into the system using the login
command. Nothing in the current environment is propagated to the new shell. For
example, using the su command without the - option, allows you to have all of the
accompanying permission of root while keeping your own working environment.

No comments: