home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / unix / aix / 11637 < prev    next >
Encoding:
Internet Message Format  |  1992-11-17  |  10.2 KB

  1. Xref: sparky comp.unix.aix:11637 bit.listserv.aix-l:1735
  2. Newsgroups: comp.unix.aix,bit.listserv.aix-l
  3. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!ira.uka.de!math.fu-berlin.de!news.netmbx.de!Germany.EU.net!gate!g6150e!afx
  4. From: afx@muc.ibm.de (Andreas Siegert)
  5. Subject: AIXTIPS NEWS 92374
  6. Message-ID: <1992Nov17.104840.27434@muc.ibm.de>
  7. Followup-To: comp.unix.aix
  8. Sender: news@muc.ibm.de (Newsagent-g6150)
  9. Reply-To: aixtips@ibm.de
  10. Organization: IBM AIX Field Support Center, Munich
  11. Date: Tue, 17 Nov 1992 10:48:40 GMT
  12. Lines: 247
  13.  
  14. This is AIXTIPS NEWS for customers released at Tue the 17. Nov 1992.
  15.  
  16. Table of contents:
  17. 92374. A simple way to do NLS adaption for TN3270
  18. 92376. Secondary Boot Server for Diskless WS
  19. 92379. Disk Clear Utility
  20. 92384. Switching from a standalone system to a /usr client
  21. 92393. Underlining in xterm, FYI
  22. 92394. HOTW: What is the size of a memory page?  Use:  PAGESIZE
  23. ======================================================================
  24.  
  25. Note:
  26. The information in this document has not been submitted to any formal IBM test
  27. or review and is distributed on an "as is" basis without any warranty either
  28. expressed or implied. The use of this information is a customer responsibility
  29. and customers attempting to adapt these techniques to their own environment
  30. do so at their own risk.
  31.  
  32. Some of the tips might reference internal TOOLS disks for more information.
  33. Please contact your IBM representative if you need those documents.
  34.  
  35. Your AIXTIPS Team                       Internet: aixtips@ibm.de
  36. ======================================================================
  37. >92374. A simple way to do NLS adaption for TN3270
  38.  
  39.  When using tn3270 to a host that uses NLS codepages the environment variable
  40.  RM_HOST_LANG can be used to tell tn3270 the codepage of the host.
  41.  The list of EBCDIC conversions can be found in the "Coverter Overview for
  42.  Programming" article in InfoExplorer.
  43.  
  44.  The values are for German and French EBCDIC keyboards for example:
  45.  German: IBM-273
  46.  French: IBM-297
  47. ======================================================================
  48. >92376. Secondary Boot Server for Diskless WS
  49.  
  50. Question:
  51.  
  52. Is it possible to have secondary boot servers for diskless workstations?
  53.  
  54. Answer:
  55.  
  56. Yes you can certainly have as many boot servers as you want. The boot.image
  57. and client.info file must be on the server and tftp daemon running along
  58. with the bootp daemon. When you boot the client in service mode and obtain
  59. the menu to enter the server IP address you can specify any boot server. You
  60. can further automate this by specifying a list of boot servers in your
  61. client NVRAM boot list with the "bootlist" command. The syntax should be
  62. documented in its man page or infoexplorer. The client.info file mentioned
  63. above contains the client root server so their should be no restriction
  64. having the root and boot server the same.
  65.  
  66. However, it is not supported to have a secondary boot server with delay
  67. time for a diskless workstation because the ROS firmware on the
  68. model 220 does not support it.
  69.  
  70. ======================================================================
  71. >92379. Disk Clear Utility
  72.  
  73. How about a simple shell script?  It is slow, but it works.
  74.  
  75. MAKE SURE you pick the correct disk!  I tested with /dev/hdisk2.
  76.  
  77. #!/bin/ksh
  78.  
  79. DISK=hdisk2
  80. if [[ -z "`lspv | grep $DISK | grep None`" ]] ; then
  81.         echo "This disk is currently in use."
  82.         exit 1
  83. fi
  84. COUNT=100000  # About half a meg of fairly random data
  85. while (( COUNT = COUNT - 1 )) ; do
  86.         echo $RANDOM
  87. done > /tmp/PatternFile
  88. RC=0
  89. while [[ $RC -eq 0 ]] ; do
  90.         dd if=/tmp/PatternFile bs=16k
  91.         RC=$?
  92. done | dd of=/dev/$DISK obs=1024k ibs=16k
  93.  
  94. For those of us that have problems with EBCDIC -> ASCII ...
  95.  
  96. #----------------------------------------------------------
  97. # Name                     Symbol            ASCII Hex code
  98. #----------------------------------------------------------
  99. # Parentheses                ()              0x29 0x29
  100. # Square brackets            []              0x5b 0x5d
  101. # Curly  brackets            {}              0x7b 0x7d
  102. # Double quote               "               0x22
  103. # Single quote               '               0x27
  104. # Back single quote          `               0x60
  105. # Forward slash              /               0x2f
  106. # Back slash                 \               0x5c
  107. # Exclaimation mark (bang)   !               0x21
  108. # Unix pipe symbol           |               0x7c
  109. # Tilde                      ~               0x7e
  110. # US Dollar                  $               0x24
  111. # Percent                    %               0x25
  112. # Ampersand                  &               0x26
  113.  
  114. Mickey
  115. ======================================================================
  116. >92384. Switching from a standalone system to a /usr client
  117.  
  118. From comp.unix.aix:
  119. From: hm292hu@unidui.uni-duisburg.de (Fred Hucht)
  120. Organization: Universitaet Duisburg GH
  121.  
  122. In <1992Nov9.183050.22598@selway.umt.edu> mcguire@selway.umt.edu (Charles J McGu
  123. ire) writes:
  124.  
  125. >I'm looking for info on whether it may be possible to "regress" from
  126. >a diskfull machine to one that uses a remote /usr. I'm running AIX
  127. >3.2.2*. Basically, I have several 220's with fully configured 400M
  128. >disks that I would now like to reconfigure for use with a remote /usr.
  129. >The only response I've been able to get from IBM support is to
  130. >re-install the clients using "install for use with remote /usr".
  131. >This means I'll have to go back thru the painful 3.2.2 updates which
  132. >is something I'd really rather avoid if possible.
  133.  
  134. You can switch from standalone to remote /usr in the following way:
  135.  
  136.  1) Create /sbin/net.info with the following contents:
  137.  
  138.     <client-IP> <server-IP> 0 69 0 0 <netmask> 0 ent0 1
  139.  
  140.     All IPs must be numeric. The last number specifies bnc, change to 0
  141.     for DIX. /sbin/rc.boot reads this file to configure the network
  142.     interface. Here we have no gateway between client and server and use
  143.     standard ethernet.
  144.  
  145.  2) Edit /etc/filesystems: Comment out the complete /usr:-stanza and add
  146.     a new one with your server-IP:
  147. */usr:
  148. *       dev             = /dev/hd2
  149. *       vfs             = jfs
  150. *       log             = /dev/hd8
  151. *       mount           = automatic
  152. *       check           = false
  153. *       type            = bootfs
  154. *       vol             = /usr
  155. *       free            = false
  156.  
  157. /usr:
  158.         dev             = /usr
  159.         vfs             = nfs
  160.         nodename        = <server-IP>
  161.         mount           = automatic
  162.         check           = false
  163.         type            = boot
  164.         options         = ro,fg,hard,intr,retry=3
  165.  
  166.  3) Execute the command:
  167.  
  168.     bosboot -a -d <bootdisk> -p /usr/lib/boot/netdisk.proto
  169.  
  170.     with <bootdisk> being your bootdisk.
  171.  
  172. With this procedure we have successfully installed a 32H that runs both
  173. as /usr client and standalone (for demos). Note that you must export /usr
  174. with root access and read-only to the client.
  175.  
  176. Note that I don't take any responsibility for crashes and 888's :-)
  177. Hope this helps...
  178.  
  179. Fred Hucht, Institute of Theoretical Physics, University of Duisburg, Germany
  180. EMail: fred@hal6000.Uni-Duisburg.DE
  181. ======================================================================
  182. >92393. Underlining in xterm, FYI
  183.  
  184. Out of comp.unix.aix:
  185. From: mycroft@hal.gnu.ai.mit.edu (Charles Hannum)
  186. Organization: MIT Laboratory for Computer Science
  187.  
  188. Both MIT's R5 xterm and IBM's R4 xterm and aixterm appear to support
  189. underlining, but the appropriate terminfo codes are not defined.
  190.  
  191. To enable underlining (as well as fix a bug), apply the following patch
  192. to /usr/lib/terminfo/dec.ti and recompile it.
  193.  
  194. -----8<-----snip-----8<-----snip-----8<-----snip-----8<-----snip-----8<-----
  195. *** dec.ti.orig Thu Jan  9 14:24:04 1992
  196. --- dec.ti      Thu Oct 15 09:33:52 1992
  197. ***************
  198. *** 94,101 ****
  199.         cuf1=\E[C, cuu1=\E[A, el=\E[K, ed=\E[J,
  200.         cud=\E[%p1%dB, cuu=\E[%p1%dA, cub=\E[%p1%dD,
  201.         cuf=\E[%p1%dC, km,
  202. !       smso=\E[7m, rmso=\E[m, smul@, rmul@,
  203. !       bold=\E[1m, rev=\E[7m, blink=@, sgr0=\E[m,
  204.         rs1=\E>\E[1;3;4;5;6l\E[?7h\E[m\E[r\E[2J\E[H, rs2=@,
  205.         kf1=\E[11\176, kf2=\E[12\176, kf3=\E[13\176, kf4=\E[14\176,
  206.         ht=^I, ri=\EM,
  207. --- 94,101 ----
  208.         cuf1=\E[C, cuu1=\E[A, el=\E[K, ed=\E[J,
  209.         cud=\E[%p1%dB, cuu=\E[%p1%dA, cub=\E[%p1%dD,
  210.         cuf=\E[%p1%dC, km,
  211. !       smso=\E[7m, rmso=\E[m, smul=\E[4m, rmul=\E[m,
  212. !       bold=\E[1m, rev=\E[7m, blink=@, sgr0=\E[m\E(B,
  213.         rs1=\E>\E[1;3;4;5;6l\E[?7h\E[m\E[r\E[2J\E[H, rs2=@,
  214.         kf1=\E[11\176, kf2=\E[12\176, kf3=\E[13\176, kf4=\E[14\176,
  215.         ht=^I, ri=\EM,
  216. -----8<-----snip-----8<-----snip-----8<-----snip-----8<-----snip-----8<-----
  217. For those of us that have problems with EBCDIC -> ASCII ...
  218.  
  219. #----------------------------------------------------------
  220. # Name                     Symbol            ASCII Hex code
  221. #----------------------------------------------------------
  222. # Parentheses                ()              0x29 0x29
  223. # Square brackets            []              0x5b 0x5d
  224. # Curly  brackets            {}              0x7b 0x7d
  225. # Double quote               "               0x22
  226. # Single quote               '               0x27
  227. # Back single quote          `               0x60
  228. # Forward slash              /               0x2f
  229. # Back slash                 \               0x5c
  230. # Exclaimation mark (bang)   !               0x21
  231. # Unix pipe symbol           |               0x7c
  232. # Tilde                      ~               0x7e
  233. # US Dollar                  $               0x24
  234. # Percent                    %               0x25
  235. # Ampersand                  &               0x26
  236.  
  237. ======================================================================
  238. >92394. HOTW: What is the size of a memory page?  Use:  PAGESIZE
  239.  
  240.  Shell script programmers sometimes wanna know the size of a
  241.  memory page.  The PAGESIZE command returns the size in bytes.
  242.  
  243.  Example 1:  From the command line
  244.  
  245.                   $pagesize
  246.                   4096
  247.  
  248.  Example 2:  Assigning it to an environment variable
  249.  
  250.                   MEMPGSZ=`pagesize`
  251.  
  252. ======================================================================
  253.  
  254.  
  255. -- 
  256. Andreas Siegert / Postmaster   IBM Deutschland GmbH   |   Never grep a yacc
  257. AIX Field Support Center       Pocci Strasse 11       |   by the i-node!
  258. Internet: afx@ibm.de           D-8000 Muenchen 2      |   Opinions are my own,
  259. VNET: SIEGERT@MUNIVM4          Voice: (49)-(89)-7670-509  not IBM's.
  260.