FAQ Aix 3.x / 4.x

Ancienne FAQ Aix 3.x / 4.x

En anglais

Original sources from:
Jens-Uwe Mager, HELIOS Software GmbH

Certaines parties ont été coupées ; nous ne garantissons pas l’exactitude des informations citées

Table of Contents
1. AIX
1.0 General concepts
1.1 SMIT, system administration
1.2 Backups, tape
1.3 Memory and process management
1.4 Shells, commands, man pages, InfoExplorer
1.5 Video, Graphics, X11
1.6 Networks and communications
1.7 LVM
1.8 AIX 4.x
1.9 Miscellaneous

HTML-ized and updated: Fri Oct 1 10:41:04 EDT 1999


General Info about this FAQ

This posting contains frequently asked questions and answers about the IBM RS/6000 series workstations and AIX versions 3 and 4. All input is very welcome, The list is split into five articles to pass thru most mailers. I’ll usually try to post them once a month to comp.unix.aix, news.answers, and comp.answers. Please let your input continue as I am most thankful for all of it.
Please make a note of the fact that these sites contain more than just the AIX FAQ and would probably be worth consulting before you post questions to any of the usenet groups. If you see a From: line it means that whatever follows is either an unabridged or slightly edited version of the input I have received, and that I may not have verified its contents. If there is no From: line, I probably know what I am talking about, and the entry is edited from various sources. All entries are numbered with major and minor subject number, e.g. 2.11. If the subject is preceded by an asterisk, that entry has been changed or added since the last posting.  The comp.unix.aix group is for AIX on all IBM platforms — RT, PS/2, 370, RS/6000 and mainframes (ESA based on OSF/1), but the traffic has evolved to discuss predominantly AIX 3.x and the RS/6000. The newsgroups comp.sys.ibm.pc.rt and comp.sys.ibm.ps2.hardware cover the RT, mostly hardware and AOS 4.3, and on PS/2 hardware respectively. Mark Whetzel posts FAQ lists about RTs in the rt and *.answers groups.  There are few to non-existent discussions on AIX/370 and AIX/ESA.
If you post questions to comp.unix.aix, please be sure to indicate: the machine type and brief configuration, e.g. Model 540, 64 MB RAM, 48 MB swap space (this is actually bad), 1.2 GB XYZ hard drive, etc. Note: There are now three classes of RS/6000s – the original, RS or POWER, RS/2 or POWER2, and PowerPC. the exact AIX version number, i.e. AIX 3.1 is NOT sufficient, whereas AIX 3.1.5 or AIX 3.1 with the 3005 update is. With 3.2 you should mention any significant ptfs using the U4xxxxx numbers. I am doing this on my own time. Please do not ask me questions that should be asked to IBM. If you suspect you have software defect problems call IBM-SERV. If you have hardware problems call IBM-SERV.


1.0 General concepts

Subject: 1.000: The AIX operating system – what is it?
This is best answered by reading the text files in /usr/lpp/bos. The README file there contains general information and the bsd file contain useful information if you know BSD and/or System V. The last release for the RT PC is 2.2.1. The latest release for PS/2s
and Intel architecture machines is AIX 1.3; for PS/2s only, 1.2.1. For the RS/6000, there are three major levels, 3.2, 4.1, 4.2, and various intermediate levels. IBM has dropped support for 3.1. For those who don’t have a copy of /usr/lpp/bos/README or bsd, I’ll sumarize: IBM tried to follow IEEE, POSIX 1003.1, ANSI C, FIPS and then X/Open Issue 3. Beyond that, AIX is a combination of System V and BSD.
Subject: 1.001: I know neither Unix nor AIX
– where do I find more information?
If you are new to Unix, you should look at the other newsgroups in the comp.unix hierarchy, in particular comp.unix.questions. There are FAQs more most of these groups as well.  If you need information about C programming, try comp.lang.c or comp.std.c, the latter for Standard ANSI C issues. comp.lang.c has a FAQ posting.
Subject: 1.002: What is the Object Database?
AIX stores most of the system management information in /etc/objrepos,  /usr/lib/objrepos, and /usr/share/lib/objrepos. Files (also referred to as system object classes) in these directories are adminstered by the Object Database Manager, ODM, which is a set of library routines and
programs providing basic object oriented database facilities. Under most circumstances, only SMIT or the commands SMIT call (see 1.100) should be used to change the contents of the system object classes. A harmless way to look at the object database is to use odmget <Class> where <Class> is one of the files in /etc/objrepos. Experienced users can use the ODM editor, odme, to navigate the database in detail. Modifying the database should only be attempted if you know exactly what you are doing.
Subject: 1.003: How do I get rid of the verbose error messages?
Many of the messages from the Unix commands are available in different languages. This is controlled by the LANG environment variable, the default being En_US meaning English in the US. All the default messages have a message number associated with them, e.g.: $ cat no-such-file cat: 0652-050 Cannot open no-such-file. If you prefer the terser Unix-looking error message, set your environment variable LC_MESSAGES to C, and you will get: $ cat no-such-file cat: Cannot open no-such-file. By default LC_MESSAGES is the same as your environment LANG. Setting LANG does also work, but should be avoided since it changes app-defaults lookup etc. See locale(): LC_ALL
Subject: 1.004: Which release of AIX or other products do I have?
New with 3.2.5: The oslevel command shows OS and component levels.
Run oslevel -help to see options
The command ’lslpp -h bos.obj’ will show all lines referring to the BOS, Basic Operating System. E.g.: Fix Id Release Status Action Date Time User Name
——- ————— ——— ———- ———- ——– ———
Path: /usr/lib/objrepos bos.obj
03.02.0000.0000 COMPLETE COMMIT 12/31/69 18:00:00 root
U401864 03.02.0000.0000 COMPLETE COMMIT 11/12/92 20:09:35 root
U401968 03.02.0000.0000 COMPLETE COMMIT 11/12/92 23:18:21 root
U401969 03.02.0000.0000 COMPLETE COMMIT 11/12/92 23:18:20 root
U418349 03.02.0000.0000 COMPLETE COMMIT 08/28/93 15:34:13 root
U419950 03.02.0000.0000 COMPLETE COMMIT 08/28/93 15:34:11 root
For AIX 3.2, you may come across discussions on 3.2.0, 3.2.1, 3.2.2, 3.2.3 extended, 3.2.4 and 3.2.5. There is no absolute way to tell which of these you are running since the newer releases are simply 3.2.0 with some sets of PTFs added. See above example listing. These selective fixes could mean there are literally thousands of slightly different variations of 3.2 in use. Please see section 6 to request some useful faxes to help with this number game.
AIX 3.2.4 and later attempts to resolve this confusion. The OS is broken down into subsystems so that updates can be applied to an entire subsystem. lslpp also sports a new option; use ’lslpp -m bos.obj’ to show what level and update the system is running. You can also use the new oslevel command. Unless you have a pressing need (such as applications unsupported on > 3.2.3), it is recommended that you update to this level. Also see 1.128.
Subject: 1.005: What hardware do I have? What is availible? WITS?
The wits script is unfortunately no longer maintained. I just don’t have the time, and I’m not sure it is a realistic proposition anymore. There are so many different models that have the same model-ID that it’s impossible to be « definitive. »  [Editor’s note: I’ve deleted the source to the wits program from the FAQ,but it is listed as being part of the aix.tools. archive at Bull’s freeware download site <http://www-frec.bull.com/>. Press the « Download » button once the top page loads, then look for « The Large AIX Freeware and Shareware Archive » link.]
Subject: 1.006: Is IBM « dropping » AIX? AIX 3 discontinued.
No. IBM sells and supports AIX 4. However, on January 31, 1997 IBM will « withraw AIX 3.2.5 from marketing. » That is, you won’t be able to purchase AIX 3.2.5 anymore. On December 31, 1997, IBM will « discontinue Program Services » for AIX 3.2.5. Translation: they will no longer respond to (most) defect reports for AIX 3.2.5. The US announcement letter can be read via <http://www1.ibmlink.ibm.com/>. Pick the US as region, look for « Announcement Letters, » then search for document number 996-245. 1.1 SMIT, system administration

1.1 SMIT, system administration

Subject: 1.100: I am used to Unix systems programming,  why should I learn SMIT?
Using SMIT is probably very different from your normal way of doing system administration, but could prove very useful in the long run. In some areas, in particular TCP/IP, NFS, etc., you can also do things the normal way, but it is unfortunately difficult to know exactly when the normal way works. Again, always using SMIT is probably your best way
to go, even when you have to learn a new tool. What SMIT actually does is build up commands with all required options to perform the functions requested and execute them. The commands called and the output they produce are stored in the files smit.script and smit.log in your home directory. Looking in smit.script may teach you more about system administration.
Subject: 1.101: How do I turn off the « running man » in smit?
Use smitty, the standard curses version or add this line to your .kshrc file:  alias smit= »smit -C »
Subject: 1.102: How do I import an /etc/passwd or /etc/group file from another box?
If the other box is non-AIX, copy the password and group entries for the non-system users into AIX’s /etc/passwd and /etc/group files. Then run /bin/pwdck -t ALL. This will create the proper entries in the shadow password file (/etc/security/users). You should also run usrck and grpck. To duplicate the password and group entries from another AIX box, copy /etc/passwd, /etc/group, /etc/security/passwd, /etc/security/group, /etc/security/user, /etc/security/limits, /etc/security/environ. The last three are optional unless you modified them. If you modified /etc/security/login.cfg, you should also copy that file.
Subject: 1.103: Cleaning up utmp, who, and accounting problems
The best way to fix this problem is to fix the programs which are causing the behavior in the first place. The short answer is to call software support and ask for the « UTMPFIX » collection of PTFs. Virtually all of these problems should be fixed in the 3251 PMP and the only one I’ve been able to prove is still broken is using ALT-F4 to close an aixterm.  This applies if you are running an X11R5 xterm on 3.2. Add this to the top of X11R5 mit/clients/xterm/main.c:
#ifdef AIXV3
#define WTMP_FILENAME « /var/adm/wtmp »
And your utmp problems should go away. If you want xterminal sessions to go into the wtmp file you need to define -DWTMP in the Imakefile and be sure the WTMP_FILENAME is set to the right place.  Section 8.02 contains a small C program that you can use until the PTFs arrive. The program must be run as root and will periodically clean up old entries. Another utmp program was posted to comp.sources.unix, volume 25, issue 96 by David W. Sanderson that also works on AIX 3.1.
Subject: 1.104: How to fsck the root filesystem
You can run fsck either in maintenance mode or on mounted filesystems.
Try this:
1. boot from diskette (AIX 3 only — AIX 4 boot from CD or tape)
2. select maintenance mode
3. type /etc/continue hdisk0 exit (replace hdisk0 with boot disk if
not hdisk0)
4. fsck /dev/hd4
Subject: 1.105: How can I unmount /usr to run fsck on it?
In order to fsck /usr, it has to be unmounted. But /usr cannot be unmounted because /bin is symbolically linked to /usr/bin. Also /etc/fsck is symbolically linked to /usr/sbin/fsck. To work around this, when you boot from the boot/maintenance diskettes and enter maintenance mode, enter « getrootfs hdisk0 sh » instead of « getrootfs hdisk0 » where hdisk0 is the name of the boot disk. Then run « fsck /dev/hd2 ».
Subject: 1.108: How do I see/change parameters like number of processes per user?
You can use SMIT as described below or simply use lsattr/chdev. The former will list the current setting as in:
# lsattr -E -l sys0 -a maxuproc
maxuproc 40 Maximum # of processes allowed per user True and you can then increase the maxuproc parameter:
# chdev -l sys0 -a maxuproc=200
sys0 changed
If you just type ’lsattr -E -l sys0’ you will get a list of all parameters, some of which can be changed but not others. If you want to use smit, do as follows: smit
System Environments and Processes
Change / Show Operating System Parameters
– on this screen you can change by overtyping the following fields:
– Maximum number of PROCESSES allowed per user
– Maximum number of pages in block I/O BUFFER CACHE
– Maximum Kbytes of real memory allowed for MBUFS
– toggle fields exist for:
– Automatically REBOOT system after a crash (false/true)
– Continuously maintain DISK I/O history (true/false)
Info 1.30 erroneously suggests that in AIX 3.2.5 you can set different limits for different users.
Subject: 1.109: How do I shrink the default paging space on hd6?
1) create a paging space to use temporarily
mkps -s 20 -a rootvg
2) change default paging space hd6 so it is not used at next reboot
chps -a n hd6
3) For AIX 3.1, edit /etc/rc.boot4 and change swapon /dev/hd6; for AIX 3.2 and 4.x, edit /sbin/rc.boot and change swapon /dev/hd6 swapon /dev/paging00
3a)Since the default system dump device is /dev/hd6 in 4.1.x, it has to be changed to the temporary swap device before you remove the old swap device.
sysdumpdev -p /dev/paging00
4) Update information in boot logical volume
bosboot -a (3.1)
bosboot -a -d hdisk0 (3.2 & 4)
5) shutdown and reboot
6) remove current hd6 and create a new one of smaller size
rmps hd6
mklv -y hd6 -t paging rootvg <size of PS in 4 Meg blocks>
7) Re-edit /etc/rc.boot4 (3.1), /sbin/rc.boot (3.2) to swap to /dev/hd6
swapon /dev/hd6
7a)On AIX 4, change the dump device back to hd6:
sysdumpdev -p /dev/hd6
8) Update information in boot logical volume
bosboot -a (3.1)
bosboot -a -d hdisk0 (3.2 & 4.1)
9) change current paging device (paging00) so it is inactive at next boot
chps -a n /dev/paging00
10) shutdown, reboot, remove paging00 using the command:
rmps paging00
You can check your paging space with ‘lsps -a‘
Subject: 1.110: The swapper seems to use enormous amounts of paging space, why?
When you run ps, you may see a line like:
root 0 0.0% 14% 386528 8688 – S 17:06 swapper
This is normal behavior, the swapper looks to ps like it has the entire paging space plus real memory allocated.
Subject: 1.111: How much paging space do I need?
See answer 2 in question 1.300.
Subject: 1.112: How do I mount a floppy disk as a filesystem?
You can build a filesystem on a floppy and mount it, however the filesystem will be read only. The reason that the filesystem will be read only is because AIX Version 3.1.5 cannot create a journal log on a diskette. The intended use is for temporary access to read only data. The diskette file system must be unmounted after use and during system backup procedures or errors could occur. To make the read only filesystem on a floppy:
1. Make a subdirectory on an existing filesystem and place all of the files that the diskette will contain into this subdirectory.
2. Enter the following command to create a prototype file containing information about the new filesystem, in the example /dir_struct is the pathname of the subdirectory created in step 1, and proto_filename is the name of the prototype file to be created.  proto /dir_struct > proto_filename
3. Place a formatted floppy into the drive.
4. Edit the prototype file and replace the first line with the following: <noboot> 0 0
5. Enter the following command to make the filesystem on your floppy:
mkfs -p proto_filename -V jfs /dev/fd0
6. Create the directory upon which you will mount the floppy based filesystem, or you can use /mnt. Mount the filesystem:
mount -r -V jfs /dev/fd0 /your_mount_point
7. To unmount the filesystem:
umount /dev/fd0
Since the filesystem is read-only it may be of limited use but if you are going to use it for utility programs and other data that does not change much, it may still be useful. If you need to change the data, you can copy the directory from the floppy into another directory, make your modifications, and remake the filesystem using this procedure.
Subject: 1.113: How do I remove a committed lpp?
AIX 3.2.5: you can get rid of COMMITTED lpps/ptfs by installing with the force option and then rejecting the package.
AIX 4.1 users: installp has a new option, uninstall (-u) which can be
used to remove lpps.
Subject: 1.114: How can I recover space after installing updates?
Note: If you are a /usr server, do not use this because the files mentioned below are needed by /usr clients and cannot be deleted. Installp creates numerous files in /usr to clean up after failed/rejected installs and also for de-installing uncommitted lpps. Once you have COMMITted packages you can remove these files safely. Depending on your installation activity the numbers can be significant: hundreds-to-thousands of files, megabytes of data. Files eligible for removal are associated with each « product » you have installed; the largest collection being due to bos. After COMMITting bos lpps, you may safely remove all files of the form:
and /usr/lpp/bosadt/inst_U4*
You may repeat this for all additional COMMITted products (e.g., bostext1, bosnet, xlc) you have on your system.  This problem of lingering install files is a known defect in installp. If you have installed PTF U411711 (or any superseder of it: U412397, U413366, U413425) the deadwood in /usr will not be quite as prevalent. No single PTF currently available completely corrects this problem. On my own 320, the following freed up 12.4M in /usr:
# rm -R /usr/lpp/bos/deinstl*
# rm -R /usr/lpp/bos/inst_U4*
Subject: 1.115: Where are the AIX log files kept?
AIX logs messages as specified in /etc/syslog.conf. Here’s an example
*.err;kern.debug;auth.notice;user.none /dev/console
*.err;kern.debug;daemon,auth.notice;mail.crit;user.none /var/adm/messages
lpr.debug /var/adm/lpd-errs
*.alert;kern.err;daemon.err;user.none operator
*.alert;user.none root
*.emerg;user.none *
for loghost machines, to have authentication messages (su, login, etc.) logged to a file, un-comment out the following line and adjust the file name as appropriate. if a non-loghost machine chooses to have such messages sent to the loghost machine, un-comment out the following line.
auth.notice /var/log/authlog
mail.debug /var/log/syslog
following line for compatibility with old sendmails. they will send messages with no facility code, which will be turned into « user » messages by the local syslog daemon. only the « loghost » machine needs the following line, to cause these old sendmail log messages to be logged in the mail syslog file.
user.alert /var/log/syslog
non-loghost machines will use the following lines to cause « user » log messages to be logged locally.
user.err /dev/console
user.err /var/adm/messages
user.alert ‘root, operator’
user.emerg *
Subject: 1.116: How can I log information about ftp accesses to a file?
1) In /etc/syslog.conf, add the line: daemon.debug /tmp/daemon.log
2) # touch /tmp/daemon.log
# refresh -s syslogd
3) Modify your inetd.conf so that ftpd is called with the « -l » flag.  You may also want the « -d » flag. This can be done with ’smit inetdconf’. All the syslog messages from various system daemons should now appear in the file « /tmp/daemon.log ».
Subject: 1.117: How do I find a file name from the inode number?
ncheck -i nnnn /mntpoint
Subject: 1.118: How do I set up postscript accounting?
Ephraim Vider originally wrote this program to configure postscript page accounting. It acts as a backend wrapper which logs accounting information in /etc/qconfig and can be ftp’d from utpapa.ph.utexas.edu in /pub/aix/psacct.tar.Z.
Compile with:
cc pswrap.c -o pswrap -lqb
and then make this program suid root:
chown root pswrap
chmod u+s pswrap
If this step is not done, the printer will hang.
Then start up SMIT and go to :
Manage Local Printer Subsystem
Local Printer Queue Devices
Change / Show Characteristics of a Queue Device
<Select Queue>
<Select Device>
and change « BACKEND PROGRAM pathname » to the full pathname of pswrap since pswrap will now handle the backend interface with the queue.  A stream of info will be written to a logfile in /tmp (prob lp0.log) but this file is mainly used for status info and raw pagecounts. If the accounting data is going to the qconfig-specified acctfile, then use the ’pac’ command to read it. I prefer to have readable ascii data files instead, so I just comment out the ’#define WANT_PAC’ line and it will only go to the ACCTFILE specfied in pswrap.c.
[pswrap.c source has been moved to section 8.03]
Subject: 1.119: How do I create boot diskettes?
In AIX 4.1.x and 4.2 you cannot, the kernel and ram drive don’t fit on a diskette. You should get « 0301-174 bosboot: Invalid device /dev/fd0 specified! » if you try.
For AIX 3.2.x you will need to have four formatted diskettes. boot disk: bosboot -d /dev/fd0 –a
display disk: mkdispdskt
display extension disk: mkextdskt
Install/Maintenance disk: mkinstdskt
AIX 3.2.5 may require a fifth boot diskette if you have a FDDI adapter in the machine. It is the « communications extension » diskette.
Subject: 1.121: How can I tell what virtual printer a print queue is using?
Use the command ’lsvirprt’. Don’t use any parameters and it will run in an interactive mode that will give you a menu of all virtual printers on the system with the queue and device for each one.
Subject: 1.122: Two srcmstr’s are less useful than one?
This can happen on systems that have no console, or systems with an async terminal as the console but not attached or turned off. One of the symptoms is a second srcmstr got run. But the second srcmstr is worthless as we can’t use the stop/startsrc commands, refresh inetd, qdaemon won’t start, etc.  To resolve this, type: smit chgtty and add the keyword ’clocal’ in following lines:
STTY attributes for RUN TIME
STTY attributes for LOGIN
Subject: 1.123: How do I set the tty name associated with a physical port?
Let’s say you wanted to make a tty on the s1 port and call it rs0000 and a tty on the s2 port and call it rs0001.
You could run:
mkdev -c tty -s rs232 -t tty -l rs0000 -p sa0 -w s1 # creates rs0000 and
mkdev -c tty -s rs232 -t tty -l rs0001 -p sa1 -w s2 # creates rs0001
Subject: 1.124: How do I use mksysb to clone a system?
I use the following steps on the master machine to clone an AIX system:
1) Remove the password from root.
2) Remove the NIS line from the end of the /etc/group file (the last line with the +: )
3) Change most of the level ’2’ designations in /etc/inittab to level ’3’ to prevent them from being started up when the new system is booted (the minimum ones to change are rc.nfs and rc.tcpip)
4) Boot in service mode and change the name and ip address to a « spare » set to avoid address collision.
5) Clear /tmp, /usr/tmp and /usr/spool/lpd/stat.
6) Run mkszfile and edit it to be sure /usr is as small as possible; then mksysb from the command line.
The above changes allow me to boot in normal mode the first time, get in as root, change the above files back and do the other things necessary to configure the new system. Then, of course, I go back and clean up and reboot my master machine.
Note: 1 and 2 lets you log in even if you can’t get on the network. It prevents the login process from trying to reach an NIS server. Step 2 needed only if you use NIS.
Subject: 1.125: How do I retain timestamps with mksysb?
As of AIX 3.2.5 bosrest preserves timestamps and permissions as does pax.
In AIX 3.2.2 /usr/lpp/bosinst/bosnet (for net installs), and bosrest (tape), the ’pax’ commands all have ’-pmop’ options. m = « DON’T retain modification times ». So, simply change all the ’-pmop’ to’-pop’ and remake inst/maint diskettes or mksysb tapes.
Subject: 1.127: Updating to 3.2.5
(Ed. The following is useful if you have to update a large number of
systems, large being > 3.)
*** WARNING : Modify the scripts if you need dataless, diskless ***
*** or remote /usr support. ***
1) Receive the PMP3250 tape from your AIX support center the PTF number is U493250.
2) Create a filesystem with 240 MB of space (60 PP’s) and mount it as /dev/pmp3250 – /pub/pmp3250
3) Insert the tape (blocksize is 512) and install PTF U422467
# installp -BXacgq -d /dev/rmt0 bos.obj
4) Use the following script to load the tape in the new filesystem
# cd /pub/pmp3250
# mktape2disk.sh 0 447 <<– read 447 files from rmt0
Subject: 1.129: Are passwords limited to 8 char?
AIX passwords are only significant to 8 characters. You can set a
passwd to more than 8 characters but anything over eight are ignored.
No messages or warnings are given.
Be careful if you’re running NIS. You probably want to limit passwords
to 8 char on all machines (6000 and others) to be compatible.
Someone mentioned that DCE supports kerberos which supports passwords
greater than 8 characters.
Subject: 1.130: How do I increase the number of ptys > 64?
SMIT only allows 64. Try this:
odmget -q »attribute=num and uniquetype=pty/pty/pty » PdAt | sed « s/0-64/0-512/ » |
odmchange -q »attribute=num and uniquetype=pty/pty/pty » -o PdAt
chdev -l pty0 -anum=256 -P
Subject: 1.131: Where can I find patches for CERT advisories?
Patches (APARs in IBMspeak) for CERT advisories (system security problems) can be found at <http://service.software.ibm.com/>. You should have a copy of Fixdist
<ftp://service.software.ibm.com/aix/tools/fixdist/fd.tar.Z> handy to deal with translating APAR and PTF numbers into downloadable files.
See question 1.142 for more information about fixdist.
Subject: 1.132: How do I remove a non-existant physical volume?
To delete a phantom disk from the ODM use reducevg with the pvid instead of the disk name. You are running some command such as lsvg or varyonvg and it is griping about a disk that is no longer findable right? In that warning message, it should give you a pvid. Try one
of the following, (note: reducevg updates the VGDA but not the ODM).
reducevg -f <vgname> <pvid>
ldeletepv -g VGid -p Pvid -g Required, specify the VGid of the volume group you are removing the physical volume from-p Required, specify the PVid of the PV to be removed
Subject: 1.133 How do I kill a process that ignores
If there is i/o pending in a device driver, and the driver does not catch the signal, you can’t kill it – a reboot is the only way to clear it.
Furthermore, if the process stays hung for more than a few minutes, you can find out what device is wedged by doing this —
% echo trace -k $(expr <pid> / 256) | crash | tee stack
If you can’t figure out what is wrong, print that trace out and call
1-800-xxxx and tell them that something is broken. Tell them you want to fax in the nice stack trace that you have as your testcase.
Subject: 1.134: How can I see « console » messages?
Use the swcons command to redirect the console to a file. Or use chcons to do it permanently.
Subject: 1.135: Where can I find TOP for AIX?
TOP functionality is included in an AIX package called Monitor. See question 1.120 for more information.
Subject: 1.136: How can I restrict root logins to specific terminals?
Read FAX 2737 availible from the 800-IBM-4FAX number discussed in section 6.02. Refer to APAR IX45701 for fixes related to the rsh style commands.
Subject: 1.137: How do I merge my /etc/password and /etc/security/password for Crack?
/usr/sbin/mrgpwd. You must have permissions to read /etc/security/password.
1.138: I lost the root password, what should I do?
Boot from boot diskettes, bootable tape, or bootable CD.
At the Installation/Maint menu select item 4, « Start a limited function maintenance shell.
At the subsequent « # » prompt enter the command:
getrootfs hdiskN
(where « N » is replaced by the number of a disk on your system that is in rootvg.)
That will run for about a minute or so and you get a # prompt back. At this point you are logged in as root in single user mode. Change to /etc/security and edit the passwd file. Delete the three lines
under root: password, update time (or whatever it’s called), and flags. Save the file.
Then at the prompt, give root a new password.
Shutdown/reboot in normal mode. Log in with new password.
Subject: 1.139: How can I resolve DEV_WAIT status for a local print queue?
Try « qadm -k && qadm -U »
Subject: 1.140: SMIT problems forcing/overwriting install?
Installp does not support overwriting and installing prerequisite software at the same time.
Subject: 1.143: Is there an easy way to determine if AIX
has a PTF applied or not?
lslpp -Bl Uxxxxxxx
Where Uxxxxxxx is the PTF id.
Subject: 1.144: How do I recreate a deleted /dev/null?
/bin/mknod /dev/null c 2 2
Subject: 1.145: What is a checkstop error?
While this may not be the official definition, what it means is that the hardware has detected a condition that it cannot resolve, and which prevents normal operation. So, it stops executing instructions, responding to interrupts, etc. Usually it means that some component of the hardware is broken.
Subject: 1.146: How do I recover deleted files?
Preferably from a backup. If you don’t have a backup, at least one company, Compunix, claims to have a product that will recover deleted files. [Editor’s note: this one appears to be for the really desperate ones, but it might be helpful if you really need it the most.] RECOVERING REMOVED FILES AND DIRECTORIES IN A FILESYSTEM If a file is Deleted from the system, the filesytem blocks composing that file still exist, but are no longer allocated. As long as no new files are created or existing files extended within the same filesystem, the blocks will remain untouched. It is possible to reallocate the blocks to the previous file using the « fsdb » command (filesystem debugger).

Steps to recover a deleted file
1) « ls -id {dir} »
(where dir is directory where file resided) Record INODE number for next step.
2) Unmount the filesystem.
3) « fsdb /{Mountpoint} » or « fsdb /dev/{LVname} »
(where Mountpoint is the filesystem mount point, and LVname is the logical volume name of the filesystem)
4) « {INODE}i »
(where INODE is the inode number recorded in step 1)  This will display the inode information for the directory. The field a0 contains the block number of the directory.
The following steps assume only field a0 is used. If a value appears in a1, etc, it may be necessary to repeat steps #5 and #6 for each block until the file to be recovered is found.
5) « a0b » (moves to block pointed to by field « a0 » of this inode)
6) « p128c » (prints 128 bytes of directory in character format) Look for missing filename. If not seen, repeat this step until filename is found. Record address where filename begins. Also record address where PRIOR filename begins. If filename does not appear, return to step #5, and selecting a1b, a2b, etc.
Note that the address of the first field is shown to the far left. Increment the address by one for each position to the right, counting in octal.
7) « a0b » (moves to block pointed to by field « a0 » of this inode) If the filename was found in block 1, use a1b instead, etc.
8) « p128e » (prints first 128 bytes in decimal word format) Find the address of the file to recover (as recorded in step 6) in the far left column. If address is not shown, repeat until found.
9) Record the address of the file which appeared immediately PRIOR to the file you want to recover.
10) Find the ADDRESS of the record LENGTH field for the file in step #9 assuming the following format:
{ADDRESS}: x x x x x x x x x x …
| | | | |——– filename ——|
inode # –+—-+ | |
| +– filename length
record LENGTH –+
Note that the inode number may begin at any position on the line.
Note also that each number represents two bytes, so the address of the LENGTH field will be ‘{ADDRESS} + (#hops * 2) + 1’
11) Starting with the first word of the inode number, count in OCTAL until you reach the inode number of the file to be restored, assuming each word is 2 bytes.
12) « 0{ADDRESS}B={BYTES} »
(where ADDRESS is the address of the record LENGTH field found in step #10, and BYTES is the number of bytes [octal] counted in step #11)
13) If the value found in the LENGTH field in step #10 is greater than 255, also type the following: « 0{ADDRESS-1}B=0 »
(where ADDRESS-1 is one less than the ADDRESS recorded in step #10) This is necessary to clear out the first byte of the word.
14) « q » (quit fsdb)
15) « fsck {Mountpoint} » or « fsck /dev/{LVname} »
This command will return errors for each recovered file asking if you wish to REMOVE the file. Answer « n » to all questions. For each file that is listed, record the associated INODE number.
16) « fsdb /{Mountpoint} » or « fsdb /dev/{LVname} »
17) {BLOCK}i.ln=1
(where BLOCK is the block number recoded in step #15) This will change the link count for the inode associated with the recovered file. Repeat this step for each file listed in step #15.
18) « q » (quit fsdb)
19) « fsck {Mountpoint} » or « fsck /dev/{LVname} ». The REMOVE prompts should no longer appear. Answer « y » to all questions pertaining to fixing the block map, inode map, and/or superblock.
20) If the desired directory or file returns, send money to the author of this document.
Subject: 1.148: How can I run a command or commands at system shutdown?
« Stock » AIX 4.1.x doesn’t have any obvious place to add commands to the shutdown sequence. You can 1) modify /etc/shutdown (it’s a shell script); 2) add your commands to /etc/netware.clean (shutdown invokes this program if it exists) or 3) install APAR IX65326 (« ADD /ETC/RC.SHUTDOWN TO SHUTDOWN SCRIPT IN AIX4.1.5) which adds a user-defined /etc/rc.shutdown script to the shutdown sequence. AIX 4.2 already has a similar feature.
Subject: 1.150 How can I reduce the size of /var/adm/wtmp ?
The file /var/adm/wtmp grows with each login, but is never reduced.  The contents of wtmp is used (only?) by the command « last », which shows, in reverse order, all the logins and reboots that happened since the start of the wtmp file. The file should not be deleted, but the contents can be discarded using the following command:
# > /var/adm/wtmp
Subject: 1.151: How do I start local daemons at system startup?
AIX does neither use the BSD style rc.local file nor the System V style /etc/rc*.d startup files directories. To add local daemons to the system startup sequence in a BSD rc.local style use the following command to create an /etc/inittab entry:
# mkitab -i rcnfs « rclocal:2:wait:/etc/rc.local >/dev/console 2>&1 »
# touch /etc/rc.local
# chmod 700 /etc/rc.local
Then put the command lines to start the daemons in /etc/rc.local.
Subject: 1.152 How do I set the TZ variable to automatically change to daylight savings time?
The TZ variable can be set in /etc/environment file so the time automatically switches to daylight savings time in spring and back to normal in autumn. The actual rules when to switch vary by country, the following should work in middle europe:  TZ=MET-1MET DST,M3.5.0/02:00:00,M10.5.0/03:00:00
The exact definition for the rules can be found with infoexplorer under the environment page.
Subject: 1.153 Why does init not reap its zombie child processes?
If you have lots of zombie (defunct) processes with parent process id 1, the init process is probably waiting for some bad /etc/inittab configuration line to finish. Check the inittab file for entries that specify the wait keyword for processes that do not terminate. These lines should probably specify « once » or « respawn » instead.
Subject: 1.154 I’m looking for a missing command or header file.
Which fileset do I need to install?

If you are at AIX Version 4.2.1 or later you could install bos.content_list and then use the command « which_fileset [ File ] » The which_fileset command searches the /usr/lpp/bos/AIX_file_list file for a specified file name or command name, and prints out the name of the fileset that the file or command is shipped in.
Subject: 1.155 Why doesn’t the df -k output reflect the space I added to an LV?
You need to use the chfs command or the smit chfs menu to tell the file system to use the new space. By the way, in most cases it is better to just increase the size of the file system, it will increase the underlying LV automatically.


1.2 Backups, tape

Subject: 1.201: How do I do remote backup?
There seems to be several ways of doing this. The first approach is a one-liner to allow tar to reference another machine’s device. The second is more complete but uses a similar approach. The latest addition to this section claims to be able to support mksysb on a remote machine. Thanks to all the contibutors.
tar -b1 -cf – . | rsh REMOTEHOST « dd ibs=512 obs=1024 of=/dev/TAPEDEVICE »
[Ed.: The usave.sh script has been moved to section 8.06. I’ve verified this script works fine. However, it may be slow for large filesystems since it creates a temp file of filenames in /tmp.]. There are also several commercial solutions. One is IBM’s SYSBACK/6000 product. See Question 1.209 for more information. Open Microsystems sells a product called DistribuTAPE which supports mksysb to a remote tape drive under AIX 3.2, 4.1 and 4.2. DistribuTAPE supports remote tape drives by placing a pseudo tape driver on the client system, and a server daemon on the server.
Subject: 1.204: How can I make an exact duplicate of a tape over the network?
The challenge here is not to have to create a temporary file (disk space limitation) and work across heterogeneous networks. This script might work:
dd if=$LOCAL ibs=64k obs=512 | rsh remote_host dd ibs=512 obs=64k of=$REMOTE
# Wrapper to convert input rmt requests to
# AIX 3.2 ioctl numbers. We pass on all commands we don’t understand
# I0 MTWEOF -> I10 STWEOF write and end-of-file record
# I1 MTFSF -> I11 STFSF forward space file
# I2 MTBSF -> I12 STRSF reverse space file
# I3 MTFSR -> I13 STFSR forward space record
# I4 MTBSR -> I14 STRSR reverse space record
# I5 MTREW -> I6 STREW rewind
# I6 MTOFFL -> I5 STOFFL rewind and unload tape
# I7 MTNOP -> I0 (no-op? should ignore following count)
# I8 MTRETEN-> I8 STRETEN retension tape, leave at load point
# I9 MTERASE-> I7 STERASE erase tape, leave at load point
#I10 MTEOM (position to end of media … no ibm equivalent?)
#I11 MTNBSF (backward space file to BOF … no ibm equivalent?)
@iocs = (10,11,12,13,14,6,5,0,8,7);
open(RMT, »|/usr/sbin/rmt ») || die « Can’t open pipe to rmt\n »;
$| = 1;
while (<STDIN>) {
exit 0 if $_ =~ /^[Qq]/;
print RMT $_ ; }
exit 0;
Subject: 1.205: What is tape block size of 0?
Tape devices are generally split into two categories: fixed block and variable block. 1/4″ tape is the fixed block, and 8mm is variable. On a fixed block size device, the kernel always sends data to the device in suitable block size lumps, and varying the size passed to write(2) (e.g., via the bs option to dd) gives the kernel more data to stream. On a variable block size device, the kernel writes to the device whatever passed to it. On an 8mm, it had better be a multiple of 1024 to get efficient tape usage. AIX has the World’s Only Variable Block Size 1/4″ tape drive. If you use SMIT to set the block size to a nonzero value, AIX treats the device as fixed block size, whether it is or not. By default, 8mm drives are set to the same size as 1/4″, 512 bytes. This is wasteful, but otherwise mksysb and installp would fail. If you set the block size to 0, the device is treated as variable block size, and the size passed to write becomes the physical block size. Then if you use a sensible block size to dd, all should be wonderful.
Subject: 1.206: Resetting a hung tape drive
A process accesses the tape drive. The process stops, exits, or whatever, but still hold on to the drive. When this happens, the process cannot be killed by any signal and the tape drive cannot be used by any other process until the machine is rebooted.  The following should help:  RESET:
AIX, like most UNIX systems has no reset function for tape drives. You can however send a Bus Device Reset (a standard SCSI message) to the tape drive using the following piece of code. If the tape drive does not respond to the BDR, then a SCSI Bus Reset will be sent (and this will reset every device on the SCSI Bus). SCSI Bus resets are rather extreme so you should refrain from using this program unnecessarily.  But there are times (like after you’ve inserted a jammed/old/bad tape in an 8mm drive), when there’s no other way to reset the device other than to shutdown and reboot (obviously you can power down and up an external drive to reset it – and this would be the better choice).  This is actually documented in info, but can be hard to find and there’s no complete program.
/* taperst: resets the tape drive by sending a BDR to the drive. */
#include <stdio.h>
#include <fcntl.h>
#include <errno.h>
#include <sys/scsi.h>
int main(int argc, char **argv)
/* This can be run only by root */
if (argc != 2) {
fprintf(stderr, « Usage: %s /dev/rmt#\n », argv[0]);
return 1;
if (openx(argv[1], O_RDONLY, 0, SC_FORCED_OPEN) < 0) {
return 2;
return 0;
Subject: 1.207: How do I restore specific files from a mksysb tape?
To recover specific files from a backup made with mksysb, try
$ tctl fsf 3
$ tar xvf /dev/rmt0.1 ./your/file/name
From: Matt Willman
The procedure changed with AIX 4, which uses backup instead of tar to write the tape. For AIX 4 the procedure is as follows:
$ tctl fsf 3
$ restore -xvf /dev/rmt0.1 ./your/file/name
Subject: 1.209: What can Sysback do for me?
Sysback provides the flexibility of restoring onto the same system in the exact same manner, or onto a completely different system with differnet disk configuration, platform type, kernel, etc, while reporting any inconsistencies and allowing you to adjust to fit. For instance, you will get warnings if a particular volume group cannot be created because the original disks to not exist, or that mirroring cannot be accomplished because there is no longer enough disk space because the disks are smaller. You can then select the disks for each volume group, reduce or add space to filesystems and LVs, exclude entire VGs or filesystems, etc. You can even add and delete mirrors, stripe or un-stripe logical volumes, etc. In addition, all of the Sysback functions can be performed across the network, including network boot and network install, and you can perform striped backups across multipel tape drives, use sequential tape autoloaders, and perform unattended multi-volume backups with cron.
ON AIX 3.2, mksysb does not retain paging space config, disk LV placement, mirroring, etc.
On AIX 4.1, it does these on an EXACT same configuration, but does not allow any flexibility, and still does not retain non-rootvg volume groups (although you can now use additional commands to backupand restore these). mksysb also does not allow you to clone onto different platforms (i.e. rspc -> rs6k -> rs6ksmp).
Subject: 1.210: How can I get my HP 4mm DAT to work?
For HP25470/80A DDS:
MRS disabled: Set switches 3,6,7,8=0 and 1,2,4,5=1
MRS enabled: Set switches 3,6,7=0 and 1,2,4,5,8=1
Subject: 1.211: How do I copy DAT tapes?
If you have two drives try tcopy(1). Otherwise the traditional UNIX approach is ( dd if=/dev/rmt0 bs=1024b | dd of=/dev/rmt1 bs=1024b ) Put that in a while loop using a non-rewinding device to do multiple files. To use drives from two different machines either get the GNU dd (bundled with GNU tar) or use something like.
$ dd if=/dev/rmt0 bs=1024b | rsh hostname dd of=/dev/rmt0 bs=1024b
Subject: 1.212: How do I speed up backups to DLT tapes?
DLT tapes need high data rates to stay in streaming mode. To achieve
higher data rates, use a variable length block size by setting the fixed
length block size to zero. Also use a buffer size of about 64KB for
backup (128 blocks for tar).


1.3 Memory and process management

Subject: 1.303: What is kproc?
kproc (always PID 514 on AIX 3 and PID 516 on AIX 4) is the kernel’s idle process.
Subject: 1.304: How do I create a RAM disk in AIX?
You can’t create a RAM disk in AIX. The closest related functionality the operating system gives you is the RAM disk buffer.
Subject: 1.305: How much RAM (real memory) does my machine have?
As root: bootinfo -r
As any user: lsattr -E -l sys0 -a realmem
lsdev -C -c memory
shows all memory adapters. On MCA systems one may add up the values displayed for each memory card in order to sum up to the amount of total memory. On PCI systems only one item (mem0) is displayed. Additional information may be displayed with lsattr -E -lmem0
These commands were tested on various IBM systems running AIX relases 3.2.5 and 4.1.4
Subject: 1.306: Why do PIDs run non-sequentially?
The answer (I was there, consider me an authority …) is that the PIDs needed to be somewhat unpredictable. This is because AIX was originally designed with a number of C2 and B1 features, and one of those is the notion of covert channel analysis. Sequential PIDs are a covert channel (assuming the system has one PID namespace …) since the value of the « next » PID is shared by all currently running processes. So if I want to sneak some of my classified data out to your co-operating non-classified program, I can do it by carefully controlling the value of the « next » PID.


1.4 Shells, commands, man pages, InfoExplorer

Subject: 1.400: How do I make an informative prompt in the shell?
In the Korn Shell (ksh), the PS1 variable is expanded each time it is printed, so you can use:
$ export myhost=‘hostname‘
PS1=’$LOGNAME@$myhost $PWD \$ ’
to get, e.g.
bengsig@ieibm1 /u/bengsig $
In the C-shell, use:
% set myhost=‘hostname‘
% alias cd ’chdir \!* > /dev/null; set prompt= »$LOGNAME@$myhost $cwd % « ’
% cd
to get, e.g.
bengsig@dkunix9 /u/bengsig/aixfaq %
There is no easy solution in the Bourne Shell. Use the Korn Shell instead.
Subject: 1.401: How do I set up ksh for emacs mode command line editing?
The ksh has an undocumented way of binding the arrowkeys to the emacs line editing commands. In your .kshrc, add:
alias __A=‘echo « \020″‘ # up arrow = ^p = back a command
alias __B=‘echo « \016″‘ # down arrow = ^n = down a command
alias __C=‘echo « \006″‘ # right arrow = ^f = forward a character
alias __D=‘echo « \002″‘ # left arrow = ^b = back a character
alias __H=‘echo « \001″‘ # home = ^a = start of line
Type « set -o emacs » or put this line in your .profile.
Also, you MUST have PTF U406855 for this to work in AIX 3.2. The APAR # for the problem is IX25982, which may have been superseded.
Subject: 1.402: Listing files with ls causes a core dump
Scenario: a directory that is shared by N users (N >= 200).
Run ’ls -l’ in that directory. It goes for a while, then Seg fault(coredump)!
It only occurs when the usernames are displayed (almost every file is owned by a different person). The -g and -n options work fine; only –l and -o (which shows owner and not group) cause it.  I believe that this problem was corrected by U407548. If you have that many users that you are having core dump problems (it took over 200), you might also want to look into getting the PTF that fixes IX31403. That APAR deals with large numbers of accounts and performance problems associated with looking them up.
Subject: 1.403: How do I put my own text into InfoExplorer?
With AIX 3.1, you cannot do it. AIX 3.2 has a product called InfoCrafter that allows you to do that.
Subject: 1.404: InfoExplorer ASCII key bindings
If you just press ’Return’ when it starts up, with ’Basic Screen Operations’ highlighted, you’ll get some help. If you look long enough, you’ll find a page named ’Using Keys and Key Sequences in the InfoExplorer ASCII Interface’. It describes the key sequences and actions. Here are a few to get you started.
Keys Action
Ctrl-W Moves between the Navigation screen and the Reading screen.  If the Navigation screen is displayed, you can press Ctrl-W to display the Reading screen. If the Reading screen is displayed, you can press
Ctrl-W to display the Navigation screen.
Ctrl-O Makes the menu bar active or inactive. If your text cursor is located in the text area of the screen, you can press Ctrl-O to make the menu bar active. If the menu bar is already active, you can press
Ctrl-O to make it inactive, which moves the text cursor to the text area.
Tab Moves to the next menu bar option in the menu bar. If a pull-down menu is not displayed and you press the Right Arrow key, the next menu bar option is displayed in reverse video.
Subject: 1.405: How can I add new man pages to the system?
Put the man pages in /usr/man, e.g. /usr/man/man1/tcsh.1 for the tcsh man page. Under AIX 3.1.10, /usr/lib/makewhatis can be used to update the makewhatis-database /usr/man/whatis so apropos and whatis know about the added manpages. /usr/lib/makewhatis should be available on all 3.2 versions.
For AIX 4.x, you can store the man pages in the /usr/share/man hierarchy.  /usr/lib/makewhatis is still there.
Subject: 1.406: Why can’t I read man pages? Where is nroff?
Nroff and troff aren’t in the base installation. It is shipped as part of AIX 3.2.5 but may not be installed. Use smit to install a software package called txtfmt.tfs.obj from your 3.2.5 distribution media.
In AIX 4.x, you need bos.txt.tfs.
Subject: 1.407: Why is my environment only loaded once?
The .profile file is only loaded once (for your login shell) subsequent shells should be initialized by setting ENV=$HOME/.kshrc (for ksh). Bash users can use $HOME/.bash_profile for the login shell environment and $HOME/.bashrc.
Subject: 1.408: Where is the ’nawk’ command on my AIX system?
The /bin/nawk that exists on many UNIX flavors is a superset of the ’awk’ command, revised by the same original authors to include added functionality. All the extra options normally associated with ’nawk’ on other UNIXes have been incorporated into the AIX version of ’awk’;  the AIX ’awk’ InfoExplorer or man pages include nawk-specific features such as the « -v » command line option and atan2(), rand(), srand(), match(), sub(), gsub(), system(), close(), getline functions.  If your AIX version is missing /bin/nawk (as are most AIX 3.x
versions), the simplest way to get around this and maintain script portability between UNIX platforms is to make a /bin/nawk link to /bin/awk (as root, of course). If you do not have root privilege or do not want to create a /bin/nawk link, to make the script work on different UNIXes, you may have to test ‘uname‘ first and set all ’nawk’ references on AIX runs to /bin/awk. If your script is to only run on AIX systems, you can just change all references of ’nawk’ to ’awk’ and everything should still work okay…but check the AIX awk script on test data prior to making actual runs.
[Editor’s note: AIX 4.x already contains a link from /usr/bin/nawk to /usr/bin/awk.]
Subject: 1.410: Why can’t I set my default shell to one we’ve just installed?
When adding new shells to the system, add them to the « shells= » line in /etc/security/login.cfg so they can be used during ftp and rlogin by users who use them as their default shell.
Subject: 1.411: Why do I get the « Unable to connect socket: 3 » starting Info-Explorer?
It’s a bug in the way infod sets the initial permission on the /tmp/.info-help socket. Do a chmod 777 on /tmp/.info-help and the message will go away.
This problem was fixed by APAR IX43230, PTF U432315

1.6 Networks and communications

Subject: 1.601: How do I trace ethernet packets on an AIX system?
Do the following:
iptrace -i en0 /tmp/ipt
The iptrace backgrounds. Find its process id and kill it when you are ready. Then run
ipreport -rns /tmp/ipt >/tmp/ipr
and look at the output. The current version of Info does not document the r, n and s options but they are quite useful for layering the output.
Subject: 1.602 What is the authorized way of starting automount at boot time?
I put this in my /etc/inittab:
automount:2:once:/usr/etc/automount -T -T -T -v >/tmp/au.se 2>&1
I hereby dub it authorized.
Jim Salter writes: You can also use the command:
’mkitab « automount:2:once:/usr/etc/… »’ to avoid editing the file by hand.
Subject: 1.603: How do I set a tty port for both dial-in and dial-out?
Set the mode of the tty to be either ’shared’ or ’delayed’.
Subject: 1.604: How to move or copy whole directory trees across a network
The following command will move an entire directory tree across a network while preserving permissions, uids and gids.
$rsh RemoteHost « cd TargetDir; tar -cBf – . » | tar -xvBf –
The tar-create is rsh’d to the remote system and is written to stdout (the pipe). The local system is extracting the tar that is being read from stdin (the pipe).
From: abeloni <abeloni@>
Another method is:
rcp -rp host1:/dir host2:/dir
Subject: 1.607: Where is DCE discussed?
DCE is the Distributed Computing Environment, which is roughly a flexible client-server architecture for heterogenous platforms. For more information, take a look in comp.soft-sys.dce.
Subject: 1.608: How do I make /var/spool/mail mountable?
In our cluster we share a /usr/local disk. We have a directory /usr/local/spool/mail and /var/spool/mail is soft-linked to it.
From: fred.Uni-Duisburg.DE (Fred Hucht)
Several problems has been reported on sharing the mail directory via NFS. The problems may occur when two or more sendmail daemons and/or
mail readers access a user’s mail file simultanously, because of NFS’ file locking mechanism.
We use another method here: Every user has one line in his/her xxx@mainserver.domain.name where xxx is the user node and mainserver.domain.name is the full hostname of one of the machines. Then all incoming mail to all machines is forwarded to mainserver, while mainserver ignores this line.
Subject: 1.611: How do I setup anonymous ftp on my AIX system?
Have a look at ’/usr/lpp/tcpip/samples/anon.ftp’. It is a shell script and will set up a anonymous ftp site on your local RS/6000. Note: the ftpd that comes with AIX does not support the display messages every time a user changes a directory or even when they login.
Subject: 1.612: Talk, getting notification.
If you are not getting notification (that someone wants to talk to you), use (swcons ‘tty‘ && mesg y) in one window. There are many variations of ’talk’ and finding compatible versions
for multiple operating systems can be tricky.
Subject: 1.613: Disabling software flow control; using RTS/CTS.
Different versions of AIX 3.2.5 respond differently to attempts to enable flow control (RTS/CTS signals). This section is an attempt to compile a list of different approaches.
The most straight forward is:
chdev -l ttyxx -a rts=yes
[ Note: ix40410 for AIX 3.2.5 should give you this functionality. PTF U426113 and numerous other superceding ptfs should provide this.]
If carrier signal is high (its connected) you can try stty add rts </dev/ttyxx. There is also a program that I first saw on the 800-IBM-4FAX number, also found in INFO that will remedy the situation in some cases. Note that this code ignores the return code from ioctl (which on my machine is <0 🙂
Subject: 1.615: Why can’t non-anonymous users login using WU-FTP?
You must create a file named /etc/shells (this is the real /etc not a subdirectory of your false root), that contains all the shells that are defined on your system. Get the list from /etc/security/login.cfg. Also, if having proper group authentication is important to you, apply the following patch:
— ftpd.c.dist Wed Apr 13 15:17:18 1994
+++ ftpd.c Tue Jan 17 13:29:58 1995
@@ -1153,7 +1153,13 @@
setgroups(NULL, NULL);
&priv, sizeof(priv_t)) < 0 ||
– setuidx(ID_REAL|ID_EFFECTIVE, (uid_t)pw->pw_uid) < 0 ||
+ initgroups(pw->pw_name, (gid_t)pw->pw_gid) < 0 ||
+ setgidx(ID_REAL|ID_EFFECTIVE, (gid_t)pw->pw_gid) < 0 ||
+ setegid((gid_t)pw->pw_gid) < 0) {
+ reply(550, « Can’t set gid (AIX3). »);
+ goto bad;
+ }
+ if (setuidx(ID_REAL|ID_EFFECTIVE, (uid_t)pw->pw_uid) < 0 ||
seteuid((uid_t)pw->pw_uid) < 0) {
reply(550, « Can’t set uid (AIX3). »);
goto bad;
Subject: 1.616: NIS users can’t login, do I need ’*’ in /etc/passwd?
Aparently at least one version of AIX InfoExplorer suggests administrators use « +:*:0:0::: » as the last entry in the /etc/passwd file of NIS clients for security reasons. If the configuration SMIT is done using SMIT it will actually append « +::0:0::: » which works and does not compromise security. Using the ’*’ in the passwd field actaully prevents NIS users from logging in. « +::0:0::: » should not allow you to login as user « + » and without a password even when NIS is disabled, but it never hurts to double check.
Subject: 1.619: What modem settings do I need?
ATQ2 – result codes in originate only
AT&C1 – CD follows state of carrier
AT&D2 – hangup on DTR drop
Subject: 1.620: NIS slave server config with master on different subnet?
Assuming AIX 3.2.5,the master server up and running and the hosts file has the master name defined. On slave do:
1) domainname <domain_name that matches master>
2) startsrv -s ypserv
3) startsrv -s ypbind (ypwhich should return « loopback »)
4) (/usr/sbin/)ypset -d <domainname> <master_server_name> (ypwhich should return « <master_server_name> »
5) (/usr/sbin/)ypinit -s <master_server_name>
6) Put « +::0:0::: » in /etc/passwd after last local login.
Note: InfoExplorer has this entry INCORRECT in some versions.
7) Other cfg files (group, etc) may need configuring but this will get ypserv and ypbind running on the slave looking at the right stuff.
Subject: 1.621: Why does my 64 port concentrator loose data and drop the queue?
This problem has been associated with upgrading machines to 3.2.5. Try changing the values for the « Transmit buffer count » parameter in the printer/plotter setup in smit. You need to experiment with this parameter, to see which value that makes the printer print as fast as possible. If the value is too high, the printers will loose some of the data, and the queue will be disabled. If the value is too low, the printers will print very slowly.
Subject: 1.625: How do I get NFS mounting with Linux to work?
Linux by default requires any NFS mount to use a so called reserved port below 1024 and AIX 4.3 does by default use ports above 1024. You can use the nfso command to restrict AIX to the reserved port range as follows:
nfso -o nfs_use_reserved_ports=1
Subject: 1.626: Telnet takes a 45 seconds to produce a prompt.
This is in nearly all cases a DNS configuration problem, the AIX machine can not resolve the IP address of the node initiating the telnet connection. You can check the DNS reverse mapping by using the nslookup command on the IP number in question, this will probably timeout as well. Make sure that the nameserver lines in the /etc/resolv.conf file point to valid name servers. Some folks have reported that putting the following in /etc/netsvc.conf can help as well (see also Subject: 1.800): hosts=local,bind4


1.7 LVM

Subject: 1.702: How do I make a filesystem larger than 2Gb?
AIX 3.2.5 and preceeding versions are limited to 2 Gigabytes per filesystem. With AIX 4.1 IBM allows filesystems up to 64Gb (reference:  Individual files are still limited to 2Gb. AIX 4.2 allows 128Gb filesystems and 64 Gb files. (See also question 1.706.). If you are having trouble creating a file greater than 1Mb it maybe because that is the default limit for your account, see ’smit users’ or /etc/security/limit.
Subject: 1.703: Chlv warning. Is the first 4k of a LV safe?
The first 4k of a raw LV are used to store control block. Applications that write to the raw disk can overwrite this section (common applications that do this are Oracle and Sybase). Commands that call getlvcb will generate a warning but succeed (since the control block exists in ODM. Don’t run synclvodm unless you really want to erase the first 4k and replace it with the info from the ODM.
(Johnny Shieh) has kindly provided the following explanation:
The logical volume control block (lvcb) is the first 512 bytes of a logical volume. This area holds important information such as the creation date of the logical volume, information about mirrored copies, and possible mount points in a journaled filesystem. Certain LVM commands are required to update the lvcb, as part of completeness algorithms in LVM. The old lvcb area is first read and analyzed to see if it is a valid lvcb. If the information is verified as valid lvcb information, then the lvcb is updated. If the information is not valid, then the lvcb update is not performed and the user is given the warning message:
Warning, cannot write lv control block data
Most of the time, this is a result of database programs accessing the raw logical volumes (and thus bypassing the journaled filesystem) as storage media. When this occurs, the information for the database is literally written over the lvcb. Although this may seem fatal, it is not the case. Once the lvcb has been overwritten, the user can still:
1) Extend a logical volume
2) Create mirrored copies of a logical volume
3) Remove the logical volume
4) Create a journaled filesystem with which to mount the logical volume (note that this will destroy any data sitting in the lvcb area)
However, there is a limitation caused by this deletion of the lvcb. The logical volumes with deleted lvcb’s face possible, incomplete importation into other AIX systems. During an « importvg », the LVM command will scan the lvcb’s of all defined logical volumes in a volume group for information concerning the logical volumes. Surprisingly, if the lvcb is deleted, the imported volume group will still define the logical volume to the new AIX system which is accessing this volume group, and the user can still access the raw logical volume. However, any journaled filesystem information is lost and the logical volume and its associated mount point won’t be imported into the new AIX system. The user must create new mount points and the availability of previous data stored in the filesystem is NOT assured. Also, during this import of a logical volume with an erased LVCB, some non-jfs information concerning the logical volume, which is displayed with the « lslv » command, cannot be found. When this occurs, the system uses default logical volume information to populate the logical volume’s ODM information. Thus, some output from the « lslv » will be inconsistent with the real logical volume. If logical volume copies still exist on the original disks, this information will not be correctly reflected in the ODM database. The user should use « rmlvcopy » and « mklvcopy » to rebuild any logical volume copies and synchronize the ODM. Finally, with an erased lvcb, the output from the « lslv » command might be misleading or unreliable.
Subject: 1.705: Why am I having trouble adding another disk to my VG?
In some instances, the user will experience a problem adding a new disk to an existing volume group or in the creation of a new volume group. The warning message provided by LVM will Not enough descriptor space left in this volume group. Either try adding a smaller PV or use another volume group. On every disk in a volume group, there exists an area called the Volume Group Descriptor Area (VGDA). This space is what allows the user to take a volume group to another AIX system and « importvg » that volume group into that AIX system. The VGDA contains the names of disks that make up the volume group, their physical sizes, partition mapping, logical volumes that exist in the volume group, and other pertinent LVM management information. When the user creates a volume group, the « mkvg » command defaults to allowing the new volume group to have a maximum of 32 disks in a volume group. However, as bigger disks have become more prevalent, this 32 disk limit is usually not achieved because the space in the VGDA is used up faster, as it accounts for the capacity on the bigger disks. This maximum VGDA space, for 32 disks, is a fixed size which is part of the LVM design. Large disks require more management mapping space in the VGDA, which causes the number and size of available disks to be added to the existing volume group to shrink. When a disk is added to a volume group, not only does the new disk get a copy of the updated VGDA, but all existing drives in the volume group must be able to accept the new, updated VGDA. The exception to this description of the maximum VGDA is rootvg. In order to provide AIX users more free space, when rootvg is created, « mkvg » does not use the maximum limit of 32 disks that are allowed into a volume group. Instead in AIX 3.2, the number of disks picked in the install menu of AIX is used as the reference number by « mkvg -d » during the creation of rootvg. For AIX 4.1, this « -d » number is 7 for one disk and one more for each additional disk picked. i.e. you pick two disks, the number is 8. you pick three disks, the number is 9, and so on….. This limit does not mean the user cannot add more disks to rootvg in the post-install phase. The amount of free space left in a VGDA, and thus the number of size of the disks added to a volume group, depends on the size and number of disks already defined for a volume group. However, this smaller size during rootvg creation implies that the user will be able to add fewer disks to rootvg than compared to a non-rootvg volume group. If the customer requires more VGDA space in the rootvg, then they should use the « mksysb » and « migratepv » commands to reconstruct and reorganize their rootvg (the only way to change the « -d » limitation is recreation of the rootvg).
Note: It is always strongly recommended that users do not place user data onto rootvg disks. This separation provides an extra degree of system integrity.
Subject: 1.706: What are the limits on a file, filesystem?
There are other limits but these come up most often. Logical Volumes do not _have_ to contain Journaled File Systems and therefore can be larger than 2GB even in 3.2.5.
File jfs-Filesystem
3.2.5 2GB 2GB
4.1.x 2GB 64GB
4.2 64GB 128GB
While it *might* be possible to create larger file systems, the limits shown here represent values that IBM has supposedly tested.
Subject: 1.708: How do I fix Volume Group Locked?
>From /usr/lpp/bos/README (AIX 3.2.5) and 1.800.IBM.4FAX #2809
If you get ’0516-266 publvodm: volume group rootvg is locked, try again’ or something similar, you can use (putlvodm -K ‘getlvodm -v <vgname>‘)
Subject: 1.710: What are the theoritical limits within the LVM?
LVM Limits within AIX (my perception)
The system may have 1 to 255 Volumes Groups (VG’s).
Each VG may contain 1 to 32 Physical Volumes (PV’s).
Each PV may contain upto 1016 Physical Partitions (PP’s).
Each PP may have a size (square of 2) from 1 to 256MB (1024MB for AIX 4.3).  Therefore, if you can get hold of a 260,096 MB disk (one PV with 1016 x 256MB PPs), you can install 32 of these in a single VG giving you 8,323,072MB per VG. You may have up to 255 VG’s in one AIX system so you could (in theory) create the maximum addressable AIX storage area of 2,122,383,360 MB (2,072,640 GB or 2,024 TB or approx. 2 PB). This is based on the current limitations of AIX V4.1.
The limits for file and filesystem sizes are:
[Editor’s note: the original values in this mail appeared to be slightly wrong, I have corrected that to the values as per my interpretation of the AIX manual.]
AIX V3.2 Max filesystem size: 2,147,483,647 bytes (2 GB)  Max single file size: 2,147,483,647 bytes (2 GB)
AIX V4.1 Max filesystem size: 1,099,511,627,776 bytes (1 TB)  Max single file size: 2,147,483,647 bytes (2 GB)
AIX V4.2 Max filesystem size: 1,099,511,627,776 bytes (1 TB)  Max single file size: 68,589,453,312 (~64 GB)
AIX V4.3 Max filesystem size: 1,099,511,627,776 bytes (1 TB)  Max single file size: 68,589,453,312 (~64 GB)
The 1TB maximum file system size is given by the rule that each fragment must be addressable by an 28 bit number, with the largest fragment size being 4096 bytes (4096*2^28).


1.8 AIX 4.X

Subject: 1.800: How do I control how hostnames are resolved?
Information from AIX 4.1.2 Infoexplorer:
The default order can be overwritten by creating the configuration file, /etc/netsvc.conf and specifying the desired order. Both the default and /etc/netsvc.conf can be overwritten with the environment variable, NSORDER. If either the /etc/netsvc.conf file or environment variable, NSORDER are defined, then at least one value must be specified along with the option.
echo hosts = local,nis,bind >/etc/netsvc.conf
NSORDER=local,bind; export NSORDER


1.9 Miscellaneous

Subject: 1.903: How do I transfer files between AIX and DOS disks?
In the AIX package bos.dosutils are commands for transferring files between DOS diskettes and AIX. The commands are dosread, doswrite, dosdir, dosdel, and dosformat. Many users have mentioned that the mtools package from prep.ai.mit.edu is better than the native AIX programs.
Subject: 1.904: Where is the crypt program?
The crypt *program* (as opposed to the crypt subroutine) has been deleted, probably to conform to U.S. law regarding export of cryptographic technology. Other programs such as PGP are available, but their use and/or possesion may be subject to local laws and regulations. If anyone has a better answer to this question, feel free to contribute it.
Subject: 1.913: How do I determine the clock frequency of a RS/6000 by software ?
The answer seems to be « There is no way to find out the clock frequency with a piece of software ».


Subject: 9.00: Contributors

The following persons have contributed to this list. If you want to contribute anonymously, just let me know – but do tell me who you are. I apologize if I omitted anyone. Thank you all, this would definitely not be the same without _your_ input.
<supprimé par Prod-Info pour éviter le spam des adresses mail>
Opinions expressed here have nothing to do with IBM or my employer. In fact, most of these opinions are borrowed from other people 🙂

All trademarks are the property of their respective owners.


1) Généralités

Les Systèmes SP (Scalable PowerParallel) sont constitués d’un ensemble de systèmes RS 6000 montés en armoire, appelés nœuds. Il y a 128 connecteurs sur un système RS 6000 SP. Un noeud fin occupe un connecteur, un nœud large occupe 2 connecteurs et un nœud haut, quatre.

Chaque nœud SP dispose de sa mémoire, de son système d’exploitation de connecteurs et de disques. Un réseau haut débit, appelé SP switch (avec un débit de 480 Mo/s maximum) permet de relier les nœuds entre eux. Le système SP utilise le logiciel PSSP (Parallel System Support Programs) pour contrôler son environnement.

Le numéro de node se calcule de la manière suivante :
node_number = (frame_number -1) x 16 + slot_number


2) La Control Workstation (CWS)

Les systèmes SP utilisent une station de contrôle nommée CWS (Control WorkStation) pour gérer, surveiller et maintenir la frame SP et ses nœuds.
La CWS (nœud 0) doit être un RS/6000 utilisant AIX.

Les fonctions de la CWS sont : le contrôle et la gestion du hardware, le contrôle et la gestion du software, les services de boot et d’installation, la configuration centrale via SDR database (smitty enter_data).

Les « supervisor card » des nœuds sont chaînées avec la « supervisor card » de la frame qui utilise le lien série (RS-232) pour faire transiter le flux d’informations hardware vers la CWS. Les informations concernant l’administration système utilisent une connexion ethernet.

3) Principe Monitoring System

Comme éléments de la cws, nous pouvons lister :


  • hardmon

– responsable du dialogue avec le hardware

– transmet les commandes au hardware

– reçoit les changements d’états en provenance du hardware

  • splogd

– enregistre les changements d’états des nœuds dans un journal /spdata/sys1/spmon/hwevents


  • hats    sous-système de topologie et surveillance du réseau
  • hags    sous-système de synchronisation et d’échange entre les nœuds
  • haem    sous-système de gestion des évènements

arrêter / relancer les démons HA
syspar_ctrl -R

arrêter les démons HA
syspar_ctrl -D

démarrer les démons HA
syspar_ctrl -A

vérifier l’activation des groupes de services HA

lssrc -g haem
lssrc -g hats
lssrc -g hags


4) Parallel System Support Programs (PSSP)

PSSP est une sur-couche d’AIX permettant l’administration des systèmes SP et qui est accessible via perspectives (management des taches système par manipulation d’objets graphiques).

# export DISPLAY=@IP:0
# perspectives &


5) Utilisation de kerberos

Les frames RS 6000 SP autorisent la configuration de 3 mécanismes d’authentification :
– standard (.rhosts)
– Kerberos v4
– Kerberos DEC v5

Kerberos est un démon qui autorise une communication sécurisée entre la station de contrôle et ses différents nœuds à l’aide d’un ticket d’authentification.

k4list : permet de connaître la validité d’un ticket

k4init root.admin : initialisation d’un ticket d’authentification
pwd = nom de la cws

k4destroy : suppression des tickets dans le cache

Les programmes qui utilisent kerberos : perspectives, spmon, rsh, rcp, sysctl, hmmon, hmcmds, hardmon, s1term

fichiers remarquables
/etc/krb.conf : fichier de configuration
/etc/krb.srvtab : fichier des services utilisés par kerberos
/etc/krb.realms : fichier du royaume (configuration du domaine)

si problème kerberos, vérifier :
– date (- de 5 minutes de décalage entre le client et le serveur)
– /var (kerberos ne peut pas utiliser sa base si /var full)
– la présence des démons (kerberos, kadmind)
– la présence des tickets (# k4list)


6) Commandes


 Commandes  Description
hmcmds [options] command frame:slot | node | all commande de contrôle du hardware
# hmcmds off 1 arrête électriquement le nœud 1
# hmcmds reset 1,5,7-15 reset les nœuds 1, 5 et 7 à 15
s1term frame slot initialise une connexion via le lien série sur un nœud (l’authentification kerberos doit être valide)
# s1term -w 3 1

^x pour sortir d’une session RW
^c pour sortir d’une session read only

connexion série en RW
hmmon [-G][-q][-Q][-r|-s][-v var_nlist][-f file_name|slot_spec] gestion des frames et switchs
# hmmon -G -s -Q 1:0
spmon [-query[-Monitor][-long]|-connect host_name| -Global|-help|-key{normal|secure|service}|-Key|-Led| -power{on|off}|-reset| -mux{i|1|2|3}|-open|-diagnostics] [[-target]target_value…] utilitaire de gestion de la frame et des nœuds
# spmon -power off node5
# spmon -d série de diagnostics
# spmon -L frame1/node5 LEDS du nœud 5
spled [-G][-n title][-p][-r pollrate][-b background color][-l][-h] informations sur les codes LED d’un nœud
# export DISPLAY=@IP:0
# spled &
splstdata {-A|-n|-s|-b|-a|-u|-v |-g |-h|-i|-d|-x} [-G][{start_frame start_slot {node_count|rest}|-N node_group|-l node_list}] fournit des informations sur les données de la base SDR (smitty list_data)
# rlogin cwsname -l username
# splsdata -n
# s1term -w FrameID SlotID
# spmon -open nodex
Procédure pour se connecter à une console via une CWS
# more /etc/SDR_dest_info nom de la station de contrôle + @IP à partir d’un nœud

Procédure de prise de DUMP sur nœud SP2

 Commandes  Description
# rlogin cws_name -l username se connecter sur la cws
# splstdata -n trouver slot/node/frame
# export DISPLAY=@IP:0 exporter son display
# spled & lancer spled
# spmon -reset nodeX
# sysdumpdev -L forcer le dump du nœud X
# smitty dump

Copy a System Dump from a Dump Device to a File
Copy Dump image to /var/adm/ras/dump_file_copy

# snap -ac création de /tmp/ibmsupt/snap.pax.Z

DUMP status code

0c0    The dump completed successfully
0c1    An I/O error occurred while taking the dump
0c2    A user-initiated dump is in progress
0c4    The dump device was too small but the dump may still be usable. If zero bytes are written and 0c4 is displayed, it means the dump device was large enough but the system was hung and not able to initiate a dump
0c5    An internal error occurred while taking the dump
0c6    Prompts you to make the secondary dump device available
0c7    The dump facility is waiting for a response from the NFS (Network File Server)
0c8    No dump device is defined
0c9    A system-initiated dump is in progress
0cc    The dump facility has switched to the secondary dump device

Problèmes TNG

Sélection de problèmes et de solutions sous Unicenter TNG 2.4

1)    Problèmes de bases

  • La création d’un base plante

→ Vérifier les droits, le groupe et la propriétaire du fichier cadb dans :$CAIGLBL0000/cadb/manager/calnm/cadb

→ Vérifier qu’il ne reste plus rien concernant la base à reconstruire dans ce fichier

→ Vérifier que le répertoire où doit être reconstruit cette base est bien vide


2)    Problèmes de calendrier

  • Tous les jobs restent en Wait Ressource (WRSC)  

L’autosub est à OFF , s’il n’a pas été arrêté volontairement :

→ Vérifier que le calendrier existe bien

→  Vérifier que le calendrier est bien défini

→  Vérifier que le démon calendrier est bien lancé

# ps -ef | grep cal

# unistart cal (unishutdown cal pour l’arrêt)


  • Un utilisateur ne peut pas se connecter

→  Vérifier que le calendrier associé à cet utilisateur est bien défini

→  Vérifier que le démon calendrier est bien lancé


  • Un job ne se lance pas

→  Vérifier que l’utilisateur exécutant le commande (subuser du jobparm) n’a pas un problème de calendrier qui l’empêcherait de se connecter

→  Vérifier que le démon calendrier est bien lancé

NB : On ne parle ici que des exceptions, Il faut toujours vérifier les choses les plus simples en 1er lieu : noms des calendriers, existence des calendriers etc.


3)    Problèmes de CCI

  • Impossible de se connecter, pas d’interface graphique, pas de ping, etc.

→ Vérifierla connexion CCI

→ Vérifier que la machine se connaît elle-même :

– Vérifier le fichier /etc/hosts

– Exécuter la commande ‘uname –a’ : si pas de nom de machine alors problème système

– Vérifier le fichier de configuration ccirmtd.prf dans $CAIGLBL000/cci/config/<MACHINE>

NB : Comment créer une liaison CCI entre  deux serveurs unix

Editer les fichiers CCIRMTD.PRF (sur chacune des stations) et définir une station en startup et l’autre en nostart.

Faire un kill –3 sur le processus ccirmtd (faire ps –ef | cci pour connaître le numéro de processus).


4)    Problèmes d’ENF

  • Message d’erreur au  démarrage

exec(): 0509-036 Impossible de charger le programme /bnp/unicenter/cci/bin/caiccid en raison

des erreurs suivantes

0509-023 Symbole caienfk dans /usr/local/CAlib/libenf.o non défini.
0509-022 Impossible de charger la bibliothèque /usr/local/CAlib/libpig.o

L’ENF n’est pas rattaché au noyau.

→ Dans ce cas il faut tout arrêter, réinstaller les « hooks » et tout relancer

Pour réinstaller les « HOOK », exécuter le script


5)    Problèmes d’OPR (event Manager)

  • Plus de  logs  OPR

Sur UNIX plusieurs causes possibles :

– Le système de fichier est plein

→ il faut supprimer des logs.

– Le démon CAIOPR et tombé

→ arrêter l’OPR, vérifier avec la commande « ps » que le processus est bien absent et relancer l’OPR.

– problème lié à l’OPR : un message action ne fonctionne pas donc les actions liées à ce message action ne s’effectuent plus ; problèmes potentiels de lancement de jobs.

→ Arrêter proprement, vérifier la présence du processus (kill –9 si nécessaire)  et redémarrer l’OPR.


6)    Problèmes de sécurité

  • Un script d’accès à la base sécurité reste bloqué

→ Exécuter la commande ‘unifstat’, si il y a des db_server orphelins faire unidbclr pour nettoyer la base et supprimer les orphelins, puis recycler la sécurité par unicycle sécu.

  • Un job ne se lance pas

L’utilisateur qui exécute le job est suspendu ou n’a pas le droit de se connecter

→ vérifier le calendrier de l’utilisateur & du job

→ vérifier si les intercepts sont positionnés

→ vérifier si l’utilisateur existe, s’il n’est pas suspendu et s’il a bien le droit de se connecter


7)    Problèmes du STAR SERVER

  • Problème avec l’interface graphique à la connexion

→ Recycler le star server via la commande ‘uncycle star’


8)    Problèmes avec le Workload

  • Les jobs restent en Wait Ressource (WRSC) 

– Ils sont en attente d’une ressource (normal)

– L’autosub a été passé à OFF manuellement (voulu)

– L’autosub est passé à OFF lors de l’autoscan (problème calendrier, voir plus haut)

– La station (Si 1 ou 2 jobs en WRSC) est mal ou pas définie, (le nœud vers lequel doit pointer la station est le nom long de la machine).


  • Les jobs ne passent pas en complete & restent figés

Le  workload ne répond plus

→ Recycler le composant ‘unicycle sche’


  • Les jobs restent en start

Problème avec l’exit main et l’exit last

→ exécuter ‘enfcontrol 105’ pour connaître le type de configuration

→ s’il s’agit d’un job ayant un rapport avec des bases de données, alors il faut correctement configurer l’EXIT (MAIN/LAST)


9)    Problèmes avec les Triggers

  • Le trigger ne se déclenche pas

→ Vérifier que l’utilisateur qui a défini le trigger est bien le même que celui qui effectue la fermeture de fichier

→ Si le fichier est attendu sur un système de fichier monté (NFS), vérifier que la variable usestat=YES dans la définition du Trigger pour autoriser le montage NFS

→ Si le trigger doit se déclencher plusieurs fois, il ne doit pas avoir de calendrier

[TNG/NSM] Lancer un job plusieurs fois par jour, à réception d’un fichier

Le but est d’ordonnancer le lancement d’un script sur tng / nsm, plusieurs fois par jours et uniquement à réception d’un fichier (ici via CFT)

[validé ≤ NSM 3.1]

1) Créer un trigger pour la réception du fichier

Ce trigger ne doit pas avoir de calendrier pour ne jamais passer en état « completed ».

La réception du fichier ne fait qu’envoyer un trap dans la conlog, exploité par le message action (cf. 2))

Exemple de script de création du TRIGGER :


echo « definition du trigger ttrigtest »

cautil delete trigger id= »(ttrigtest,DSCLOSEU) »

cautil define trigger id= »(ttrigtest,DSCLOSEU) » \

        filename= »/test/cft/transfert/IN/test.xls » \

        station=sta_hostname \

        backlog=n \

        autosel=yes \

        user=cft \

        desc= »(‘Trigger de Test) »

2) Créer le message action qui force donc le job à réception du fichier

 Exemple de script de création du MESSAGE ACTION :


echo Force du job d’un envoi automatique de mail

cautil delete   msgrec  msgid= »‘.CASH_I_0023 DSCLOSEU Trigger ttrigtest, ‘ »

cautil define   msgrec  msgid= »‘.CASH_I_0023 DSCLOSEU Trigger ttrigtest, ‘ » \

                continuescan=Y \

                desc= »‘Arrivée du fichier de test (IDF=IDFTEST1)' » \


cautil define   msgact name='(*,10)’ \

                action=UNIXSH \

                text= »‘cautil force tjob id=xjobset,xjob01,01′ »                   # => commande forçant le tjob

echo « \n######################################### »

echo Rechargement des messages en mémoire

oprcmd opreload

echo « ######################################### »

3) Créer le JOBSET / JOB

Mettre le job en HOLD, ainsi il ne pourra être déclenché qu’en étant forcé.

Exemple de script de création du JOBSET / JOB :


echo Jobset xjobset

cautil delete jobset id=xjobset

cautil define jobset id=xjobset \

 station=sta_hostname \

 sett=CPU \

 hist=30 \

 abend=ABORT \

 failc=’0001,9999′ \

 cal=cal_tlj \

 autosel=Yes \

 anyc=NO \

 backlog=No \

 hold=NO \

 userenv=Y \

 desc= »( ») »


echo Job xjob01

cautil define job id='(xjobset,xjob01,01)’ \

 jobt=CPU \

 hist=30 \

 cal=cal_tlj \                                         => calendrier

 abendaction=ABORT \

 maxtime=00:15:00 \                            => durée maximale du job

 failc=’0001,9999′ \                               => codes erreurs

 autosel=YES \

 anyc=NO \

 backlog=YES \                                      => purgé à l’autoscan même si non terminé

 hold=YES \                                           => le job ne pourrait être exécuté que s’il est forcé

 description= »(Envoi d’un mail automatique à réception du fichier de test (IDF CFT = IDFTEST1) »

echo Parametres du job xjob01

cautil define jobparm id='(xjobset,xjob01,01)’ \

 subf=’/prod-info/exploit/tng/scripts/xjob01.sh’ \


Quels sont les langages de script les plus connus ?

Le langage de script est un langage composé de cote destiné à la programmation. Il permet notamment de manipuler le système informatique qui contrôle l’application d’un programme grâce à des modifications plus ou moins faciles à réaliser. Grâce à ce langage de programmation, il devient plus facile de modifier l’exécution d’un programme ou d’une application sur un ordinateur.

Les langages basiques

Parmi les langages de script les plus utilisés, on peut citer :
– Le langage C offrant une grande liberté et un bon exercice de débouage, il est également idéal pour la programmation de système
– Le langage C ++ qui est une version améliorée du langage C. Il permet également une programmation de système, mais est surtout adapté aux grands projets comme la création de jeux ou d’applis
– Le langage C#, un concurrent de Java, mais avec une version plus moderne et surtout destinée aux applications de bureau ou du web
– Le langage Java qui remplace C++ puisqu’il est conçu pour être portable. Il peut être idéal pour la manipulation d’applications multiplateformes ainsi que les services web et applications mobiles sous Android
Il est à noter que le langage C# peut être compilé en JavaScript à condition d’être un DuoCode.

Les langages les plus utilisés

Parmi les langages de script les plus utilisés, on peut citer :
– PHP qui est conçu pour être inséré dans un HTML afin de construire des pages web dynamiques à partir d’une base de données. Côté serveur, il permet le scripting
JavaScript a été spécialement inventé pour créer des pages web dynamiques, mais côté client et non côté entreprise. ECMAScript est sa version standard. Il est généralement utilisé pour ajouter l’interactivité dans les pages web et les interfaces
– TypeScript est la version plus moderne de JavaScript. Il permet notamment de réaliser des applications sous JavaScript, mais en grande taille

Des versions modernisées de langage

Une fois que vous connaissez les langages de base comme C et utilisez un langage spécifique comme TypeScript ou JavaScript, il vous faudra également connaitre quelques autres langages utilisés, mais qui sont des versions plus modernes :
– Le langage D qui est un C modernisé avec plus de possibilités et une gestion mémoire permettant la programmation de système
– Scriptol, langage simple, universel et disposant d’une syntaxe intuitive. Il combine notamment les langages C++ et PHP et destinées aux applications web et à la robotique
– CoffeeScript qui est un frontend à JavaScript. D’ailleurs, il peut être compilé avec ce dernier pour une meilleure programmation d’applications web et Node.js
– XML n’est pas vraiment un langage, mais peut être utile pour les tâches similaires comme l’analyse des données, l’intégration des actions dans les données ou la transformation de document

Quels sont les logiciels Windows phone les plus populaires ?

Pour profiter au maximum des fonctionnalités de votre Windows Phone, vous pouvez télécharger des applications gratuites et plutôt pratiques. Afin de vous mettre dans la tendance, il convient également de vous faire part des logiciels les plus populaires auprès des utilisateurs.

Les plus utilisées

Pour commencer, sachez que votre Windows phone possède des performances très élevées ce qui le rend idéal pour l’utilisation de logiciels et d’applications en tout genre. Afin de vous donner une large idée des logiciels les plus populaires, nous avons sélectionné pour vous une liste de ceux que les utilisateurs téléchargent et emploient les plus. Parmi eux, on peut citer :
WhatsApp pour une communication via les SMS ou les appels en ligne gratuits
– Fichiers qui est un gestionnaire des fichiers (photos, documents, vidéos…)
– Subway Surfers distribué par Kiloo
– Fifa 15 Ultimate Team
– Sonic Dash
– VLC media player
– Pedometer Master
– Lumia Seflie

Des applications gratuites pour rester connecter

Il faut également noter que votre Windows phone peut supporter de nombreuses applications qui pourront vous servir dans la vie de tous les jours. Pour consulter les réseaux sociaux, les classiques restent les mêmes : Facebook et Facebook Messenger, Twitter et Instagram.
Si vous souhaitez garder le contact avec vos proches, Skype est le logiciel à avoir, mais vous pourrez l’échanger contre Viber selon vos envies et vos préférences. Bien entendu, WhatsApp reste la solution optimale sur un Windows phone. Vous pouvez également bénéficier d’un logiciel d’Hangouts sur votre smartphone.
Pour la navigation sur Internet, Opera Mini reste la solution idéale, toutefois, avec un Windows phone sous Windows 10, vous pourrez utiliser Microsoft Edge afin de profiter de toutes les fonctionnalités proposées par Microsoft. UC browser peut aussi servir si vous souhaitez naviguer en toute sécurité.

Des applications pour la vie de tous les jours

Généralement, le Windows phone possède un espace de stockage assez peu ce qui ne vous donne pas l’occasion d’y mettre toute votre bibliothèque musicale. Si vous cherchez une solution d’écoute en streaming, Spotify et Deezer vous sont recommandés. Les deux logiciels disposent d’une offre gratuite et d’un abonnement premium payant.
Pour regarder des vidéos en ligne ou télécharger vos vidéos préférées, Dailymotion, Tube HD et Netflix sont les applis à avoir sur votre smartphone. Enfin pour suivre en live les actualités, pensez à installer Flipboard, Fuse ou FeedLab sur votre téléphone.
Pour consulter librement et rapidement vos mails, Outlook est la solution idéale, mais MyMy Email peut aussi être une alternative intéressante.

Tutoriel : comment installer Windows 10 ?

Quelle que soit la version de Windows que vous souhaitez installer, la première étape d’une installation consiste à créer un support d’installation DVD ou clé USB puis à démarrer l’ordinateur dessus. L’installateur se charge ensuite de copier tous les fichiers et logiciels nécessaires permettant à votre PC de démarrer sous Windows.

Les premières étapes

Pour mener à bien votre projet d’installer Windows 10, le processus d’installation repose sur plusieurs étapes :
– Le téléchargement du fichier ISO contenant le programme d’installation de Windows
– La création de la clé USB d’installation
– Le démarrage de l’ordinateur sur la clé USB ou le DVD afin de lancer l’installation
Par la suite, vous n’aurez juste qu’à suivre les indications qui apparaissent au cours du processus d’installation. Par ailleurs, sachez qu’il s’agit d’un logiciel payant donc avant de pouvoir l’utiliser, vous devrez acquérir une licence de Windows pour activer le système d’exploitation. Si vous sautez cette étape, certaines fonctionnalités seront inaccessibles.

Démarrer le support d’installation

Une fois que votre support d’installation de Windows 10 (DVD ou clé USB) est prêt, vous allez démarrer votre ordinateur sur le support. Cela peut prendre un certain temps, mais une fois lancer, le support fera apparaitre un champ pour sélectionner la langue. Choisissez puis cliquez sur Suivant ensuite sur Installer Maintenant. Saisissez ensuite le support d’installation puis cliquez sur Suivant. En général, Windows 10 charge la licence et active automatiquement votre version. Vous devrez alors accepter la licence d’utilisation, d’ailleurs cette phase d’engagement est obligatoire pour pouvoir continuer. Lisez les conditions d’utilisation puis cochez la case « J’accepte les termes du contrat de licence ». Cliquez ensuite sur Suivant.
Il est bon de savoir que choisir le type d’installation et le partitionnement de disque est une étape primordiale puisqu’elle permet d’effectuer une mise à niveau sous Windows 10 ou d’installer uniquement Windows pour les nouvelles machines.

La suite de l’installation

Le choix de la partition de disque sur laquelle vous allez installer votre Windows 10 est important. Si vous n’avez qu’une seule partition, cela rend le choix plus simple. Une fois que cette étape est réalisée, l’installation et la copie des fichiers commencent. L’installation peut prendre une dizaine de minutes et l’ordinateur peut également redémarrer plusieurs fois, pas de panique !
Une fois l’installation terminée, vous devrez paramétrer votre système d’exploitation : synchroniser les données, remplir le dossier utilisateur, paramétrer les fonctionnalités, etc. En cas de problème, n’hésitez pas à demander l’assistance d’un connaisseur pour éviter tout risque d’endommager votre système tout neuf !

Quelles sont les différentes versions de Windows ?

De nos jours, les NTIC connaissent un essor considérable. Ne pas savoir s’en servir est semblable à être illettré. En effet, un ordinateur est doté d’un système d’exploitation sans quoi il ne pourrait pas fonctionner. Parmi tant d’autres, Windows fait partie des plus prisés dans le monde, développant plusieurs modèles, de Windows 1.0 à Windows 10.

Les diverses versions de Windows

Il est vrai que Windows est répandu sur la majorité des ordinateurs, en concurrence avec les systèmes Linux et MAC OS. C’est une interface graphique regroupant une multitude de systèmes d’exploitation à part entière, consacrés aux ordinateurs. Nombreuses sont, par ailleurs, les versions de Windows qui se sont alternés jusqu’à présent.
Les modèles en 16bits Windows 1.0 sortirent en 1985, s’en suivirent d’autres, Windows 2, 2.1, 2.11, 3.0, 3.1, 3.1 for Workgroups, 3.11 for Workgroups, 3.2 for Workgroups (en chinois) ; les modèles en 32bits dont successivement Windows 95, 95 OSR2, 98, 98SE, Windows Me ; les modèles NT allant de Windows NT 3.1, 2000, Windows XP avec ses sous-variétés (familiale, Professional, x64…), Vista, Windows 7, jusqu’à Windows 10. En outre, chaque système d’exploitation a un plus qui le distingue des autres (interface, applications, faciles à manipuler…). Le choix appartient à chacun.

Comment savoir quelle version choisir ?

Il est nécessaire de connaitre la performance de votre machine pour pouvoir opter pour telle ou telle version. Un ordinateur à faible processeur, RAM, graphique, ne peut être compatible avec les récents modèles de Windows. Ainsi, le choix dépend à priori de votre budget, car il est vrai que le prix d’un PC varie selon ses capacités. Plus il est performant, plus il revient cher.
Par ailleurs, le nombre de bits est aussi essentiel à considérer. Un processeur de 32bits peut gérer un 64bits en 32bits tout en étant compatible avec le 32 bits. Les modèles en 16bits ne sont pas conciliables avec le 32 bits et le 64bits dont Windows XP fut le premier à l’administrer. En outre, avec l’évolution de la technologie, certains modèles doivent gérer des périphériques plus modernes comme le WiFi, une fonctionnalité plus adaptée à Windows 7 ou Vista.

Avantages de Windows

Lors de l’achat d’un ordinateur, à part le coût, le choix du système d’exploitation est parfois un vrai casse-tête, vu que chacun présente des avantages et inconvénients. Votre sélection peut se porter aussi bien sur Linux, Mac OS ou Windows, cela dépend de vos besoins ainsi que de votre niveau en informatique. Professionnellement parlant, Mac OS de Apple est une option à saisir avec un design attractif et également une large gamme de modèle, mais plus couteux.
Si vous êtes plus utilisateur de logiciel libre, Linux est la solution idéale. Il est facile à installer aussi bien sur PC que Mac. Windows offre un nombre de logiciels et jeux développés phénoménal. Voilà pourquoi, il est le plus adapté au grand public. Avec ses nombreuses versions, depuis Windows 1.0, jusqu’à Windows XP qui a fait sa révolution, l’accès au système est facile et convivial. Aujourd’hui, Windows 10 offre encore une meilleure aisance dans son utilisation.