home *** CD-ROM | disk | FTP | other *** search
/ ftp.pasteur.org/FAQ/ / ftp-pasteur-org-FAQ.zip / FAQ / aix-faq / part1 next >
Encoding:
Internet Message Format  |  2000-11-03  |  66.3 KB

  1. Path: senator-bedfellow.mit.edu!bloom-beacon.mit.edu!newsfeed.utk.edu!news-hog.berkeley.edu!ucberkeley!newsfeed.stanford.edu!xfer10.netnews.com!netnews.com!newsfeed.skycache.com!Cidera!nntp-out.teleweb.pt!news.teleweb.pt!not-for-mail
  2. From: bofh@mail.teleweb.pt
  3. Newsgroups: comp.unix.aix,comp.answers,news.answers
  4. Subject: comp.unix.aix Frequently Asked Questions (Part 1 of 5)
  5. Supersedes: <aix-faq-1-973024721@mail.teleweb.pt>
  6. Followup-To: comp.unix.aix
  7. Date: 2 Nov 2000 15:25:22 +0100
  8. Organization: What ?
  9. Lines: 1720
  10. Approved: news-answers-request@mit.edu
  11. Distribution: world
  12. Expires: 07 Dec 2000 15:25:21
  13. Message-ID: <aix-faq-1-973175121@mail.teleweb.pt>
  14. Reply-To: bofh@mail.teleweb.pt (Jose Pina Coelho)
  15. NNTP-Posting-Host: p140a55.teleweb.pt
  16. X-Trace: srvlis16.teleweb.pt 973175690 1010 212.16.140.55 (2 Nov 2000 14:34:50 GMT)
  17. X-Complaints-To: abuse@teleweb.pt
  18. NNTP-Posting-Date: 2 Nov 2000 14:34:50 GMT
  19. Summary: This posting contains AIX Frequently Asked Questions
  20.          and their answers.  AIX is IBM's version of Unix.
  21. Keywords: AIX RS/6000 questions answers
  22. Xref: senator-bedfellow.mit.edu comp.unix.aix:191688 comp.answers:42946 news.answers:195007
  23.  
  24. Posted-By: auto-faq 3.3 (Perl 5.005)
  25. Archive-name: aix-faq/part1
  26. Revision: 1.28 2000/10/10 21:01:28
  27. Posting-Frequency: monthly
  28.  
  29. Frequently Asked Questions about AIX and the IBM RS/6000
  30. __________________________________________________________________
  31.  
  32. This posting contains frequently asked questions and answers about the
  33. IBM RS/6000 series workstations and AIX versions 3 and 4. All input is
  34. very welcome, I can be reached at <mailto:bofh@mail.teleweb.pt>.
  35.  
  36. The list is split into five articles to pass thru most mailers. I'll
  37. usually try to post them once a month to comp.unix.aix, news.answers,
  38. and comp.answers. Please let your input continue as I am most thankful
  39. for all of it.
  40.  
  41. This FAQ is available from (see section 6.08 for more sites):
  42.  
  43. <http://www.emerson.emory.edu/services/aix-faq/>
  44. <http://www.faqs.org/faqs/aix-faq/>
  45. <ftp://rtfm.mit.edu:/pub/usenet/news.answers/aix-faq/part1>
  46. <ftp://mirrors.aol.com:/pub/rtfm/usenet-by-hierarchy/comp/unix/aix>
  47.  
  48. The Adobe Acrobat PDF version of the FAQ is available at:
  49.  
  50. <http://www.han.de/~jum/aix/aixfaq.pdf>
  51.  
  52. Thanks to Jonathan S. Stibal for converting it to PDF.
  53.  
  54. Please make a note of the fact that these sites contain more than just
  55. the AIX FAQ and would probably be worth consulting before you post
  56. questions to any of the usenet groups.
  57.  
  58. If you see a From: line it means that whatever follows is either an
  59. unabridged or slightly edited version of the input I have received, and
  60. that I may not have verified its contents. If there is no From: line, I
  61. probably know what I am talking about, and the entry is edited from
  62. various sources.
  63.  
  64. All entries are numbered with major and minor subject number, e.g. 
  65. 2.11. If the subject is preceded by an asterisk, that entry has been
  66. changed or added since the last posting.
  67.  
  68. The comp.unix.aix group is for AIX on all platforms -- RT, PS/2,
  69. 370, RS/6000, Bull, Apple, Motorola, etc., and mainframes
  70. (ESA based on OSF/1), but the traffic has
  71. evolved to discuss predominantly AIX 3.x, 4.x, and the RS/6000. The
  72. newsgroups comp.sys.ibm.pc.rt and comp.sys.ibm.ps2.hardware cover the
  73. RT, mostly hardware and AOS 4.3, and on PS/2 hardware respectively. 
  74. Mark Whetzel posts FAQ lists about RTs in the rt and *.answers groups.
  75. There are few to non-existent discussions on AIX/370 and AIX/ESA.
  76.  
  77. If you post questions to comp.unix.aix, please be sure to indicate:
  78.  
  79. - the machine type and brief configuration, e.g. Model 540, 64 MB RAM,
  80.   48 MB swap space (this is actually bad), 1.2 GB XYZ hard drive, etc.
  81.   Note: There are now five classes of RS/6000s - the original, RS or
  82.   POWER, RSC (POWER-Single Chip), RS/2 or POWER2, PowerPC and  Power3.
  83.  
  84. - the exact AIX version number, i.e. AIX 3.1 is NOT sufficient, whereas
  85.   AIX 3.1.5 or AIX 3.1 with the 3005 update is. With 3.2 you should
  86.   mention any significant ptfs using the U4xxxxx numbers.  With 4.r.m,
  87.   please mention version (4), release (r), modification (m) and
  88.   maintenance level, also if aplicable, any significant APAR numbers.
  89.  
  90. I am doing this on my own time. PLEASE DO NOT ASK ME QUESTIONS THAT
  91. THAT SHOULD BE ASKED OF IBM. If you suspect you have software defect problems
  92. call (800) 237-5511. If you have hardware problems call (800) IBM-SERV.
  93. If you are outside the United States, contact your local IBM representative.
  94.  
  95. PLEASE DO NOT ASK ME QUESTIONS THAT SHOULD BE POSTED TO comp.unix.aix.
  96. I don't have the time to diagnose individual AIX problems,  and I
  97. probably don't know the answer either.  ;-)  Many experienced and
  98. knowlegable people read the newsgroup.  Post your question there.
  99.  
  100. ------------------------------
  101.  
  102. Table of contents:
  103.  
  104. 1.0    General concepts
  105. 1.000  The AIX operating system - what is it?
  106. 1.001  I know neither Unix nor AIX - where do I find more information?
  107. 1.002  What is the Object Database?
  108. 1.003  How do I get rid of the verbose error messages?
  109. 1.004  Which release of AIX do I have?
  110. 1.005  What hardware do I have?  What is availible?  WITS?
  111. 1.006  Is IBM "dropping" AIX?  AIX 3 discontinued.
  112. 1.007  Is IBM "dropping" AIX? AIX 4.1/4.2 discontinued.
  113. 1.008  e-Server pSeries (Is IBM "dropping" RS/6000 ?)
  114. 1.009  Monterey / AIX 5L              
  115.  
  116. 1.1    SMIT, system administration
  117. 1.100  I am used to Unix systems programming, why should I learn SMIT?
  118. 1.101  How do I turn off the "running man" in smit?
  119. 1.102  How do I import an /etc/passwd or /etc/group file from another box?
  120. 1.103  Cleaning up utmp, who, and accounting problems
  121. 1.104  How to fsck the root filesystem
  122. 1.105  How can I unmount /usr to run fsck on it?
  123. 1.108  How do I see/change parameters like number of processes per user?
  124. 1.109  How do I shrink the default paging space on hd6?
  125. 1.110  The swapper seems to use enormous amounts of paging space, why?
  126. 1.111  How much paging space do I need?
  127. 1.112  How do I mount a floppy disk as a filesystem?
  128. 1.113  How do I remove a committed lpp?
  129. 1.114  How can I recover space after installing updates?
  130. 1.115  Where are the AIX log files kept?
  131. 1.116  How can I log information about ftp accesses to a file?
  132. 1.117  How do I find a file name from the inode number?
  133. 1.118  How do I set up postscript accounting?
  134. 1.119  How do I create boot diskettes?
  135. 1.120  Where can I find tools for performance monitoring?
  136. 1.121  How can I tell what virtual printer a print queue is using?
  137. 1.122  Two srcmstr's are less useful than one?
  138. 1.123  How do I set the tty name associated with a physical port?
  139. 1.124  How do I use mksysb to clone a system?
  140. 1.125  How do I retain timestamps with mksysb?
  141. 1.126  How can I find out the machine type?
  142. 1.127  Updating to 3.2.5
  143. 1.128  AIX fix strategy
  144. 1.129  Are passwords limited to 8 char?
  145. 1.130  How do I increase the number of ptys > 64?
  146. 1.131  Where can I find patches for CERT Advisories?
  147. 1.132  How do I remove a non-existant physical volume?
  148. 1.133  How do I kill a process that ignores kill -QUIT -KILL -STOP?
  149. 1.134  How can I see "console" messages?
  150. 1.135  Where can I find TOP for AIX?
  151. 1.136  How can I restrict root logins to specific terminals?
  152. 1.137  How do I merge my /etc/password and /etc/security/password for Crack
  153. 1.138  I lost the root password, what should I do?
  154. 1.139  How can I resolve DEV_WAIT status for a local print queue?
  155. 1.140  SMIT problems forcing/overwriting install?
  156. 1.141  Which distribution tape do I have?
  157. 1.142  How can I get PTF (fixes) via ftp?  What is fixdist?
  158. 1.143  Is there an easy way to determine if AIX has a PTF applied or not?
  159. 1.144  How do I recreate a deleted /dev/null?
  160. 1.145  What is a checkstop error?
  161. 1.146  How do I recover deleted files?
  162. 1.147  What questions are on the AIX Certified User/SystemAminstrator/etc.,
  163.        exam?
  164. 1.148  How can I run a command or commands automatically at system
  165.        shutdown?
  166. 1.149  How to install LPPs on a shared disk?
  167. 1.150  How can I reduce the size of /var/adm/wtmp ?
  168. 1.151  How do I start local daemons at system startup?
  169. 1.152  How do I set the TZ variable to automatically change to daylight
  170.        savings time?
  171. 1.153  Why does init not reap its zombie child processes?
  172. 1.154  I'm looking for a missing command or header file.
  173.        Which fileset do I need to install?
  174. 1.155  Why doesn't the df -k output reflect the space I added
  175.        to an LV?
  176.  
  177. 1.2    Backups, tape
  178. 1.200  Some info about tape backups
  179. 1.201  How do I do remote backup?
  180. 1.202  How do I backup a multi-disk volume group?
  181. 1.203  How do I put multiple backups on a single 8mm tape?
  182. 1.204  How can I make an exact duplicate of a tape over the network?
  183. 1.205  What is tape block size of 0?
  184. 1.206  Resetting a hung tape drive...
  185. 1.207  How do I restore specific files from a mksysb tape?
  186. 1.208  How do I read a 5Gbyte tape on a 2Gbyte drive?
  187. 1.209  What can Sysback do for me?
  188. 1.210  How can I get my HP 4mm DAT to work?
  189. 1.211  How do I copy DAT tapes?
  190. 1.212  How do I speed up backups to DLT tapes?
  191.  
  192. 1.3    Memory and process management
  193. 1.300  Some info about the memory management system
  194. 1.301  How much should I trust the ps memory reports?
  195. 1.302  Which simms do RS6000's use?
  196. 1.303  What is kproc?
  197. 1.304  How do I create a RAM disk in AIX?
  198. 1.305  How much RAM (real memory) does my machine have?
  199. 1.306  Why do PIDs run non-sequentially?
  200.  
  201. 1.4    Shells, commands, man pages, InfoExplorer
  202. 1.400  How do I make an informative prompt in the shell?
  203. 1.401  How do I set up ksh for emacs mode command line editing?
  204. 1.402  Listing files with ls causes a core dump
  205. 1.403  How do I put my own text into InfoExplorer?
  206. 1.404  InfoExplorer ASCII key bindings 
  207. 1.405  How can I add new man pages to the system?
  208. 1.406  Why can't I read man pages?  Where is nroff?
  209. 1.407  Why is my environment only loaded once?
  210. 1.408  Where is the 'nawk' command on my AIX system?
  211. 1.409  How do I copy InfoExplorer (manpages and more) to my hard drive?
  212. 1.410  Why can't I set my default shell to one we've just installed?
  213. 1.411  Why do I get the "Unable to connect socket: 3" starting Info-Explorer?
  214. 1.412  Why can't I write a setuid shell script?
  215.  
  216. 1.5    Video, Graphics, X11
  217. 1.500  Which release of X11 do I have?
  218. 1.501  How to prevent ctrl-alt-backspace from killing the X session
  219. 1.502  Who has a termcap/terminfo source for aixterm or the HFT console?
  220. 1.503  How can I look at PostScript files?  Why is "dpsexec" so lousy?
  221. 1.504  unix:0 vs `hostname`:0
  222. 1.505  VT100 key bindings for aixterm
  223. 1.506  Is there a screen saver that does not use excessive CPU?
  224. 1.507  Where are the colors, availible for an X session, listed.
  225. 1.508  Why does my app hang the X server but not an X station?
  226. 1.509  How do I switch the control and caps lock key bindings?
  227. 1.510  Missing fonts?
  228. 1.511  What's the termcap entry for an IBM 3151 look like?
  229. 1.512  Errors starting X11 application binaries from aixpdslib.
  230. 1.513  .XShm*, .sm* (Shared memory) Link errors building Xwindows applications.
  231. 1.514  How do I set my DISPLAY when I login to another machine?
  232. 1.515  Why doesn't Netscape work?
  233.  
  234. 1.6    Networks and communications
  235. 1.600  My named dies frequently, why?
  236. 1.601  How do I trace ethernet packets on an AIX system?
  237. 1.602  What is the authorized way of starting automount at boot time?
  238. 1.603  How do I set a tty port for both dial-in and dial-out?
  239. 1.604  How to move or copy whole directory trees across a network
  240. 1.605  How can I send mail to hosts that cannot be pinged?
  241. 1.606  How to configure dialup SLIP
  242. 1.607  Where is DCE discussed?
  243. 1.608  How do I make /var/spool/mail mountable?
  244. 1.609  getty spawning too rapidly
  245. 1.610  Does AIX support Compressed SLIP (CSLIP)?
  246. 1.611  How do I setup anonymous ftp on my AIX system?
  247. 1.612  Talk, getting notification.
  248. 1.613  Disabling software flow control; using RTS/CTS.
  249. 1.614  NIS security
  250. 1.615  Why can't non-anonymous users login using WU-FTP?
  251. 1.616  NIS users can't login, do I need '*' in /etc/passwd?
  252. 1.617  HP JetDirect cards and virtual printers?  mkvirprt problems?
  253. 1.618  How can I hack libc.a to alter how hostnames are resolved?
  254. 1.619  What modem settings do I need?
  255. 1.620  NIS slave server config with master on different subnet?
  256. 1.621  Why does my 64 port concentrator loose data and drop the queue?
  257. 1.622  Netscape FastTrack server won't install on AIX 3.2.5 or 4.1.
  258. 1.623  How can I share files/printers with Windows 95?
  259. 1.624  Printing from AIX to WinNT/95/3.1
  260. 1.625  How do I get NFS mounting with Linux to work?
  261. 1.626  Telnet takes a 45 seconds to produce a prompt.
  262. 1.627  Ethernet frame type - en0 vs. et0
  263.  
  264. 1.7    LVM
  265. 1.700  Free LVM lecture slides
  266. 1.701  How do I shrink /usr?  (formerly 1.106)
  267. 1.702  How do I make a filesystem larger than 2Gb? (formerly 1.107)
  268. 1.703  Chlv warning, is the first 4k of a LV safe? (formerly 1.139)
  269. 1.704  What's the limit on Physical Partitions Per Volume Group?
  270. 1.705  Why am I having trouble adding another disk to my VG?
  271. 1.706  What are the limits on a file, filesystem?
  272. 1.707  Hints for Segate 9 GB and other disks larger than 4 GB? (see 1.704)
  273. 1.708  How do I fix Volume Group Locked?
  274. 1.709  How do I remove a volume group with no disks?
  275. 1.710  What are the theoretical limits within the LVM?
  276.  
  277. 1.8    AIX 4.X
  278. 1.800  How do I control how hostnames are resolved?
  279. 1.801  dtlogin ignores /etc/profile?
  280. 1.802  Where's the C compiler?
  281. 1.803  Why doesn't Netscape work?
  282.  
  283. 1.9    Miscellaneous
  284. 1.900  SCSI-1 and SCSI-2 "interoperability" got you confused?
  285. 1.901  How to get your keyboard back after unplugging it from the 6000
  286. 1.902  How do I set up pcsim, the DOS emulator?
  287. 1.903  How do I transfer files between AIX and DOS disks?
  288. 1.904  Where is the crypt program?
  289. 1.905  How do I play audio CDs?
  290. 1.906  How can I get the mouse back after unplugging it?
  291. 1.907  Where can I get source code to the operating system binary xxxxx?
  292. 1.908  What's the difference between the POWER and POWERPC architectures?
  293. 1.909  Will there be date rollover problems in the year 2000?
  294. 1.910  How can I build an "installp format" file?
  295. 1.911  Is there a generic SCSI driver for AIX?
  296. 1.912  Viruses or virus scanning on AIX?
  297. 1.913  How do I determine the clock frequency of a RS/6000 by          
  298.        software ?
  299. 1.914  How do I create a ramdisk ?
  300. 1.915  Can I run Linux on an RS/6000 ?
  301.  
  302.  
  303. 2.00  C/C++
  304. 2.01  I cannot make alloca work
  305. 2.02  How do I compile my BSD programs?
  306. 2.03  Isn't the linker different from what I am used to?
  307. 2.04  How do I statically link my program?
  308. 2.05  How do I make my own shared library?
  309. 2.06  Linking my program fails with strange errors.  Why?
  310. 2.07  Why does it take so long to compile "hello world" with xlc?
  311. 2.08  What's with malloc()?
  312. 2.09  Why does xlc complain about 'extern char *strcpy()'
  313. 2.10  Why do I get 'Parameter list cannot contain fewer ....'
  314. 2.11  Why does xlc complain about '(sometype *)somepointer = something'
  315. 2.12  Some more common errors
  316. 2.13  Can the compiler generate assembler code?
  317. 2.14  Curses
  318. 2.15  How do I speed up linking?
  319. 2.16  What is deadbeef?
  320. 2.17  [moved to 8.10]
  321. 2.19  imake, makedepend 
  322. 2.20  How can tell what shared libraries a binary is linked with?
  323. 2.21  Can I get a PTF for my C/C++ compiler from the net?
  324. 2.22  Why does "install"ing software I got from the net fail?
  325. 2.23  What is Linker TOC overflow error 12?
  326. 2.24  What is the limit on number of shared memory segments I can attach?
  327. 2.25  I deleted libc.a by accident --- how do I recover?
  328. 2.26  Where can I find dlopen, dlclose, and dlsym for AIX?
  329. 2.27  Where can I find ldd for AIX?
  330. 2.28  How do I make my program binary executable on the POWER, POWER2,
  331.       and POWERPC architecures?
  332. 2.29  How do I access more than 256 Megabytes of memory?
  333. 2.30  How do I use POSIX threads with gcc 2.7.x?
  334. 2.31  Why does pthread_create return the error code 22?
  335. 2.32  How do I build programs under a later AIX release that run
  336.     under earlier releases as well?
  337.  
  338.  
  339. 3.00  Fortran and other compilers
  340. 3.01  I have problems mixing Fortran and C code, why?
  341. 3.02  How do I statically bind Fortran libraries and dynamically bind
  342.       C libraries?
  343. 3.03  How do I check if a number is NaN?
  344. 3.04  Some info sources on IEEE floating point
  345. 3.05  Why does it take so long to compile "hello world" with xlf? (see 2.07).
  346.  
  347. 4.00  GNU and Public Domain software
  348. 4.01  How do I find PD software?
  349. 4.02  Are there any ftp sites?
  350. 4.03  General hints
  351. 4.04  GNU Emacs
  352. 4.05  gcc/gdb
  353. 4.06  GNU Ghostscript
  354. 4.07  TeX - Document processing
  355. 4.08  Perl - Scripting language
  356. 4.09  X-Windows
  357. 4.10  Bash - /bin/ksh alternative from FSF
  358. 4.11  Elm - Mail reader
  359. 4.12  Oberon 2.2
  360. 4.13  Kermit - Communications 
  361. 4.14  Gnu dbm
  362. 4.15  tcsh - an alternative shell
  363. 4.16  Kyoto Common Lisp
  364. 4.17  Tcl/Tk - X-Windows scripting
  365. 4.18  Expect
  366. 4.19  Public domain software on CD
  367. 4.20  Andrew Toolkit
  368. 4.21  sudo
  369. 4.22  Flexfax/HylaFax and other fax software
  370. 4.23  lsof - LiSt Open Files
  371. 4.24  popper - POP3 mail daemon
  372. 4.26  mpeg link errors version 2.0
  373. 4.27  NNTP, INN - news (usenet) news transport protocol, news server software
  374. 4.28  Zmodem - File transfer
  375. 4.29  Patch - automated file updates
  376. 4.30  XNTP - network time protocol, synchronizes clocks
  377. 4.31  GNU Screen 3.6.2 and AIX 4.1.x
  378. 4.32  SCSI scanner software
  379. 4.33  Pager/Paging software
  380. 4.34  Java Development Kit
  381.  
  382. 5.00  Third party products
  383. 5.01  Non-IBM AIX Hosts
  384. 5.02  Disk/Tape/SCSI
  385. 5.03  Memory
  386. 5.04  Others
  387. 5.05  C++ compilers
  388. 5.06  Memory leak detectors
  389. 5.07  PPP
  390. 5.08  Graphics adapters.
  391. 5.09  Training Courses
  392. 5.10  Hardware Vendors
  393. 5.11  Debugging aides
  394.  
  395. 6.00  Miscellaneous other stuff
  396. 6.01  Can I get support by e-mail?
  397. 6.02  List of useful faxes
  398. 6.03  IBM's ftp, gopher and WWW presence
  399. 6.04  Some RS232 hints
  400. 6.05  What publications are available for AIX and RS/6000?
  401. 6.06  Some acronyms
  402. 6.07  How do I get this by mailserver or ftp?
  403. 6.08  Hypertext version of the FAQ
  404. 6.09  IBM documentation on the WWW.
  405. 6.10  comp.unix.aix archive availible on the WWW
  406. 6.11  How can I access the comp.unix.aix newsgroup via email (or Web)
  407.  
  408. 8.00  Program listings
  409. 8.03  How do I set up postscript accounting?
  410. 8.04  How can I find out the machine type?
  411. 8.05  Updating to 3.2.5
  412. 8.06  How do I do remote backup?
  413. 8.06  How do I do remote backup? (cont.)
  414. 8.07  How to configure dialup SLIP
  415. 8.08  Disabling software flow control; using RTS/CTS.
  416. 8.09  How can I hack libc.a to alter how hostnames are resolved?
  417. 8.10  How do I make an export list from a library archive?
  418.  
  419. 9.00  Contributors
  420.  
  421. ------------------------------
  422.  
  423. Subject: 1.000: The AIX operating system - what is it?
  424.  
  425. This is best answered by reading the text files in /usr/lpp/bos. The
  426. README file there contains general information and the bsd file contain
  427. useful information if you know BSD and/or System V.
  428.  
  429. The last release for the RT PC is 2.2.1. The latest release for PS/2s
  430. and Intel architecture machines is AIX 1.3; for PS/2s only, 1.2.1. For
  431. the RS/6000, there are five major levels, 3.1, 3.2, 4.1, 4.2, 4.3, and
  432. various intermediate levels. IBM has dropped support for 3.1, 3.2, 4.1
  433. and 4.2
  434.  
  435. Y2K compliancy issues have been addressed by PTF's on 3.2, and 4.*. 
  436.  
  437. For those who don't have a copy of /usr/lpp/bos/README or bsd, I'll
  438. sumarize: IBM tried to follow IEEE, POSIX 1003.1, ANSI C, FIPS and
  439. then X/Open Issue 3.  Beyond that, AIX is a combination of System V
  440. and BSD.
  441.  
  442. ------------------------------
  443.  
  444. Subject: 1.001: I know neither Unix nor AIX
  445.                 - where do I find more information?
  446.  
  447. If you are new to Unix, you should look at the other newsgroups in the
  448. comp.unix hierarchy, in particular comp.unix.questions.  There are
  449. FAQs more most of these groups as well.
  450.  
  451. If you need information about C programming, try comp.lang.c or
  452. comp.std.c, the latter for Standard ANSI C issues.  comp.lang.c has a
  453. FAQ posting.
  454.  
  455. ------------------------------
  456.  
  457. Subject: 1.002: What is the Object Database?
  458. From: Uwe Geuder <Uwe.Geuder@informatik.uni-stuttgart.de>
  459.  
  460. AIX stores most of the system management information in /etc/objrepos,
  461. /usr/lib/objrepos, and /usr/share/lib/objrepos. Files (also referred to
  462. as system object classes) in these directories are adminstered by the
  463. Object Database Manager, ODM, which is a set of library routines and
  464. programs providing basic object oriented database facilities.
  465.  
  466. Under most circumstances, only SMIT or the commands SMIT call (see
  467. 1.100) should be used to change the contents of the system object
  468. classes. A harmless way to look at the object database is to use odmget
  469. <Class> where <Class> is one of the files in /etc/objrepos.
  470.  
  471. Experienced users can use the ODM editor, odme, to navigate the database
  472. in detail. Modifying the database should only be attempted if you know
  473. exactly what you are doing.
  474.  
  475. ------------------------------
  476.  
  477. Subject: 1.003: How do I get rid of the verbose error messages?
  478. From: Bjorn P. Brox <brox@corena.n>
  479.  
  480. Many of the messages from the Unix commands are available in different
  481. languages. This is controlled by the LANG environment variable, the
  482. default being En_US meaning English in the US. All the default messages
  483. have a message number associated with them, e.g.:
  484.  
  485. $ cat no-such-file
  486. cat: 0652-050 Cannot open no-such-file.
  487.  
  488. If you prefer the terser Unix-looking error message, set your
  489. environment variable LC_MESSAGES to C, and you will get:
  490.  
  491. $ cat no-such-file
  492. cat: Cannot open no-such-file.
  493.  
  494. By default LC_MESSAGES is the same as your environment LANG.  Setting
  495. LANG does also work, but should be avoided since it changes
  496. app-defaults lookup etc.  See locale(): LC_ALL
  497.  
  498. ------------------------------
  499.  
  500. Subject: 1.004: Which release of AIX or other products do I have?
  501.  
  502. New with 3.2.5: The oslevel command shows OS and component levels.
  503. Run oslevel -help to see options
  504.  
  505. The command 'lslpp -h bos.obj' will show all lines referring to the BOS, 
  506. Basic Operating System.  E.g.:
  507.  
  508. Fix Id  Release         Status    Action     Date       Time     User Name
  509. ------- --------------- --------- ---------- ---------- -------- ---------
  510. Path: /usr/lib/objrepos
  511. bos.obj
  512.         03.02.0000.0000 COMPLETE  COMMIT     12/31/69   18:00:00 root
  513. U401864 03.02.0000.0000 COMPLETE  COMMIT     11/12/92   20:09:35 root
  514. U401968 03.02.0000.0000 COMPLETE  COMMIT     11/12/92   23:18:21 root
  515. U401969 03.02.0000.0000 COMPLETE  COMMIT     11/12/92   23:18:20 root
  516.                  ..........................
  517. U418349 03.02.0000.0000 COMPLETE  COMMIT     08/28/93   15:34:13 root
  518. U419950 03.02.0000.0000 COMPLETE  COMMIT     08/28/93   15:34:11 root
  519.  
  520. For AIX 3.2, you may come across discussions on 3.2.0, 3.2.1, 3.2.2,
  521. 3.2.3 extended, 3.2.4 and 3.2.5.  There is no absolute way to tell which
  522. of these you are running since the newer releases are simply 3.2.0 with
  523. some sets of PTFs added. See above example listing. These selective
  524. fixes could mean there are literally thousands of slightly different
  525. variations of 3.2 in use. Please see section 6 to request some useful
  526. faxes to help with this number game.
  527.  
  528. AIX 3.2.4 and later attempts to resolve this confusion. The OS is
  529. broken down into subsystems so that updates can be applied to an entire
  530. subsystem.  lslpp also sports a new option; use 'lslpp -m bos.obj' to
  531. show what level and update the system is running. You can also use the
  532. new oslevel command. Unless you have a pressing need (such as
  533. applications unsupported on > 3.2.3), it is recommended that you update
  534. to this level. Also see 1.128.
  535.  
  536. ------------------------------
  537.  
  538. Subject: 1.005: What hardware do I have?  What is availible?  WITS?
  539. From: C.Deignan@frec.bull.fr (C.DEIGNAN)
  540.  
  541. The wits script is unfortunately no longer maintained. I just don't have
  542. the time, and I'm not sure it is a realistic proposition anymore. There are so
  543. many different models that have the same model-ID that it's impossible to be
  544. "definitive."
  545.  
  546. [Editor's note:  I've deleted the source to the wits program from the
  547. FAQ,but it is listed as being part of the aix.tools.1.3.0.0.exe archive at
  548. Bull's freeware download site <http://www-frec.bull.com/>.  Press the
  549. "Download" button once the top page loads,  then look for "The Large
  550. AIX Freeware and Shareware Archive" link.]
  551.  
  552. ------------------------------
  553.  
  554. Subject: 1.006: Is IBM "dropping" AIX? AIX 3 discontinued.
  555.  
  556. No.  IBM sells and supports AIX 4 (4.3).  However, on January 31, 1997
  557. IBM will "withraw AIX 3.2.5 from marketing."  That is, you won't be able
  558. to purchase AIX 3.2.5 anymore.  On December 31, 1997, IBM will
  559. "discontinue Program Services" for AIX 3.2.5.  Translation: they will
  560. no longer respond to (most) defect reports for AIX 3.2.5.
  561.  
  562. The US announcement letter can be read via <http://www1.ibmlink.ibm.com/>.  
  563. Pick the US as region,  look for "Announcement Letters," then search
  564. for document number 996-245.
  565.  
  566. ------------------------------
  567.  
  568. Subject: 1.007: Is IBM "dropping" AIX? AIX 4.1/4.2 discontinued.
  569.  
  570. No.  IBM sells and supports AIX 4 (4.3).  However, AIX 4.1 and 4.2
  571. were withrawn from marketing and support.
  572. Translation: they will no longer respond to (most) defect reports
  573. for AIX 4.1 and 4.2.
  574.  
  575. ------------------------------
  576.  
  577. Subject: 1.008: e-Server pSeries (Is IBM "dropping" RS/6000 ?)
  578.  
  579. Will you get real ?  After 10 years of success why would IBM drop it ?
  580. Relax !  Drink a few vodkas.
  581.  
  582. The pSeries is just the new name of some RS/6000's.
  583. Other than that, "A Rose by any other name would smell as sweet"
  584.  
  585. ------------------------------
  586.  
  587. Subject: 1.009: Monterey / AIX 5L
  588.  
  589. IBM has announced "AIX5L".  It's essentialy AIX Version 5.  The 'L' stands
  590. for "Linux Affinity".  A statement that AIX is going to support some of the
  591. Linux API's and interfaces (for instance: the /proc filesystem)
  592.  
  593. Some changes to the filesystem limits, virtual IP's, dynamic dealocation
  594. of swapspaces.
  595.  
  596. You can read all about it in http://www.ibm.com/servers/aix
  597.  
  598. ------------------------------
  599.  
  600. Subject: 1.100: I am used to Unix systems programming,
  601.                 why should I learn SMIT?
  602.  
  603. Using SMIT is probably very different from your normal way of doing
  604. system administration, but could prove very useful in the long run. In
  605. some areas, in particular TCP/IP, NFS, etc., you can also do things the
  606. normal way, but it is unfortunately difficult to know exactly when the
  607. normal way works. Again, always using SMIT is probably your best way
  608. to go, even when you have to learn a new tool. 
  609.  
  610. What SMIT actually does is build up commands with all required options
  611. to perform the functions requested and execute them. The commands
  612. called and the output they produce are stored in the files smit.script
  613. and smit.log in your home directory. Looking in smit.script may teach
  614. you more about system administration.
  615.  
  616. ------------------------------
  617.  
  618. Subject: 1.101: How do I turn off the "running man" in smit?
  619.  
  620. Use smitty, the standard curses version or add this line to your .kshrc file:
  621. alias smit="smit -C"
  622.  
  623. ------------------------------
  624.  
  625. Subject: 1.102:  How do I import an /etc/passwd or /etc/group file
  626.                  from another box?
  627.  
  628. If the other box is non-AIX,  copy the password and group entries for
  629. the non-system users into AIX's /etc/passwd and /etc/group files.
  630. Then run /bin/pwdck -t ALL.  This will create the proper entries in
  631. the shadow password file (/etc/security/users).  You should also run
  632. usrck and grpck.
  633.  
  634. To duplicate the password and  group entries from another AIX box,
  635. copy /etc/passwd, /etc/group, /etc/security/passwd, /etc/security/group,
  636. /etc/security/user, /etc/security/limits, /etc/security/environ.  The
  637. last three are optional unless you modified them.  If you modified
  638. /etc/security/login.cfg, you should also copy that file.
  639.  
  640. ------------------------------
  641.  
  642. Subject: 1.103: Cleaning up utmp, who, and accounting problems
  643.  
  644. The best way to fix this problem is to fix the programs which are
  645. causing the behavior in the first place.  The short answer is to call
  646. software support and ask for the "UTMPFIX" collection of PTFs.
  647.  
  648. Virtually all of these problems should be fixed in the 3251 PMP and
  649. the only one I've been able to prove is still broken is using ALT-F4
  650. to close an aixterm.
  651.  
  652. This applies if you are running an X11R5 xterm on 3.2.
  653. Add this to the top of X11R5 mit/clients/xterm/main.c:
  654.  
  655. #ifdef AIXV3
  656. #define USE_SYSV_UTMP
  657. #define HAS_UTMP_UT_HOST
  658. #define WTMP_FILENAME "/var/adm/wtmp"
  659. #endif
  660.  
  661. And your utmp problems should go away. If you want xterminal sessions
  662. to go into the wtmp file you need to define -DWTMP in the Imakefile and
  663. be sure the WTMP_FILENAME is set to the right place.
  664.  
  665. Section 8.02 contains a small C program that you can use until the
  666. PTFs arrive.  The program must be run as root and will periodically
  667. clean up old entries.
  668.  
  669. Another utmp program was posted to comp.sources.unix, volume 25, issue
  670. 96 by David W. Sanderson (dws@cs.wisc.edu) that also works on AIX 3.1.
  671.  
  672. ------------------------------
  673.  
  674. Subject: 1.104: How to fsck the root filesystem
  675.  
  676. You can run fsck either in maintenance mode or on mounted filesystems.
  677. Try this:
  678.  
  679.   1. boot from diskette (AIX 3 only --- AIX 4 boot from CD or tape)
  680.   2. select maintenance mode
  681.   3. type /etc/continue hdisk0 exit (replace hdisk0 with boot disk if
  682.      not hdisk0)
  683.   4. fsck /dev/hd4
  684.  
  685. ------------------------------
  686.  
  687. Subject: 1.105: How can I unmount /usr to run fsck on it?
  688. From: accapadi@mathew.austin.ibm.com (Matt Accapadi)
  689.  
  690. [ This is for 3.2. ]
  691.  
  692. In order to fsck /usr, it has to be unmounted. But /usr cannot be
  693. unmounted because /bin is symbolically linked to /usr/bin. Also
  694. /etc/fsck is symbolically linked to /usr/sbin/fsck.
  695.  
  696. To work around this, when you boot from the boot/maintenance diskettes
  697. and enter maintenance mode, enter "getrootfs hdisk0 sh" instead of
  698. "getrootfs hdisk0" where hdisk0 is the name of the boot disk. Then run
  699. "fsck /dev/hd2".
  700.  
  701. ------------------------------
  702.  
  703. Subject: 1.108: How do I see/change parameters like number of
  704.                 processes per user?
  705.  
  706. You can use SMIT as described below or simply use lsattr/chdev.
  707. The former will list the current setting as in:
  708.  
  709.   # lsattr -E -l sys0 -a maxuproc
  710.   maxuproc 40 Maximum # of processes allowed per user True
  711.  
  712. and you can then increase the maxuproc parameter:
  713.  
  714.   # chdev -l sys0 -a maxuproc=200
  715.   sys0 changed
  716.  
  717. If you just type 'lsattr -E -l sys0' you will get a list of all
  718. parameters, some of which can be changed but not others.
  719.  
  720. If you want to use smit, do as follows:
  721.  
  722. smit
  723.   System Environments and Processes
  724.     Change / Show Operating System Parameters
  725.       - on this screen you can change by overtyping the following fields:
  726.         - Maximum number of PROCESSES allowed per user
  727.         - Maximum number of pages in block I/O BUFFER CACHE
  728.         - Maximum Kbytes of real memory allowed for MBUFS
  729.       - toggle fields exist for:
  730.         - Automatically REBOOT system after a crash  (false/true)
  731.         - Continuously maintain DISK I/O history (true/false)
  732.  
  733. Info 1.30 erroneously suggests that in AIX 3.2.5 you can set different
  734. limits for different users.
  735.  
  736. ------------------------------
  737.  
  738. Subject: 1.109: How do I shrink the default paging space on hd6?
  739. X-With-Changes-From: Ray Reynolds <reynolds@valisys.com>
  740.  
  741. 1) create a paging space to use temporarily
  742.    mkps -s 20 -a rootvg
  743.  
  744. 2) change default paging space hd6 so it is not used at next reboot
  745.    chps -a n hd6
  746.  
  747. 3) For AIX 3.1, edit /etc/rc.boot4 and change swapon /dev/hd6;
  748.    for AIX 3.2 and 4.x, edit /sbin/rc.boot and change swapon /dev/hd6
  749.    swapon /dev/paging00
  750.    
  751. 3a)Since the default system dump device is /dev/hd6 in 4.1.x, it has to
  752.    be changed to the temporary swap device before you remove the old
  753.    swap device.
  754.  
  755.    sysdumpdev -p /dev/paging00
  756.  
  757. 4) Update information in boot logical volume
  758.    bosboot -a             (3.1)
  759.    bosboot -a -d hdisk0   (3.2 & 4)
  760.  
  761. 5) shutdown and reboot
  762.  
  763. 6) remove current hd6 and create a new one of smaller size
  764.    rmps hd6
  765.    mklv -y hd6 -t paging rootvg <size of PS in 4 Meg blocks>
  766.  
  767. 7) Re-edit /etc/rc.boot4 (3.1), /sbin/rc.boot (3.2/4) to swap to /dev/hd6
  768.    swapon /dev/hd6
  769.  
  770. 7a)On AIX 4, change the dump device back to hd6:
  771.  
  772.    sysdumpdev -p /dev/hd6
  773.  
  774. 8) Update information in boot logical volume
  775.    bosboot -a             (3.1)
  776.    bosboot -a -d hdisk0   (3.2 & 4)
  777.  
  778. 9) change current paging device (paging00) so it is inactive at next boot
  779.    chps -a n /dev/paging00
  780.  
  781. 10) shutdown, reboot, remove paging00 using the command:
  782.     rmps paging00
  783.  
  784. You can check your paging space with `lsps -a`
  785.  
  786. ------------------------------
  787.  
  788. Subject: 1.110: The swapper seems to use enormous amounts
  789.                 of paging space, why?
  790.  
  791. When you run ps, you may see a line like:
  792.  
  793. USER   PID %CPU %MEM    SZ   RSS     TT STAT  TIME CMD
  794. root     0 0.0%  14% 386528  8688      -    S 17:06 swapper
  795.  
  796. This is normal behavior, the swapper looks to ps like it has the entire
  797. paging space plus real memory allocated.
  798.  
  799. ------------------------------
  800.  
  801. Subject: 1.111: How much paging space do I need?
  802.  
  803. See answer 2 in question 1.300.
  804.  
  805. ------------------------------
  806.  
  807. Subject: 1.112: How do I mount a floppy disk as a filesystem?
  808. From: op@holmes.acc.Virginia.EDU (Olaf Pors)
  809.  
  810. You can build a filesystem on a floppy and mount it, however the
  811. filesystem will be read only. The reason that the filesystem will be
  812. read only is because AIX Version 3.1.5 cannot create a journal log on a
  813. diskette. The intended use is for temporary access to read only data. 
  814. The diskette file system must be unmounted after use and during system
  815. backup procedures or errors could occur.
  816.  
  817. To make the read only filesystem on a floppy:
  818.  
  819. 1. Make a subdirectory on an existing filesystem and place all of the
  820.    files that the diskette will contain into this subdirectory.
  821.  
  822. 2. Enter the following command to create a prototype file containing
  823.    information about the new filesystem, in the example /dir_struct
  824.    is the pathname of the subdirectory created in step 1, and
  825.    proto_filename is the name of the prototype file to be created.
  826.  
  827.          proto /dir_struct > proto_filename
  828.  
  829. 3. Place a formatted floppy into the drive.
  830.  
  831. 4. Edit the prototype file and replace the first line with the following:
  832.  
  833.          <noboot> 0 0
  834.  
  835. 5. Enter the following command to make the filesystem on your floppy:
  836.  
  837.           mkfs -p proto_filename -V jfs /dev/fd0
  838.  
  839. 6. Create the directory upon which you will mount the floppy based
  840.    filesystem, or you can use /mnt. Mount the filesystem:
  841.  
  842.           mount -r -V jfs /dev/fd0 /your_mount_point
  843.  
  844. 7. To unmount the filesystem:
  845.  
  846.           umount /dev/fd0
  847.  
  848. Since the filesystem is read-only it may be of limited use but if you
  849. are going to use it for utility programs and other data that does not
  850. change much, it may still be useful. If you need to change the data,
  851. you can copy the directory from the floppy into another directory, make
  852. your modifications, and remake the filesystem using this procedure.
  853.  
  854. ------------------------------
  855.  
  856. Subject: 1.113: How do I remove a committed lpp?
  857.  
  858. AIX 3.2.5: you can get rid of COMMITTED lpps/ptfs by installing with the force
  859. option and then rejecting the package.
  860.  
  861. AIX 4 users: installp has a new option, uninstall (-u) which can be
  862. used to remove lpps.  BEWARE of pre-requisite chains.
  863.  
  864. ------------------------------
  865.  
  866. Subject: 1.114: How can I recover space after installing updates?
  867. From: Milt Cloud <cloud@ux1.cso.uiuc.edu>
  868.  
  869. Note: If you are a /usr server, do not use this because the files
  870.       mentioned below are needed by /usr clients and cannot be deleted.
  871.  
  872. Installp creates numerous files in /usr to clean up after
  873. failed/rejected installs and also for de-installing uncommitted lpps. 
  874. Once you have COMMITted packages you can remove these files safely. 
  875. Depending on your installation activity the numbers can be significant:
  876. hundreds-to-thousands of files, megabytes of data.
  877.  
  878. Files eligible for removal are associated with each "product" you have
  879. installed; the largest collection being due to bos. After
  880. COMMITting bos lpps, you may safely remove all files of the form:
  881.  
  882.               /usr/lpp/bos/deinstl*
  883.               /usr/lpp/bos/inst_U4*
  884.               /usr/lpp/bosadt/deinstl*
  885.         and   /usr/lpp/bosadt/inst_U4*
  886.  
  887. You may repeat this for all additional COMMITted products (e.g.,
  888. bostext1, bosnet, xlc) you have on your system.
  889.  
  890. This problem of lingering install files is a known defect in installp. 
  891. If you have installed PTF U411711 (or any superseder of it: U412397,
  892. U413366, U413425) the deadwood in /usr will not be quite as prevalent. 
  893. No single PTF currently available completely corrects this problem.
  894.  
  895. On my own 320, the following freed up 12.4M in /usr:
  896.  
  897.        # rm -R /usr/lpp/bos/deinstl*
  898.        # rm -R /usr/lpp/bos/inst_U4*
  899.  
  900. ------------------------------
  901.  
  902. Subject: 1.115: Where are the AIX log files kept?
  903. From: dirk@kimosabi.ucsc.edu (Dirk Coldewey)
  904.  
  905. AIX logs messages as specified in /etc/syslog.conf.  Here's an
  906. example
  907.  
  908. #
  909. *.err;kern.debug;auth.notice;user.none          /dev/console
  910. *.err;kern.debug;daemon,auth.notice;mail.crit;user.none /var/adm/messages
  911. lpr.debug                                       /var/adm/lpd-errs
  912.  
  913. *.alert;kern.err;daemon.err;user.none           operator
  914. *.alert;user.none                               root
  915. *.emerg;user.none                               *
  916.  
  917. # for loghost machines, to have authentication messages (su, login, etc.)
  918. # logged to a file, un-comment out the following line and adjust the 
  919. # file name as appropriate.
  920. #
  921. # if a non-loghost machine chooses to have such messages 
  922. # sent to the loghost machine, un-comment out the following line.
  923. #
  924. auth.notice                     /var/log/authlog
  925. mail.debug                      /var/log/syslog
  926.  
  927. # following line for compatibility with old sendmails. they will send
  928. # messages with no facility code, which will be turned into "user" messages
  929. # by the local syslog daemon. only the "loghost" machine needs the following
  930. # line, to cause these old sendmail log messages to be logged in the
  931. # mail syslog file.
  932. #
  933. user.alert                       /var/log/syslog
  934. #
  935. # non-loghost machines will use the following lines to cause "user"
  936. # log messages to be logged locally.
  937. #
  938. user.err                         /dev/console
  939. user.err                         /var/adm/messages
  940. user.alert                       `root, operator'
  941. user.emerg                       *
  942.  
  943. ------------------------------
  944.  
  945. Subject: 1.116: How can I log information about ftp accesses to a file?
  946. From: elr@trintex.uucp (Ed Ravin)
  947. From: map@hal.maths.monash.edu.au (Michael Page)
  948.  
  949. 1) In /etc/syslog.conf, add the line:
  950.    daemon.debug        /tmp/daemon.log
  951.  
  952. 2) # touch  /tmp/daemon.log
  953.    # refresh -s syslogd
  954.  
  955. 3) Modify your inetd.conf so that ftpd is called with the "-l" flag.
  956.    You may also want the "-d" flag. This can be done with 'smit inetdconf'.
  957.  
  958. All the syslog messages from various system daemons should now appear in
  959. the file "/tmp/daemon.log".
  960.  
  961. ------------------------------
  962.  
  963. Subject: 1.117: How do I find a file name from the inode number?
  964. From: /G=Bill/S=Mansfield/O=P00S38E/OU1=notes/DD.HPNOTES=Bill_Mansfield/mcd/us#a#MCD@mhs-mcdusa.attmail.com (Bill Mansfield)
  965.  
  966. ncheck -i nnnn /mntpoint
  967.  
  968. ------------------------------
  969.  
  970. Subject: 1.118: How do I set up postscript accounting?
  971. From: taluskie@utpapa.ph.utexas.edu (Vince Taluskie)
  972.  
  973. Ephraim Vider originally wrote this program to configure postscript page
  974. accounting. It acts as a backend wrapper which logs accounting
  975. information in /etc/qconfig and can be ftp'd from utpapa.ph.utexas.edu
  976. in /pub/aix/psacct.tar.Z.
  977.  
  978. Compile with:
  979.  
  980. cc  pswrap.c -o pswrap -lqb
  981.  
  982. and then make this program suid root:
  983.  
  984. chown root pswrap
  985. chmod u+s pswrap
  986.  
  987. If this step is not done, the printer will hang.
  988.  
  989. Then start up SMIT and go to :
  990.  
  991. Spooler
  992.   Manage Local Printer Subsystem
  993.     Local Printer Queue Devices
  994.       Change / Show Characteristics of a Queue Device
  995.         <Select Queue>
  996.           <Select Device>
  997.  
  998. and change "BACKEND PROGRAM pathname" to the full pathname of pswrap
  999. since pswrap will now handle the backend interface with the queue.
  1000.  
  1001. A stream of info will be written to a logfile in /tmp (prob lp0.log) but
  1002. this file is mainly used for status info and raw pagecounts. If the
  1003. accounting data is going to the qconfig-specified acctfile, then use the
  1004. 'pac' command to read it. I prefer to have readable ascii data files
  1005. instead, so I just comment out the '#define WANT_PAC' line and it will
  1006. only go to the ACCTFILE specfied in pswrap.c.
  1007.  
  1008. [pswrap.c source has been moved to section 8.03]
  1009.  
  1010. ------------------------------
  1011.  
  1012. Subject: 1.119: How do I create boot diskettes?
  1013.  
  1014. In AIX 4.x you cannot, the kernel and ram drive don't fit on a diskette.
  1015. You should get "0301-174 bosboot: Invalid device /dev/fd0 specified!"
  1016. if you try.
  1017.  
  1018. For AIX 3.2.x you will need to have four formatted diskettes.
  1019.  
  1020. boot disk:                bosboot -d /dev/fd0 -a
  1021. display disk:             mkdispdskt
  1022. display extension disk:   mkextdskt
  1023. Install/Maintenance disk: mkinstdskt
  1024.  
  1025. AIX 3.2.5 may require a fifth boot diskette if you have a FDDI adapter
  1026. in the machine.  It is the "communications extension" diskette.
  1027.  
  1028. ------------------------------
  1029.  
  1030. Subject: 1.120: Where can I find tools for performance monitoring?
  1031.  
  1032. Free X based performance watcher: xsysstats -  <ftp://ftp.x.org/contrib/>
  1033.  
  1034. For 3.2 a few tools are available in /usr/lpp/bosperf. There are tools
  1035. to monitor traces, I/O events, CPU, virtual memory, disk block usage,
  1036. kernel extensions, etc. It even has a simulator, rmss, that allows one
  1037. to try out different memory size configurations to see how it impacts
  1038. performance. See 6.05 for the AIX Performance and Tuning Guide.
  1039.  
  1040. The Monitor program is an AIX/6000 System performance monitor program.
  1041. Monitor can be used to display system statistics of various short time
  1042. performance values. Monitor program is available for anonymous ftp from
  1043. <ftp://ftp.funet.fi/pub/unix/AIX/rs6000/monitor-2.1.1.tar.Z> -file.
  1044.  
  1045. New to version 2 (released as version 2.1.1)
  1046.         * Allow logging of information on interval basis in ascii format.
  1047.           The logfile can be specified as a strftime string and can be
  1048.           compressed.
  1049.         * Synchronize sample/interval time on wall clock (from 00:00).
  1050.         * Sample/interval time is now accurate to around 10 milliseconds
  1051.           (depending on system load).
  1052.         * User counts for remote and inactive users, and average inactive time.
  1053.         * System uptime is printed.
  1054.         * Highlighted headers
  1055.         * In logmode, filesystem usage is logged
  1056.         * support for Symmetric multiprocessing cpuinfo (-smp option
  1057.           or 's' character command).
  1058.         * help page in interactive mode 'h' or '?' character commands
  1059.  
  1060. ------------------------------
  1061.  
  1062. Subject: 1.121: How can I tell what virtual printer a print queue is using?
  1063. From: yoder@austin.ibm.com (Stuart R. Yoder)
  1064.  
  1065. Use the command 'lsvirprt'. Don't use any parameters and it will
  1066. run in an interactive mode that will give you a menu of all virtual
  1067. printers on the system with the queue and device for each one.
  1068.  
  1069. ------------------------------
  1070.  
  1071. Subject: 1.122: Two srcmstr's are less useful than one?
  1072. From: hubert@rs530.ncs.mainz.ibm.com (Bernhard Zeller)
  1073.  
  1074. This can happen on systems that have no console, or systems with an
  1075. async terminal as the console but not attached or turned off. One of the
  1076. symptoms is a second srcmstr got run. But the second srcmstr is worthless
  1077. as we can't use the stop/startsrc commands, refresh inetd, qdaemon won't
  1078. start, etc.
  1079.  
  1080. To resolve this, type:
  1081.  
  1082.     smit chgtty
  1083.  
  1084. and add the keyword 'clocal' in following lines:
  1085.  
  1086.    STTY attributes for RUN TIME
  1087.    STTY attributes for LOGIN
  1088.  
  1089. ------------------------------
  1090.  
  1091. Subject: 1.123: How do I set the tty name associated with a physical port?
  1092. From: accapadi@mathew.austin.ibm.com (Matt Accapadi)
  1093.  
  1094. Let's say you wanted to make a tty on the s1 port and call it rs0000
  1095. and a tty on the s2 port and call it rs0001.
  1096.  
  1097. You could run:
  1098.  
  1099. mkdev -c tty -s rs232 -t tty -l rs0000 -p sa0 -w s1   # creates rs0000
  1100. and
  1101. mkdev -c tty -s rs232 -t tty -l rs0001 -p sa1 -w s2   # creates rs0001
  1102.  
  1103.  
  1104. ------------------------------
  1105.  
  1106. Subject: 1.124: How do I use mksysb to clone a system?
  1107. From: joann@ariadne.SLAC.Stanford.EDU (Jo Ann Malina)
  1108.  
  1109. I use the following steps on the master machine to clone an AIX system:
  1110. 1) Remove the password from root.
  1111. 2) Remove the NIS line from the end of the /etc/group file (the last
  1112.    line with the +: )
  1113. 3) Change most of the level '2' designations in /etc/inittab to level
  1114.    '3' to prevent them from being started up when the new system is
  1115.    booted (the minimum ones to change are rc.nfs and rc.tcpip)
  1116. 4) Boot in service mode and change the name and ip address to a "spare"
  1117.    set to avoid address collision.
  1118. 5) Clear /tmp, /usr/tmp and /usr/spool/lpd/stat.
  1119. 6) Run mkszfile and edit it to be sure /usr is as small as possible;
  1120.    then mksysb from the command line.
  1121.  
  1122. The above changes allow me to boot in normal mode the first time, get in
  1123. as root, change the above files back and do the other things necessary
  1124. to configure the new system.
  1125.  
  1126. Then, of course, I go back and clean up and reboot my master machine.
  1127.  
  1128. Note: 1 and 2 lets you log in even if you can't get on the network. 
  1129.    It prevents the login process from trying to reach an NIS server. 
  1130.    Step 2 needed only if you use NIS.
  1131.  
  1132.  
  1133. ------------------------------
  1134.  
  1135. Subject: 1.125: How do I retain timestamps with mksysb?
  1136. Originally From: graeme@ccu1.aukuni.ac.nz ( Graeme Moffat)
  1137.  
  1138. As of AIX 3.2.5 bosrest preserves timestamps and permissions as does pax.
  1139.  
  1140. In AIX 3.2.2 /usr/lpp/bosinst/bosnet (for net installs), and bosrest
  1141. (tape), the 'pax' commands all have '-pmop' options.  m = "DON'T
  1142. retain modification times".  So, simply change all the '-pmop' to
  1143. '-pop' and remake inst/maint diskettes or mksysb tapes.
  1144.  
  1145. ------------------------------
  1146.  
  1147. Subject: 1.126: How can I find out the machine type?
  1148.  
  1149. [Due to it's length this script was moved to section 8.04]
  1150.  
  1151.  
  1152. ------------------------------
  1153.  
  1154. Subject: 1.127: Updating to 3.2.5
  1155. From: kraemerf@franvm3.VNET.IBM.COM (Frank Kraemer)
  1156.  
  1157. (Ed.  The following is useful if you have to update a large number of
  1158. systems, large being > 3.)
  1159.  
  1160.    *** WARNING : Modify the scripts if you need dataless, diskless   ***
  1161.    ***           or remote /usr support.                             ***
  1162.  
  1163. 1) Receive the PMP3250 tape from your AIX support center the PTF number
  1164.    is U493250.
  1165.  
  1166. 2) Create a filesystem with 240 MB of space (60 PP's) and mount it as
  1167.  
  1168.    /dev/pmp3250  -  /pub/pmp3250
  1169.  
  1170. 3) Insert the tape (blocksize is 512) and install PTF U422467
  1171.  
  1172.    # installp -BXacgq -d /dev/rmt0 bos.obj 3.2.0.0.U422467
  1173.  
  1174. 4) Use the following script to load the tape in the new filesystem
  1175.  
  1176.    # cd /pub/pmp3250
  1177.    # mktape2disk.sh 0 447             <<-- read 447 files from rmt0
  1178.  
  1179. [ The mktape2disk.sh script has been moved to section 8.05 ]
  1180.  
  1181. ------------------------------
  1182.  
  1183. Subject: 1.128: AIX fix strategy
  1184. From: leedp@austin.ibm.com (Dennis Lee, PMP Release Manager)
  1185.  
  1186. First, a little history...
  1187.  
  1188. The maintenance strategy for AIX 3.1 was cumulative updates. Every few
  1189. months, we'd put all available fixes in one large package and ship it. 
  1190. There was no real strategy for providing a single fix. Although we'd
  1191. occasionally produce an emergency patch, there was no method for
  1192. tracking them; if you got a second one, it might overwrite the first. 
  1193. So, after a few of these patches, it's hard to track.
  1194.  
  1195. In AIX 3.2 we introduced a "selective fix" strategy to support
  1196. individual fixes. The package contained information about other fixes
  1197. that were required for that fix to work correctly. For example, a Korn
  1198. shell fix might require a change in libc.a, which might in turn require
  1199. a fix in the kernel. This strategy allowed us to keep track of which
  1200. fixes were installed to make sure we didn't overwrite one with another,
  1201. and make sure they all worked together. But the initial selective fix
  1202. design still had a few problems.
  1203.  
  1204.   o None of the fixes were cumulative.  If you got a fix for Korn shell,
  1205.     you may not receive all of the fixes for Korn shell.  This left the
  1206.     possibility of rediscovering other problems that were already fixed.
  1207.  
  1208.   o Since we chose to fix everything possible that was reported as a
  1209.     problem, instead of deferring them to the next release, the number
  1210.     of available fixes became quite large.
  1211.  
  1212.   o The number of additional fixes required by any given fix could also
  1213.     be quite large.  Since the installation program ran once for each
  1214.     fix, the size and complexity of the fix packages grew, and
  1215.     installation time lengthens greatly.
  1216.  
  1217. While developing the AIX 3.2.4 upgrade, we undertook a large effort to
  1218. resolve the selective fix concerns, and dramatically increase the
  1219. quality of AIX 3.2.  The base operating system and most of the optional
  1220. program products were split into subsystems.  A subsystem is a group of
  1221. logically related files.  The division was made such that changes to a
  1222. given subsystem were less likely to affect other subsystems.  In total
  1223. there are approximately 500 subsystems, but in practice, files have been
  1224. modified in only about half of them.  The advantages of the new
  1225. packaging strategy are:
  1226.  
  1227.   o Each subsystem package is cumulative, containing all of the fixes
  1228.     and enhancements to date for that subsystem.
  1229.  
  1230.   o The cumulative subsystem package is tested as an entity.
  1231.  
  1232.   o The number of fix packages is greatly reduced because the number of
  1233.     subsystems is far fewer than the number of fixes and enhancements.
  1234.  
  1235.   o The number of other fixes required by any given fix is also greatly
  1236.     reduced because a subsystem package has requisites only on other
  1237.     subsystem packages.
  1238.  
  1239.   o The reduced number of fix packages greatly reduced installation time.
  1240.  
  1241. Some customers also told us that they liked the maintenance level
  1242. strategy that we used in AIX 3.1.  They liked being able to install all
  1243. of the known fixes, and they liked knowing what "level" of AIX they had. 
  1244. To meet these requirements, we produced a Preventive Maintenance Package
  1245. (PMP).  The PMP is simply a collection of the latest cumulative
  1246. subsystem packages tied together in such a way that it can be installed
  1247. by selecting a single fix.  We also added flags to the lslpp command and
  1248. added a new command, oslevel, to show which PMP is installed.  Now we
  1249. had both! The good attributes of selective fix along with the good
  1250. attributes of maintenance levels. 
  1251.  
  1252. A few Q&As: 
  1253.  
  1254. Q. Why is the fix I just received 130 megabytes!@#? I already have the
  1255. AIX 3.2.4 update installed!
  1256. A. Your fix may be part of the AIX 3.2.5 update. AIX 3.2.5 is another
  1257. PMP that contains all of the fixes to date, as well as enhancements 
  1258. to support the PowerPC model 250, and the new high-end RS/2 models
  1259. 590 and 990, as well as support for new disk and tape drives, graphics
  1260. adapters and more.
  1261.  
  1262. Q. Why can't you just build my fix on 3.2.4? 
  1263. A. There really isn't such a thing as 3.2.1 or 3.2.2 or even 3.2.4. 
  1264. They're just collections of fixes and enhancements built on a 3.2 base. 
  1265. If the fix for your problem was built prior to 3.2.5, you can get the
  1266. older version. But if your fix was built for the first time in a 3.2.5
  1267. subsystem, that's the only version of the fix that exists.
  1268.  
  1269. See also 6.02.
  1270.  
  1271. ------------------------------
  1272.  
  1273. Subject: 1.129: Are passwords limited to 8 char?
  1274.  
  1275. AIX passwords are only significant to 8 characters. You can set a
  1276. passwd to more than 8 characters but anything over eight are ignored.
  1277. No messages or warnings are given.
  1278.  
  1279. Be careful if you're running NIS. You probably want to limit passwords
  1280. to 8 char on all machines (6000 and others) to be compatible.
  1281.  
  1282. Someone mentioned that DCE supports kerberos which supports passwords
  1283. greater than 8 characters.
  1284.  
  1285. ------------------------------
  1286.  
  1287. Subject: 1.130: How do I increase the number of ptys > 64?
  1288. From: mick@oahu.cern.ch (Mickey Coggins)
  1289.  
  1290. SMIT only allows 64. Try this:
  1291.  
  1292. odmget -q"attribute=num and uniquetype=pty/pty/pty" PdAt |
  1293. sed "s/0-64/0-512/" |
  1294. odmchange -q"attribute=num and uniquetype=pty/pty/pty" -o PdAt
  1295.  
  1296. chdev -l pty0 -anum=256 -P
  1297. reboot
  1298.  
  1299. ------------------------------
  1300.  
  1301. Subject: 1.131: Where can I find patches for CERT advisories?
  1302.  
  1303. Patches (APARs in IBMspeak) for CERT advisories (system security
  1304. problems) can be found at <http://service.software.ibm.com/>.  You
  1305. should have a copy of Fixdist
  1306. <ftp://service.software.ibm.com/aix/tools/fixdist/fd.tar.Z> handy to
  1307. deal with translating APAR and PTF numbers into downloadable files.
  1308. See question 1.142 for more information about fixdist.
  1309.  
  1310. ------------------------------
  1311.  
  1312. Subject: 1.132: How do I remove a non-existant physical volume?
  1313. Thanks to Johnny Shieh (shieh@austin.ibm.com)
  1314.  
  1315. To delete a phantom disk from the ODM use reducevg with the pvid
  1316. instead of the disk name.  You are running some command such as lsvg
  1317. or varyonvg and it is griping about a disk that is no longer findable
  1318. right?  In that warning message, it should give you a pvid.  Try one
  1319. of the following, (note: reducevg updates the VGDA but not the ODM).
  1320.  
  1321. reducevg -f <vgname> <pvid>
  1322.  
  1323. ldeletepv -g VGid -p PVid
  1324.       -g Required, specify the VGid of the volume group you are
  1325.          removing the physical volume from
  1326.       -p Required, specify the PVid of the PV to be removed
  1327.  
  1328. ------------------------------
  1329.  
  1330. Subject: 1.133  How do I kill a process that ignores
  1331.                 kill -QUIT -KILL -STOP
  1332.  
  1333. If there is i/o pending in a device driver, and the driver does not
  1334. catch the signal, you can't kill it - a reboot is the only way to
  1335. clear it.
  1336.  
  1337. Furthermore, if the process stays hung for more than a few minutes,
  1338. you can find out what device is wedged by doing this --
  1339.  
  1340. % echo trace -k $(expr <pid> / 256) | crash | tee stack
  1341.  
  1342. If you can't figure out what is wrong, print that trace out and call
  1343. 1-800-237-5511 and tell them that something is broken.  Tell them you
  1344. want to fax in the nice stack trace that you have as your testcase.
  1345.  
  1346. ------------------------------
  1347.  
  1348. Subject: 1.134: How can I see "console" messages?
  1349. From: crow@tivoli.com (David L. Crow)
  1350.  
  1351. Use the swcons command to redirect the console to a file.  Or use
  1352. chcons to do it permanently.
  1353.  
  1354. ------------------------------
  1355.  
  1356. Subject: 1.135: Where can I find TOP for AIX?
  1357.  
  1358. TOP functionality is included in an AIX package called Monitor.  See
  1359. question 1.120 for more information.
  1360.  
  1361. ------------------------------
  1362.  
  1363. Subject: 1.136: How can I restrict root logins to specific terminals?
  1364. From: jfh@austin.ibm.com (Julianne F. Haugh)
  1365.  
  1366. Read FAX 2737 availible from the 800-IBM-4FAX number discussed in
  1367. section 6.02.  Refer to APAR IX45701 for fixes related to the rsh style
  1368. commands. 
  1369.  
  1370. ------------------------------
  1371.  
  1372. Subject: 1.137: How do I merge my /etc/password and
  1373.                 /etc/security/password for Crack?
  1374.  
  1375. /usr/sbin/mrgpwd.  You must have permissions to read /etc/security/password.
  1376.  
  1377. ------------------------------
  1378.  
  1379. 1.138: I lost the root password, what should I do?
  1380. From: dramm@csusm.edu (Donald E. Ramm)
  1381.  
  1382. Boot from boot diskettes, bootable tape, or bootable CD.  
  1383. At the Installation/Maint menu select item 4, "Start a limited function
  1384.     maintenance shell.
  1385. At the subsequent "#" prompt enter the command:
  1386.     getrootfs hdiskN
  1387.     (where "N" is replaced by the number of a disk on your system
  1388.     that is in rootvg.)
  1389. That will run for about a minute or so and you get a # prompt back.  At this
  1390.     point you are logged in as root in single user mode.
  1391. Change to /etc/security and edit the passwd file.  Delete the three lines
  1392.     under root: password, update time (or whatever it's called), and
  1393.     flags.  Save the file.
  1394. Then at the prompt, give root a new password.
  1395. Shutdown/reboot in normal mode.  Log in with new password.
  1396.  
  1397. ------------------------------
  1398.  
  1399. Subject: 1.139:  How can I resolve DEV_WAIT status for a local print queue?
  1400. From: chuah@sam.po.my (Chuah Teik Chye)
  1401.  
  1402. Try "qadm -k && qadm -U"
  1403.  
  1404. ------------------------------
  1405.  
  1406. Subject: 1.140: SMIT problems forcing/overwriting install?
  1407.  
  1408. Installp does not support overwriting and installing prerequisite
  1409. software at the same time.
  1410.  
  1411. ------------------------------
  1412.  
  1413. Subject: 1.141: Which distribution tape do I have?
  1414. From: fuzzy@obelix.ncs.mainz.ibm.com (Thomas Braunbeck)
  1415.  
  1416.           AIX 3.2.5 (3250-04-09)
  1417.             |         |    |  |
  1418.             |         |    |  |
  1419.             |         |    |  Revision level
  1420.             |         |    Enhancement level
  1421.             |         Preventive Maintenance Package (PMP) level
  1422.             AIX Version, Release, Modification level
  1423.  
  1424. ------------------------------
  1425.  
  1426. Subject: 1.142: How can I get PTF (fixes) via ftp?  What is fixdist?
  1427.  
  1428. Get a copy of IBM's fixdist package.  This X-windows (and curses) program
  1429. can help you find and transfer PTFs from IBM to your machine.  It is availible
  1430. from <ftp://aix.boulder.ibm.com/aix/tools/fixdist/> and further instructions
  1431. are displayed after you login.  It is worth noting here that the files
  1432. fixdist retrieves are often quite large and therefore not recommended
  1433. for those with slow connections.
  1434.  
  1435. Ciaran Deignan <C.Deignan@frec.bull.com> says that Bull offers AIX
  1436. PTFs at <http://www-opensup.bull.com/>.  The basic download facility
  1437. requires that you have the right PTF number. The "Consult" facility
  1438. allows you to search for PTFs that apply to a given fileset (bos.rte.tty, for
  1439. example). The "search" facility allows a PTF to be selected on a wide
  1440. range of criteria.
  1441.  
  1442. Apple has their own fixdist site with all the fixes that has been
  1443. approved on the Apple Network Servers. Apple users should NOT use
  1444. the fixes available from IBM and their mirrors, but only from:
  1445. <ftp://fixdist.support.apple.com/> (130.43.6.8).
  1446.  
  1447.  
  1448. ------------------------------
  1449.  
  1450. Subject: 1.143:  Is there an easy way to determine if AIX
  1451.                  has a PTF applied or not?
  1452.  
  1453. lslpp -Bl Uxxxxxxx
  1454.  
  1455. Where Uxxxxxxx is the PTF id.
  1456.  
  1457. ------------------------------
  1458.  
  1459. Subject: 1.144:  How do I recreate a deleted /dev/null?
  1460. From: tvweaver@austin.ibm.com (Tom Weaver)
  1461.  
  1462. /bin/mknod /dev/null c 2 2
  1463.  
  1464. ------------------------------
  1465.  
  1466. Subject: 1.145:  What is a checkstop error?
  1467. From: tvweaver@austin.ibm.com (Tom Weaver)
  1468.  
  1469. While this may not be the official definition, what it means is that the
  1470. hardware has detected a condition that it cannot resolve, and which prevents
  1471. normal operation.  So, it stops executing instructions, responding to
  1472. interrupts, etc.  Usually it means that some component of the hardware is
  1473. broken.
  1474.  
  1475. ------------------------------
  1476.  
  1477. Subject: 1.146: How do I recover deleted files?
  1478.  
  1479. Preferably from a backup.  If you don't have a backup, at least one
  1480. company, Compunix, claims to have a product that will recover deleted
  1481. files.  More information is available at <http://www.compunix.com/>.
  1482.  
  1483. From: Bernard.Kozyra@bull.net
  1484.  
  1485. [Editor's note: this one appears to be for the really desperate ones,
  1486. but it might be helpful if you really need it the most.]
  1487.  
  1488. RECOVERING REMOVED FILES AND DIRECTORIES IN A FILESYSTEM
  1489.  
  1490. If a file is Deleted from the system, the filesytem blocks composing 
  1491. that file still exist, but are no longer allocated. As long as no new
  1492. files are created or existing files extended within the same filesystem, 
  1493. the blocks will remain untouched. It is possible to reallocate the 
  1494. blocks to the previous file using the "fsdb" command (filesystem debugger).
  1495.  
  1496.  
  1497.  MAKE A BACKUP OF THE ENTIRE FILESYSTEM BEFORE PERFORMING THESE STEPS!!!
  1498.  ELSE ( BANG !!!!! ).
  1499.  
  1500.  It is possible to send a mail for have some informations ...
  1501.  
  1502.                    Bernard.Kozyra@bull.net
  1503.  
  1504.  
  1505. Steps to recover a deleted file
  1506. -------------------------------
  1507.  
  1508. 1) "ls -id {dir}" 
  1509.    (where dir is directory where file resided)
  1510.    Record INODE number for next step.
  1511.  
  1512. 2) Unmount the filesystem.
  1513.  
  1514. 3) "fsdb /{Mountpoint}" or "fsdb /dev/{LVname}"
  1515.    (where Mountpoint is the filesystem mount point, and LVname is 
  1516.    the logical volume name of the filesystem)
  1517.  
  1518. 4) "{INODE}i"
  1519.    (where INODE is the inode number recorded in step 1)
  1520.    This will display the inode information for the directory. The
  1521.    field a0 contains the block number of the directory.
  1522.    The following steps assume only field a0 is used. If a value 
  1523.    appears in a1, etc, it may be necessary to repeat steps #5 and 
  1524.    #6 for each block until the file to be recovered is found.
  1525.  
  1526. 5) "a0b"
  1527.    (moves to block pointed to by field "a0" of this inode)
  1528.  
  1529. 6) "p128c"
  1530.    (prints 128 bytes of directory in character format)
  1531.    Look for missing filename. If not seen, repeat this step until
  1532.    filename is found. Record address where filename begins. Also
  1533.    record address where PRIOR filename begins. If filename does 
  1534.    not appear, return to step #5, and selecting a1b, a2b, etc.
  1535.  
  1536.    Note that the address of the first field is shown to the far left.
  1537.    Increment the address by one for each position to the right,
  1538.    counting in octal.
  1539.  
  1540. 7) "a0b"
  1541.    (moves to block pointed to by field "a0" of this inode)
  1542.    If the filename was found in block 1, use a1b instead, etc.
  1543.  
  1544. 8) "p128e"
  1545.    (prints first 128 bytes in decimal word format)
  1546.    Find the address of the file to recover (as recorded in step 6) 
  1547.    in the far left column. If address is not shown, repeat until found.
  1548.  
  1549. 9) Record the address of the file which appeared immediately PRIOR to 
  1550.    the file you want to recover.
  1551.  
  1552. 10) Find the ADDRESS of the record LENGTH field for the file in step 
  1553.    #9 assuming the following format:
  1554.  
  1555.    {ADDRESS}:  x    x    x    x    x    x    x    x    x    x  ...
  1556.                |    |    |    |    |-------- filename ------|
  1557.      inode # --+----+    |    |
  1558.                          |    +-- filename length
  1559.          record LENGTH --+
  1560.  
  1561.    Note that the inode number may begin at any position on the line.
  1562.    Note also that each number represents two bytes, so the address
  1563.    of the LENGTH field will be `{ADDRESS} + (#hops * 2) + 1'
  1564.  
  1565. 11) Starting with the first word of the inode number, count in OCTAL
  1566.     until you reach the inode number of the file to be restored, 
  1567.     assuming each word is 2 bytes.
  1568.  
  1569. 12) "0{ADDRESS}B={BYTES}"
  1570.     (where ADDRESS is the address of the record LENGTH field found
  1571.     in step #10, and BYTES is the number of bytes [octal] counted 
  1572.     in step #11)
  1573.  
  1574. 13) If the value found in the LENGTH field in step #10 is greater than
  1575.     255, also type the following:
  1576.  
  1577.     "0{ADDRESS-1}B=0"
  1578.     (where ADDRESS-1 is one less than the ADDRESS recorded in step #10)
  1579.     This is necessary to clear out the first byte of the word.
  1580.  
  1581. 14) "q"
  1582.     (quit fsdb)
  1583.  
  1584. 15) "fsck {Mountpoint}" or "fsck /dev/{LVname}"
  1585.     This command will return errors for each recovered file asking if
  1586.     you wish to REMOVE the file. Answer "n" to all questions.
  1587.     For each file that is listed, record the associated INODE number.
  1588.  
  1589. 16) "fsdb /{Mountpoint}" or "fsdb /dev/{LVname}"
  1590.  
  1591. 17) {BLOCK}i.ln=1
  1592.     (where BLOCK is the block number recoded in step #15)
  1593.     This will change the link count for the inode associated with
  1594.     the recovered file. Repeat this step for each file listed in
  1595.     step #15.
  1596.  
  1597. 18) "q"
  1598.     (quit fsdb)
  1599.  
  1600. 19) "fsck {Mountpoint}" or "fsck /dev/{LVname}"
  1601.     The REMOVE prompts should no longer appear. Answer "y" to
  1602.     all questions pertaining to fixing the block map, inode map,
  1603.     and/or superblock.
  1604.  
  1605. 20) If the desired directory or file returns, send money to the author
  1606.     of this document.
  1607.  
  1608. ------------------------------
  1609.  
  1610. Subject: 1.147: What questions are on the AIX Certified
  1611.                 User/SystemAministrator/etc., exam?
  1612.  
  1613. If you want more information,  look at
  1614. <http://www.rs6000.ibm.com/support/aixcert/>.
  1615.  
  1616. There's also a self assessment exam available at
  1617. <http://www.rs6000.ibm.com/cgi-bin/TC2/tc2_reg.cgi>.  The questions
  1618. are supposedly *derived from the same sources* as the AIX
  1619. Certification exams.  I assume that this means the actual exams cover
  1620. much of the same information.
  1621.  
  1622. I assume that the actual questions (and especially the answers) are
  1623. protected by copyright and possibly other laws,  so disclosing them
  1624. without IBM's permission would not be wise or legal.
  1625.  
  1626. ------------------------------
  1627.  
  1628. Subject: 1.148: How can I run a command or commands at system
  1629.         shutdown?
  1630.  
  1631. "Stock" AIX 4.1.x doesn't have any obvious place to add commands to
  1632. the shutdown sequence.  You can 1) modify /etc/shutdown (it's a shell
  1633. script); 2) add your commands to /etc/netware.clean (shutdown invokes
  1634. this program if it exists) or 3) install APAR IX65326 ("ADD
  1635. /ETC/RC.SHUTDOWN TO SHUTDOWN SCRIPT IN AIX4.1.5) which adds a
  1636. user-defined /etc/rc.shutdown script to the shutdown sequence.  AIX
  1637. 4.2 and above already has a similar feature.
  1638.  
  1639. ------------------------------
  1640.  
  1641. Subject: 1.149 How to install LPPs on a shared disk?
  1642. From: Ciaran Deignan <C.Deignan@frec.bull.fr>
  1643.  
  1644. I have an LPP that I want to install on all my AIX machines (for
  1645. example the "perl" freeware), but I want to minimize the disk-space
  1646. used on the network of machines. Can I selectively mount part of /usr
  1647. on another machine?
  1648.  
  1649. In general it is not possible to share an LPP with several machines.
  1650. Sometimes it is possible to use a dedicated filesystem to install
  1651. freeware which can then be shared.
  1652.  
  1653. However for anything packaged as an LPP it is possible to use
  1654. a script that replaces /usr/sbin/inurest, and that redirects files
  1655. delivered by the LPP to the shared disk.
  1656.  
  1657. One script that does this is called Ninstallp, and it is available
  1658. (with instructions) from
  1659. http://www.geocities.com/ResearchTriangle/5428/ninstallp.html
  1660.  
  1661. ------------------------------
  1662.  
  1663. Subject: 1.150 How can I reduce the size of /var/adm/wtmp ?
  1664.  
  1665. The file /var/adm/wtmp grows with each login, but is never reduced.
  1666. The contents of wtmp is used (only?) by the command "last",
  1667. which shows, in reverse order, all the logins and reboots that
  1668. happened since the start of the wtmp file.
  1669.  
  1670. The file should not be deleted, but the contents can be discarded using
  1671. the following command:
  1672. # > /var/adm/wtmp
  1673.  
  1674. Alternatively the freeware utility "tidysys" can remove all the entries
  1675. from wtmp that are older than (say) 15 days. Tidysys was written by
  1676. Terry Murray <terry@weavel.demon.co.uk> for AIX 3.2 and is available
  1677. from ftp://ftp.frontiernet.net/pub/aix/tsys220.tar.
  1678.  
  1679. Tidysys was ported to AIX 4.1 by C. Deignan and is available from
  1680. <http://www-frec.bull.com/>.
  1681.  
  1682. ------------------------------
  1683.  
  1684. Subject: 1.151: How do I start local daemons at system startup?
  1685.  
  1686. AIX does neither use the BSD style rc.local file nor the System V style
  1687. /etc/rc*.d startup files directories. To add local daemons to the system
  1688. startup sequence in a BSD rc.local style use the following command to
  1689. create an /etc/inittab entry:
  1690.  
  1691. # mkitab -i rcnfs "rclocal:2:wait:/etc/rc.local >/dev/console 2>&1"
  1692. # touch /etc/rc.local
  1693. # chmod 700 /etc/rc.local
  1694.  
  1695. Then put the command lines to start the daemons in /etc/rc.local.
  1696.  
  1697. ------------------------------
  1698.  
  1699. Subject: 1.152  How do I set the TZ variable to automatically change to
  1700.         daylight savings time?
  1701.  
  1702. The TZ variable can be set in /etc/environment file so the time
  1703. automatically switches to daylight savings time in spring and back to
  1704. normal in autumn. The actual rules when to switch vary by country, the
  1705. following should work in middle europe:
  1706.  
  1707. TZ=MET-1MET DST,M3.5.0/02:00:00,M10.5.0/03:00:00
  1708.  
  1709. The exact definition for the rules can be found with infoexplorer under
  1710. the environment page.
  1711.  
  1712. ------------------------------
  1713.  
  1714. Subject: 1.153  Why does init not reap its zombie child processes?
  1715.  
  1716. If you have lots of zombie (defunct) processes with parent process id 1,
  1717. the init process is probably waiting for some bad /etc/inittab
  1718. configuration line to finish. Check the inittab file for entries that
  1719. specify the wait keyword for processes that do not terminate. These
  1720. lines should probably specify "once" or "respawn" instead.
  1721.  
  1722. ------------------------------
  1723.  
  1724. Subject: 1.154  I'm looking for a missing command or header file.
  1725.         Which fileset do I need to install?
  1726.  
  1727. If you are at AIX Version 4.2.1 or later you could install              
  1728. bos.content_list and then use the command "which_fileset [ File ]"      
  1729. The which_fileset command searches the /usr/lpp/bos/AIX_file_list       
  1730. file for a specified file name or command name, and prints out the      
  1731. name of the fileset that the file or command is shipped in.             
  1732.  
  1733. ------------------------------
  1734.  
  1735. Subject: 1.155  Why doesn't the df -k output reflect the space I added
  1736.         to an LV?
  1737.  
  1738. You need to use the chfs command or the smit chfs menu to tell the file
  1739. system to use the new space. By the way, in most cases it is better to
  1740. just increase the size of the file system, it will increase the
  1741. underlying LV automatically.
  1742.  
  1743.