Archive for the tag 'Aix'

 

 

Oct 13 2009

Command History with Arrow Keys in Ksh

Published by dave under Aix, Misc, linux, solaris

Arrows aren’t used in ksh as a default. To enable command history like in Bash, add the following lines in the .profile or .kshrc file:

# Switch to Emacs mode
# Only Emacs mode lets you make use of arrow keys
set -o emacs

# Go back in command history (up arrow)
alias __A=’^P’
# Go back in command history (down [...]

No responses yet

May 18 2009

Export NFS shares in AIX

Published by dave under Aix

Edit /etc/exports (or create it if it doesn’t exist) and add folders to be shared:

/home/public -access=client1,root=client1

Option access restricts the list of clients, root allows to mount the share by root user
 
Start nfsd services:

startsrc -s nfsd
startsrc -s mountd

 
Check daemons are running:

AIX_NFS_Server # lssrc -s nfsd
Sub-system Group [...]

No responses yet

Jan 22 2009

How to Add a Permanent Static Route in AIX 4.3

Published by dave under Aix

To add a permanent static route in AIX, add the route command in the startup file /etc/rc.net:
AIX Server.root / # route add -net 192.168.2.0 -netmask 255.255.255.0 192.168.0.1
 
or use AIX interface Smitty (preferred):
 
AIX Server.root / # smitty
-> Communications applications and Services
-> TCIP/IP
-> Further Configuration
-> Static Routes
-> Add a Static Route
And type in the new static route [...]

No responses yet

Next »