From: afx@ibm.de (Andreas Siegert)
Newsgroups: bit.listserv.aix-l,comp.unix.aix
Subject: AIXTIPS NEWS 92280
Date: 17 Aug 92 11:13:29 GMT
Reply-To: afx@ibm.de
Followup-To: comp.unix.aix
Organization: IBM AIX Field Support Center, Munich

This is AIXTIPS NEWS for customers released at Mon the 17. Aug 1992.

Table of contents:
92280. How to list all smit fast paths
92282. Zero hop static routing via the same X.25 interface on AIX 3.2
92283. How to reduce the paging space on AIX 3.2
92284. HOTW: How to use aixterm arrow keys for command history/recall
======================================================================
 
Note:
The information in this document has not been submitted to any formal IBM test
or review and is distributed on an "as is" basis without any warranty either
expressed or implied. The use of this information is a customer responsibility
and customers attempting to adapt these techniques to their own environment
do so at their own risk.

Some of the tips might reference internal TOOLS disks for more information.
Please contact your IBM representative if you need those documents.

Your AIXTIPS Team 		              Internet: aixtips@ibm.de
======================================================================
>92280. How to list all smit fast paths

 From SETI:

     The smit fastpaths are stored in the smit odm file "sm_menu_opt"
   I have devised a process to extract this information and put it into
   an ASCII file for easy viewing.  Perform the following steps in order
   to make this conversion:
   1.  odmget sm_menu_opt > smitmenuoptions
   2.  make a file called "sed.script" which contains the following lines.
       s/next_id /smit fastpath /p
       s/text /smit menu /p
   3.  sed -n -f sed.script smitmenuoptions > smitfastpaths
   4.  del smitmenuoptions
   6.  pg smitfastpaths
     The "smitfastpaths" file will contain the fastpath for smit followed
   directly by which menu the fastpath takes you to.  This process will
   work on both AIX 3.1 and AIX 3.2 systems.

======================================================================
>92282. Zero hop static routing via the same X.25 interface on AIX 3.2

From SETI:

A change to AIX V3.2 affects TCP/IP over X.25.  Page 72 of the "AIX V3
X.25 Communications Cookbook" instructs the reader to establish a
zero hop count static route.  This red book was written based upon an
AIX V 3.1.5 system.

With AIX V 3.2, the SMIT menu for Add Static Route no longer provides
an opportunity to set a metric.  To add to the confusion, the syntax
for the "route" command has also changed for AIX V 3.2 (we picked up BSD 4.4).

SOLUTION:

Assuming HOST A is 1.1.1.1 and HOST B is 2.2.2.2, here's how to do a
zero hop count route from the command line:

    With V 3.1.5:    route add host 2.2.2.2 1.1.1.1 0
    With V3.2:       route add -host 2.2.2.2 1.1.1.1 -interface

The user may choose to put this route statement in the /etc/rc.net so
the route is automatically established for X.25 during system boot.

======================================================================
>92283. How to reduce the paging space on AIX 3.2

From SETI:

 The following info will let you re-define the primary paging space
 to the correct size and regain all that valuable disk space.

 This is only applicable on AIX Version 3.2 RISCSystem 6000 systems.

SOLUTION:

 FOLLOW THESE INSTRUCTIONS CAREFULLY - especially the rebuilding of
 the boot logical volume image and make sure that this command
 completes before re-booting or it's re-install time!

 1.  Comment out the line in /sbin/rc.boot that activates /dev/hd6.
     Search for hd6. Insert "#" character to the front of the line.

 2.  Disable use of hd6 at IPL either through SMIT or using;
      # chps -a 'n' hd6.

 3.  Rebuild the boot logical volume image with;
      # bosboot -a -u -d/dev/hdisk#

     (where # is the boot disk number on the machine - usually 0).

 4.  Reboot the system using;
      # shutdown -Fr

 5.  Remove the old hd6 paging space through SMIT or using;
      # rmps hd6

 6.  Create a new paging space of the correct size through SMIT or
     using:
      # mkps -s #  -a rootvg hdisk##

   (where # is the size of the new primary paging space in 4Mb parti-
   tion and ## is the disk number where the primary paging space
   should be locate usually on hdisk0).

 Note: If you use SMIT, select activation on boot, but not active now
       or you will not be able to do the next operation.

 7.   Rename this new paging space to be hd6 using;
       # chlv -n hd6 paging##
     (WHERE ## IS THE NUMBER OF THE PAGING SPACE CREATED - USUALLY 00
      this is the first manually created paging space).

 8.   Edit out the reference to the old paging00 in /etc/swapspaces

 9.   Remove the comment from the "swapon" command in /sbin/rc.boot

 10.  Rebuild the boot logical volume image again as above.

 11.  Reboot the system using;
       # shutdown -Fr

 12.  Remove the temporary page space with SMIT or using;
       # rmps paging##
     (where ## IS THE NUMBER OF THE PAGING SPACE CREATED - USUALLY 00
     this is the first manually created paging space).
======================================================================
>92284. HOTW: How to use aixterm arrow keys for command history/recall

 This is for those who like vi style command line editing.

 If you'd like to use the command history/recall features of the
 Korn shell (in an AIXTERM) without learning the necessary 'vi' editor
 basics;  then you'll want to add the following key-mappings to the
 ".Xdefaults" file located in your $HOME directory.

 aixterm.translations:  #override \
         <Key>Home:     string(0x5e) \n\
         <Key>Insert:   string(0x69) \n\
         <Key>Delete:   string(0x78) \n\
         <Key>End:      string(0x24) \n\
         <Key>Left:     string(0x68) \n\
         <Key>Right:    string(0x6c) \n\
         <Key>Up:       string(0x6b) \n\
         <Key>Down:     string(0x6a) \n\
         <Key>Next:     string(0x03) \n\
         <Key>Prior:    string(0x1b)string(0x6b) \n

         Note:  These entries must be exact.  The
                oddball \'s and n's are correct.

 For the EBCDIC impaired: \ means backslash.

 You will also want to insure that the following command is added
 to the file named ".kshrc" that is located in your $HOME directory:

         set -o vi
 
 If you do not have a .kshrc file then check what $ENV points to.

 Reload the X resource database with

	xrdb -merge $HOME/.Xdefaults

 so that the redefinitins are know by the X server.
 Any newly started aixterm should pick those definitions up now.

 YouPress:    What Happens
 -----------  ---------------------------------------------------
 PageUp:      Used to enter command history/recall mode.
 PageDown:    Used to exit command history/recall mode.
 UpArrow:     Scrolls backwards thru the command history.
 DownArrow:   Scrolls forward.
 LeftArrow:   Moves the cursor left one character position.
 RightArrow:  Moves the cursor right one character position.
 Insert:      Permits you to insert characters before the cursor.
 Delete:      Deletes the current character.
 Home:        Cursor jumps to the beginning of the line.
 End:         Cursor jumps to the end of the line.
 Enter:       Executes the command (default behaviour).

 CAUTIONS:    If these grey keys are already being used by another application
              then it is likely that these new key bindings will no longer
              work with that application.  You're gonna have to decide for
              yourself which one is more important to you.

 (Or switch to Emacs command line editing :-)

 drr & afx
======================================================================



-- 
Andreas Siegert / Postmaster   IBM Deutschland GmbH   |   Never grep a yacc
AIX Field Support Center       Pocci Strasse 11       |   by the i-node!
Internet: afx@ibm.de           D-8000 Muenchen 2      |   Opinions are my own,
VNET: SIEGERT@MUNIVM4          Voice: (49)-(89)-7670-509  not IBM's.
Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU