| Advertise on warmetal.nl! Click for more information about advertising here. |
Did you find this website useful? Did I save you a lot of time? |
|
Although the paragraphs will refer to more necessary when necessary the overall document on which this article is based is AIX Post Install. That document was created on AIX 5.3 and gives a lot of background information. This document adds specific information for AIX 6.1, but does not copy the background information which is also valid for AIX 5.3. So, in conclusion, if you need more information the AIX Post Install is your best place to start.
6100-04-03-1009
which was released in February 2010. During the install I accepted all default settings.
Note:
# vi /etc/resolv.conf nameserver 10.10.10.100 nameserver 10.10.10.101 search intranet.company.nl company.local
Note:
# vi /etc/ntp.conf #broadcastclient driftfile /etc/ntp.drift tracefile /etc/ntp.trace server ntp.company.nl
# ntpdate ntp.company.nl 3 Mar 10:02:29 ntpdate[250036]: step time server 10.10.10.100 offset 0.975368 sec # ntpdate ntp.company.nl 3 Mar 10:02:39 ntpdate[250040]: adjust time server 10.10.10.100 offset 0.000045 sec
/exports/install:
dev = "/exports/install"
vfs = nfs
nodename = fileserver.company.nl
mount = true
options = ro,bg,hard,intr,proto=udp,nodev,nosuid,sec=sys
account = false
This filesystem is already mounted:
# mount
node mounted mounted over vfs date options
-------- --------------- --------------- ------ ------------ ---------------
/dev/hd4 / jfs2 Mar 03 10:13 rw,log=/dev/hd8
/dev/hd2 /usr jfs2 Mar 03 10:13 rw,log=/dev/hd8
/dev/hd9var /var jfs2 Mar 03 10:13 rw,log=/dev/hd8
/dev/hd3 /tmp jfs2 Mar 03 10:13 rw,log=/dev/hd8
/dev/hd1 /home jfs2 Mar 03 10:14 rw,log=/dev/hd8
/dev/hd11admin /admin jfs2 Mar 03 10:14 rw,log=/dev/hd8
/proc /proc procfs Mar 03 10:14 rw
/dev/hd10opt /opt jfs2 Mar 03 10:14 rw,log=/dev/hd8
/dev/livedump /var/adm/ras/livedump jfs2 Mar 03 10:14 rw,log=/dev/hd8
fileserver.company.nl /exports/install /exports/install nfs3 Mar 03 10:32 ro,bg,hard,intr,proto=udp,nodev,nosuid,sec=sys
# df -m Filesystem MB blocks Free %Used Iused %Iused Mounted on /dev/hd4 320.00 154.38 52% 12990 25% / /dev/hd2 2144.00 355.22 84% 39261 31% /usr /dev/hd9var 192.00 17.66 91% 6439 57% /var /dev/hd3 64.00 61.55 4% 24 1% /tmp /dev/hd1 32.00 31.62 2% 11 1% /home /dev/hd11admin 128.00 127.63 1% 5 1% /admin /proc - - - - - /proc /dev/hd10opt 96.00 12.57 87% 1886 37% /opt /dev/livedump 256.00 255.64 1% 4 1% /var/adm/ras/livedump
Change the size of the filesystems using the 'chfs' command:
# chfs -a size=2G / # chfs -a size=4G /usr # chfs -a size=1G /var # chfs -a size=1G /tmp # chfs -a size=512M /home # chfs -a size=10G /opt
Result:
# df -m Filesystem MB blocks Free %Used Iused %Iused Mounted on /dev/hd4 2048.00 1882.11 9% 12990 3% / /dev/hd2 4096.00 2306.92 44% 39261 7% /usr /dev/hd9var 1024.00 849.48 18% 6441 4% /var /dev/hd3 1024.00 1021.37 1% 24 1% /tmp /dev/hd1 512.00 511.55 1% 11 1% /home /dev/hd11admin 128.00 127.63 1% 5 1% /admin /proc - - - - - /proc /dev/hd10opt 10240.00 10155.02 1% 1886 1% /opt /dev/livedump 256.00 255.64 1% 4 1% /var/adm/ras/livedump
...<cut>... Installation Summary -------------------- Name Level Part Event Result ------------------------------------------------------------------------------- rpm.rte 3.0.5.51 USR APPLY SUCCESS rpm.rte 3.0.5.51 ROOT APPLY SUCCESS openssl.base 0.9.8.1100 USR APPLY SUCCESS openssl.base 0.9.8.1100 ROOT APPLY SUCCESS openssh.base.client 5.2.0.5300 USR APPLY SUCCESS openssh.base.server 5.2.0.5300 USR APPLY SUCCESS openssh.base.client 5.2.0.5300 ROOT APPLY SUCCESS openssh.base.server 5.2.0.5300 ROOT APPLY SUCCESS
# rpm -iv *.rpm bash-3.2-1 gcc-4.2.0-3 gettext-0.10.40-8 less-382-1 lsof-4.61-3 sudo-1.6.9p15-2noldap tar-1.14-2 vim-common-6.3-1 vim-enhanced-6.3-1 vim-minimal-6.3-1 which-2.14-1
bash-3.2# cat /etc/ssh/sshd_config | grep '^[A-z]' Protocol 2 PermitRootLogin yes IgnoreRhosts yes X11Forwarding yes X11DisplayOffset 10 X11UseLocalhost yes TCPKeepAlive yes XauthLocation /usr/bin/X11/xauth Banner /etc/secure_banner Subsystem sftp /usr/libexec/sftp-server
bash-3.2# cat /etc/ssh/ssh_config | grep '^[A-z]' ForwardX11 yes ConnectTimeout 30 Protocol 2
Restart the ssh daemon:
# /etc/rc.d/rc2.d/Ssshd stop # /etc/rc.d/rc2.d/Ssshd start
After restarting your session you can issue 'xclock' to see if it's working.
See CygWin - X op Windows to see how to setup your local Windows installation for X11 forwarding.
Note: Don't forget to create and place you secure_banner in /etc.
bash-3.2# lslpp -l bos.adt.libm
lslpp: Fileset bos.adt.libm not installed.
bash-3.2# nimclient -l -L ms-soe6
...<cut>...
lpp_6100_04_03 lpp_source
...<cut>...
bash-3.2# nimclient -o allocate -a lpp_source=lpp_6100_04_03
bash-3.2# nimclient -l -c resources ms-soe6
lpp_6100_04_03 lpp_source
bash-3.2# nimclient -o cust -a lpp_source=lpp_6100_04_03 -a filesets=bos.adt.libm
...<cut>...
bash-3.2# lslpp -l bos.adt.libm
Fileset Level State Description
----------------------------------------------------------------------------
Path: /usr/lib/objrepos
bos.adt.libm 6.1.4.0 APPLIED Base Application Development
Math Library
See AIX NIM for more information on how to install software using a NIM server.
bash-3.2# lsps -a Page Space Physical Volume Volume Group Size %Used Active Auto Type Chksum hd6 hdisk0 rootvg 512MB 2 yes yes lv 0 bash-3.2# chps -s 112 hd6 bash-3.2# lsps -a Page Space Physical Volume Volume Group Size %Used Active Auto Type Chksum hd6 hdisk0 rootvg 4096MB 1 yes yes lv 0
root:
fsize = -1
data = -1
stack = -1
bash-3.2# no -p -o tcp_nodelayack=1 Setting tcp_nodelayack to 1 Setting tcp_nodelayack to 1 in nextboot file
In AIX Post Install are extended tests regarding AIX performance and more background information.
bash-3.2# vmo -p -o minperm%=5 -o maxperm%=90 -o maxclient%=90 -o lru_file_repage=0 Setting minperm% to 5 in nextboot file Modification to restricted tunable maxperm%, confirmation required yes/no yes Setting maxperm% to 90 in nextboot file Modification to restricted tunable maxclient%, confirmation required yes/no yes Setting maxclient% to 90 in nextboot file Modification to restricted tunable lru_file_repage, confirmation required yes/no yes Setting lru_file_repage to 0 in nextboot file Setting minperm% to 5 Setting maxperm% to 90 Warning: a restricted tunable has been modified Setting maxclient% to 90 Warning: a restricted tunable has been modified Setting lru_file_repage to 0 Warning: a restricted tunable has been modified
The default settings are:
vmo -p -o minperm%=20 -o maxperm%=80 -o maxclient%=80 -o lru_file_repage=1
To remove these packages issue:
installp -u bos.alt_disk_install.boot_images bos.alt_disk_install.rte csm.client csm.core csm.deploy csm.diagnostics csm.dsh csm.gui.dcem
installp -u bos.aixpert.cmds bos.aixpert.websm rsct.core.gui rsct.core.lprm rsct.core.sensorrm
chsubserver -d -v ftp -p tcp chsubserver -d -v telnet -p tcp chsubserver -d -v shell -p tcp chsubserver -d -v kshell -p tcp chsubserver -d -v login -p tcp chsubserver -d -v klogin -p tcp chsubserver -d -v exec -p tcp chsubserver -d -v comsat -p udp chsubserver -d -v uucp -p tcp chsubserver -d -v bootps -p udp chsubserver -d -v finger -p tcp chsubserver -d -v systat -p tcp chsubserver -d -v netstat -p tcp chsubserver -d -v tftp -p udp chsubserver -d -v talk -p udp chsubserver -d -v ntalk -p udp chsubserver -d -v rquotad -p udp chsubserver -d -v rexd -p tcp chsubserver -d -v rstatd -p udp chsubserver -d -v rusersd -p udp chsubserver -d -v rwalld -p udp chsubserver -d -v sprayd -p udp chsubserver -d -v pcnfsd -p udp chsubserver -d -v echo -p tcp chsubserver -d -v echo -p udp chsubserver -d -v discard -p tcp chsubserver -d -v discard -p udp chsubserver -d -v chargen -p tcp chsubserver -d -v chargen -p udp chsubserver -d -v daytime -p tcp chsubserver -d -v daytime -p udp chsubserver -d -v time -p tcp chsubserver -d -v time -p udp chsubserver -d -v instsrv -p tcp chsubserver -d -v xmquery -p udp chsubserver -d -v imap2 -p tcp chsubserver -d -v pop3 -p tcp chsubserver -d -v wsmserver -p tcp
After disabling all subservers don't forget to refresh the inetd daemon:
refresh -s inetd
chrctcp -S -d inetd chrctcp -S -d snmpd chrctcp -S -d hostmibd chrctcp -S -d snmpmibd chrctcp -S -d aixmibd chrctcp -S -d writesrv chrctcp -S -d qdaemon
rmitab piobe rmitab writesrv rmitab qdaemon rmitab naudio rmitab naudio2 rmitab xmdaily rmitab pconsole
#platform_agent:2:once:/usr/bin/startsrc -s platform_agent >/dev/null 2>&1 #cimservices:2:once:/usr/bin/startsrc -s cimsys >/dev/null 2>&1
sudo /opt/ibm/director/agent/runtime/agent/bin/endpoint.sh stop The LWI Nonstop Profile was not running. sudo /opt/ibm/director/agent/runtime/nonstop/bin/installnonstop.sh -uninstallservice
default:
sak_enabled = false
logintimes =
logindisable = 4
logininterval = 60
loginreenable = 30
logindelay = 5
For more information about these settings please check this page.
usw:
shells = /bin/sh,/bin/bsh,/bin/csh,/bin/ksh,/bin/tsh,/bin/ksh93,/usr/bin/sh,/usr/bin/bsh,/usr/bin/csh,/u
sr/bin/ksh,/usr/bin/tsh,/usr/bin/ksh93,/usr/bin/rksh,/usr/bin/rksh93,/usr/sbin/sliplogin,/usr/sbin/uucp/uucico,/usr/sbin
/snappd,/bin/bash,/usr/bin/bash
maxlogins = 32767
logintimeout = 60
maxroles = 8
auth_type = STD_AUTH
default:
admin = false
login = false
su = false
daemon = true
rlogin = true
sugroups =
admgroups =
ttys = ALL
auth1 = SYSTEM
auth2 = NONE
tpath = nosak
umask = 022
expires = 0
SYSTEM = "compat"
logintimes =
pwdwarntime = 7
account_locked = false
loginretries = 3
histexpire = 26
histsize = 4
minage = 1
maxage = 13
maxexpired = -1
minalpha = 5
minother = 3
minlen = 8
mindiff = 1
maxrepeats = 2
dictionlist =
pwdchecks =
root
login = true
...<cut>.... # Automatic logout, include in export line if uncommented TMOUT=3600 ...<cut>... export LOGNAME MAIL MAILMSG TERM TMOUT ...<cut>...
# privacy flags O PrivacyOptions=goaway
See Sendmail Security Quick Fixes for more information about sendmail security.
Don't forget to restart sendmail afterwards.
Also, don't forget to change the '/etc/ssh/sshd_config' to make sure root is not allowed to log in over ssh as well:
PermitRootLogin no
Discussion