A major number refers to a type of device, and a minor number specifies a
particular device of that type or sometimes the operation mode of that
device type.
Example:
# lsdev -Cc tape
rmt0 Available 3F-08-02 IBM 3580 Ultrium Tape Drive (FCP)
rmt1 Available 3F-08-02 IBM 3592 Tape Drive (FCP)
smc0 Available 3F-08-02 IBM 3576 Library Medium Changer (FCP)
In the list above:
rmt1 is a standalone IBM 3592 tape drive;
rmt0 is an LTO4 drive of a library;
smc0 is the medium changer (or robotic part) of above tape library.
Now look at their major and minor numbers:
# ls -l /dev/rmt* /dev/smc*
crw-rw-rwT 1 root system 38, 0 Nov 13 17:40 /dev/rmt0
crw-rw-rwT 1 root system 38,128 Nov 13 17:40 /dev/rmt1
crw-rw-rwT 1 root system 38, 1 Nov 13 17:40 /dev/rmt0.1
crw-rw-rwT 1 root system 38, 66 Nov 13 17:40 /dev/smc0
All use IBM tape device driver (and so have the same major number of 38),
but actually they are different entities (with minor number of 0, 128 and 66
respectively). Also, compare rmt0 and rmt0.1. It's the same device, but with different mode of operation.
User names can only be eight characters or fewer in AIX version 5.2 and earlier. Starting with AIX version 5.3, IBM increased the maximum number of characters to 255. To verify the setting in AIX 5.3 and later, you can extract the value from getconf:
# getconf LOGIN_NAME_MAX
9
Or use lsattr:
# lsattr -El sys0 -a max_logname
max_logname 9 Maximum login name length at boot time True
To change the value, simply adjust the v_max_logname parameter (shown as max_logname in lsattr) using chdev to the maximum number of characters desired plus one to accommodate the terminating character. For example, if you want to have user names that are 128 characters long, you would adjust the v_max_logname parameter to 129:
# chdev -l sys0 -a max_logname=129
sys0 changed
Please note that this change will not go into effect until you have rebooted the operating system. Once the server has been rebooted, you can verify that the change has taken effect:
# getconf LOGIN_NAME_MAX
128
Keep in mind, however, that if your environment includes IBM RS/6000 servers prior to AIX version 5.3 or operating systems that cannot handle user names longer than eight characters and you rely on NIS or other authentication measures, it would be wise to continue with the eight-character user names.
A very good article about migrating AIX from version 5.3 to 6.1 can be found on the following page of IBM developerWorks:
http://www.ibm.com/developerworks/aix/library/au-migrate_nimadm/index.html?ca=drs
For a smooth nimadm process, make sure that you clean up as much filesets of your server as possible (get rid of the things you no longer need). The more filesets that need to be migrated, the longer the process will take. Also make sure that openssl/openssh is up-to-date on the server to be migrated; this is likely to break when you have old versions installed.
Very useful is also a gigabit Ethernet connection between the NIM server and the server to be upgraded, as the nimadm process copies over the client rootvg to the NIM server and back.
The log file for a nimadm process can be found on the NIM server in /var/adm/ras/alt_mig.
For example, if you wish to add the bos.alt_disk_install.rte fileset to a SPOT:
List the available spots:
# lsnim -t spot | grep 61
SPOTaix61tl05sp03 resources spot
SPOTaix61tl03sp07 resources spot
List the available lpp sources:
# lsnim -t lpp_source | grep 61
LPPaix61tl05sp03 resources lpp_source
LPPaix61tl03sp07 resources lpp_source
Check if the SPOT already has this file set:
# nim -o showres SPOTaix61tl05sp03 | grep -i bos.alt
No output is shown. The fileset is not part of the SPOT. Check if the LPP Source has the file set:
# nim -o showres LPPaix61tl05sp03 | grep -i bos.alt
bos.alt_disk_install.boot_images 6.1.5.2 I N usr
bos.alt_disk_install.rte 6.1.5.1 I N usr,root
Install the first fileset (bos.alt_disk_install.boot_images) in the SPOT. The other fileset is a prerequisite of the first
fileset and will be automatically installed as well.
# nim -o cust -a filesets=bos.alt_disk_install.boot_images
-a lpp_source=LPPaix61tl05sp03 SPOTaix61tl05sp03
Note: Use the -F option to force a fileset into the SPOT, if needed (e.g. when the SPOT is in use for a client).
Check if the SPOT now has the fileset installed:
# nim -o showres SPOTaix61tl05sp03 | grep -i bos.alt
bos.alt_disk_install.boot_images
bos.alt_disk_install.rte 6.1.5.1 C F Alternate Disk Installation
You can restrict a certain user account to only access a single folder. This is handled by file /etc/ftpaccess.ctl. There's a manual page available within AIX on file ftpaccess.ctl:
# man ftpaccess.ctl
In general, file /etc/ftpusers controls which accounts are allowed to FTP to a server. So, if this file exists, you will have to add the account to this file.
Here's an example of what you would set in the ftpaccess.ctl if you wanted user ftp to have login to /home/ftp. The user will be able to change directory forward, but not outside this directory. Also, when user ftp logs in and runs pwd it will show only "/" and not "/home/ftp".
# cat /etc/ftpaccess.ctl
useronly: ftp
If the user is required to write files to the server with specific access, for example, read and write access for user, group and others, then this can be accomplished by the user itself by running the FTP command:
ftp> site umask 111
200 UMASK set to 111 (was 027)
ftp> site umask
200 Current UMASK is 111
To further restrict the FTP account to a server, especially for accounts that are only used for FTP purposes, make sure to disable login and remote login for the account via smitty user.
The following piece of code fits nicely in the /etc/profile file. It makes sure the PS1, the prompt is set in such a way, that you can see who is logged in at what system and what the current path is. At the same time it also sets the window title the same way.
H=`uname -n`
if [ $(whoami) = "root" ] ; then
PS1='^[]2;${USER}@(${H}) ${PWD##/*/}^G^M${USER}@(${H}) ${PWD##/*/} # '
else
PS1='^[]2;${USER}@(${H}) ${PWD##/*/}^G^M${USER}@(${H}) ${PWD##/*/} $ '
fi
Note: to type the special characters, such as ^], you have to type first CRTL-V, and then CTRL-]. Likewise for ^G: type it as CTRL-V and then CTRL-G.
Second note: the escape characters only work properly when setting the window title using PuTTY. If you or any of your users use Reflection to access the servers, the escape codes don't work. In that case, shorten it to:
if [ $(whoami) = "root" ] ; then
PS1='${USER}@(${H}) ${PWD##/*/} # '
else
PS1='${USER}@(${H}) ${PWD##/*/} $ '
fi
To configure IP aliases on AIX:
Use the ifconfig command to create an IP alias. To have the alias created when the system starts, add the ifconfig command to the /etc/rc.net script.
The following example creates an alias on the en1 network interface. The alias must be defined on the same subnet as the network interface.
# ifconfig en1 alias 9.37.207.29 netmask 255.255.255.0 up
The following example deletes the alias:
# ifconfig en1 delete 9.37.207.29
VIM on many different types of installations will create both swap files and backup files.
How to disable VIM swap and backup files:
Go into your _vimrc file. Add these lines to the bottom:
set nobackup
set nowritebackup
set noswapfile
If you see the following error when running cfgmgr:
Method error (/usr/lib/methods/fcmap >> /var/adm/essmap.out):
0514-023 The specified device does not exist in the
customized device configuration database.
This is caused when you have ESS driver filesets installed, but no ESS (type 2105) disks in use on the system. Check the type of disks by running:
# lsdev -Cc disk | grep 2105
If no type 2105 disks are found, you can uninstall any ESS driver filesets:
# installp -u ibm2105.rte ibmpfe.essutil.fibre.data ibmpfe.essutil.rte
"The public-domain time zone database contains code and data that represent
the history of local time for many representative locations around the globe. It is
updated periodically to reflect changes made by political bodies to time zone
boundaries, UTC offsets, and daylight-saving rules. This database (often called
tz or zoneinfo) is used by several implementations.
Each location in the database represents a national region where all clocks
keeping local time have agreed since 1970. Locations are identified by continent
or ocean and then by the name of the location, which is typically the largest city within the region. For example, America/New_York represents most of the US
eastern time zone; America/Phoenix represents most of Arizona, which uses
mountain time without daylight saving time (DST); America/Detroit represents
most of Michigan, which uses eastern time but with different DST rules in 1975;
and other entries represent smaller regions like Starke County, Indiana, which
switched from central to eastern time in 1991 and switched back in 2006."
The public-domain time zone database is also widely known as the Olson time
zone database and is the architecture on which the International Components for
Unicode (ICU) and the Common Locale Data Repository (CLDR) time zone
support relies.
In previous AIX releases, the method by which the operating system supports
time zone conventions is based on the POSIX time zone specification. In addition
to this industry standard approach, AIX V6.1 recognizes and processes the
Olson time zone naming conventions to facilitate support for a comprehensive
set of time zones.
This enhancement leverages the uniform time zone naming convention of the
Olson database to offer an intuitive set of time zone values that can be assigned
to the TZ time zone environment variable.
Note: Time zone definitions conforming to the POSIX specification are still
supported and recognized by AIX. AIX checks the TZ environment variable to
determine if the environment variable follows the POSIX specification rules. If
the TZ environment variable does not match the POSIX convention, AIX calls
the ICU library to get the Olson time zone translation.
The use of the Olson database for time zone support within AIX provides
significant advantages over the traditional POSIX rules. One of the biggest
advantages is that Olson database maintains a historical record of what the time
zone rules were at given points in time, so that if the rules change in a particular
location, dates and times can be interpreted correctly both in the present and
past. A good example of this is the US state of Indiana, which just began using
daylight saving time in the year 2006. Under the POSIX implementation, Indiana
would have to set its time zone value to EST5EDT, which would format current
dates correctly using daylight saving time, but would also format times from
previous years as though they were on daylight saving time, which is incorrect.
Use of the ICU API set for time zones also allows for localized display names for
time zones. For example, Central Daylight Saving Time would have an
abbreviation of CDT for all locales under a POSIX implementation, but under
ICU/Olson, it displays properly as HAC (Heure Avancée du Centre) in a French
locale.
As in previous AIX releases, system administrators can rely on the Systems
Management Interface Tool (SMIT) to configure the time zone by using system
defined values for the TZ environment variable. To accomplish this task, enter the
main SMIT menu and select System Environments, Change / Show Date and
Time to access the Change Time Zone Using System Defined Values menu.
Alternatively, the SMIT fast path chtz_date will directly open the Change / Show
Date and Time menu. Selecting the Change Time Zone Using System Defined
Values option will prompt SMIT to open the Select COUNTRY or REGION menu.

SMIT uses the undocumented /usr/lib/nls/lstz -C command to produce the
list of available countries and regions. Note that undocumented commands and
features are not officially supported for customer use, are not covered by the AIX
compatibility statement, and may be subject to change without notice.
After you have chosen the country or region in the Select COUNTRY or REGION
menu, a new selection menu will list all available time zones for the country or
region in question.

The selected value of the first column will be passed by
SMIT to the chtz command, which in turn will change the TZ variable value in the
/etc/environment system level configuration file. As with previous AIX releases,
time zone configuration changes always require a system reboot to become
effective.
SMIT uses the internal /usr/lib/nls/lstz -c command to produce the list of
available time zones for a given country and region. The -c flag uses a country or
region designation as the input parameter. The /usr/lib/nls/lstz -C command
provides a list of available input parameters. The /usr/lib/nls/lstz
command used without any flag provides a full list of all Olson time zones
available on AIX. Note that undocumented commands and features are not
officially supported for customer use, are not covered by the AIX compatibility
statement, and may be subject to change without notice.
Number of results found: 469.
Displaying results: 181 - 190.