Comp.Unix.Aix FAQ -PART 1 of 5

zhaozj2021-02-16  111

------------------------------

Table of contents:

1.0 General Concepts

1.000 The Aix Operating System - What is it?

1.001 I Know neither Unix Nor Aix - Where do I find more information?

1.002 What is the object database?

1.003 How do I get rid of the verbose error message?

1.004 Which RELEASE OF AIX Do I Have?

1.005 What Hardware Do I Have? What is availible? WITS?

1.006 IS IBM "Dropping" AIX? AIX 3 Discontinued.

1.007 IS IBM "Dropping" AIX? AIX 4.1 / 4.2 Discontinued.

1.008 E-Server PSeries (IS IBM "Dropping" RS / 6000?)

1.009 Monterey / AIX 5L

1.1 SMIT, System Administration

1.100 I am Used to Unix Systems Programming, Why SHOULD I Learn SMIT?

1.101 How do I Turn Off The "Running Man" in smit?

1.102 How do I import AN / ETC / Passwd or / etc / group file from another box?

1.103 Cleaning Up Utmp, WHO, And Accounting Problems

1.104 how to fsck the root filesystem

1.105 How can I unmount / usr to run fsck on it?

1.108 How do I SEE / CHANGE Parameters LIKE NUMBER OF Processes PER USER?

1.109 How do I shrink The default paning space on hd6?

1.110 THE SWAPPER SEEMS TO USE ENORMOUS AMOUNTS OF PAGING SPACE, why?

1.111 How much Paging Space Do I NEED?

1.112 How do I MOUNT A FLOPPY DISK AS A FILESYSTEM?

1.113 How do I remove a committed LPP?

1.114 How can I Recover Space Installing Updates?

1.115 WHERE ARE THE AIX LOG FILES Kept?

1.116 How can I LOG INFORMATION ABOUT FTP Accesses to a file?

1.117 How do i find a file name from the inode number?

1.118 How do i set up postscript accounting?

1.119 How do i create boot diskettes?

1.120 WHERE CAN I FIND TOOLS for Performance Monitoring?

1.121 How Can I Tell What Virtual Printer A Print Queue Is Using? 1.122 Two Srcmstr's Are Less Useful Than ONE?

1.123 How do I set the TTY NAME Associated with a Physical Port?

1.124 How do I use mksysb to clone a system?

1.125 How do I retain timestamps with mksysb?

1.126 How can I find Out the machine type?

1.127 Updating to 3.2.5

1.128 AIX FIX Strategy

1.129 Are Passwords Limited to 8 char?

1.130 How do I increase the number of ptyrs> 64?

1.131 WHERE CAN I FIND PATCHES for CERT Advisories?

1.132 How do I Remove A Non-EXISTANT Physical Volume?

1.133 How do I Kill A Process That Ignores Kill -quit -kill -stop?

1.134 How can I see "console" messages?

1.135 WHERE CAN I Find Top for AIX?

1.136 How Can I Restrict Root Logins To Specific Terminals?

1.137 How do i merge my / etc / password and / etc / security / password for crack

1.138 I Lost The Root Password, What Should I do?

1.139 How Can I Resolve DEV_WAIT STATUS for a LOCAL PRINT QUEUE?

1.140 Smit Problems Forcing / OverWriting Install?

1.141 Which Distribution Tape Do I Have?

1.142 How can I get PTF (Fixes) VIA ftp? What is fixdist?

1.143 Is there an esy way to determine if AIX HAS A PTF Applied or Not?

1.144 How do I Recreate a deleted / dev / null?

1.145 What is a checkstop error?

1.146 How do I Recover DELETED FILES?

1.147 What Questions Are ON The Aix Certified User / SystemAminstrator / etc.,

EXAM?

1.148 How can I Run A Command Or Commands Automatically At System

SHUTDOWN?

1.149 How To Install LPPS ON A Shared Disk?

1.150 How can I reduce the size of / var / adm / wtmp?

1.151 How do I start local daem 3?

1.152 How do I set the tz variable to automaticly change to daylight

Savings Time? 1.153 Why Does INIT NOT Reap ITS ZOMBIE CHILD PROCESS?

1.154 I'm looking for a missing command or header file.

Which FileSet Do I NEED To Install?

1.155 Why Doesn't the df -k output reflectate the space I added

TO AN LV?

1.2 Backups, TAPE

1.200 Some INFO ABOUT TAPE Backups

1.201 How do I do remote backup?

1.202 How do I backup a multi-disk volume group?

1.203 How do I put multiple backups on a single 8mm tap?

1.204 How can I make an exact duplicate of a tape over the network?

1.205 What is Tape Block Size of 0?

1.206 RESETTING A Hung Tape Drive ...

1.207 How do I restore specific Files from a mksysb tape?

1.208 How do I ie i 5GBYTE TAPE ON A 2GBYTE DRIVE?

1.209 What CAN SYSBACK DO for ME?

1.210 How can I get my hp 4mm dat to work?

1.211 How do i copy dat tape?

1.212 How do I speted Up Backups to DLT TAPES?

1.3 Memory and Process Management

1.300 Some Info About The Memory Management System

1.301 How Much SHOULD I TRUST THE PS MEMORY REPORTS?

1.302 Which SIMMS DO RS6000's USE?

1.303 What is kproc?

1.304 How do I create a RAM DISK IN AIX?

1.305 How much ram (real memory) Does my machine has?

1.306 Why do PIDS Run Non-sequentially?

1.4 Shells, Commands, Man Pages, InfoExplorer

1.400 How do i make an informative prospt in the shell?

1.401 How do I set up ksh for emacs mode command line editing?

1.402 Listing Files with ls causes a core dump

1.403 How do I put my o t t infoExplorer?

1.404 InfoExplorer ASCII Key Bindings

1.405 How Can I Add New MAN PAGES TO The System?

1.406 Why Can't i be't i be't i ie is nroff?

1.407 Why is my Environment Only Loaded ONCE?

1.408 Where is the 'Nawk' Command on My AIX SYSTEM? 1.409 How do i copy infoExplorer (MANPAGES AND MORE) To my hard driving?

1.410 Why Can't i set my default shell to one we've job installed?

1.411 Why Do I get the "Unable to connection connect socket: 3" Starting Info-Explorer?

1.412 Why Can't I Write a setuid shell script?

1.5 Video, Graphics, X11

1.500 Which RELESE OF X11 Do I Have?

1.501 How To Prevent Ctrl-Alt-Backspace from Killing The x session

1.502 WHO HAS a Termcap / Terminfo Source for Aixterm or the hft console?

1.503 How Can I Look At PostScript Files? Why is "DPSEXEC" SO LOSY?

1.504 UNIX: 0 vs `Hostname`: 0

1.505 VT100 Key Bindings for AIXTERM

1.506 Is There A Screen Saver That Does Not Use Excessive CPU?

1.507 WHERE ARE The Colors, Availible for An X Session, Listed.

1.508 Why Does my app hang the x server but not an x ​​station?

1.509 How do I Switch The Control and caps Lock Key Bindings?

1.510 Missing Fonts?

1.511 What's THE TERMCAP Entry for an IBM 3151 LOOK LIKE?

1.512 Errors Starting X11 Application Binaries from aixpdslib.

1.513 .xshm *, .sm * (Shared Memory) Link Errors Building Xwindows Applications.

1.514 How do i set my display afen login to onener machine?

1.515 Why Doesn't Netscape Work?

1.6 NetWorks and Communications

1.600 my named DIES FREQUENTLY, why?

1.601 How do I TRACE ETHERNET PACKETS ON AN AIX SYSTEM?

1.602 What is the automount at boot time?

1.603 How do i set a tty port for Both Dial-in and Dial-out?

1.604 How to Move or Copy Whole Directory Trees Across A Network

1.605 How can I send mail to hosts what cannot be pinged?

1.606 How To Configure Dialup Slip

1.607 WHERE IS DCUSSED? 1.608 How do I make / var / spool / mail mountable?

1.609 Getty Spawning Too Rapidly

1.610 DOES AIX Support COMPRESSED SLIP (CSLIP)?

1.611 How do I setup anonymous ftp on my aix system?

1.612 Talk, Getting Notification.

1.613 Disabling Software Flow Control; USING RTS / CTS.

1.614 NIS Security

1.615 Why Can't Non-anonymous users login using wu-ftp?

1.616 NIS Users Can't login, Do I NEED '*' IN / ETC / PASSWD?

1.617 HP Jetdirect Cards and Virtual Printers? MkvirPRT Problems?

1.618 How can I HACK LIBC.A TO ALTER How Hostnames Are Resolved?

1.619 What Modem Settings Do I NEED?

1.620 NIS SLAVE SERVER CONFIG WITH MASTER ON DIFFERENT SUBNET?

1.621 Why Does My 64 Port Concentrator LOOSE DATA AND DROP THE QUEUE?

1.622 Netscape FastTrack Server Won't Install on Aix 3.2.5 OR 4.1.

1.623 How Can I Share Files / Printers with Windows 95?

1.624 Printing from Aix To Winnt / 95 / 3.1

1.625 How do I get nfs mounting with linux to work?

1.626 Telnet Takes a 45 Seconds to Produce a Prompt.

1.627 Ethernet Frame Type - EN0 VS. ET0

1.7 LVM

1.700 Free LVM Lecture Slides

1.701 How do I shrink / usr? (Formerly 1.106)

1.702 How do I make a filesystem larger Than 2GB? (Formerly 1.107)

1.703 CHLV WARNING, IS THE FIRST 4K OF A LV SAFE? (Formerly 1.139)

1.704 What's The Limit on Physical Partitions Per Volume Group?

1.705 Why AM i HAVING TROUBLE ANOTHER DISK to MY VG?

1.706 What Are The Limits ON A File, FileSystem?

1.707 HINTS for SEGATE 9 GB AND OTHER Disks Larger Than 4 GB? (See 1.704)

1.708 How do i fix volume group locked?

1.709 How do I Remove A Volume Group with no disks?

1.710 What Are THEORETICAL LIMITS WITHIN THE LVM?

1.8 AIX 4.X1.800 How do i control how Hostnames Are Resolved?

1.801 DTLOGIN IGNORES / ETC / PROFILE?

1.802 WHERE's the c compiler?

1.803 Why Doesn't Netscape Work?

1.9 Miscellaneous

1.900 SCSI-1 and SCSI-2 "Interoperability" got you confused?

1.901 how to get your keyboard back instance unplugging it from the 6000

1.902 How do I set up PCSIM, The DOS Emulator?

1.903 How do I Transfer Files Between Aix and Dos Disks?

1.904 WHERE Is The CRYPT Program?

1.905 How do I Play Audio CDS?

1.906 How can I get the mouse back instance unplugging it?

1.907 WHERE CAN I GET SOURCE CODE TO The OPERATING SYSTEM BINARY XXXXX?

1.908 What's The Difference Between THE POWER AND POWERPC ARCHITECTURES?

1.909 WILL THERE BE DATE ROLLOVER PROBLEMS in The Year 2000?

1.910 How can I Build An "installp format" file?

1.911 is There a generic scsi driver for AIX?

1.912 Viruses or Virus Scanning on Aix?

1.913 How do I Determine The Clock Frequency of A RS / 6000 by

Software?

1.914 How do I create a ramdisk?

1.915 Can I Run Linux on an rs / 6000?

2.00 C / C

2.01 I Cannot Make Alloca Work

2.02 How do i compile my bsd programs?

2.03 Isn't The Linker Different from What am Used To?

2.04 How do i staticly link my program?

2.05 How do i make my oow silk library?

2.06 Linking My Program Fails with Strange Errors. Why?

2.07 Why Does It Take So Long To Compile "Hello World" with xlc?

2.08 What's with malloc ()?

2.09 Why Does XLC Complain About 'Extern Char * STRCPY ()'

2.10 Why Do I get 'parameter List Cannot Contain Fewer ....'

2.11 Why Does XLC Complain About '(SomeType *) SomePointer = Something'

2.12 Some More Common Errors2.13 Can the Compiler Generate Assembler Code?

2.14 Curses

2.15 How do I speted up linking?

2.16 What is deadbeef?

2.17 [Moved to 8.10]

2.19 Imake, MakeDepend

2.20 How can Tell What Shared Libraries a binary is linkid?

2.21 CAN I GET A PTF for MY C / C Compiler from the net?

2.22 Why Does "INSTALL" ING SOFTWARE I GOT from the net fail?

2.23 What is Linker TocLow Error 12?

2.24 What is the limit on Number of Shared Memory Segments I Can Attach?

2.25 I DELETED LIBC.A BY Accident --- How do I recover?

2.26 WHERE CAN I FIND DLOPEN, DLCLOSE, AND DLSYM FOR AIX?

2.27 WHERE CAN I FIND LDD FOR AIX?

2.28 How do I make my program binary executable on the power, power2,

AND PowerPC Architecures?

2.29 How do i access more Than 256 megabytes of memory?

2.30 How do I Use POSIX THREADS with GCC 2.7.x?

2.31 Why does pthread_create return The Error Code 22?

2.32 How do i build Programs Under a Later Aix Release That Run

Under Earlier Releases As Well?

3.00 Fortran and Other Compilers

3.01 I Have Problems Mixing Fortran and C C code, why?

3.02 How do i staticly bind fortran libraries and dynamically bind

C Libraries?

3.03 How do i check if a number is nan?

3.04 Some Info Sources on IEEE FLOATING POINT

3.05 Why Does It Take So Long To Compile "Hello World" with XLF? (See 2.07).

4.00 gnu and public Domain Software

4.01 How do i find pd software?

4.02 Are there any ftp suit?

4.03 general hints

4.04 GNU Emacs

4.05 GCC / GDB

4.06 gnu ghostscript

4.07 TEX - Document Processing

4.08 Perl - Scripting Language

4.09 x-windows

4.10 Bash - / BIN / KSH Alternative from FSF

4.11 Elm - Mail Reader

4.12 Oberon 2.2

4.13 Kermit - Communications4.14 GNU DBM

4.15 TCSH - An Alternative Shell

4.16 Kyoto Common Lisp

4.17 TCL / TK - X-Windows Scripting

4.18 Expect

4.19 Public Domain Software on CD

4.20 Andrew Toolkit

4.21 Sudo

4.22 FlexFax / Hylafax and Other Fax Software

4.23 LSOF - LIST OPEN FILES

4.24 Popper - POP3 Mail Daemon

4.26 MPEG LINK ERRORS VERSION 2.0

4.27 NNTP, INN - News (USENET) News Transport Protocol, News Server Software

4.28 ZMODEM - File Transfer

4.29 Patch - Automated File Updates

4.30 XNTP - Network Time Protocol, SYNCHRONIZES Clocks

4.31 GNU Screen 3.6.2 And Aix 4.1.x

4.32 SCSI Scanner Software

4.33 Pager / Page Software

4.34 Java Development Kit

5.00 Third Party Products

5.01 Non-IBM AIX Hosts

5.02 Disk / Tape / SCSI

5.03 Memory

5.04 Others

5.05 C Compilers

5.06 Memory Leak Detectors

5.07 PPP

5.08 graphics adapters.

5.09 Training Course

5.10 Hardware Vendors

5.11 Debugging AIDES

6.00 Miscellaneous Other Stuff

6.01 CAN I get support by e-mail?

6.02 List of useful faxes

6.03 IBM'S FTP, GOPHER AND WWW Presence

6.04 Some RS232 Hints

6.05 What PUBLICATIONS Are Available for Aix and RS / 6000?

6.06 Some Acronyms

6.07 How do I get this by mailserver or ftp?

6.08 Hypertext Version of the FAQ

6.09 IBM Documentation on the WWW.

6.10 Comp.unix.Aix Archive Availible on The WWW

6.11 How Can I Access The Comp.Unix.Aix NewsGroup Via Email (Or Web)

8.00 Program Listenings

8.03 How do I set up postscript accounting?

8.04 How can I find out the machine type?

8.05 Updating to 3.2.5

8.06 How do I do remove backup?

8.06 How do I do remote backup? (Contain)

8.07 How To Configure Dialup Slip

8.08 Disabling Software Flow Control; Using RTS / CTS.8.09 How Can I Hack Libc.A To ALTER How Hostnames Are Resolved?

8.10 How do i make an export list from a library archive?

9.00 Contributors

Subject: 1.000: The Aix Operating System - What is it?

THIS BEST ANSWERED by Reading The Text Files IN / USR / LPP / BOS. The

Readme File The 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.

The RS / 6000, There Are Five Major Levels, 3.1, 3.2, 4.1, 4.2, 4.3, and

Various Intermediate Levels. IBM Has Dropped Support for 3.1, 3.2, 4.1

And 4.2

Y2K Compliancy Issues Have Been Addressed by PTF's on 3.2, and 4. *.

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 union, you shouth kett 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?

From: Uwe Geud <

Uwe.geuder@informatik.uni-stuttgart.de>

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 Theobject 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

Where is one of the files in / etc / objrepos.

Experienced Users Can Use The ODM Editor, Odme, To Navigate The Database

In detil. Modifying the database shop Only Be attempted if you know

EXACTLY What You are doing.

Subject: 1.003: How do i get rid of the verbose error message?

From: bjorn p. brox

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 message

Have a message number associated with them, e.g .:

$ Cat no-resh-file

Cat: 0652-050 Cannot Open no-resh-file.

If you prefer the tersr unix-looking error message, set your

Environment Variable LC_MESSAGES TO C, AND You WILL GET:

$ Cat no-resh-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 Compla total 11/12/92 23:18:21 root

U401969 03.02.0000.0000 Compla total 11/12/92 23:18:20 root

..........................

U418349 03.02.0000.0000 Compla total 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 Selective. 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 'llpp -m bos.obj' to

SHOW What level and update the system is running. You can also use the the the the SYSTEM ISOR

New Oslevel Command. Unless You Have a pressing NEED (SUCH AS

Applications Unsupported On> 3.2.3), IT IS Recommended That You Update

.............

Subject: 1.005: What Hardware Do I Have? What is availible? Wits?

From:

C.deignan@frec.bull.fr (c.deignan)

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.1.3.0.0.exe 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 (4.3). HOWEVER, ON January 31, 1997

IBM Will "withraw Aix 3.2.5 from marketing." That IS, You Won't becom

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 "AnnUncement Letters," THEN SEARCH

For Document Number 996-245.

Subject: 1.007: IS IBM "Dropping" AIX? AIX 4.1 / 4.2 Discontinued.

No. IBM Sells and supports AIX 4 (4.3). However, AIX 4.1 and 4.2

Were with exstation.

THEY WILL NO LONGER RESPOND TO (MOST) DEFECT Reports

FOR AIX 4.1 and 4.2.

Subject: 1.008: E-Server PSeries (IS IBM "Dropping" RS / 6000?)

Will you get real? After 10 Years of Success Why Would IBM Drop IT?

Relax! Drink a few vodkas.

The PSeries IS Just The New Name of Some RS / 6000'S.

Other Than That, "a rose by any other name would Smell As Sweet" Subject: 1.009: Monterey / AIX 5L

IBM HAS Announced "AIX5L". It's essential aix version 5. The 'L' Stands

For "Linux Affinity". A Statement That Aix Is Going to Support Some of The

Linux API's and Interfaces (for instance: the / proc filesystem)

Some Changes to the FileSystem Limits, Virtual IP's, Dynamic DEALOCATION

Of swapspaces.

You can read all About it in

http://www.ibm.com/servers/aix

Subject: 1.100: I am Used to Unix Systems Programming 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 T

Normal Way Works. Again, Always Using Smit Is Probably Your Best Way

TO Go, Even you you have to leave to learn a new tool.

What Smit Actually Does Is Build Up Commands with All Required Options

TO Perform The Functions Requester and Execute Them. The Commands

Called and the output the product area 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-THIS WILL CREATE The Proper Entries INTHE Shadow Password File (/ etc / security / user). 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 / limiteds, / etc / security / environ. The

Last Three Are Optional UnsS you modified them. if you modified

/etc/security/login.cfg, you shouth 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 Program 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 Unsing 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 us_sysv_utmp

#define HAS_UTMP_UT_HOST

#define WTMP_FileName "/ var / adm / wtmp"

#ENDIF

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.

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

DWS@cs.wisc.edu) 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?

From:

Accapadi@mathew.Austin.ibm.com (Matt Acapadi)

[This is for 3.2.]

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 kiln 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 operation system parameters

- On this screen you can change by Overtyping the Following Fields:

- Maximum Number of Processes AlloWe 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 paning space on hd6?

X-with-changes-from: ray reynolds <

Reynolds@valisys.com>

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 Changd to the Temporary Swap Device Before 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

7) Re-edit /etc/rc.boot4 (3.1), /sbin/rc.boot (3.2 / 4) 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)

9) Change Current Paging Device (PAGING00) SO IT IT Boot Boot

CHPS -A N / dev / Paging00

10) Shutdown, Reboot, REMOVE PAGING00 Using the Command:

RMPS Paging00

You can check your paning 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:

User PID% CPU% MEM SZ RSS TT Stat Time Cmdroot 0 0.0% 14% 386528 8688 - S 17:06 Swapper

THIS 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?

From:

Op@holmes.acc.virginia.edu (OLAF PORS)

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.

To make the read only FileSystem on a Floppy:

1. Make a subdirectory on an existing filesisystem and place all of the

FILES That The Diskette Will Contain Into this subdirectory.

2. Enter the folowing 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:

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 MAY BE OF LIMITED USE But if you

Are Going to Use it for utility programs and other data trig

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 the rejecting the package.

AIX 4 Users: Installp Has A New Option, Uninstall (-u) Which Can Be

Used to remove lpps. BEWARE OF Pre-Requisite CHAINS.

Subject: 1.114: How Can I Recover Space Installing Updates?

From: Milt Cloud <

Cloud@ux1.cso.uiuc.edu>

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 SAESE 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:

/ usr / lpp / bos / deinstl *

/ USR / LPP / BOS / INST_U4 *

/ USR / LPP / BOSADT / Deinstl *

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 NOTBE QITE AS Preview.

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?

From:

Dirk@kimosabi.ucsc.edu (Dirk Coldewe)

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; mail.crit; user.none / var / adm / messages

Lpr.debug / var / adm / lpd-errs

* .lart; kern.err; daemon.err; user.none operator

* .lart; user.none root

* .emerg; user.none *

# for loghost Machines, To Have Authentication Messages (Su, Login, ETC.)

# Logged to a file, un-comment out the folloading line and adject the

# File Name as appropriate.

#

# ify # if a non-loghost machine chooses to have resch mess

# 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?

From: Elr@trintex.uucp (ed ravin)

From:

Map@hal.maths.monash.edu.au (Michael Page)

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 trat ftpd is cag.

You May Also Want The "-d" flag. This can be doe 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?

From: /

G=bill/s=mansfield/O =p00s38e/ou1=notes/dd.hpnotes=bill_mansfield/mcd/us#a#mcd@mhs-mcdusa.attmail.com (Bill Mansfield)

nCheck -i nnnn / mntpoint

Subject: 1.118: How do I set up postscript accounting?

From:

TALUSKIE@utpapa.ph.utexas.edu (Vince Taluskie)

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 the 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:

Spooler

Manage Local Printer Subsystem

Local Printer Queue Devices

Change / show Characteristics of a Queue 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 accctfile, the use there

'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 pswap.c.

[pswrap.c Source Has Been Moved to Section 8.03]

Subject: 1.119: How do i create boot diskettes?

IN AIX 4.X 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

IT is The "Communications Extension" Diskette.

Subject: 1.120: Where can I find Tools for Performance Monitoring?

Free X based Performance Watcher: xsysstats - <

ftp://ftp.x.org/contrib/>

For 3.2 A Few Tools Are Available In / USR / LPP / BOSPERF. There Are Tools

To Monitor Traces, I / O Events, CPU, Virtual Memory, Disk Block USAGE,

Kernel Extensions, ETC. IT Even Has A Simulator, RMSS, That Allows ONE

To try out Different Memory Size Configurations To See How IT Impacts

Performance. See 6.05 for the aid performance and tuning guide.

The Monitor Program Is An Aix / 6000 System Performance Monitor Program.Monitor Can Be Used to Display System Statistics of Various Short Time

Performance Values. Monitor Program Is Available for Anonymous FTP from FROM

<

ftp://ftp.funet.fi/pub/unix/aix/r6000/Monitor-2.1.1.tar.z> -file.

New to Version 2 (Released As Version 2.1.1)

* Allow Logging of Information on Interval Basis in ASCII Format.

The Logfile Can Be Specified As A Strftime String and Can Be

COMPRESSED.

* Synchronize Sample / Interval Time On Wall Clock (from 00:00).

* Sample / Interval Time Is Now Accurate To Around 10 MilliseConds

Depending On System Load.

* User Count For Remote and INACTIVE USERS, And Average INActive Time.

* System uptime isprinted.

* Highlighted Headers

* In logmode, FileSystem USAGE IS Logged

* Support for Symmetric Multiprocessing CPUInfo (-SMP Option

OR 'S' Character Command.

* Help Page in interactive mode 'h' or '?' Character Commands

Subject: 1.121: How Can I Tell What Virtual Printer A print Queue Is Using?

From:

Yoder@austin.ibm.com (stuart r. yoder)

Use the command 'lsvirprt'. Don't use any parameters and it will Will

Run in an interactive mode tria 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?

From:

Hubert@rs530.ncs.mainz.ibm.com (Bernhard Zeller)

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?

From: accapadi@mathew.Austin.ibm.com (Matt Acapadi)

Let's say you wanted to make a tty on the s1 port and call it q

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?

From:

Joann@ariadne.slac.stanford.edu (Jo Ann Malina)

I use the follineing steps on the master machine to clone an aid 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 the.com being start 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 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 here getwork.

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?

ORIGINALLY from:

Graeme@ccu1.aukuni.ac.nz (Graeme Moffat)

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 '

Retain modification Times ". SO, SIMPLY CHANGE All the '-PMOP' TO

'-pop' and remake inst / maint diskettes or mksysb tape.

Subject: 1.126: How can I find out the machine type?

[Due to It's Length this Script Was Moved to Section 8.04]

Subject: 1.127: Updating to 3.2.5

From:

Kraemerf@franvm3.vnet.ibm.com (Frank Kraemer)

(Ed. The folload is useful if you have to update a large number of

Systems, Large Being> 3.)

*** WARNING: Modify The Scripts if you need datales, 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 3.2.0.0.u422467

4) Use the folowing script to loading the Tape in the New FileSystem

# CD / PUB / PMP3250

# mktape2disk.sh 0 447 << - r 447 files from RMT0

[The mktape2disk.sh script HAS Been Moved to Section 8.05]

Subject: 1.128: AIX FIX Strategy

From:

LeedP@Austin.ibm.com (Dennis Lee, PMP RELEASE MANAGER)

First, a little history ...

The Maintenance Strategy for Aix 3.1 Was Cumulative Updates. Every FewMonths, We'd Put Available Fixes in One Large Package and Ship IT.

There Was No REAL STRATEGY for Providing a Single fix. Although WE'D

Occasionally Produce An Emergency Patch, There Was No Method for

TRACKING THEM; if You Got A Second ONE, IT Might Overwrite The First.

SO, After A Few of these Patches, It's hard to track.

In Aix 3.2 We Introducesd A "Selective Fix" Strategy to Support

Individual fixes. The package contained information about Other fixes. INFORMATION ABOUT OTHER

That Were Required For That Fix To Work Correctly. for Example, A Korn

Shell Fix Might Require a Change in Libc.a, Which Might In Turn Require

A FIX In The Kernel. This Strategy Allowed US To Keep TRACK OF WHICH

Fixes were installed to make Sure We Didn't Overwrite One with Another,

And make Sure The all worked together. But the initial selection fix

Design Still Had A Few Problems.

o None of the fixes were cumulative. If you got a fixed for Korn shell,

You May Not Receive All of the fixes for korn shell. This Left the

Possibility of Rediscovering Other Problems That WERE Already Fixed.

o Since We chose to fix everyhes Possible That Was Reported As a

Problem, Instead of Deferring The Number

Of available fixes became Quite Large.

O the number of additional fixes required by Any Given Fix Could Also

Be Quite Large. Since The Installation Program Ran Once for Each

FIX, THE Size and Complexity of the FIX PACKAGES GREW, AND

Installation Time Length.

While Developing The Aix 3.2.4 Upgrade, We UndTook A Large Effort To

Resolve the selective fix concerns, and diamatically increase the

Quality Of Aix 3.2. The base OptionalProgram Products WERE Split INTO SUBSYSTEMS. A SUBSYSTEM IS A Group of

Logically Related Files. The Division Was Made Such That To A

Given Subsystem Were Less Likely TO Affect Other Subsystems. in Total

There Are Approximately 500 Subsystems, But in Practice, Files Have Been

Modified in Only About Half of Them. The advantages of the new

Packaging Strategy Are:

O Each Subsystem Package Is Cumulative, Containing All of the Fixes

And Enhancements to date for That Subsystem.

o The cumulative subsystem package is tsted as an entity.

O the number of fix packages is getly reduced because the number of

Subsystems is far feweer Than the number of fixes and enhancements.

o the number of other fixes required by Any Given fix is ​​also greatly

Reduced Because A Subsystem Package Has Requisites Only On Other

Subsystem packages.

o The Reduced Number of Fix Packages Great Reduced Installation TIME.

Some Customers Also Told US That Thei Liked The Maintenance Level

Strategy That We buy in Aix 3.1. They Liked Being Able To Install All

Of the known fixes, and the liked knowing what "level" of aix the her had.

To Meet The Requirements, We Producted a Preventive Maintenance Package

(PMP). The PMP is Simply a Collection of the Latest Cumulative

Subsystem packages Tied TOGETHER in Such A Way That It Can BE Installed

By Selecting a Single Fix. We Also Added Flags to the Lslpp Command and

Added a New Command, Oslevel, To Show Which PMP is Installed. Now WE

Had Both! The Good Attributes of Selective Fix Along with the Good WIOD

Attributes of maintenance level.

A FEW Q & AS:

Q. Why is The FIX I Just Received 130 Megabytes! @ #? I Already Have Theaix 3.2.4 Update Installed!

A. Your Fix May Be Part of The Aix 3.2.5 Update. AIX 3.2.5 IS Another

PMP That Contains All of the fixes to date, as well as enhancements

To support the powerpc model 250, and the new high-end rs / 2 models

590 and 990, AS Well As Support for New Disk and Tape Drives, Graphics

Adapters and more.

Q. Why can't you just build my fix on 3.2.4?

A. There really isn't such one... 3.2.1 or 3.2.2 or Even 3.2.4.

They're Just Collections of Fixes and Enhancements Built on A 3.2 Base.

IF The Fix for your problem was built prior to 3.2.5, you can get the

Older Version. But if your fix. but the first time in a 3.2.5

Subsystem, That's The Only Version of The FIX That Exists.

See Also 6.02.

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 ptyrs> 64?

From:

Mick@oahu.cern.ch (mickey coggins)

Smit Only Allows 64. Try this:

Odmget -q "Attribute = NUM ​​AND UNQUETYPE = Pty / Pty / Pty" PDAT |

SED "S / 0-64 / 0-512 /" |

odmchange -q "attribute = num and uniquepe = pty / pty / pty" -o pdat

Chdev -l pty0 -anum = 256 -P

Reboot

Subject: 1.131: WHERE CAN I FIND PATCHES for CERT Advisories?

Patches (Apars in IBMspeak) For Cert Advisories (System SecurityProblems) 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?

THANKS to Johnny Shieh (

Shieh@austin.ibm.com)

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

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

Kill -quit -kill -stop

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 / 256) | Crash | Tee Stack

If you can't first what is wrong, print this trace out and call

1-800-237-5511 and Tell the 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?

From: crow@tivoli.com (David L. CROW)

Use the swcons command to redirect the console to a file. Or us

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?

From:

Jfh@Austin.ibm.com (Julianne F. Haugh)

READ FAX 2737 Availible from the 800-IBM-4FAX Number Discussed in

Sefer 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 soned i do?

From:

Dramm@csusm.edu (Donald E. RAMM)

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 Replace 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 wherever it's caled, 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?

From:

Chuah@sam.po.my (chuah teik chye)

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.

Subject: 1.141: Which Distribution Tape Do i Have?

From:

Fuzzy@obelix.ncs.mainz.ibm.com (Thomas Braunbeck)

AIX 3.2.5 (3250-04-09)

| | | | | |

| | | | | |

| | | | Revision Level

| | Enhancement Level

Preventive Maintenance Package (PMP) Level

AIX Version, Release, Modification Level

Subject: 1.142: How can I get PTF (fixes) VIA ftp? What is fixdist?

Get a copy of ibm's fixdist package. This X-Windows (and curses) Program

Can Help you find and transfert ptfs from ibm to your machine. it is availible

From <

FTP: / /AIX.BOULDER.IBM.com/aix/tools/fixdist/> and further instructions

Are Displayed After You Login. It is Worth Noting Here That The Files

Fixdist Retrieves Are Off Ree Large and Therefore Not Recommeded

For Those with Slow Connections.

Ciaran Deignan <

C.deignan@frec.bull.com> Says That Bull Offers AIX

PTFS AT <

http://www-opensup.bull.com/>. The Basic Download Facility

Requires That You Have The Right PTF Number. The "Consult" Facility

ALLOWS you to search for PTFS That Apply to a given fileset (bos.rte.tty, for

Example). The "Search" facility allows a ptf to be selected on a Wide

Range of criteria.

Apple Has Their OWN Fixdist Site with all the fixes That Has Been

Approved on the apple network server. Apple Users Should Not Use

The Fixes Available from Ibm and Their Mirrors, but Only from:

<

ftp://fixdist.support.apple.com/> (130.43.6.8).

Subject: 1.143: Is there an esy way to determine if Aixhas a PTF Applied or not?

LSLPP -BL UXXXXXXX

Where uxxxxxx is the PTF ID.

Subject: 1.144: How do i recreate a deleted / dev / null?

From:

TVWeaver@Austin.ibm.com (Tom Weaver)

/ BIN / MKNOD / DEV / NULL C 2 2

Subject: 1.145: What is a checkstop error?

From: TVWeaver@Austin.ibm.com (Tom Weaver)

While this may not be the official definition, what it means is what

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?

Preference from a backup. If you don't have a backup, at Least One

Company, Compunix, Claims to Have a Product That Will Recover Deleta

Files. More Information Is Available At <

http://www.compunix.com/>.

From:

Bernard.kozyra@bull.net

[Editor's Note: this one appears to be for the real desperate ",

But it might be helpful if you real, it the max.]

Recovering Removed Files and Director 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 Wtem FileSystem,

The Blocks Will Remain Untouched. It is Possible To Reallocate To

Blocks to the prepvious file using the "fsdb" Command (FileSystem debugger).

Make a backup of the entire filesystem before performing these steps !!!

Else (Bang !!!!!).

IT IS Possible to Send A Mail for Have Some INFORMATION ...

Bernard.kozyra@bull.net

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.

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 UNL

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 Immedierately 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 x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x wh

| | | | | -------- FileName ------ |

Inode # - ---- | |

| - Filename Length

Record Length -

Note That the inode number year begin at any position on the line.

Note Also That Each Number Repesents 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 Restore,

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 [oscal] 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 number.

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 qustions.

For Each File What 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.147: What Questions Are On The Aix Certified

User / systemaministrator / etc., Exam?

If You Want More Information, Look at

<

http://www.rs6000.ibm.com/support/aixcert/>.

There's Also a Self assessment Exam Available At

<

Http://www.rs6000.ibm.com/cgi-bin/tc2/tc2_reg.cgi>. The qustions

Aresu company * derived from the same sources * as the aix

Certification Exams. I AssuMe That this Means The Actual Exams Cover

Much of the same information.

I Assume That The Actual Questions (and especially the answer) area

Protected by Copyright and Possibly Other Laws, So Disclosing Them

WITHOUT IBM'S Permission Would Not Be Wise or Legal.

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 And Above Already HAS A Similar Feature.

Subject: 1.149 how to install lpps on a shared disk?

From: Ciaran Deignan

I have an LPP That I Want to Install on All My AIX Machines (for

Example the "Perl" freeware), But I want to minimize the disk-spaceused on the network of machines. can i selectively mount part of / usr

ON Another Machine?

IN General It is Not Possible to Share An LPP with Several Machines.

Sometimes it is possible to use a dedicated filesystem to install

Freeware..

However for anything packaged as an LPP IT IS Possible To Use

A Script That Replaces / USR / Sbin / InuRest, And That Redirects Files

Delivered by the lpp to the shared disk.

One Script That Does this Is Called Ninstallp, And It Is Available

(with instructions) from FROM

http://www.geocities.com/researchtriangle/5428/ninstallp.html

Subject: 1.150 How can I xi xi / wtmp?

The File / Var / Adm / WTMP GROWS with Each Login, but is never reduced.

The contents of wtmp is buy (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

Alternatively the freeware utility "tidysys" Can Remove All The Entries

From wtmp this area.. Tidysys Was Written by

TERRY MURRAY <

Terry@weavel.Demon.co.uk> for Aix 3.2 and is available

From ftp://ftp.frontiernet.net/pub/Aix/.

Tidysys WAS Ported to Aix 4.1 by C. Deignan and is available from the AVAILABLE FROM

.

Subject: 1.151: How do i start local daem 3

AIX Does Neither Use the BSD Style Rc.local File Nor The System V Style

/etc/rc*.d Startup Files Directories. To add local daems to the system

STARTUP SEQUENCE IN A BSD RC.Local Style Use The Following Command Tocreate 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 automaticly 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. Thase

Lines Should Probably Specify "OR" RESPAWN "INSTEAD.

Subject: 1.154 I'm looking for a missking 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 the 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, andprints out the

Name of the fileset That the file or command is shopping.

Subject: 1.155 why doesn't the df -k output reflectate the space I added

TO AN LV?

You need to use the chfs command or the smit chfs menu to tell the filesystem 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 automaticly.

转载请注明原文地址:https://www.9cbs.com/read-10642.html

New Post(0)