home *** CD-ROM | disk | FTP | other *** search
/ ftp.pasteur.org/FAQ/ / ftp-pasteur-org-FAQ.zip / FAQ / hp / hpux-faq next >
Encoding:
Internet Message Format  |  2004-05-13  |  275.7 KB

  1. Path: senator-bedfellow.mit.edu!dreaderd!not-for-mail
  2. Message-ID: <hp/hpux-faq_1084363323@rtfm.mit.edu>
  3. Supersedes: <hp/hpux-faq_1083410562@rtfm.mit.edu>
  4. Expires: 5 Jun 2004 12:02:03 GMT
  5. X-Last-Updated: 2004/02/05
  6. From: ian_springer@hp.com (Ian P. Springer)
  7. Newsgroups: comp.sys.hp.hpux,comp.answers,news.answers
  8. Subject: comp.sys.hp.hpux FAQ
  9. Followup-To: comp.sys.hp.hpux
  10. Approved: news-answers-request@MIT.EDU
  11. Summary: This is the FAQ for the HP-UX OS, version 10 and later.
  12. Keywords: HP-UX, HPUX, FAQ, 10.0, 10.20, 10.x, 11.0, 11.x, 11i
  13. Organization: none
  14. Originator: faqserv@penguin-lust.MIT.EDU
  15. Date: 12 May 2004 12:03:56 GMT
  16. Lines: 8301
  17. NNTP-Posting-Host: penguin-lust.mit.edu
  18. X-Trace: 1084363436 senator-bedfellow.mit.edu 563 18.181.0.29
  19. Xref: senator-bedfellow.mit.edu comp.sys.hp.hpux:152791 comp.answers:57137 news.answers:271203
  20.  
  21. Archive-name: hp/hpux-faq
  22. Comp-sys-hpux-archive-name: hp/hpux-faq
  23. Version: 11.23.0312.00
  24. Last-modified: 2003/12/30
  25. Maintainer: Ian P. Springer <ian_springer@hp.com>
  26. URL: ftp://rtfm.mit.edu/pub/faqs/hp/hpux-faq
  27. Revision-Frequency: monthly
  28. Posting-Frequency: every 10 days
  29. Disclaimer: Approval for *.answers is based on form, not content.
  30. Copyright: (c)2001-2003 Ian P. Springer
  31.  
  32. comp.sys.hp.hpux FAQ (Frequently Asked Questions)
  33.  
  34. [HTML version of this FAQ also available - please see section 4.1.1]
  35.  
  36. Subject: 1. INTRODUCTION
  37.  
  38. Overview
  39. ========
  40. This article contains the answers to Frequently Asked Questions (FAQ)
  41. seen
  42. in the Usenet newsgroup comp.sys.hp.hpux. Issues may also be discussed in
  43. comp.sys.hp.apps, comp.sys.hp.misc, and comp.sys.hp.hardware. Discussion
  44. in this document centers around Hewlett-Packard computer systems running
  45. the HP-UX[R] operating system; the focus is on HP-UX 10.20, and later,
  46. running on HP9000 Series 700 workstations and HP9000 Series 800 servers,
  47. though some of the information presented may also apply to earlier
  48. versions of HP-UX, including HP-UX for Series 300, 400, 500, and 600
  49. HP9000 machines. Previous versions of this FAQ contained some information
  50. specific to HP-UX 9.x and earlier; such information has been removed, as
  51. of version 11.11.0105 of the FAQ. This decision was made because HP-UX
  52. versions 10.00 and earlier have been officially classified as obsolete by
  53. HP, as well as to permit greater focus on the more current versions of
  54. HP-UX. The FAQ will be updated every other month or as the maintainer
  55. sees fit, and it will be posted on Usenet once a month.
  56.  
  57. Copyright Notice
  58. ================
  59. This FAQ is Copyright (c) 2001-2003, Ian P. Springer, all rights
  60. reserved.
  61. It may be freely redistributed in its entirety, provided that this
  62. copyright notice is not removed. It may not be sold for profit or
  63. incorporated in commercial documents without the written permission of
  64. the
  65. copyright holder. Permission is expressly granted for this document to be
  66. made available for file transfer from installations offering unrestricted
  67. anonymous file transfer on the Internet. This article is provided as is,
  68. without any express or implied warranty. While every effort has been
  69. made to ensure the accuracy of the information contained in this FAQ, the
  70. maintainer and contributors assume no responsibility for errors or
  71. omissions, or for damages resulting from the use of the information
  72. contained herein. The content of this FAQ does not necessarily represent
  73. the opinions of the maintainer's employer, contributors' employers, or
  74. the Hewlett-Packard Company.
  75.  
  76. Distribution
  77. ============
  78. Refer to section 4.1.1 for details on where to obtain this FAQ.
  79.  
  80. Format
  81. ======
  82. This FAQ is written in "minimal digest format" as described at 
  83. <http://www.faqs.org/faqs/faqs/minimal-digest-format/>. You can skip from
  84. one section to the next by pressing ^G in many newsreaders, such as rn,
  85. trn, and strn (but not nn or tin).
  86.  
  87. What's New?
  88. ===========
  89. In the table of contents below, questions marked with a "+" were 
  90. recently added, and questions marked with a "!" were recently updated.
  91.  
  92. Unanswered Questions
  93. ====================
  94. For other questions and answers not included in this FAQ, please search
  95. for the answer in the newsgroup archives at <http://groups.google.com/> 
  96. (formerly DejaNews). Many times, what you want to know has been asked and
  97. answered many times before, and you will get your answer quicker
  98. searching
  99. through <http://groups.google.com/>. When searching, include the
  100. expression "group:comp.sys.hp.hpux" along with your keywords to narrow
  101. the search to only comp.sys.hp.hpux.
  102.  
  103. If you are unable to find the answer to your question in the newsgroup
  104. archives, then go ahead and post your question to comp.sys.hp.hpux.
  105.  
  106. Submitting Feedback
  107. ===================
  108. All feedback is appreciated. Submissions, corrections, comments, and
  109. complaints should be directed to Ian P. Springer <ian_springer@hp.com>.
  110.  
  111. ------------------------------
  112.  
  113. Subject: 2. TABLE OF CONTENTS
  114.  
  115. 1.  INTRODUCTION
  116.  
  117. 2.  TABLE OF CONTENTS
  118.  
  119. 3.  GENERAL INFORMATION
  120.   3.1  What does HP-UX stand for?
  121.   3.2  Where can I find a good overview of HP-UX?
  122. ! 3.3  What is the release history of HP-UX?
  123.   3.4  Where can I find definitions of various HP-UX terms?
  124.   3.5  What is HP's address and phone number?
  125.   3.6  How does HP-UX rank among other enterprise Unixes?
  126. + 3.7  How does the Compaq merger affect the HP-UX roadmap?
  127.  
  128. 4.  RESOURCES
  129.   4.1   FAQs
  130.      4.1.1   Where can I get a copy of this FAQ file?
  131.    ! 4.1.2   What other HP-UX-related FAQs exist?
  132.   4.2   Web Sites
  133.      4.2.1   HP Sites
  134.         4.2.1.1  What is the URL of HP's main web site?
  135.         4.2.1.2  Where can I browse HP documentation on the Web?
  136.         4.2.1.3  Where can I get support from HP on the Web?
  137.         4.2.1.4  Other HP Sites
  138.      4.2.2   Non-HP Sites
  139.       + 4.2.2.1  EnterpriseUnix.org
  140.         4.2.2.2  EPFL Support HP / HPLine
  141.   4.3   Newsgroups
  142.      4.3.1   List of Usenet newsgroups
  143.      4.3.2   HP's newsgroup policy
  144.      4.3.3  The ITRC HP-UX Forum
  145.   4.4   Mailing Lists
  146.      4.4.1  HPUX-Admin Mailing List
  147.      4.4.2  HP 9000 series 500 Mailing List
  148.      4.4.3  HPMINI-L Mailing List
  149.   4.5   Periodicals
  150.      4.5.1  hp-ux/usr     
  151.      4.5.2  The HP Chronicle
  152.   4.6   Books
  153.      4.6.1  HP-UX 11.x Books
  154.      4.6.2  HP-UX 10.x Books
  155.      4.6.3  HP-UX 10.x/11.x Books
  156.      4.6.4  CDE Books
  157.      4.6.5  Books from HP
  158.      4.6.6  HP Product Manuals
  159.   4.7   Local Files
  160.      4.7.1  The HP-UX Reference Manual
  161.      4.7.2  /usr/share/doc
  162.   4.8   Conferences and Workshops
  163.      4.8.1  HP World Conference & Expo
  164.      4.8.2  InterWorks Conference
  165.      4.8.3  HP/Works Technical Workshops
  166.   4.9   Courses and Certifications
  167.      4.9.1   Courses offered by HP
  168.   4.10  Organizations
  169.      4.10.1  Organizations within the U.S.
  170.         4.10.1.1  Interex, The International Association of
  171.                   Hewlett-Packard Computing Professionals
  172.         4.10.1.2  InterWorks
  173.      4.10.2  Organizations outside the U.S.
  174.         4.10.2.1  Interex Netherlands HP User Group (AKA DutchWorks)
  175.         4.10.2.2  HP/Works
  176.         4.10.2.3  Japanese HP Computer Users Association
  177.   4.11  Third-Party Vendors
  178.      4.11.1  Hewlett-Packard Vendor Listing
  179.  
  180. 5. SYSTEM ADMINISTRATION
  181.   5.1   Auditing and Security
  182.      5.1.1  How do group privileges work?
  183.      5.1.2  Why are mail files in /var/mail owned by 'daemon' instead
  184.             of the recipient?
  185.      5.1.3  How can I restrict regular users from logging in at the
  186.             console?
  187.      5.1.4  How can I disable non-root logins?
  188.      5.1.5  Where can I find a list of all patches corresponding to
  189.             security advisories?
  190.      5.1.6  How can I protect my systems against SATAN?
  191.      5.1.7  What are the major differences between trusted and
  192.             non-trusted systems?
  193.      5.1.8  How can I configure things like minimum password length, 
  194.             password history, and maximum simultaneous logins?
  195.      5.1.9  What is the sticky bit's purpose?
  196.      5.1.10 Does HP-UX have a /dev/random, /dev/urandom, or similar
  197. device?
  198.      5.1.11 How can I protect my system from viruses?
  199.      5.1.12 What information is available on configuring HP-UX for
  200. maximum
  201.             security?
  202.    + 5.1.13 Does HP-UX support /etc/shadow like Solaris and Linux?       
  203.   5.2   Backup and Recovery
  204.      5.2.1  Can I put more than one backup on DDS with fbackup?
  205.      5.2.2  How can I use dump with a DDS tape?
  206.      5.2.3  Why do cpio/tar/dump/pax all backup to tape painfully slowly?
  207.      5.2.4  What CD burning software is available?
  208.   5.3   Disks and File Systems
  209.      5.3.1  How can I enable long file names?
  210.      5.3.2  Is it possible to create a RAM disk?
  211.      5.3.3  What happened to DUX and context dependent files (CDFs)?
  212.      5.3.4  Why can't I use all of my swap space?
  213.      5.3.5  How can I determine which disk is the boot disk?
  214.      5.3.6  Why does pfs_mount fail with the message 'Not Owner' when I
  215.             try to use it?
  216.      5.3.7  What's new with remote mounts and the automounter?
  217.    ! 5.3.8  Why are CDROM filenames all UPPERCASE with ;1 attached?
  218.      5.3.9  How can I start the PFS daemons automatically at system
  219.             startup?
  220.      5.3.10 Where can I get updated disktab entries for third-party
  221.             disks?
  222.      5.3.11 How can I determine whether a disk is bootable?
  223.      5.3.12 How do I defragment my filesystems?
  224.   5.4   Display
  225.      5.4.1  How do I define a new terminal type?
  226.      5.4.2  How can I change the video mode on my workstation?
  227.   5.5   Kernel Configuration
  228.      5.5.1  How can I tell if I have a 32-bit or 64-bit kernel?
  229.      5.5.2  How do I determine if a system supports a 32 and/or 64-bit
  230.             kernel?
  231.    + 5.5.3  Where can I find detailed documentation of the various kernel
  232.             parameters?
  233.   5.6   Monitors, Diagnostics, and Performance
  234.      5.6.1  How can I look at what my system is doing?
  235.      5.6.2  What happened to the sysdiag command?
  236.      5.6.3  How can I improve overall system performance?
  237.   5.7   Networking and Communications
  238.      5.7.1  How can I change the order of hostname resolution?
  239.      5.7.2  How can I track network packets?
  240.      5.7.3  How to get the MAC address for a particular network
  241. interface?
  242.      5.7.4  Is there a Transport Level Interface (TLI) interface to
  243.             TCP on HP-UX?
  244.      5.7.5  How do I disable IP Forwarding?
  245.      5.7.6  Why is ifconfig giving me errors when I try to configure
  246.             my LAN?
  247.      5.7.7  How do I change the hostname, IP address, DNS Server, etc?
  248.      5.7.8  How do I determine the speed and duplexity of my network
  249.             interface?
  250.      5.7.9  How do I display all active Internet (TCP and UDP)
  251.             connections?
  252.      5.7.10 Can multiple IP addresses be configured on one interface?
  253.      5.7.11 How can I enable the LAN interface on a 700?
  254.      5.7.12 Where can I get STREAMS for HP-UX?
  255.    ! 5.7.13 What version of BIND (named) comes with HP-UX?
  256.    ! 5.7.14 What version of sendmail comes with HP-UX?
  257.    ! 5.7.15 What version of NFS comes with HPUX?
  258.      5.7.16 What is the difference between automount and AutoFS?
  259.      5.7.17 Can I configure multiple network interfaces on the same
  260. subnet?
  261.      5.7.18 Does HP-UX come with a DHCP server?
  262.    ! 5.7.19 Is there a port management tool / firewall for HP-UX?
  263.   5.8   Peripheral Devices
  264.      5.8.1  How do I use the floppy drive on my HP-UX workstation?
  265.      5.8.2  How can I format a floppy under HP-UX?
  266.      5.8.3  How can I get an Exabyte to work on an HP?
  267.      5.8.4  How can I get a stuck DDS tape out of the drive?
  268.      5.8.5  Do I need to terminate the internal SCSI on a 700?
  269.      5.8.6  How can I play audio CDs on an HP workstation's CD-ROM drive?
  270.      5.8.7  How can I set up /dev/audio to point to the external jack on
  271. a
  272.             700?
  273.      5.8.8  How can I configure the parallel port handshake on a 700?
  274.      5.8.9  What are the specs of the audio hardware on the 700 series?
  275.      5.8.10 Is there a trackball for the 700?
  276.      5.8.11 What keyboards and mice are compatible with HP9000
  277.             workstations?
  278.    ! 5.8.12 How do I change the keyboard type (e.g. from UK to German or
  279.             vice versa) after HP-UX is already installed?
  280.      5.8.13 How do I ascertain which device file corresponds to my CD-ROM
  281.             or DVD-ROM drive?
  282.   5.9   Printers and Plotters
  283.      5.9.1  What happened to lpr?
  284.      5.9.2  Why does lpstat report the printer down, even though it's
  285. not?
  286.      5.9.3  How can I turn off the LP banner page?
  287.      5.9.4  How can I print man pages without losing the formatting?
  288.      5.9.5  How can I view and print Postscript (.ps) files?
  289.   5.10  Process Management
  290.      5.10.1  How much memory can a process use?
  291.      5.10.2  Why do my processes keep dying at 64 MB memory usage?
  292.      5.10.3  How do I set per-process limits?
  293.      5.10.4  How can I tell what files, ports, etc.. a process has open?
  294.    + 5.10.5  How can I get the ps command to display more than 64
  295.              characters of process command lines?
  296.   5.11  Routine Tasks
  297.      5.11.1  How can I track log files and core files?
  298.      5.11.2  What's a good strategy for clearing /tmp and /var/tmp?
  299.   5.12  Software Management
  300.      5.12.1   General Software Management
  301.         5.12.1.1  Where can I find out more about Software Distributor
  302.                   (SD-UX)?
  303.         5.12.1.2  How can I tell what products have been loaded on my
  304.                   system?
  305.         5.12.1.3  How do I safely remove software from my system?
  306.         5.12.1.4  How is the unique node ID used for licensing
  307. determined?
  308.         5.12.1.5  What is Ignite-UX?
  309.      5.12.2   Patch Management
  310.         5.12.2.1  Where do I get HP-UX patches?
  311.         5.12.2.2  How can I list all installed patches?
  312.         5.12.2.3  How can I tell what patches are in the kernel?
  313.         5.12.2.4  How do I get rid of these old 10.x patches since I
  314.                   upgraded to 11.x?
  315.         5.12.2.5  How can I install multiple patches, without having to
  316.                   reboot more than once?
  317.         5.12.2.6  How do I configure swlist to not display superseded
  318.                   patches?
  319.         5.12.2.7  What is the naming convention used for HP-UX patch
  320.                   names?
  321.         5.12.2.8  Where can I get OpenView patches?
  322.   5.13  Time
  323.      5.13.1  How can I change the timezone?
  324.      5.13.2  How can I print yesterday's or tomorrow's date?
  325.      5.13.3  How can I convert a timestamp (seconds since the Epoch) to a
  326.              date/time string?
  327.      5.13.4  What is the purpose of the 'timezone' and 'dst' kernel
  328.              parameters?
  329.   5.14  Users and Groups
  330.      5.14.1  How can I tell if I need more than a 2-user license?
  331.      5.14.2  How can I set up group-based FTP access?
  332.      5.14.3  Has /etc/logingroup functionality changed in 11.x?
  333.   5.15  X-Windows and CDE
  334.      5.15.1   X Window System (X11)
  335.         5.15.1.1  Where can I get X11R6?
  336.         5.15.1.2  Where can I get the missing X11 header files?
  337.         5.15.1.3  How can I set up an HP-UX workstation as an X terminal?
  338.         5.15.1.4  How do I get a scroll bar on hpterms?
  339.         5.15.1.5  How can I change the title in my hpterm titlebar?
  340.         5.15.1.6  Why do my terminal windows keep going away by
  341.                   themselves?
  342.         5.15.1.7  How can I get console messages to go to an hpterm?
  343.         5.15.1.8  What's a good termcap entry for hpterm?
  344.         5.15.1.9  My screen is wedged.  What should I do?
  345.         5.15.1.10 How can I get an X app to come up in an alternate
  346.                   workspace?
  347.      5.15.2   Common Desktop Environment (CDE)
  348.         5.15.2.1  What happened to VUE?
  349.         5.15.2.2  How do I start/stop/reset CDE (dtlogin)?
  350.         5.15.2.3  How can I enable/disable CDE (dtlogin)?
  351.         5.15.2.4  Why does id/groups not show secondary groups in
  352.                   dtterm/CDE?
  353.         5.15.2.5  How can I improve CDE's performance?
  354.         5.15.2.6  Is there a CDE FAQ?
  355.         5.15.2.7  When I log on to CDE, I want certain applications to
  356.                   automatically start.  How can this be done ?
  357.         5.15.2.8  How do I get cut-n-paste to work correctly with CDE?
  358.         5.15.2.9  Why do NCD X-terminals hang when trying to connect via
  359.                   XDMCP to an HP-UX 10.20 host running CDE?
  360.  
  361. 6. DEVELOPMENT
  362.   6.1   General
  363.      6.1.1  What threads support is provided?
  364.      6.1.2  What's the deal with _INCLUDE_xxxx_SOURCE?
  365.      6.1.3  Where can I find a list of all available system calls?
  366.      6.1.4  How can I tell if something was built debuggable?
  367.      6.1.5  Why is syslog() call not doing what i want it to?
  368.      6.1.6  How can I get C programs to automatically generate stack
  369.             dumps?
  370.      6.1.7  HP C++ email discussion lists
  371.      6.1.8  HP-UX development email discussion lists
  372.   6.2   Compiling and Linking
  373.      6.2.1  Why is the default C compiler brain-dead?
  374.      6.2.2  How do I make Perl on HP-UX?
  375.      6.2.3  How do I deal with "too many defines"?
  376.      6.2.4  Why do I get "_builtin_va_start" undefined when I build with
  377.             gcc?
  378.      6.2.5  Is there some kind of problem with using FLT_MIN in ANSI
  379. mode?
  380.      6.2.6  Why do I get the error "*Initialization*:1: missing
  381.             token-sequence in `#assert'" when I compile with gcc?
  382.      6.2.7  How can I detect the HP-UX version at compile time?
  383.   6.3   Porting
  384.    ! 6.3.1  Porting from an Earlier Release of HP-UX
  385.      6.3.2  Porting from Other Platforms (Solaris, AIX, etc..)
  386.      6.3.3  How do I know if binaries built on a one release of HP-UX are
  387.             compatible with a different release of HP-UX?
  388.   6.4   Tools
  389.      6.4.1  Where can I get Interviews for HP-UX?
  390.      6.4.2  Is there a disassembler included with HP-UX?
  391.  
  392.  7. APPS AND UTILS
  393.   7.1  Freeware
  394.      7.1.1   HP Freeware
  395.         7.1.1.1  Patches
  396.         7.1.1.2  Drivers
  397.         7.1.1.3  I heard there is a new ftpd available.  Where do I get
  398.                  it?
  399.         7.1.1.4  HPRC FTP Site
  400.       + 7.1.1.5  GNOME
  401.      7.1.2   Non-HP Freeware
  402.       ! 7.1.2.1  The Software Porting And Archive Centre for HP-UX
  403.         7.1.2.2  InterWorks FTP site
  404.         7.1.2.3  Netperf
  405.         7.1.2.4  SLIP and CSLIP
  406.         7.1.2.5  PPP
  407.         7.1.2.6  SMTP
  408.         7.1.2.7  POP and IMAP
  409.         7.1.2.8  Sudo
  410.         7.1.2.9  Ntalk
  411.         7.1.2.10 TTCP
  412.         7.1.2.11 Free SCSI utilities for HP-UX workstations
  413.         7.1.2.12 PSCREEN/uX
  414.         7.1.2.13 GNU software
  415.       ! 7.1.2.14 Web browsers
  416.         7.1.2.15 Miscellaneous freeware
  417.         7.1.2.16 RealAudio Player
  418.         7.1.2.17 CD Burning Software
  419.   7.2  Shareware
  420.   7.3  Commercial Software
  421.      7.3.1  HP Commercial Software
  422.         7.3.1.1  Where can I find release histories for various HP 
  423.                  software products?
  424.       + 7.3.1.2  Where can I find a list of all applications that are
  425.                  available for HP-UX?         
  426.      7.3.2  Non-HP Commercial Software
  427.         7.3.2.1  Interex FastStart Toolbox
  428.         7.3.2.2  Is there anything remotely like the Apollo DM editor
  429.                  available?
  430.  
  431. 8. MISCELLANEOUS
  432.   8.1  How can I find the HP-UX equivalent for a given
  433.        Solaris/AIX/etc.. command?
  434.   8.2  What do I need to do to make my HP-UX system Year 2000
  435.        compliant?
  436.   8.3  How do I boot into single user mode?
  437.   8.4  How can I send mail to an MPE/iX HPDESK address?
  438.   8.5  How can I limit core files?
  439.   8.6  How do I disable the Caps Lock key?
  440.   8.7  Why does my Korn shell login hang?
  441.   8.8  How can I avoid those annoying copyright notices on login?
  442.   8.9  How can I turn off quota checking?
  443.   8.10 Why can't I start Aserver?
  444.   8.11 How can I get a daemon to successfully start from an rc script?
  445.   8.12 How do I convert the uname string to a model string?
  446.   8.13 Is Perl included with HP-UX?
  447.   8.14 Why can't I type an '@' character?
  448.   8.15 Why can't I get my machine into boot admin mode?
  449.   8.16 What happened to "less"?
  450.   8.17 What should go in my PATH and MANPATH environment variables?
  451.   8.18 Why does the 10.x/11.x cksum command produce a different
  452.        checksum than the 9.x cksum command?
  453.   8.19 Can I run Linux on an HP9000 system?
  454.   8.20 Can I run *BSD on an HP9000 system?
  455.   8.21 What happened to /usr/local?  What are these /usr/contrib
  456.        and /opt directories?
  457.   8.22 Is it OK to change root's shell?
  458.   8.23 Why does HP-UX 10 generate copious "Sti_save" syslog messages?
  459.   8.24 How can I tell which kernel was booted?
  460.   8.25 What is the equivalent of ldd under HP-UX?
  461.   8.26 How do I configure a program to automatically start up or
  462.        shutdown when the system starts up or shuts down?
  463.   8.27 How can I do regular expression matching?
  464.   8.28 How can I play MP3s?
  465.   8.29 How can I use audio on HP-UX 10.x/11.x without a network?
  466.   8.30 Is there a tool to trace system calls?
  467. ! 8.31 What OS capacity limits exist?
  468.   8.32 How can I determine how much RAM my system has?
  469.   8.33 What are the various revisions of PA-RISC?
  470.   8.34 How do I find the clock speed of my system's CPU(s)?
  471.   8.35 How can I view/print PDF files?
  472.   8.36 How do I read an SGI-written tar format DDS tape?
  473.   8.37 Is the Euro supported?
  474.   8.38 How can I view various Windows-format files (Word docs,
  475.        Excel spreadsheets, etc..) on an HP-UX system?
  476.   8.39 How is the system load average, as reported by the uptime
  477.        and top commands, calculated?
  478.   8.40 Where can I get HP9000 firmware updates?
  479.   8.41 Where can I look up HP part numbers?
  480.   8.42 How can I create a /dev/zero special file?
  481.   8.43 Why is tail's output truncated for large amounts of input?
  482. ! 8.44 What commands or scripts exist for gathering and summarizing
  483.        system information?
  484.   8.45 How can I convert numbers from one base to another?
  485.   8.46 What are the machine ID and serial number used for?
  486.   8.47 How can I tell what commands SAM is executing under the hood?
  487.   8.48 How can I view a file in octal or hexadecimal?
  488. + 8.49 How do I configure the kernel to write corefiles as core.<pid>?
  489. + 8.50 How do I analyze a system crash dump?
  490. ! 8.51 Is HP-UX free for non-profit users (students, hobbyists, etc..)?
  491. + 8.52 Where can I obtain a free HP-UX shell account?
  492. ! 8.53 How do I grep for an exact word as with "grep -w" in Linux?
  493.  
  494. 9. ACKNOWLEDGEMENTS
  495.   9.1  Contributors
  496.   9.2  Trademarks
  497.  
  498. ------------------------------
  499.  
  500. Subject: 3. GENERAL INFORMATION
  501.  
  502. ------------------------------
  503.  
  504. Subject: 3.1  What does HP-UX stand for?
  505. Added: 04/16/01
  506.  
  507. HP-UX is short for Hewlett-Packard UNIX[R].
  508.  
  509. ------------------------------
  510.  
  511. Subject: 3.2  Where can I find a good overview of HP-UX?
  512. Updated: 08/23/01
  513.  
  514. For starters, there is the HP-UX homepage:
  515.  
  516.   o <http://unix.hp.com/>
  517.  
  518. Also, check out the HP-UX page at OSdata.com:
  519.  
  520.   o <http://osdata.com/oses/hpux.htm>
  521.  
  522. If you have an HP-UX 11.x system, read the introduction(9) manpage.  It
  523. contains a lot of good background information.
  524.  
  525. ------------------------------
  526.  
  527. Subject: 3.3  What is the release history of HP-UX?
  528. Updated: 12/29/03
  529.  
  530. Rel     Date    Major Features Introduced
  531. ==========================================================================
  532. 1.0       '83?
  533. 1.1       '83?
  534. 1.2       '83?
  535. 2.0       '83?
  536. 2.1       '84?
  537. 2.2       '84?
  538. 3.0       '84?
  539. 3.1       '85?
  540. 3.2       '85?
  541. 4.0       '85?
  542. 5.0     2H/85
  543. 5.05      '86?
  544. 5.1       '88
  545. 5.2       '89?
  546. 5.21      '89?
  547. 5.3     04/89
  548. 6.0       '89
  549. 6.0.1     '89
  550. 6.0.2     '89
  551. 6.1       '89
  552. 6.2       '89
  553. 6.3       '89
  554. 6.5     02/89
  555. 7.00  mid '90   Motif[R]
  556. 7.01      '89
  557. 7.02      '90
  558. 7.03   <08/89
  559. 7.04      '90
  560. 7.05      '90
  561. 7.06      '90
  562. 7.07      '90
  563. 7.08      '90
  564. 7.09      '90
  565. 8.00    01/91
  566. 8.01      '91
  567. 8.02    04/92
  568. 8.03      '91
  569. 8.04      '91
  570. 8.05    07/91
  571. 8.06      '92
  572. 8.07      '92
  573. 9.00    07/92   PA7100 support, POSIX[TM] shell, VUE 3.0, fastlinks, 
  574.                 ioscan(1M), model(1)
  575. 9.01      '93   added hardware support
  576. 9.02      '93   added hardware support
  577. 9.03      '93   added hardware support, including support for floppy
  578. disks
  579. 9.04    11/93   added hardware support
  580. 9.05    11/93   added hardware support
  581. 9.06      '94
  582. 9.07      '94   Multi-Buffered-X, Single-Logical-Screen
  583. 9.08      '94
  584. 9.09      '94
  585. 9.10    03/95   10.x compatibility
  586. 10.00   03/95   SVR4 filesys layout, NFS, SD-UX, XNTP, traceroute(1M)
  587. 10.01   07/95   JFS(v2)
  588. 10.10   02/96   large filesys/physmem/dsize, NLS, SLVM, UNIX95, CDE(1.0),
  589.                 DHCP, perl(4)
  590. 10.20   08/96   JFSv3, large files/uids, MPC, RARP
  591. 10.30   08/97   kernel (POSIX) threads, NFS PV3, streams TCP/IP, ASE,
  592. PPP,
  593.                 Y2K compliance
  594. 11.00   11/97   64-bit OS, DLKM, iCOD, CDE 2.1
  595. 11.10   03/00   SCA, JFS 3.3, 128-CPU, AutoFS, new ftpd
  596. 11.11   11/00   OEs, SuperDome, IO board OLAR, dynamic tunables, TCP NFS,
  597.                 Linux APIs & ABIs, perl5, JRE(1.2.2.04), X11R6.2
  598. 11.20   06/01   IPF, BTL DLKM, kernel logging, VxVM
  599. 11.22   06/02   Itanium 2, MxN threads, 64-CPU, kernel config GUI, system
  600.                 inventory manager, IPv6, IPSec, CPU/RAM board OLAR (*)
  601. 11.23     '03?  PA & IPF, select Tru64 components, 128-CPU (@), limited 
  602.                 self-healing & self-tuning (@)
  603. 11.24?    '04?  TruCluster (@)
  604. 11.30     '05?  complete self-healing & self-tuning (@)
  605.  
  606. * Source: <http://www.interex.org/advocacy/survey/99uxsib.html>
  607. @ Source: <http://www.interex.org/hpworldnews/hpw207/news1.jsp>
  608.  
  609. Hardware      Processor          HP-UX
  610. Platform      Architecture       Releases
  611. ==========================================================================
  612. Series 100    Motorola 680x0?    n/a
  613. Series 200    Motorola 680x0     2.x, 5.1
  614. Series 300    Motorola 680x0     6.x, 7.x, 8.0/01/05/07, 9.0/01/03/10
  615. Series 400    Motorola 680x0     7.x, 8.0/01/05/07
  616. Series 500    HP Focus           1.x, 5.x
  617. Series 600    HP PA-RISC         2.x, 3.x, 7.0, 8.0/02/06, 9.0/02/04
  618. Series 700    HP PA-RISC         7.03/05/09, 8.0/01/05/07, 
  619.                                  9.01/03/05/07/09, 10.x, 11.x
  620. Series 800    HP PA-RISC         1.x, 2.x, 3.x, 7.0, 8.0/02/06, 
  621.                                  9.0/02/04, 10.x, 11.0/10/11/23
  622. Itanium       Intel IPF          11.2x
  623.  
  624. HP9000 Series 100 machines did not run HP-UX.  They ran HPL, BASIC or
  625. Pascal.  These languages were usually stored on disks and loaded from
  626. there, but you could also get the languages on plug-in ROM cards.
  627.  
  628. Series 400 machines were basically HP9000/Apollo hybrids.  The boot PROM
  629. contained support for two different modes - one for DomainOS (the native
  630. Apollo operating system) and one for HP-UX.
  631.  
  632. Series 900 is the HP3000 family of business servers.  These machines all
  633. run MPE/iX, not HP-UX.  For more information on HP3000 and MPE/iX, see:
  634.  
  635.   o <http://www.hp.com/go/hp3000>
  636.   o <http://jazz.external.hp.com/>
  637.   o <comp.sys.hp.mpe>
  638.  
  639. s300 6.5 and s800 3.1 were both replaced by a supposedly converged HP-UX
  640. 7.0, but, in fact, there were significant differences, and not just
  641. because of the IO architectues.
  642.  
  643. HP-UX releases <= 10.20 have been removed from the HP corporate price
  644. list
  645. (ie, they can no longer be purchased).
  646.  
  647. HP-UX releases <= 10.00 have been classified as obsolete (ie, no longer
  648. supported by HP).  10.01/10/20 will be supported through June 30, 2003.
  649.  
  650. For futher info on HP software discontinuance & obsolescense dates, see:
  651.  
  652.   o <http://software.hp.com/RELEASES-MEDIA/history/slide2.html>
  653.   o <http://software.hp.com/RELEASES-MEDIA/discon/index.htm>
  654.  
  655. HP-UX 10.30 was a limited release intended for early access for 32-bit
  656. kernel threads development and testing, prior to the release of HP-UX
  657. 11.00.  For this reason, it was discontinued and obsoleted fairly
  658. soon after the release of 11.00.
  659.  
  660. HP-UX 11.10 was a limited release and is supported only on V2500 SCA and
  661. V2600 SCA servers.  Prior to the release of 11.11, 11.10 came
  662. preinstalled
  663. on these systems.  It was never available separately.
  664.  
  665. HP-UX 11.11 and later is marketed as "HP-UX 11i."  The "i" stands for
  666. "Internet" and is meant to convey that the OS is Internet-ready.  Here
  667. are the mappings from 11i versions to HP-UX versions as reported by
  668. uname:
  669.  
  670. 11i version      Uname version     CPU arch.  Description
  671. ==========================================================================
  672. 1.0              11.11             PA         OE Release
  673. 1.5              11.20             IPF        Itanium Release
  674. 1.6              11.22             IPF        Consolidation Release
  675. 2.0              11.23             IPF        Consolidation Release
  676. 2T               11.24?            PA+IPF     Independence Release
  677. 3.0              11.30             PA+IPF    
  678. TruCluster/Self-Healing/Tuning Release
  679.  
  680. For a release history of HP-UX that includes discontinuance and
  681. obsolescence dates for the various releases, see:
  682.  
  683.   o <http://software.hp.com/RELEASES-MEDIA/history/slide2.html>
  684.  
  685. For more information on the various HP-UX releases, refer to:
  686.  
  687.   o <http://software.hp.com/RELEASES-MEDIA/>
  688.  
  689. A roadmap is available that outlines how Tru64 UNIX will be gradually
  690. merged into upcoming HP-UX releases:
  691.  
  692.   o <http://www.tru64.org/Compaq/tru64_roadmap.gif>
  693.  
  694. ------------------------------
  695.  
  696. Subject: 3.4  Where can I find definitions of various HP-UX terms?
  697. Added: 04/16/01
  698.  
  699. Refer to the glossary(9) manpage.
  700.  
  701. ------------------------------
  702.  
  703. Subject: 3.5  What is HP's address and phone number?
  704. Updated: 10/09/01
  705.  
  706. The address of HP Corporate Offices is:
  707.  
  708.   Hewlett-Packard Company
  709.   3000 Hanover Street
  710.   Palo Alto, CA 94304-1185
  711.  
  712. and the phone numbers are:
  713.  
  714.   o 650.857.1501 (8am-5pm PST)
  715.   o Fax: 650.857.5518
  716.  
  717. For general product information call:
  718.  
  719.   o 800.752.0900 (6am-5pm PST)
  720.  
  721. For information on ordering HP manuals and supplies, call Parts Direct
  722. Ordering toll-free in the United States at:
  723.  
  724.   o 800.227.8164
  725.  
  726. or visit the HP Parts homepage at:
  727.  
  728.   o <http://www.hp.com/hps/parts/>
  729.  
  730. ------------------------------
  731.  
  732. Subject: 3.6  How does HP-UX rank among other enterprise Unixes?
  733. Added: 06/17/02
  734.  
  735. The latest D.H. Brown report entitled "2002 UNIX Function Review" ranks
  736. HP-UX 11i #1, over Solaris 8, AIX 5.1, and Tru64 5.1, in all five
  737. categories - reliability, availability and serviceability; Internet and
  738. Web application services; directory and security services; systems
  739. management; and scalability.
  740.  
  741. The press release is at:
  742.  
  743.   o <http://www.hp.com/hpinfo/newsroom/press/30may02b.htm>
  744.   
  745. The report itself is available at:
  746.  
  747.   o <http://www.dhbrown.com/dhbrown/02UnixFunRev.cfm>
  748.  
  749. ------------------------------
  750.  
  751. Subject: 3.7  How does the Compaq merger affect the HP-UX roadmap?
  752. Added: 06/17/02
  753.  
  754. HP and Compaq both offered UNIX operating systems: HP-UX and Compaq Tru64
  755. UNIX.
  756.  
  757. Decision: HP-UX will be the long-term UNIX for the new HP. Tru64 UNIX has
  758. some very advanced features -- including clustering and file systems --
  759. and some of those will be integrated into HP-UX over time.
  760.  
  761. Rationale: HP-UX has a much larger market share and installed base of
  762. customers. It also has much broader ISV support than Tru64 UNIX.
  763.  
  764. ------------------------------
  765.  
  766. Subject: 4. RESOURCES
  767.  
  768. ------------------------------
  769.  
  770. Subject: 4.1  FAQs
  771.  
  772. ------------------------------
  773.  
  774. Subject: 4.1.1  Where can I get a copy of this FAQ file?
  775. Updated: 10/09/01
  776.  
  777. An ASCII text version of this FAQ is available at:
  778.  
  779.   o <ftp://rtfm.mit.edu/pub/faqs/hp/hpux-faq>
  780.  
  781. An HTML version of this FAQ is available at:
  782.  
  783.   o <http://www.faqs.org/faqs/hp/hpux-faq/>
  784.  
  785. A Japanese version of this FAQ is available from CUA (HP Computer Users
  786. Association); send mail to <tagami@jpn.hp.com>. The original translation
  787. was done by Masataka Isoya <masataka_isoya@hp.com>.  Subsequent
  788. translations have been done by Kumiko Watanabe.
  789.  
  790.   o <http://www.hpcua.gr.jp/FREEFAQ.html>
  791.  
  792. There is also a legacy version of this FAQ, which contains information
  793. on HP-UX 9.x and earlier. This is available at:
  794.  
  795.   o <http://www.geocities.com/ian_springer/legacy_hpux_faq.txt> (ASCII)
  796.   o <http://www.geocities.com/ian_springer/legacy_hpux_faq.html> (HTML)
  797.  
  798. Note, the legacy FAQ is no longer updated. It is archived for the benefit
  799. of those still running old versions of HP-UX.
  800.  
  801. If all else fails, contact the maintainer.
  802.  
  803. ------------------------------
  804.  
  805. Subject: 4.1.2  What other HP-UX-related FAQs exist?
  806. Updated: 11/10/03
  807.  
  808. There is an HP-UX 11i FAQ at:
  809.  
  810.   o <http://www.hp.com/workstations/risc/operating/hpux11i/faqs.html>
  811.  
  812. There is a HP-UX on Itanium FAQ at:
  813.  
  814.   o
  815. <http://h21007.www2.hp.com/dspp/tech/tech_TechDocumentDetailPage_IDX/1,1701,5142,00.html>
  816.  
  817. HP provides an "HP-UX 11.x FAQ" on the HP-UX 11.x STK website.  This FAQ
  818. focuses on differences between HP-UX 11.x and earlier releases of HP-UX.
  819. One subject that is covered throughly is upgrading to 11.x:
  820.  
  821.   o <http://devrsrc1.external.hp.com/STK/hpux_faq.html>
  822.  
  823. There is a "Certified for HP-UX FAQ" that discusses the offical
  824. certification of 3rd part applications for HP-UX:
  825.  
  826.   o <http://www.keylabs.com/certified4hp-ux/hpux_faq.html>
  827.  
  828. There is an HP3000 FAQ available at:
  829.  
  830.   o <http://www.3k.com/faq/hpfaqi.html>
  831.  
  832. CERN's IT department has assembled an HP-UX 10.0 FAQ, comprised of
  833. documents from HP ITRC:
  834.  
  835.   o <http://wwwinfo.cern.ch/pdp/ose/file/hpux10/tree.html>
  836.  
  837. There is an Ignite-UX (IUX) FAQ available from HP:
  838.  
  839.   o <http://software.hp.com/products/IUX/faq.html> (HTML)
  840.   o <mailto:iux_faq@igniteux.fc.hp.com> (ASCII)
  841.  
  842. There is a Java on HP-UX FAQ available from HP:
  843.  
  844.   o <http://www.hp.com/products1/unix/java/java2/sdkrte1_3/faq.html>
  845.  
  846. There are a number of FAQs describing building and/or using various 3rd
  847. party products on HP-UX:
  848.  
  849.   o Ximian GNOME for HP-UX 11.x FAQ: 
  850.     +
  851. <http://www.hp.com/workstations/support/software/hpux/gnome/doc.html#faq>
  852.   o Building Mozilla on HP-UX FAQ: 
  853.     + <http://www.mozilla.org/unix/hpux.html>
  854.   o Building Jikes on HP-UX FAQ: 
  855.     +
  856. <http://oss.software.ibm.com/developerworks/opensource/jikes/faq/dev-hp-ux.shtml>
  857.   o SarCheck for HP-UX FAQ: 
  858.     + <http://www.sarcheck.com/hptech.htm>
  859.   o Domino for HP-UX FAQ: 
  860.     +
  861. <http://www.lotus.com/products/r5web.nsf/4efced3d866c2c2d852566cc0050ffd5/bff012fb1137d90f85256b4b00532f0a?OpenDocument>
  862.  
  863. ------------------------------
  864.  
  865. Subject: 4.2  Web Sites
  866.  
  867. ------------------------------
  868.  
  869. Subject: 4.2.1  HP Sites
  870.  
  871. ------------------------------
  872.  
  873. Subject: 4.2.1.1  What is the URL of HP's main web site?
  874. Added: 04/10/01
  875.  
  876. There are several mirrors, spread across various continents:
  877.  
  878.   o U.S.:    <http://www.hp.com/>  or  <http://hp.com/>
  879.   o Europe:  <http://www.europe.hp.com/>
  880.   o Asia:    <http://www.asia.hp.com/>
  881.  
  882. Russia and Germany also have their own translated mirrors:
  883.  
  884.   o Russia:  <http://www.hp.ru/> (in Russian)
  885.   o Germany: <http://www.hewlett-packard.de/>  or
  886.              <http://hewlett-packard.de/> (in German)
  887.  
  888. ------------------------------
  889.  
  890. Subject: 4.2.1.2  Where can I browse HP documentation on the Web?
  891. Updated: 04/06/01
  892.  
  893. The HP Technical Documentation website is at <http://docs.hp.com/>.
  894.  
  895. Here you can browse, search, and view the latest product
  896. documentation and technical information about HP 9000 hardware
  897. and software products, either by topic or release.
  898.  
  899. Included are installation guides, user guides, reference manuals,
  900. manual pages, tools, training, technical white papers, and FAQ's
  901. for both 10.x and 11.x releases.
  902.  
  903. Note, many of the documents on <http://docs.hp.com/> are also distributed
  904. as part of the HP-UX media set, on the CD entitled "HP-UX Instant
  905. Information."
  906.  
  907. There are several other HP sites that provide documentation:
  908.  
  909. o HP Developer's Resource: <http://devresource.hp.com/>
  910. o HP Microprocessor Design Labs: <http://cpus.hp.com/>
  911. o HP Itanium[TM] Homepage: <http://ia-64.hp.com/>
  912. o HP OpenView Homepage: <http://openview.hp.com/> ("support" section)
  913.  
  914. ------------------------------
  915.  
  916. Subject: 4.2.1.3  Where can I get support from HP on the Web?
  917. Updated: 10/09/01
  918.  
  919. Go to the HP IT Resource Center (ITRC) web site; there are several
  920. mirrors:
  921.  
  922.   o America/Asia-Pacific  <http://us.itrc.hp.com/>  or
  923.     Sites:                <http://us-support.external.hp.com/>  or
  924.                           <http://us-support2.external.hp.com/>  or
  925.                           <http://us-support3.external.hp.com/>  or
  926.                           <http://itresourcecenter.hp.com/>
  927.   o European              <http://europe.itrc.hp.com/>  or
  928.     Sites:                <http://europe-support.external.hp.com/>  or
  929.                           <http://europe-support2.external.hp.com/>  or  
  930.                         
  931.                           <http://www.itresourcecenter.hp.com/>  or
  932.                           <http://www.itrc.hp.com/>  or
  933.                           <http://itrc.hp.com/>
  934.  
  935. NOTE: The America/Asia-Pacific ITRC sites do not share user registration
  936.       data with the European ITRC sites.  European support customers
  937.       should register at and continue to use the European site, and
  938.       Americas/Asia-Pacific support customers should register at and
  939.       continue to use the Americas/Asia-Pacific site.
  940.  
  941. The HP ITRC allows you to:
  942.  
  943.   o Resolve software problems by searching up-to-date support and
  944. problem-
  945.     solving information, and by downloading the latest HP-UX patches
  946.   o Browse news and current announcements
  947.   o Subscribe to automatically receive the latest Hewlett-Packard support
  948.     information
  949.   o Log, track, and reply to non-urgent calls with the Response Center.
  950.  
  951. HP's support offerings on the ITRC site are fairly extensive.  Anyone can
  952. access the Patch Database, Support Information Digests, and certain
  953. portions of the Technical Knowledge Database.
  954.  
  955. HP does require (free) registration to access anything on the ITRC.
  956. When you click on any of the links, it will ask you to either Enter as a
  957. Registered User, or Register Now.
  958.  
  959. With a valid software agreement, you can also log non-urgent calls, and
  960. search more of the Technical Knowledge Database.  You will also be able
  961. to access the Software Update Manager.  With PSS or PAS level support,
  962. you are also able to access the Custom Patch Manager.
  963.  
  964. If you do not have a software agreement, or you don't have the
  965. information for it, after you have registered and the ITRC has given you
  966. your userid, go back until you get the "Enter as a Registered User"
  967. choice again.  (The only link on the page that gives you your userid
  968. tries to link you to a software agreement)
  969.  
  970. The ITRC phone number for U.S. customers with support contracts is
  971. 800.633.3600.  For a list of phone numbers for other countries see:
  972.  
  973.   o <http://www.hp.com/racksolutions/pduprog/us/eng/callcenters.html>
  974.  
  975. ------------------------------
  976.  
  977. Subject: 4.2.1.4  Other HP Sites
  978. Added: 04/17/01
  979.  
  980. HP Software
  981. ===========
  982. HP Software Depot:
  983.   o <http://software.hp.com/>
  984.  
  985. HP Software Release Information:
  986.   o <http://software.hp.com/SW-INFO/>
  987.  
  988. Exploring HP-UX Releases and Media:
  989.   o <http://software.hp.com/RELEASES-MEDIA/>
  990.  
  991. HP OpenView Homepage:
  992.   o <http://openview.hp.com/>
  993.  
  994. HP Hardware
  995. ===========
  996. HP PartSurfer:
  997.   o <http://partsurfer.hp.com/>
  998.  
  999. HP Microprocessor Design Labs:
  1000.   o <http://cpus.hp.com/>
  1001.  
  1002. HP Itanium[TM] Homepage:
  1003.   o <http://ia-64.hp.com/>
  1004.  
  1005. General
  1006. =======
  1007. Search All of HP:
  1008.   o <http://search.hp.com/>
  1009.  
  1010. HP Technical Computing Solutions Center:
  1011.   o <http://www.hp-tcsc.com/>
  1012.  
  1013. ------------------------------
  1014.  
  1015. Subject: 4.2.2  Non-HP Sites
  1016.  
  1017. ------------------------------
  1018.  
  1019. Subject: 4.2.2.1  EnterpriseUnix.org
  1020. Added: 01/22/03
  1021.  
  1022. EnterpriseUnix.org is a website for system administrators, developers,
  1023. and enterprise managers, offering recent industry news, events, links,
  1024. etc. related to the convergence of HP-UX and Tru64 UNIX running on the
  1025. Itanium Processor Family.
  1026.  
  1027.   o <http://www.enterpriseunix.org/>  or  <http://www.hpunix.org/>
  1028.  
  1029. ------------------------------
  1030.       
  1031. Subject: 4.2.2.2  EPFL Support HP / HPLine
  1032. Added: 04/16/01
  1033.  
  1034. EPFL Support HP is a Swiss HP-UX Support Site that provides some useful
  1035. information and links.  Most of the site is in French, though some parts
  1036. are in English.
  1037.  
  1038.   o <http://hpwww.epfl.ch/>
  1039.   
  1040. ------------------------------
  1041.  
  1042. Subject: 4.3  Newsgroups
  1043.  
  1044. ------------------------------
  1045.  
  1046. Subject: 4.3.1  List of HP-UX-related Usenet newsgroups
  1047. Added: 04/19/01
  1048.  
  1049. ------------------------------
  1050.  
  1051. o <comp.sys.hp.hpux>       newsgroup devoted to HP-UX
  1052. o <comp.sys.hp.hardware>   newsgroup devoted to HP hardware
  1053. o <comp.sys.hp.apps>       newsgroup devoted to HP applications
  1054. o <japan.comp.hpux>        HP-UX newsgroup for Japanese-speaking users
  1055. o <pl.comp.os.hp-ux>       HP-UX newsgroup for Polish-speaking users
  1056. o <uvic.mlist.hpux-admin>  Usenet gateway of the hpux-admin mailing list
  1057.  
  1058. ------------------------------
  1059.  
  1060. Subject: 4.3.2  What is HP's involvement in the HP-related newsgroups?
  1061.  
  1062. HP does not, to my knowledge, have a formal policy regarding employee
  1063. involvement in the HP-related newsgroups. There is significant activity
  1064. from HP employees, typically Response Center engineers and lab engineers.
  1065. Much of the information in this document originally came from internal
  1066. HP sources.
  1067.  
  1068. ------------------------------
  1069.  
  1070. Subject: 4.3.3  The ITRC HP-UX Forum
  1071. Updated: 01/23/03
  1072.  
  1073. The HP-UX Forum on the HP ITRC web site contains a wealth of useful
  1074. information:
  1075.  
  1076.   o <http://forums.itrc.hp.com/cm/FamilyHome/0,,117,00.html>
  1077.      
  1078. As with all ITRC pages, you must be registered on the ITRC in order to
  1079. access it.
  1080.  
  1081. ------------------------------
  1082.  
  1083. Subject: 4.4  Mailing Lists
  1084.  
  1085. ------------------------------
  1086.  
  1087. Subject: 4.4.1  HPUX-Admin Mailing List
  1088. Updated: 04/30/02
  1089.  
  1090. Bart Muyzer runs an HP-UX system administration mailing list.  In short,
  1091. the purpose of the mailing list is to discuss matters related to HP-UX
  1092. System Administration.
  1093.     
  1094. o Example topics:
  1095.   * Discussing debugging/problem solving
  1096.   * How do I port application this-and-this to HP-UX?
  1097.   * What patch(es) should I install to solve a problem?
  1098.   * Discussing the (un)desired effects of patches
  1099.   * HP-UX specific security issues
  1100.  
  1101. o URLs:
  1102.   * <mailto:hpux-admin@dutchworks.nl>
  1103.     - To send a message to ALL MEMBERS of the list.
  1104.   * <mailto:majordomo@dutchworks.nl> (enter commands in body of message)
  1105.     - To subscribe to HP-UX Administrators Mailing List:
  1106.         subscribe hpux-admin [email_address]
  1107.     - To subscribe to the Digest of HP-UX Administrators Mailing List:
  1108.     subscribe hpux-admin-digest [email_address]
  1109.     - email_address is optional and, when left out, will be set to the
  1110.       contents of your "From: " line.  
  1111.     - To retrieve the list charter:
  1112.         get hpux-admin hpux-admin-policy
  1113.     - To get a list of available commands:
  1114.         help
  1115.   * <http://www.dutchworks.nl/htbin/hpsysadmin/>
  1116.     - Browse & search the archives.
  1117.   * <ftp://ftp.dutchworks.nl/pub/digests/hpux-admin/>
  1118.     - Back issues are available in /pub/digests/hpux-admin/vNN.nMMM
  1119.       (where "NN" is the volume number, and "MMM" is the issue number).
  1120.     - The back issues are also available through majordomo's "get"
  1121.       command.
  1122.  
  1123. Problems, questions, suggestions and the like should go to the address
  1124. <mailto:owner-hpux-admin@dutchworks.nl>
  1125.  
  1126. ------------------------------
  1127.  
  1128. Subject: 4.4.2  HP 9000 series 500 Mailing List
  1129.  
  1130. There is a mailing list dedicated to the HP 9000 series 500 (HP Focus)
  1131. machine.  The purpose of the list is:
  1132.  
  1133.   o to provide help on porting software to this dated machine
  1134.   o to discuss the HP 9000 series 500
  1135.     
  1136. To get on (or off) the list, send email to
  1137.   <hp9000-500-request@nvc.cc.ca.us>
  1138. with the word
  1139.   subscribe (or unsubscribe)
  1140. in the subject line.
  1141.  
  1142. ------------------------------
  1143.  
  1144. Subject: 4.4.3  HPMINI-L Mailing List
  1145. Added: 04/16/01
  1146.  
  1147. The HPMINI-L Mailing List is dedicated to topics directly relating to
  1148. Hewlett-Packard workstations, primarily those running HP-UX.  The list
  1149. homepage is:
  1150.  
  1151.   o <http://www.am.qub.ac.uk/world/lists/hpmini-l/>
  1152.  
  1153. ------------------------------
  1154.  
  1155. Subject: 4.5  Periodicals
  1156.  
  1157. ------------------------------
  1158.  
  1159. Subject: 4.5.1  hp-ux/usr
  1160. Updated: 03/29/01
  1161.  
  1162.   - A newsletter devoted to HP-UX, published by Interex in hardcopy form
  1163. &
  1164.     online -
  1165.  
  1166.   The archives can be viewed, by Interex members only, at:
  1167.  
  1168.     o <http://www.interex.org/hpuxusr/>
  1169.  
  1170.   Interex also publishes several other magazines related to HP-UX.  For
  1171.   a complete list, see:
  1172.  
  1173.     o <http://www.interex.org/publications/>
  1174.  
  1175. ------------------------------
  1176.  
  1177. Subject: 4.5.2  The HP Chronicle
  1178. Updated: 01/23/03
  1179.  
  1180. The HP Chronicle was a tabloid-sized newspaper containing news from HP
  1181. and other vendors of compatible hardware, software and peripherals - 
  1182. recently acquired and dissolved by ServerWorld Magazine. Archive issues
  1183. can be viewed at:
  1184.  
  1185.   o <http://www.serverworldmagazine.com/hpchronicle/>
  1186.  
  1187. ------------------------------
  1188.  
  1189. Subject: 4.6  Books
  1190.  
  1191. ------------------------------
  1192.  
  1193. Subject: 4.6.1  HP-UX 11.x Books
  1194.  
  1195. "HP-UX 11i System Administration Handbook and Toolkit", with CD (Audio)
  1196. by Marty Poniatowski, 03/01
  1197. ISBN: 0130600814
  1198.  
  1199. "HP-UX 11.x System Administration: How To Book", 2nd Edition
  1200. by Marty Poniatowski, 12/18/98
  1201. ISBN: 0130125156
  1202.  
  1203. "The HP-UX 11.x System Administration Handbook and Toolkit"
  1204. by Marty Poniatowski, 06/18/99
  1205. ISBN: 0130125148
  1206.  
  1207. ------------------------------
  1208.  
  1209. Subject: 4.6.2  HP-UX 10.x Books
  1210.  
  1211. "Learning the HP-UX Operating System"
  1212. by Marty Poniatowski, 07/18/96
  1213. ISBN: 0132585340
  1214.  
  1215. "HP-UX 10.X System Administration: How To Book"
  1216. by Marty Poniatowski, 10/95
  1217. ISBN: 0131258737
  1218.  
  1219. ------------------------------
  1220.  
  1221. Subject: 4.6.3  HP-UX 10.x/11.x Books
  1222. Updated: 04/01/01
  1223.  
  1224. "Disk and File Management Tasks on HP-UX"
  1225. by Tom Madell, 10/96
  1226. ISBN: 013518861X
  1227.  
  1228. HP-UX Tuning and Performance: Concept, Tools, and Methods
  1229. By Robert F. Sauers and Peter S. Weygant, 06/99
  1230. ISBN: 0131027166
  1231.  
  1232. "Clusters for High Availability: A Primer of HP-UX Solutions", 2nd
  1233. Edition
  1234. by Peter S. Weygant, 04/11/01
  1235. ISBN: 0130893552
  1236.  
  1237. "HP-UX System and Administration Guide"
  1238. by Jay Shah, 12/96
  1239. ISBN: 0070572771
  1240.  
  1241. ------------------------------
  1242.  
  1243. Subject: 4.6.4  CDE Books
  1244. Updated: 04/02/01
  1245.  
  1246. "Configuring CDE: The Common Desktop Environment"
  1247. by Charles Fernandez, 06/14/96
  1248. ISBN: 0131027247
  1249.  
  1250. "Common Desktop Environment 1.0: Advanced User's and System
  1251.  Administrator's Guide"
  1252. by CDE Documentation Group, 07/95
  1253. ISBN: 020148952X
  1254.  
  1255. "CDE and Motif: A Practical Primer"
  1256. by Antonino N. Mione, 12/97
  1257. ISBN: 0137608284
  1258.  
  1259. ------------------------------
  1260.  
  1261. Subject: 4.6.5  Books from HP
  1262. Added: 04/10/01
  1263.  
  1264. Prentice Hall PTR publishes books for technical professionals with the
  1265. imprint Hewlett-Packard Professional Books.  These books are generally
  1266. written by HP employees, often the engineers who helped devlop the
  1267. product(s) being discussed.
  1268.  
  1269. For a list of all titles, go to:
  1270.  
  1271.   o <http://www.hp.com/hpbooks/>
  1272.  
  1273. All of the books are available for purchase from Amazon.com Books
  1274. (<http://books.amazon.com/>).
  1275.  
  1276. ------------------------------
  1277.  
  1278. Subject: 4.6.6  HP Product Manuals
  1279. Added: 04/10/01
  1280.  
  1281. On HP-UX 11.00 and earlier, refer to manuals(5) for a list of all HP-UX-
  1282. related manuals, and the corresponding HP part numbers.
  1283.  
  1284. ------------------------------
  1285.  
  1286. Subject: 4.7  Local Files
  1287.  
  1288. ------------------------------
  1289.  
  1290. Subject: 4.7.1  The HP-UX Reference Manual
  1291. Updated: 09/12/03
  1292.  
  1293. An online version of the HP-UX Reference Manual is installed as part of
  1294. HP-UX. The HP-UX Reference is divided into eight major sections:
  1295.  
  1296.   o Section 1: User Commands
  1297.   o Section 1M: System Administration Commands
  1298.   o Section 2: System Calls
  1299.   o Section 3: Library Functions
  1300.   o Section 4: File Formats
  1301.   o Section 5: Miscellaneous
  1302.   o Section 7: Device Special Files
  1303.   o Section 9: Introduction and Glossary
  1304.  
  1305. Sections are further divided into many individual entried called manual
  1306. pages, or simply manpages. Manpages can be viewed using the man command.
  1307. For more information on manpages, see man(1) - ie:
  1308.  
  1309.   $ man man
  1310.  
  1311. On 11.x, also see introduction(9).
  1312.  
  1313. Addtionally, hyperlinked HTML versions of the 10.x and 11.x reference
  1314. manuals can be viewed online at:
  1315.  
  1316.   o http://docs.hp.com/hpux/os/man_pages.html
  1317.  
  1318. ------------------------------
  1319.  
  1320. Subject: 4.7.2  /usr/share/doc
  1321. Added: 04/17/01
  1322.  
  1323. On HP-UX 10.00 and later, the /usr/share/doc directory contains HP-UX
  1324. release notes and technical whitepapers.  Most of the documents are in
  1325. ASCII text format.  On 10.x, some of the documents are in PCL format.  On
  1326. 10.x and 11.00, several of the documents are in PostScript format.  And
  1327. on
  1328. 11.11, a few of the documents are in PDF format.
  1329.  
  1330. The text (.txt) files can be readily viewed using a variety of viewers
  1331. (more, pg, vi, etc..).  The PCL, PostScript, and PDF files are meant to
  1332. be printed out, not viewed online.  In order to view them online, you
  1333. would need to install third-party applications such as GhostScript and
  1334. GhostView.  You would also need to have a graphical display and have an
  1335. X server running.
  1336.  
  1337. Hewlett Packard Printer Control Language (.pcl) files can be printed on
  1338. any HP printer.  If you have a non-HP printer, you can use GhostScript,
  1339. or a number of other programs, to convert the PCL to PostScript.
  1340.  
  1341. PostScript (.ps) files can be printed on any printer that supports
  1342. PostScript  However, it is not necessary to have a PostScript-compatible
  1343. printer.  There are public domain programs, for example, GhostScript,
  1344. that
  1345. can convert PostScript to other printer languages, such as PCL.
  1346.  
  1347. To print Portable Document Format (.pdf) files, download and install
  1348. Adobe[R] Acrobat[R] Reader (see question 8.35).  Alternatively, you can
  1349. use GhostScript to convert from PDF to PostScript or PCL.
  1350.  
  1351. Now that you know how to view and print the documents, here is a listing
  1352. of the documents you'll find in /usr/share/doc on 11.00, 11.11, and
  1353. 10.20:
  1354.  
  1355. 11.00
  1356. =====
  1357. 11.00RelNotes        Release Notes for HP-UX 11.0, 3rd Edition - '98
  1358. NTP_Primer.txt       Network Time Protocol on HP-UX
  1359. RelNotesNFS_TCP.txt  Release Notes for NFS over TCP Enablement
  1360.                      Functionality - 02/00
  1361. RelNotes_newftp.txt  Release Notes for ftp - 06/98
  1362. bind496.txt          BIND 4.9.6 Features : Summary Information - 10/97
  1363. boot.txt             HP-UX 10.x (and 11.x) System Boot and Startup White
  1364.                      Paper - 04/96
  1365. configure.txt(ps)    HP-UX 10.X (and 11.x) CONFIGURATION/STARTUP FILES
  1366. doc_map.txt(ps)      HP-UX 10.x (and 11.x) Documentation Map (06/97)
  1367. euro_howto.txt       How to Setup Euro Enablement for the First Time
  1368. euro_relnotes.txt    Release Notes for Euro-Software Patch
  1369. file_sys.txt(ps)     HP-UX 10.x (and 11.x) File System Layout White Paper
  1370.                      - 04/95
  1371. iconv.txt            HP-UX 10.x (and 11.x) Iconv Customization
  1372. lg_files.txt(ps)     HP-UX Large Files White Paper, v1.4 - '97
  1373. libc_y2k.txt         Programming For the Year 2000: HP-UX Standard C
  1374.                      Libraries White Paper, v1.9 - 02/97
  1375. links.txt(ps)        HP-UX 10.X (and 11.x) Start/Kill Sequence Numbers -
  1376.                      05/96
  1377. mem_mgt.txt(ps)      HP-UX Memory Management White Paper, v1.3 - 04/97
  1378. mem_wndws.txt        11.0 Memory Windows White Paper
  1379. mp.txt(ps)           HP-UX MultiProcessing White Paper, v1.3 - 04/97
  1380. nls_locale.txt       Locale Methods Customization
  1381. pamized_rcom_readme.txt  PAMized  rexecd and remshd
  1382. panics.txt           HP-UX 11.0 System Panics White Paper, 3rd edition -
  1383.                      09/97
  1384. partner_info.txt     HP-UX 10.X (and 11.x) Startup and Configuration
  1385.                      Developer Check List
  1386. patch_pgrm.txt [1]   HP-UX 10.X Patch Program White Paper, 4th edition -
  1387.                      06/97
  1388. proc_mgt.txt(ps)     HP-UX Process Management White Paper, v1.3 - 04/97
  1389. sendmail8-8_delta.txt  What's New in HP-UX sendmail-8.8.6?
  1390. sendmail8-9_delta.txt  What's New In HP-UX Sendmail 8.9.3?
  1391. sendmail8-9_release.txt  HP-UX Sendmail 8.9.3 Release Notes - 09/99
  1392. sequence.txt(ps)     HP-UX 10.X (and 11.x) Start/Kill Sequence Links -
  1393.                      Order Paradigms
  1394. start_up.txt(ps)     HP-UX 10.X (and 11.x) Startup and Configuration
  1395. sw_patches.txt       HP-UX 11.0 Version B.11.00 Patch List - 09/97
  1396. sys_crash.txt        HP-UX 11.x System Crash Dump
  1397. 11dev.ps             HP-UX 11.00 Software Developer's Guide - 10/16/97
  1398. 64bit_driver_migration.ps  How to Write a 64-bit Clean IO Driver for
  1399.                            HP-UX: A 32-bit to 64-bit I/O Driver Migration
  1400.                            Guide - 12/06/96
  1401. V.4version.ps        Steps to Version Your Shared Library (using V.4
  1402.                      Versioning)
  1403. dev_apps.ps          File Sharing and Other Helpful Facts for HP-UX 10.0
  1404.                      Software Developers, v1.0 - 09/29/94
  1405. iop.ps               Application Interoperability White Paper, v1.0 -
  1406.                      09/05/97
  1407. ux95.ps              Programming for UNIX 95 and HP-UX Binary
  1408.                      Compatibility - 05/22/96
  1409.  
  1410. NOTES:
  1411. [1] Patch PHCO_22044 will upgrade this paper to the current version:
  1412. patch_pgrm.txt (1)   HP-UX 11.X Patch Program White Paper, 2nd edition -
  1413.                      04/98
  1414.  
  1415. In 11.11, HP has removed most of the whitepapers from /usr/share/doc/ and
  1416. recommends viewing up-to-date versions of the documents on
  1417. <http://docs.hp.com/> instead.  Nonetheless, there are still a number of
  1418. useful documents in /usr/share/doc/:
  1419.  
  1420. files that are new in 11.11
  1421. ===========================
  1422. README                 HP-UX 11i /usr/share/doc/README - 11/00
  1423. 11iRelNotes.txt(html)  HP-UX 11i Release Notes, 1st Edition - 12/00
  1424. 11.00RelNotes          Release Notes for HP-UX 11.0, 6th Edition - 10/97
  1425. 11iSRB.txt             A pointer to the HP ITRC
  1426. (<http://us.itrc.hp.com/>)
  1427.                        Previously, the 11.00SRB.Z (Software Release
  1428.                        Bulletin) listed all known defects.  This list is
  1429.                        always changing, and there is no equivalent 11i
  1430.                        version of 11.00SRB.Z.
  1431. ASX-JPN                Japanese System Environment (JSE) A.02.60 Release
  1432.                        Notes
  1433. ASX-JPN-E(S)           same as above (Japanese)
  1434. ASX-KOR                Korean System Environment (KSE) A.02.60 Release
  1435.                        Notes
  1436. ASX-SCH                Simplified Chinese System Environment (SSE)
  1437. A.02.60
  1438.                        Release Notes
  1439. ASX-TCH                Traditional Chinese System Environment (TSE)
  1440.                        A.02.60 Release Notes
  1441. ASX-UTF8               Asian System Environment (ASE) Unicode Release
  1442.                        Notes
  1443. PAMKerberosRelNotes.pdf   PAM Kerberos Release Notes, Edition 2 - 12/00
  1444. PRINT-ASE-NOTE         Obsolescence announcement of printing options of
  1445.                        Asian System Environments (ASEs)
  1446. PRINTER-JPN-E(S)       Printers supported by JSE (Japanese)
  1447. SETNETLP_Guide-E(S)    setnetlp(1M) Guide for JSE (Japanese)
  1448. TechPrtServ/C/RelNotes Technical Print Service Release Notes
  1449. TechPrtServ/C/tpsGuide.ps(pcl) Technical Print Service System
  1450.                                Administrator's Guide,
  1451.                                1st Edition - 03/97
  1452. planning_SuperDome_configs.pdf   Planning SuperDome Configurations,
  1453.                                  Edition 1 - 10/00
  1454. sw_patches.txt         HP-UX 11i Version 1 Patch List - 09/00
  1455.  
  1456. files in 10.20, that are no longer included in 11.x
  1457. ===================================================
  1458. 10.20RelNotes          Release Notes for HP-UX 10.20, 4th Edition - 06/96
  1459. 10.20SRB               HP-UX 10.20 Software Release Bulletin
  1460.                        (lists all known defects)
  1461. RelNotesHWE.txt        Release Notes for HP-UX 10.20 Hardware Extensions
  1462.                        2.0 (April 1998)
  1463. 10.20HWE1.1_RelNotes   HP-UX 10.20 Hardware Extensions 1.1 Release Notes
  1464. -
  1465.                        02/98
  1466. Extension_Software/xx/XSW[78]00GR1020.readme  HP-UX 10.20 Extension
  1467.                                               Software Release xx README
  1468. NFS.ps                 Installing and Administering NFS Services, HP 9000
  1469.                        Networking - 02/98
  1470. NFSD_Concepts_Admin.ps NFS Diskless Concepts and Administration White
  1471.                        Paper - '94
  1472. NFS_Client_Server.ps   NFS Client/Server Configuration Topology and
  1473.                        Performance Tuning Guide White Paper, Rev. 1.1 -
  1474.                        08/29/95
  1475. bog.txt(ps).Z          Name Server Operations Guide for BIND Release
  1476. 4.9.5
  1477. dev_apps.ps            File Sharing & Other Helpful Facts for HP-UX 10.0
  1478.                        Software Developers, v1.0 - '94
  1479. patch_pgrm.txt         HP-UX 10.0 Patch Program White Paper, 3rd Edition
  1480. -
  1481.                        09/95
  1482. rfc1034.Z              RFC 1034: DOMAIN NAMES - CONCEPTS & FACILITIES -
  1483.                        11/87
  1484. rfc1035.Z              RFC 1035: DOMAIN NAMES - IMPLEMENTATION &
  1485.                        SPECIFICATION - 11/87
  1486. rfc1535.Z              RFC 1535: A Security Problem and Proposed
  1487.                        Correction With Widely Deployed DNS Software -
  1488.                        10/93
  1489. sendmail8-7_manual.ps(pcl)  Installing and Administering sendmail 8.7
  1490. sw_patches.txt         HP-UX 10.20 Patch List - 06/96
  1491.  
  1492. ------------------------------
  1493.  
  1494. Subject: 4.8  Conferences and Workshops
  1495.  
  1496. ------------------------------
  1497.  
  1498. Subject: 4.8.1  HP World Conference & Expo
  1499. Updated: 03/17/01
  1500.  
  1501. The next HP World conference is August 20-24, 2001 in Chicago, IL.
  1502. You can find more details about the conference and register on the Web at
  1503. <http://www.hpworld.com/>, or by contacting Interex (see subject 4.3).
  1504.  
  1505. ------------------------------
  1506.  
  1507. Subject: 4.8.2  InterWorks Conference
  1508. Updated: 03/17/01
  1509.  
  1510. The next InterWorks conference is at the Hyatt Regency, San Francisco,
  1511. CA,
  1512. May 6-9, 2001. The annual InterWorks Conference is internationally
  1513. recognized as the best place for technical professionals using HP
  1514. technology to get in-depth training on today's most compelling computing
  1515. issues.  As an attendee, you'll gather the technical tips and techniques
  1516. that can make your environment perform optimally.  HP-UX, Linux[R], and
  1517. Windows[R] 2000/NT[R] are just some of the critical topics that will be
  1518. explored during the 4-day event.  For more details go to
  1519. <http://www.interex.org/conference/iworks2001/>, or contact Interex (see
  1520. subject 4.3).
  1521.  
  1522. ------------------------------
  1523.  
  1524. Subject: 4.8.3  HP/Works Technical Workshops
  1525. Updated: 04/02/01
  1526.  
  1527. HP/Works holds technical workshops throughout the year.  For a schedule
  1528. of
  1529. past and upcoming events, visit:
  1530.  
  1531.   o <http://www.hpworks.org.uk/events/>
  1532.  
  1533. ------------------------------
  1534.  
  1535. Subject: 4.9  Courses on HP-UX
  1536.  
  1537. ------------------------------
  1538.  
  1539. Subject: 4.9.1  Courses offered by HP
  1540. Updated: 04/02/01
  1541.  
  1542. HP offers many courses related to HP-UX.  For details, visit the
  1543. following
  1544. web sites:
  1545.  
  1546.   o <http://www.hp.com/education/>
  1547.   o <http://education.itresourcecenter.hp.com/>
  1548.  
  1549. ------------------------------
  1550.  
  1551. Subject: 4.10  Organizations
  1552.  
  1553. ------------------------------
  1554.  
  1555. Subject: 4.10.1  Organizations within the U.S.
  1556.  
  1557. ------------------------------
  1558.  
  1559. Subject: 4.10.1.1  Interex, The International Association of
  1560.                    Hewlett-Packard Computing Professionals
  1561. Updated: 04/02/01
  1562.  
  1563. The Independent Association of Hewlett-Packard Computing Professionals,
  1564. known as Interex, has a worldwide membership of more than 18,000.
  1565. It is a not-for-profit, 20 year old organization. Interex has a monthly
  1566. publication called "HP World", as well as a detailed technical
  1567. publication
  1568. called "hp-ux/usr". Interex sponsors the HP World and InterWorks
  1569. conferences.  For detailed information about Interex, including how to
  1570. become a member, see the web site at:
  1571.  
  1572.   o <http://www.interex.org/>
  1573.  
  1574. ------------------------------
  1575.  
  1576. Subject: 4.10.1.2  InterWorks
  1577. Updated: 04/03/01
  1578.  
  1579. InterWorks, formerly the Apollo Domain User's Society (ADUS), was
  1580. originally formed to provide a users group specifically for HP
  1581. workstation users.  Over the course of the past few years the
  1582. organization has been merged into Interex (see question 4.10.1.1 for
  1583. more about Interex).
  1584.  
  1585. Despite InterWorks having been absorbed into Interex, the InterWorks
  1586. anonymous FTP site _is_ still up and running:
  1587.  
  1588.   o <ftp://interworks.org/pub/comp.hp/>
  1589.  
  1590. See Item 4.13 for a more detailed description of this site's content.
  1591.  
  1592. ------------------------------
  1593.  
  1594. Subject: 4.10.2  Organizations outside the U.S.
  1595.  
  1596. ------------------------------
  1597.  
  1598. Subject: 4.10.2.1  Interex Netherlands HP User Group (AKA DutchWorks)
  1599. Updated: 03/26/01
  1600.  
  1601. The Interex Netherlands HP User Group, also known as DutchWorks, was
  1602. formed to provide a users group for technical users.  It represents
  1603. technical HP users of HP9000 Workstations and Servers, Instrument
  1604. Controllers (RTE, HP-RT, RM BASIC, etc.), and Vectra PC's.  The group
  1605. has a BBS which maintains a library of HP-UX, DOMAIN, RTE and BASIC
  1606. software.  Since October '94, it also runs a full mirror of the Liverpool
  1607. HP-UX Archive (<http://hpux.tn.tudelft.nl/>).  The URL for the DutchWorks
  1608. website is <http://www.dutchworks.nl/>.
  1609.  
  1610. Membership details are available from:
  1611.  
  1612.   Hans Hartwijk,
  1613.   Weidezoom 11,
  1614.   2742 EX Waddinxveen
  1615.   The Netherlands
  1616.   31 (0)1828 15086
  1617.  
  1618. or by e-mail to <mailto:jaap@klft.tn.tudelft.nl> (Jaap Kooman, chair
  1619. DutchWorks)
  1620.  
  1621. DutchWorks also sponsors the HP-UX Administrators Mailing List
  1622. (hpux-admin) mailing list.  Subject 4.20 of this FAQ contains information
  1623. on this mailing list.
  1624.  
  1625. ------------------------------
  1626.  
  1627. Subject: 4.10.2.2  HP/Works
  1628. Updated: 04/02/01
  1629.  
  1630. HP/Works is the HP Technical Computing User Group, based in the UK.  It
  1631. is
  1632. an independent group, supporting all users of HP and Apollo computer
  1633. systems - running the HP-UX, DOMAIN, Linux or NT operating systems -
  1634. throughout Europe.  Also supported are those who use HP products, such as
  1635. OpenView.
  1636.  
  1637. For further information, visit the HP/Works web site:
  1638.  
  1639.   o <http://www.hpworks.org.uk/>
  1640.  
  1641. ------------------------------
  1642.  
  1643. Subject: 4.10.2.3  Japanese HP Computer Users Association
  1644. Updated: 09/12/03
  1645.  
  1646. As of March 31, 2002, the CUA is no longer operational.
  1647.  
  1648. However, the web site may still be accessed at:
  1649.  
  1650.   o <http://www.hpcua.gr.jp/>
  1651.  
  1652. and you may or may not be able to contact someone by emailing
  1653. <mailto:info@hpcua.gr.jp>.
  1654.  
  1655. ------------------------------
  1656.  
  1657. Subject: 4.11  Third-Party Vendors
  1658.  
  1659. ------------------------------
  1660.  
  1661. Subject: 4.11.1  Hewlett-Packard Vendor Listing
  1662. Added: 03/24/01
  1663.  
  1664. There is an extensive listing of third-party HP vendors that is
  1665. maintained
  1666. by volunteers and updated on a regular basis:
  1667.  
  1668.   o <http://www.triolet.com/HPVend/hpvend.html>
  1669.  
  1670. ------------------------------
  1671.  
  1672. Subject: 5. SYSTEM ADMINISTRATION
  1673.  
  1674. ------------------------------
  1675.  
  1676. Subject: 5.1  Auditing and Security
  1677.  
  1678. ------------------------------
  1679.  
  1680. Subject: 5.1.1  How do group privileges work?
  1681. Updated: 07/11/01
  1682.  
  1683. HP-UX 9.0 and later allows special attributes to be associated with 
  1684. groups, which allows some superuser-like capabilities to be controlled by
  1685. defining which groups they are accessible from.   In this way it becomes
  1686. possible to distribute superuser accessible commands to other users
  1687. without allowing them full access to all other superuser capabilities.
  1688. Implicitly, the super-user is a member of ALL groups.
  1689.  
  1690. This allows some (slight) relaxing of UNIX's 'all or nothing' approach to
  1691. distributing privileged capabilities.  Privileged groups are an HP-UX-
  1692. specific feature.
  1693.  
  1694. Here is a list of group privileges available in various releases of
  1695. HP-UX, 
  1696. along with a brief description of the system capabilities that they 
  1697. control:
  1698.  
  1699. 9.0 and later
  1700. =============
  1701.   o PRIV_RTPRIO - can use rtprio() to set real-time priorities (see
  1702.                   rtprio(1) and rtprio(2))
  1703.  
  1704.   o PRIV_MLOCK - can use plock() to lock process text and data into
  1705.                  memory, and the shmctl() SHM_LOCK function to lock
  1706. shared
  1707.                  memory segments (see plock(2) and shmctl(2))
  1708.  
  1709.   o PRIV_CHOWN - can use chown() to change file ownerships (see chown(1) 
  1710.                  and chown(2))
  1711.  
  1712.   o PRIV_LOCKRDONLY - can use lockf() to set locks on files that are open
  1713.                       for reading only (see lockf(2))
  1714.  
  1715.   o PRIV_SETRUGID - can use setuid() and setgid() to change,
  1716. respectively,
  1717.                     the real user ID and real group ID of a process (see
  1718.                      setuid(2) and setgid(2))
  1719.  
  1720. 10.0 and later
  1721. ==============
  1722.   o PRIV_MPCTL - can use mpctl() to change the processor assignment,
  1723.                  locality domain assignment, or launch policy of another
  1724.                  process (see mpctl(2))
  1725.  
  1726.   o PRIV_RTSCHED - can use sched_setparam() and sched_setscheduler() to
  1727.                    set POSIX.4 real-time priorities (see rtsched(1) and
  1728.                    rtsched(2))
  1729.  
  1730.   o PRIV_SERIALIZE - can use serialize() to force the target process to 
  1731.                      run serially with other processes that are also
  1732.                      marked by this system call (see serialize(1),
  1733.                      serialize(2))
  1734.  
  1735. 11.0 and later
  1736. ==============
  1737.   o PRIV_SPUCTL - can use spuctl() (undocumented) to control SPU
  1738.                   allocation (see /usr/include/sys/spuctl.h)
  1739.  
  1740. 11i and later
  1741. =============
  1742.   o PRIV_FSSTHREAD - can use fss() (undocumented) to control fair share
  1743.                      scheduler (see /usr/include/sys/fss.h)
  1744.  
  1745.   o PRIV_PSET - can use pset_*() (undocumented) to control processor set
  1746.                 (see /usr/include/sys/pset.h)
  1747.  
  1748. Group privileges can be granted to individual groups, or globally (ie -
  1749. to
  1750. all groups, and hence, all users).
  1751.  
  1752. Although this doesn't appear to be covered by any HP documentation, it
  1753. appears that users are assigned the group privileges associated with
  1754. their primary group ID, and of all secondary groups defined within file
  1755. /etc/logingroup.
  1756.  
  1757. By default, the setprivgrp command changes are no longer effective once 
  1758. you reboot your system.  However, you can execute the command  
  1759. '/sbin/init.d/set_prvgrp start' to ensure that the privilege group
  1760. changes 
  1761. are permanent.  /sbin/init.d/set_prvgrp runs '/usr/sbin/setprivgrp -f
  1762. /etc/privgroup'.  The /etc/privgrp file should contain one or more lines
  1763. in the following format:
  1764.  
  1765.   groupname [privileges]
  1766.   -g [privileges]
  1767.   -n [privileges]
  1768.  
  1769. Each line in privgrp must end with a newline character.  The syntax for
  1770. 'groupname' and 'privileges' is described in the "Options and Arguments"
  1771. section of setprivgrp(1M).
  1772.  
  1773. If the /etc/privgrp is not found when the system boots, the PRIV_CHOWN
  1774. privilege is automatically enabled globally (as if '-g CHOWN' was 
  1775. specified).  Furthermore, by default, /etc/privgrp does NOT exist.  
  1776.  
  1777. The group privilege feature is often used to secure the chown command,
  1778. which has the potential to be misused.  The chown command may be used to
  1779. change the owner ID of a file (or files) to another specified owner.  As
  1780. mentioned above, by default, PRIV_CHOWN is granted globally.  Hence, the
  1781. chown command may be used by any user to assign ownership of their own
  1782. files to any other user, including root.
  1783.  
  1784. For example, HP-UX's disk-space accounting facility may be used to report
  1785. the total disk usage of all users.  It's possible for users to conceal
  1786. their total disk usage by using the chown command to assign the ownership
  1787. of their own files to other users.
  1788.  
  1789. On BSD-derived UNIX implementations, chown usage is limited to super-
  1790. users only.  By removing the global group privilege PRIV_CHOWN using the
  1791. setprivgrp command, it's also possible to close this loophole on HP-UX,
  1792. by limiting usage of the chown command to users who are members of
  1793. specified groups only.  This can be achieved as follows:
  1794.  
  1795.   # echo "-n CHOWN" >>/etc/privgrp
  1796.   # /sbin/init.d/set_prvgrp start
  1797.  
  1798. HP-UX documentation recommends that you not rely on the privileged group
  1799. mechanism to restrict access to the setuid and setgid system calls.
  1800. They do not guarantee that group privileges will be supported by future
  1801. releases of HP-UX.
  1802.  
  1803. For more information, see getprivgrp(1), setprivgrp(1M), getprivgrp(2),
  1804. setprivgrp(2), and privgrp(4).
  1805.  
  1806. ------------------------------
  1807.  
  1808. Subject: 5.1.2  Why are mail files in /var/mail owned by 'daemon' instead
  1809.                 of the recipient?
  1810.  
  1811. The mail delivery agent /bin/rmail needs to be able to chown(2) these
  1812. files.  It can not do so if you have removed the privilege CHOWN (see
  1813. setprivgrp(1m); removing CHOWN is recommended to prevent cheating on disk
  1814. quotas).  To get around this, noting that /bin/rmail runs setgid to group
  1815. mail, you can grant privilege CHOWN to group mail only by inserting the
  1816. line "mail CHOWN" in /etc/privgroup.  The change takes effect on the next
  1817. reboot, or immediately if you execute the command
  1818. "setprivgrp -f /etc/privgroup".
  1819.  
  1820. ------------------------------
  1821.  
  1822. Subject: 5.1.3  How can I restrict regular users from logging in at the
  1823.                 console?
  1824. Added: 04/02/01
  1825.  
  1826. For a terminal console
  1827. ======================
  1828. If the /etc/securetty file is present, login security is in effect.
  1829. User root is only allowed to log in successfully on the ttys listed in
  1830. this file.  Restricted ttys are listed by device name, one per line.
  1831. Valid tty names are dependent on the installation.  So to restrict root
  1832. logins to only the console:
  1833.  
  1834.   # echo console >/etc/securetty
  1835.  
  1836. The use of /etc/securetty is documented in login(1).
  1837.  
  1838. For a CDE console
  1839. =================
  1840. Create a file named 'nologin' in /etc/:
  1841.  
  1842.   # >/etc/nologin
  1843.  
  1844. Then add something like this to your /etc/dt/config/Xstartup file:
  1845.  
  1846.    if pwget -n "$USER" | awk -F: '{exit !($3 == 0)}'; then
  1847.       if [ -f /etc/nologin ] || \
  1848.          grep '^console$' /etc/securetty >/dev/null 2>&1; then
  1849.          echo "[$(date)] non-root login attempt from CDE console -" \
  1850.               "access denied" >>/var/adm/console_login_attempts_log
  1851.          exit 1
  1852.       fi
  1853.    fi
  1854.  
  1855. See dtlogin(1) for a detailed description of the Xstartup file.
  1856.  
  1857. ------------------------------
  1858.  
  1859. Subject: 5.1.4  How can I disable non-root logins?
  1860.  
  1861. Add the following to /etc/profile, then 'touch /etc/nologin'; this will
  1862. disable all new logins, except by root:
  1863.  
  1864.   uid=`id -u`
  1865.   if [ -f /etc/nologin -a $uid -ne 0 ]; then
  1866.     echo "Sorry, no logins allowed; try later!"
  1867.     sleep 5
  1868.     exit 0
  1869.   fi
  1870.  
  1871. ------------------------------
  1872.  
  1873. Subject: 5.1.5  Where can I find a list of all patches corresponding to
  1874.                 security advisories?
  1875. Updated: 11/13/01
  1876.  
  1877. See the HP-UX Patch Security Matrix at:
  1878.  
  1879.   o
  1880. <http://us.itrc.hp.com/cki/bin/doc.pl/sid=9cc8a9cd05f671d16f/screen=ckiSecurityBulletin/?docId=PATCHMATRIX>
  1881.       - or -
  1882.   o <ftp://ftp.itrc.hp.com/export/patches/hp-ux_patch_matrix/>
  1883.  
  1884. Also, if you are running 11.x, HP provides a free utility called
  1885. security_patch_check that will report any security patches that are
  1886. missing from your system.  To download this utility, go to:
  1887.  
  1888.   o
  1889. <http://software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/displayProductInfo.pl?productNumber=B6834AA>
  1890.  
  1891. The security patch check tool requires that Perl 5.005 or higher,
  1892. as well as several Perl modules, be installed on the system that is
  1893. being checked.  An HP-UX depot containing all of the required
  1894. dependencies is available at: 
  1895.  
  1896.   o
  1897. <http://www.software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/displayProductInfo.pl?productNumber=PERL>
  1898.  
  1899. security_patch_check is only able to analyze patches.  Some HP Security
  1900. Bulletins contain manual actions which cannot be analyzed in an automated
  1901. fashion. An archive of all previously released HP security bulletins is
  1902. available at: 
  1903.  
  1904.   o <http://itrc.hp.com/cki/bin/doc.pl/screen=ckiSecurityBulletin>
  1905.  
  1906. ------------------------------
  1907.  
  1908. Subject: 5.1.6  How can I protect my systems against SATAN?
  1909. Added: 04/17/01
  1910.  
  1911. Read CIAC Information Bulletin F-19 ("Protecting HP-UX Systems Against
  1912. SATAN") at:
  1913.  
  1914.   o <http://ciac.llnl.gov/ciac/bulletins/f-19.shtml>
  1915.  
  1916. NOTE: This whitepaper was written in '95, so some of the information
  1917.       contained in it may no longer apply.
  1918.  
  1919. To find out more about SATAN, visit SATAN's homepage:
  1920.  
  1921.   o <http://www.fish.com/satan/>
  1922.  
  1923. Also, for those less inclined toward evil, check out the SAINT homepage:
  1924.  
  1925.   o <http://www.wwdsi.com/saint/>
  1926.  
  1927. ------------------------------
  1928.  
  1929. Subject: 5.1.7  What are the major differences between trusted and
  1930.                 non-trusted systems?
  1931. Added: 05/15/01
  1932.  
  1933. 1. A trusted system allows system auditing to be turned on.
  1934.    System auditing enables the ability to trace every system call
  1935.    issued by each user on the system.  Non-trusted systems run
  1936.    with system auditing disabled.
  1937.  
  1938. 2. Trusted systems have improved password management.
  1939.  
  1940.    Below is a list of password management features:
  1941.  
  1942.      a. Specification of a grace period and expiration period for
  1943.         passwords.
  1944.  
  1945.      b. The ability to specify system-wide password aging.
  1946.  
  1947.      c. The ability to specify an absolute account life.
  1948.  
  1949.      d. The ability to disable accounts after repeated login
  1950.         failures.
  1951.  
  1952.      e. Passwords lengths of up to forty (40) characters.
  1953.  
  1954.      f. The ability to access a random password generator.
  1955.  
  1956. 3. Trusted systems have additional login restrictions, while
  1957.    non-trusted systems do not.  Below are the features of
  1958.    trusted system login restrictions:
  1959.  
  1960.      a. In addition to account disabling, the account may also be
  1961.         locked.
  1962.  
  1963.      b. Setting accounts to be accessed only at certain times of
  1964.         the day.
  1965.  
  1966.      c. The ability to specify account location access.  In other
  1967.         words, account access at specific devices, workstations,
  1968.         and so on.
  1969.  
  1970.      d. The ability to specify a single-user boot password.
  1971.  
  1972.    Note: These login restrictions are NOT available on
  1973.          NON-TRUSTED systems.
  1974.  
  1975. 4. A trusted system has shadowed passwords, while a non-trusted
  1976.    system does not have shadowed passwords.  Shadowed passwords
  1977.    are kept in locations other than /etc/passwd.  This prevents
  1978.    users from viewing the /etc/passwd file and determining which
  1979.    accounts do not have passwords.  This also prevents hackers from
  1980.    running "password cracker programs" against passwords in the
  1981.    /etc/passwd file.
  1982.  
  1983. For more information, please refer to the following document:
  1984.  
  1985.   "Administering Your HP-UX Trusted System"
  1986.  
  1987. The document is located at the following web site:
  1988.  
  1989.   o <http://docs.hp.com/hpux/onlinedocs/B2355-90121/B2355-90121.html>
  1990.  
  1991. Locate the "Description of the HP-UX Trusted System" section in
  1992. the left menu.  The following two pages contain more information:
  1993.  
  1994.   o What is a Trusted System?
  1995.  
  1996.   o What is C2-Level Trusted Mode?
  1997.  
  1998. ------------------------------
  1999.  
  2000. Subject: 5.1.8  How can I configure things like minimum password length,
  2001.                 password history, and maximum simultaneous logins?
  2002. Updated: 04/22/03
  2003.  
  2004. These settings, along with several others, can be configured via the
  2005. security defaults configuration file /etc/default/security.
  2006.  
  2007. The 'security' file was introduced, undocumented, by patches to 11.00,
  2008. the
  2009. latest iterations being:
  2010.  
  2011.   o PHCO_16127 (su(1) cumulative patch)
  2012.   o PHCO_24083 (login(1) cumulative patch)
  2013.   o PHCO_24390 (libpam and libpam_unix cumulative patch)
  2014.  
  2015. The functionality added by these patches is included in 11i.  It is also
  2016. fully documented via the security(4) manpage, available online at:
  2017.  
  2018.   o <http://devrsrc1.external.hp.com/STKLI/man/11iv1.5/security_4.html>
  2019.   
  2020. The following summarizes how each of the 'security' settings were 
  2021. introduced:
  2022.  
  2023.   o ABORT_LOGIN_ON_MISSING_HOMEDIR
  2024.     (introduced in 11.00 via PHCO_24083)
  2025.  
  2026.   o MIN_PASSWORD_LENGTH
  2027.     (introduced in 11.00 via PHCO_24390)
  2028.  
  2029.   o NOLOGIN
  2030.     (introduced in 11.00 via PHCO_24083)
  2031.  
  2032.   o NUMBER_OF_LOGINS_ALLOWED
  2033.     (introduced in 11.00 via PHCO_24083)
  2034.  
  2035.   o PASSWORD_HISTORY_DEPTH
  2036.     (introduced in 11.00 via PHCO_24390)
  2037.  
  2038.   o PASSWORD_MAXDAYS
  2039.     (introduced in 11.22)
  2040.     
  2041.   o PASSWORD_MINDAYS
  2042.     (introduced in 11.22)
  2043.     
  2044.   o PASSWORD_WARNDAYS
  2045.     (introduced in 11.22)
  2046.     
  2047.   o SU_ROOT_GROUP
  2048.     (introduced in 11.00 via PHCO_16127)
  2049.  
  2050.   o SU_DEFAULT_PATH
  2051.     (introduced in 11.11)
  2052.  
  2053.   o UMASK
  2054.     (introduced in 11.22)
  2055.   
  2056. ------------------------------
  2057.  
  2058. Subject: 5.1.9  What is the sticky bit's purpose?
  2059. Added: 08/23/01
  2060.  
  2061. A 't' or 'T' as the last character of the "ls -l" mode characters
  2062. indicates that the "sticky" (save text image) bit is set. See ls(1) for
  2063. an explanation the distinction between 't' and 'T'.
  2064.  
  2065. The sticky bit has a different meaning, depending on the type of file it
  2066. is set on...
  2067.  
  2068. sticky bit on directories
  2069. =========================
  2070. [From chmod(2)]
  2071. If the mode bit S_ISVTX (sticky bit) is set on a directory, files
  2072. inside the directory may be renamed or removed only by the owner of
  2073. the file, the owner of the directory, or the superuser (even if the
  2074. modes of the directory would otherwise allow such an operation).
  2075.  
  2076. [Example]
  2077. drwxrwxrwt  104 bin        bin          14336 Jun  7 00:59 /tmp
  2078.  
  2079. sticky bit on regular files
  2080. ===========================
  2081. [From chmod(2)]
  2082. If an executable file is prepared for sharing, mode bit S_ISVTX prevents
  2083. the system from abandoning the swap-space image of the program-text
  2084. portion of the file when its last user terminates.  Then, when the next
  2085. user of the file executes it, the text need not be read from the file
  2086. system but can simply be swapped in, thus saving time.
  2087.  
  2088. [From HP-UX Kernel Tuning and Performance Guide]
  2089. Local paging. When applications are located remotely, set the "sticky
  2090. bit"
  2091. on the applications binaries, using the chmod +t command. This tells the
  2092. system to page the text to the local disk. Otherwise, it is "retrieved"
  2093. across the network. Of course, this would only apply when there is actual
  2094. paging occurring. More recently, there is a kernel parameter,
  2095. page_text_to_local, which when set to 1, will tell the kernel to page all
  2096. NFS executable text pages to local swap space.
  2097.  
  2098. [Example]
  2099. -r-xr-xr-t   6 bin        bin         24111111111664 Nov 14  2000
  2100. /usr/bin/vi
  2101.  
  2102. sticky bit on symlinks
  2103. ======================
  2104. In HP-UX 10.0 and later, a symbolic link that has its sticky bit set is
  2105. called a transition link (i.e. links to ease the transition to the new
  2106. SVR4 filesystem layout).  Transition links are a bit faster, because  the
  2107. linked-to filename is stored in the inode itself, instead of using an
  2108. allocation unit to store the link.  For more info on the purpose for
  2109. transition links, see the tlinstall(update_aid) manpage.
  2110.  
  2111. In order to set the sticky bit on a symlink, one must use the
  2112. undocumented
  2113. lchmod system call (i.e. lchmod("/bin", 041777)).
  2114.  
  2115. [Example]
  2116. lr-xr-xr-t   1 root       sys              8 Jun  7 01:00 /bin ->
  2117. /usr/bin
  2118.  
  2119. ------------------------------
  2120.  
  2121. 5.1.10 Does HP-UX have a /dev/random, /dev/urandom, or similar device?
  2122. Updated: 09/12/03
  2123.  
  2124. Yes, at least for 11.11. 
  2125.  
  2126. The Strong Random Number Generator provides a secure, non-reproducible
  2127. source of true random numbers for applications with strong security
  2128. requirements, such as for generating encryption keys. The /dev/random
  2129. and /dev/urandom files created by this product allow the read(2) system
  2130. call to retrieve strong random binary sequences of up to 256 bytes.
  2131. This interface is compatible with that provided by the Linux /dev/random
  2132. and /dev/urandom special files. The Strong RNG can be downloaded for free
  2133. from:
  2134.  
  2135.   o
  2136. http://software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/displayProductInfo.pl?productNumber=KRNG11I
  2137.  
  2138. A technical white paper on the Strong RNG is available at:
  2139.  
  2140.   o http://newfdawg.com/SSHpart5.htm
  2141.  
  2142. There are a few alternatives for other versions of HP-UX...
  2143.  
  2144. For limited purposes, one can always use the POSIX shell's $RANDOM to
  2145. receive a random integer between 0 and 32768.
  2146.  
  2147. Another option is a daemon from Lutz Jaenicke that can act as a
  2148. replacement for a true random device:
  2149.  
  2150.   o
  2151. <http://www.aet.tu-cottbus.de/personen/jaenicke/postfix_tls/prngd.html>
  2152.  
  2153. Additionally, there is a hardware crypto accelerator card that also has
  2154. it's own random device.  At least through the bundled APIs, this device
  2155. should be usable by applications.  HP order numbers are as follows:
  2156.  
  2157.   o Praesidium Public Key Cryptography (PKC) Accelerator Card HSC Format
  2158.     for K Class - A5484A
  2159.   o Praesidium Public Key Cryptography (PKC) Accelerator Card HSC Format
  2160.     for D and R Class - A5485A
  2161.   o Praesidium Public Key Cryptography (PKC) Accelerator Card PCI Format
  2162.     for K Class - A5486A
  2163.  
  2164. This card purchase is subject to U.S. munitions laws. The card is is
  2165. available for shipment in the U.S. and Canada.  Application for
  2166. restricted
  2167. worldwide shipment pending with the U.S. government.
  2168.  
  2169. The card is a Rainbow Swift, manufactured by Rainbow Technologies
  2170. (<http://www.rainbow.com/cryptoswift/>), aka IVEA, which also has a
  2171. UK subsidiary.
  2172.  
  2173. ------------------------------
  2174.  
  2175. Subject: 5.1.11  How can I protect my system from viruses?
  2176. Added: 09/20/01
  2177.  
  2178. There are several antivirus products available:
  2179.  
  2180.   o Sophos Anti-Virus for Unix
  2181.     Info:
  2182. <http://www.sophos.com/products/software/antivirus/savunix.html>
  2183.     Download Eval:
  2184. <http://www.sophos.com/downloads/products/unix_505.html>
  2185.  
  2186.   o InterScan VirusWall
  2187.     Info:
  2188. <http://www.trendmicro.com/en/products/gateway/isvw/evaluate/overview.htm>
  2189.     Download 30-day Trial:
  2190. <http://www.trendmicro.com/download/product.asp?productid=13>
  2191.  
  2192.   o McAfee VirusScan
  2193.     + Info:
  2194. <http://www.mcafeeb2b.com/products/virusscan/default-desktop-protection.asp>
  2195.     + Download Eval:
  2196. <http://www.nai.com/naicommon/buy-try/try/products-evals.asp>
  2197.  
  2198.   o CyberSoft VFind Security Toolkit
  2199.     Info: <http://www.cyber.com/products/vfind/>
  2200.  
  2201. ------------------------------
  2202.  
  2203. Subject: 5.1.12  What information is available on configuring HP-UX for
  2204.                  maximum security?
  2205. Updated: 07/17/03
  2206.  
  2207. Kevin Steves has written a couple excellent whitepapers on building
  2208. HP-UX bastion hosts:
  2209.  
  2210. An 11.x version of the paper is available in both HTML and PDF formats:
  2211.  
  2212.   o
  2213. <http://www.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000066258828>
  2214.     (ITRC login required)
  2215.   o
  2216. <http://secinf.net/unix_security/Building_a_Bastion_Host_Using_HPUX_11.html>
  2217.   o
  2218. <http://www.hp.com/products1/unix/operating/infolibrary/whitepapers/building_a_bastion_host.pdf>
  2219.  
  2220. There is also a 10.x version of the paper. However, it doesn't seem to be
  2221. available on the Web anymore.
  2222.  
  2223. There is also a paper from HP titled "Network Security Features of HP-UX
  2224. 11i":
  2225.  
  2226.   o http://docs.hp.com/hpux/onlinedocs/2238/netsecur_final.pdf
  2227.  
  2228. ------------------------------
  2229.  
  2230. Subject: 5.1.13  Does HP-UX support /etc/shadow like Solaris and Linux?  
  2231.     
  2232. Added: 01/22/03
  2233.  
  2234. The shadow functionality is available as of 11i v1.6 (11.22). For more
  2235. information, see:
  2236.  
  2237.   o
  2238. <http://www.docs.hp.com/hpux/onlinedocs/5187-0701/00/00/82-con.html#shadowpasswords>
  2239.  
  2240. ------------------------------
  2241.  
  2242. Subject: 5.2  Backup and Recovery
  2243.  
  2244. ------------------------------
  2245.  
  2246. Subject: 5.2.1  Can I put more than one backup on DDS with fbackup?
  2247.  
  2248. No. fbackup always rewinds the tape. Possible alternatives:
  2249.  
  2250.  (1) Stick with dump/cpio/tar/pax.
  2251.  (2) Use a pipe: instead of telling fbackup where the DAT is,
  2252.      let it send its output to stdout (-f -) and pipe it to the DAT,
  2253. using
  2254.      Berkeley no-rewind device and dd with a suitable block size (e.g.,
  2255.      10K).  You'll lose fast-search and resync-after-error functionality,
  2256.      though.  Also, the complexities of managing multiple archives per
  2257.      tape make this a high-risk proposition.
  2258.  (3) Use NFS[R] and mount the disks of the machine without DAT to the
  2259.      other and back them both up there.  You'll have to mount 'em with
  2260.      root permissions and restoring a completely destroyed root disk will
  2261.      be messy.
  2262.  (4) Scream at HP until they fix fbackup. :-)
  2263.  
  2264. ------------------------------
  2265.  
  2266. Subject: 5.2.2  How can I use dump with a DDS tape?
  2267.  
  2268. dump was written to assume 9-track tapes, so some fudging has to be done
  2269. for DDS tapes.  The following has the info you need along with several
  2270. alternatives for dump parameters.
  2271.  
  2272. Approximate capacity of 60m DDS tape = 1.3G bytes
  2273. Approximate DDS tape density = (1.3G bytes) / (60 m) = (550K bytes/in)
  2274.  
  2275. dump assumes an inter-record gap (IRG) of 0.3 in for density = 6250,
  2276. 0.7 in otherwise.
  2277.  
  2278. dump uses a default blocking factor of 10 for density < 6250,
  2279. 32 otherwise.
  2280. ================
  2281. density = 550000
  2282. blocking factor = 32 (default)
  2283. assumed IRG = 0.7 in
  2284.  
  2285. Block length = (32K bytes/block) / (550K bytes/in) + (0.7 in) = (0.76 in)
  2286.  
  2287. Effective tape length =
  2288.         (1.3G bytes) / (32K bytes/block) * (0.76 in/block) = (2511 ft)
  2289. ================
  2290. density = 6250
  2291. blocking factor = 32 (default)
  2292. assumed IRG = 0.3 in
  2293.  
  2294. Block length = (32K bytes/block) / (6250 bytes/in) + (0.3 in) = (5.54 in)
  2295.  
  2296. Effective tape length =
  2297.         (1.3G bytes) / (32K bytes/block) * (5.54 in/block) = (18325 ft)
  2298. ===============
  2299. density = 1600
  2300. blocking factor = 10 (default)
  2301. assumed IRG = 0.7 in
  2302.  
  2303. Block length = (10K bytes/block) / (1600 bytes/in) + (0.7 in) = (7.10 in)
  2304.  
  2305. Effective tape length =
  2306.         (1.3G bytes) / (10K bytes/block) * (7.10 in/block) = (75113 ft)
  2307. ===============
  2308. density = 1600
  2309. blocking factor = 32
  2310. assumed IRG = 0.7 in
  2311.  
  2312. Block length = (32K bytes/block) / (1600 bytes/in) + (0.7 in) = (21.18
  2313. in)
  2314.  
  2315. Effective tape length =
  2316.         (1.3G bytes) / (32K bytes/block) * (21.18 in/block) = (70022 ft)
  2317.  
  2318. ------------------------------
  2319.  
  2320. Subject: 5.2.3  Why do cpio/tar/dump/pax all backup to tape painfully
  2321.                 slowly?
  2322. Added: 04/17/01
  2323.  
  2324. cpio/tar = VERY VERY OLD - never designed for DDS or DLT[TM]
  2325.  
  2326. fbackup/ftio = designed for Gb backups and modern tape drives
  2327.  
  2328. However, the default for fbackup is 1/2" magtapes, which almost no one
  2329. uses anymore.  ALWAYS use a config file for fbackup with at least these
  2330. options:
  2331.  
  2332.   blocksperrecord     256
  2333.   records             32
  2334.   checkpointfreq      1024
  2335.   readerprocesses     6
  2336.   maxretries          5
  2337.   retrylimit          5000000
  2338.   maxvoluses          200
  2339.   filesperfsm         2000
  2340.  
  2341. Check the manpage for fbackup for other parameters, including what to do
  2342. when you run out of tape (the chgvol parameter).
  2343.  
  2344. You need huge block sizes for modern tapes.  Try ftio (block size limited
  2345. only by hardware), pax (block sizes up to 32k), tar (which is 10k, by
  2346. design) or cpio -B which changes from 512 to 5k (but still too small).
  2347.  
  2348. cpio, tar, dump, pax and similar utils can NEVER backup large files and
  2349. are single processes whereas fbackup can read from 6 different files at
  2350. the same time.
  2351.  
  2352. Note, the large record size (blocksperrecord), checkpointfreq, and
  2353. filesperfsm also contribute to tape overhead.
  2354.  
  2355. ------------------------------
  2356.  
  2357. Subject: 5.2.4  What CD burning software is available?
  2358. Updated: 02/03/03
  2359.  
  2360. You can use Cdrecord (aka CdrTools), a freeware application, available
  2361. at:
  2362.  
  2363.   o
  2364. <http://www.fokus.gmd.de/research/cc/glone/employees/joerg.schilling/private/cdrecord.html>
  2365.  
  2366. Additonally, Cdrecord-ProDVD can be used to burn DVDs; see:
  2367.  
  2368.   o <ftp://ftp.berlios.de/pub/cdrecord/ProDVD/>
  2369.  
  2370. There are numerous X GUI frontends for CDrecord.  One of the most popular
  2371.  
  2372. is X-CD-Roast, available at:
  2373.  
  2374.   o <http://www.xcdroast.org/xcdr098/rpms-a8.html#hpux>
  2375.  
  2376. ------------------------------
  2377.  
  2378. Subject: 5.3  Disks and Filesystems
  2379.  
  2380. ------------------------------
  2381.  
  2382. Subject: 5.3.1  How can I enable long file names?
  2383. Updated: 04/02/01
  2384.  
  2385. HP-UX 10.00 or later creates HFS filesystems with long file names (up to
  2386. 255 characters) enabled by default, and all VxFS filesystems support long
  2387. file names.
  2388.  
  2389. To change pre-10.0 HFS filesystems to support long filenames, run
  2390. the /etc/convertfs program (see convertfs(1M)).  Note that will NOT be
  2391. able to switch back.
  2392.  
  2393. Here's how to check if an existing HFS filesystem has long filenames
  2394. enabled:
  2395.  
  2396. # tunefs -v /dev/rdsk/XXX | grep magic
  2397. magic   95014   clean   FS_OK   time    Tue Mar 23 14:13:01 1993
  2398.            \__ if = 95014 then long filenames
  2399.             \__ if = 11954 then short filenames
  2400.  
  2401. You can also look at this on a per directory basis with the POSIX
  2402. command getconf:
  2403.  
  2404.   $ getconf NAME_MAX directory
  2405.  
  2406. where 'directory' is the path to the directory.
  2407.  
  2408. ------------------------------
  2409.  
  2410. Subject: 5.3.2  Is it possible to create a RAM disk?
  2411. Updated: 05/10/01
  2412.  
  2413. Yes, HP-UX 9.00 and later include a RAM disk driver.  The driver is NOT
  2414. officially supported by HP for customer use.  Comments in the header file
  2415. "/usr/conf/sio/ram.h" describe how to add RAM disk support to the kernel,
  2416. as well as how to create a RAM disk.
  2417.  
  2418. Here are several reasons why using RAM disks is RISKY business:
  2419.  
  2420. 1. As stated above, RAM disks are unsupported by HP.
  2421. 2. It is unclear (to me anyway) how "locking" down memory interacts with
  2422.    normal memory management, including pageouts and memory pseudo-swap.
  2423.    The comments in /usr/conf/sio/ram.h says say:
  2424.      "Depending on the availability of memory, allocating large amounts
  2425.       of memory for RAM disk volumes may cause system failures (panics
  2426.       or hangs)."
  2427. 3. RAM disks can waste memory space.  The "usable" yield of disk space
  2428.    from memory allocated may be less than 100%.  (1 GB of real memory
  2429.    may yield less than 1 GB on "disk space".)
  2430. 4. RAM disks aren't saved over a reboot, and require special action to do
  2431.    so.
  2432. 5. You must write a C program to delete them from a running system.
  2433.  
  2434. Here are the basic steps make a 128 MB RAM disk on HP-UX 10.x/11.x:
  2435.  
  2436. 1. Modify your kernel to include the RAM disk driver:
  2437.  
  2438.   # cd /stand/build
  2439.   # /usr/lbin/sysadm/system_prep -v -s system
  2440.   # kmsystem -c y -S system ram
  2441.   # mk_kernel -s system
  2442.   # mv ../system ../system.prev
  2443.   # cp ../vmunix ../vmunix.prev
  2444.   # mv system ..
  2445.   # mv vmunix_test ../vmunix
  2446.   # cd /
  2447.   # shutdown -r
  2448.  
  2449. Note: "ramdisc" is an alias for "ram" that is also recognized.
  2450.  
  2451. 2. Set up the device files and mount the RAM disk filesystem:
  2452.  
  2453.   # mknod /dev/rram1 c 9 0x008001
  2454.   # mknod /dev/ram1 b 9 0x008001
  2455.   # newfs -F hfs /dev/rram1
  2456.   # mkdir -p /ramdisk
  2457.   # mount /dev/ram1 /ramdisk
  2458.  
  2459. Another way
  2460. ===========
  2461. There is a better, but not free, way to _simulate_ a RAM disk under HP-UX
  2462. 10.20 or later...
  2463.  
  2464. You must first purchase and install the optional OnlineJFS product, the
  2465. advanced bundle for the VxFS file system.  This enables a number of
  2466. extra mount options for VxFS filesystems.
  2467.  
  2468. To configure a VxFS filesystem so that most buffer cache flushes are
  2469. prevented, specify the following options when mounting the filesystem:
  2470.  
  2471.   "tmplog,mincache=tmpcache,convosync=delay"
  2472.  
  2473. The first two options can be configured with sam, but the convosync
  2474. option must be edited into /etc/fstab by hand.
  2475.  
  2476. A description and pricing info for the OnlineJFS product is available at
  2477. <http://software.hp.com/> (just search for "onlinejfs").
  2478.  
  2479. A third way
  2480. ===========
  2481. JTL Technical Services, LLC, sells a software product for HP-UX called
  2482. RamDisc.  There are two versions - RamDisc plus and RamDisc classic.  For
  2483. more information see their web site:
  2484.  
  2485.   o <http://www.jtlltd.com/ramdsk.html>
  2486.  
  2487. ------------------------------
  2488.  
  2489. Subject: 5.3.3  What happened to DUX and context dependent files (CDFs)?
  2490. Added: 03/29/01
  2491.  
  2492. As of HP-UX 10.01, DUX (HP Diskless Clusters) has been fully replaced by
  2493. NFS.
  2494.  
  2495. These DUX-specific commands do not exist on HP-UX 10.01 and later:
  2496.  
  2497.    cnodes(1)   cps(1)   getcontext(1)   makecdf(1M)   showcdf(1)
  2498.  
  2499. These DUX-specific options to commands do not exist on HP-UX 10.01 and
  2500. later:
  2501.  
  2502.    chmod -H           find -hidden -type H         ls -H
  2503.    find -nodevcid     find -devcid cname           last -c
  2504.    pwd -H             users -c                     who -c
  2505.    bdf -L             df -L                        sync -l
  2506.    ftio -H            pax -H -m -o -p -t device    tar -H
  2507.  
  2508. These DUX-specific library routines (including context dependent files)
  2509. are obsolete as of HP-UX 10.01:
  2510.  
  2511.    endccent          getcccid          getcdf            nftwh
  2512.    fgetccent         getccent          gethcwd           setccent
  2513.    ftwh              getccnam          hidecdf
  2514.    cnodeid           cnodes            getcontext
  2515.  
  2516. These additional DUX features were obsoleted in HP-UX 10.01:
  2517.  
  2518.   o Distributed named pipes across a cluster in diskless environments.
  2519.   o The DUX concept of global PIDs across a cluster.  Temporary
  2520.     name-space collision should be avoided by each diskless client
  2521.     having private /tmp areas.
  2522.   o Using /tmp as a shared depository between diskless clients, such
  2523.     as an application using a lib routine to create unique tmp_file
  2524.     names.
  2525.  
  2526. ------------------------------
  2527.  
  2528. Subject: 5.3.4  Why can't I use all of my swap space?
  2529. Updated: 04/08/01
  2530.  
  2531. The default value of the kernel parameter "maxswapchunks" limits the swap
  2532. accessible by the kernel to 537 MB.  If you want to configure more swap
  2533. space than that, you need to increase maxswapchunks.  More information on
  2534. maxswapchunks can be found online (see section 5.5.3).
  2535.  
  2536. ------------------------------
  2537.  
  2538. Subject: 5.3.5  How can I determine which disk is the boot disk?
  2539. Updated: 01/03/02
  2540.  
  2541. There are at least two ways to do this:
  2542.  
  2543. o Use "lvlnboot -v" (must be root); this command also reports additional
  2544.   information on volume groups and logical volumes:
  2545.  
  2546.   # lvlnboot -v `vgdisplay | grep "VG Name" | awk '{print $3}'`
  2547.            ...
  2548.            /dev/dsk/c0t5d0 (8/4.5.0) -- Boot Disk
  2549.            ...
  2550.  
  2551. o Use setboot. This command also reports the alternate bootpath, as well
  2552.   as whether Autoboot and Autosearch are enabled.  However, it does not
  2553.   print the disk device names as lvlnboot does.
  2554.  
  2555.   $ setboot
  2556.   Primary bootpath : 8/4.5.0
  2557.   Alternate bootpath : 8/4.10.0
  2558.  
  2559.   Autoboot is ON (enabled)
  2560.   Autosearch is OFF (disabled)
  2561.  
  2562. To determine which disk the currently running kernel was booted from, use
  2563. adb as follows (must be root):
  2564.  
  2565.   # KERNEL=/stand/vmunix  # set this var to the currently running kernel
  2566.   # echo 'boot_string/S' | adb $KERNEL /dev/mem | grep /
  2567.     boot_string:    disc(8/4.5.0;0)/stand/vmunix
  2568.  
  2569. On 11.x, the path of the currently running kernel can be obtained using 
  2570. the kmpath command (see subject 8.2.4).
  2571.  
  2572. ------------------------------
  2573.  
  2574. Subject: 5.3.6  Why does pfs_mount fail with the message 'Not Owner' when
  2575.                 I try to use it?
  2576. Updated: 03/28/01
  2577.  
  2578. This is a common problem.  You (root) are probably in more than 8 groups.
  2579. Run groups(1) to check.
  2580.  
  2581. There are two work-arounds to the problem:
  2582.  
  2583. + Apply the latest PFS patch:
  2584.   o 10.20: PHCO_15453
  2585.   o 11.00: PHCO_16438
  2586.  
  2587. + Temporarily remove root from enough groups to bring it under the limit:
  2588.   o Backup /etc/group.
  2589.   o Edit /etc/group so that root is in 8 or fewer groups.
  2590.   o After running pfs_mount, restore the original version of /etc/group.
  2591.  
  2592. ------------------------------
  2593.  
  2594. Subject: 5.3.7  What's new with remote mounts and the automounter?
  2595.  
  2596. HP-UX 10.00 and later ships with an automounter running with a -hosts
  2597. option, so it's easy to just say "/net/hostname/directory/...", and the
  2598. automounter will do the rest.
  2599.  
  2600. If you like, you can put symbolic links in to make things easier, for
  2601. example:
  2602.  
  2603.   /x1        -> /net/x1/x1
  2604.   /usr/valid -> /net/x1/valid
  2605.  
  2606. While this is convenient and easy to do, using explicit automount maps
  2607. (ex: /home/username) is usually a better idea in terms of keeping things
  2608. "tight" and maintaining server/disk independance.
  2609.  
  2610. ------------------------------
  2611.  
  2612. Subject: 5.3.8  Why are CDROM filenames all UPPERCASE with ;1 attached?
  2613. Updated: 11/20/02
  2614.  
  2615. CD-ROMs are generally formatted using a filesystem called ISO-9660
  2616. (aka ECMA-119), which is an update of an earlier specification called
  2617. High Sierra.  There are very minor differences between the two, and
  2618. HP-UX supports them both.  The user doesn't have to know which is
  2619. which, although nobody's actually produced a High Sierra CD-ROM in
  2620. many years.
  2621.  
  2622. ISO-9660 "file identifiers" consist of a filename, a dot, an
  2623. extension, a semicolon, and a version number from 1 to 32767.  The
  2624. standard specifies three levels of "interchange", the strictest of
  2625. which limits filenames to 8 characters, extensions to 3 characters,
  2626. and the characters can be only upper-case letters, digits and
  2627. underscores.  The reason why the letters are all uppercase is because
  2628. most CD-ROMs are encoded to the strictest interchange level.
  2629.  
  2630. To get rid of the semicolon and version number, and to force the
  2631. filenames to lower case, mount the file system with the "cdcase"
  2632. option (see mount_cdfs(1M)).
  2633.  
  2634. There is a widely used extension of ISO-9660 called "Rock Ridge" which
  2635. adds enough file system metadata to support full POSIX file system
  2636. semantics.  Rock Ridge filenames are formatted similarly to ISO-9660
  2637. file identifiers -- all UPPERCASE with ;1 version numbers.  Currently,
  2638. 11.0 supports Rock Ridge via a patch.  Other versions of HP-UX do not
  2639. support Rock Ridge, except through PFS.
  2640.  
  2641. Rock Ridge support has recently been provided for 11.x via patches:
  2642.  
  2643.   o 11.00: PHKL_21586
  2644.   o 11.11: (patch recalled due to defect)
  2645.  
  2646. The Portable FileSystem (PFS) was originally developed by Young Minds,
  2647. Inc.  It was originally only available as a demo package, but it was
  2648. eventually bundled with HP-UX, starting with release 10.10.  PFS supports
  2649. the following CD-ROM formats: ISO-9660, Rock Ridge, and High Sierra.  As
  2650. explained above, the HP-UX mount command currently only supports ISO-9660
  2651. and High Sierra.
  2652.  
  2653. You must have network loopback, and networking in general, configured
  2654. before running PFS on HP-UX.  The command 'netstat -rn' shows the network
  2655. routing tables; the entry 'lo0' is for the loopback interface.  To enable
  2656. network loopback (if it is not already enabled), add the line:
  2657.  
  2658.   LOOPBACK_ADDRESS=127.0.0.1
  2659.  
  2660. to the file /etc/rc.config.d/netconf.
  2661.  
  2662. PFS is RPC-based and offers the some features that NFS provides, which
  2663. means that a CD-ROM can be exported over your network without going
  2664. through NFS.  However, PFS does require that the nfs.core and nfs.client
  2665. subsystems are both running.  To start these, make sure NFS_CLIENT=1 in
  2666. /etc/rc.config.d/nfsconf then run:
  2667.  
  2668.   # /sbin/init.d/nfs.core start
  2669.   # /sbin/init.d/nfs.client start
  2670.  
  2671. Note, using these init scripts to start NFS will ensure that rpcbind, 
  2672. which PFS relies on, is also started.
  2673.  
  2674. NOTE: On 10.20 or 11.00, you must install a patch prior to running PFS,
  2675. or
  2676.       you might not be able to eject the CD-ROM after unmounting it. This
  2677.       problem is fixed in 11i.  The patches are:
  2678.  
  2679.         o 10.20: PHCO_15453
  2680.         o 11.00: PHCO_16438
  2681.  
  2682. All Oracle[R] installation CDROM's are RockRidge-formatted, and so must
  2683. be
  2684. mounted via PFS.
  2685.  
  2686. To use PFS to mount a RockRidge CDROM:
  2687.  
  2688. 1) Make sure the directory containing the PFS utilities (/usr/sbin) is
  2689.    in your PATH.
  2690.  
  2691. 2) Edit (or create) the /etc/pfs_fstab file to contain a line like this:
  2692.      <device> <mount_dir> pfs-rrip xlat=rrip 0 0
  2693.    Where: 
  2694.      <device> is the path to your CD-ROM reader (e.g. /dev/dsk/c1t2d0)
  2695.      <mount_dir> is the path to an *existing* directory where the CD-ROM
  2696.                  will be mounted (e.g. /rr_cdrom)
  2697.  
  2698. 3) Run the following commands:
  2699.  
  2700.      # nohup pfs_mountd &
  2701.      # nohup pfsd 4 &
  2702.  
  2703.    Alternatively, these daemons can be started from an rc script; see
  2704.    question 5.3.9.
  2705.  
  2706. 4) Mount the drive with the command:
  2707.       pfs_mount  <device> | <mount_dir>
  2708.    Or unmount it with:
  2709.       pfs_umount <device> | <mount_dir>
  2710.    Where <device> and <mount_dir> are the same as in 2).
  2711.  
  2712. The CD-ROM should be now readable with long and mixed-case filenames.
  2713.  
  2714. For HP-UX 10.01 and earlier, you can install a patch:
  2715.  
  2716.   o 10.01 s700: PHKL_23512
  2717.   o 10.01 s800: PHKL_23513
  2718.   o 10.00 s700: PHKL_6076
  2719.   o 10.00 s800: PHKL_6077
  2720.  
  2721. These add a modification to the CDFS code which can translate all mounted
  2722. CDROMs (not selectively) to accomplish the same task.  This patch adds no
  2723. additional filesystem support, such as POSIX or the RockRidge Extensions.
  2724.  
  2725. On 10.20 and later systems, for ISO-9660 CDs that contain all-uppercase
  2726. 8.3 filenames (ie - MS-Windows CDs), it is not necessary to use PFS.
  2727. Instead use the mount command's "-o cdcase" option.  See mount_cdfs(1M)
  2728. for more information.
  2729.  
  2730. HP-UX cannot read Joliet, video, or audio discs without the use of 
  2731. 3rd-party software.
  2732.  
  2733. ------------------------------
  2734.  
  2735. Subject: 5.3.9  How can I start the PFS daemons automatically at system
  2736.                 startup?
  2737. Updated: 11/20/01
  2738.  
  2739. Create a pfs rc script, and associated config file, as follows:
  2740.  
  2741. ===== CUT FROM HERE - PASTE TO /sbin/init.d/pfs =====
  2742. #!/usr/bin/sh
  2743. #
  2744. # pfs startup: Startup and kill script for the PFS file server
  2745. #
  2746.  
  2747. PATH=/sbin:/usr/sbin:/usr/bin
  2748. export PATH
  2749.  
  2750. if [ -r /etc/rc.config.d/pfs ] ; then
  2751.    . /etc/rc.config.d/pfs
  2752. fi
  2753.  
  2754. # return pid of the named process(es)
  2755. findproc() {
  2756.    pid=`ps -e |grep "$1" |sed -e 's/^  *//' -e 's/ .*//'`
  2757.    echo $pid
  2758. }
  2759.  
  2760. stat_pfs_fc()
  2761. {
  2762.    PFSD=`ps -ef|grep pfsd|grep -v grep|head -1|awk '{print $2}'`
  2763.    PFSM=`ps -ef|grep pfs_mount|grep -v grep|head -1|awk '{print $2}'`
  2764. }
  2765.  
  2766. kill_pfsd_fc()
  2767. {
  2768.    for PID in `ps -ef | grep pfsd | awk '{print $2}'` ; do
  2769.       if [ -n $PID ] ; then
  2770.          kill $PID 1>>/dev/null 2>>/dev/null
  2771.       fi
  2772.    done
  2773. }
  2774.  
  2775. kill_pfsmount_fc()
  2776. {
  2777.    for PID in `ps -ef | grep pfs_mount | awk '{print $2}'` ; do
  2778.       if [ -n $PID ] ; then
  2779.          kill $PID 1>>/dev/null 2>>/dev/null
  2780.       fi
  2781.    done
  2782.  
  2783. }
  2784.  
  2785. case "$1" in
  2786. "start_msg") 
  2787.    echo "Starting PFS Daemons" 
  2788. ;;
  2789. "start") 
  2790.    if [ "$RUN_PFS_SERVER" -ne 0 ] ; then
  2791.       stat_pfs_fc
  2792.       if [ "${PFSD}x" = "x" ] ; then
  2793.          echo "starting pfs_mountd"
  2794.          /usr/sbin/pfs_mountd -D$PFS_DAEMONS &
  2795.       else
  2796.          echo "pfsd is already running with PID $PFSD"
  2797.          echo "please stop and restart if necessary"
  2798.       fi
  2799.       if [ "${PFSM}x" = "x" ] ; then
  2800.          echo "starting pfsd"
  2801.          /usr/sbin/pfsd $PFS_DAEMONS &
  2802.       else
  2803.          echo "pfs_mount is already running with PID $PFSM"
  2804.          echo "please stop and restart if necessary"
  2805.       fi
  2806.       exit 0
  2807.    fi
  2808.    exit 2 
  2809. ;;
  2810. "stop_msg") 
  2811.    echo "Terminating PFS Daemons " 
  2812. ;;
  2813. "stop") 
  2814.    kill_pfsd_fc
  2815.    kill_pfsmount_fc
  2816.    kill_pfsd_fc 
  2817.    kill_pfsmount_fc
  2818. ;;
  2819. stat*) 
  2820.    stat_pfs_fc
  2821.    if [ "${PFSD}x" = "x" ] ; then
  2822.       echo "pfsd is not running"
  2823.    else
  2824.       echo "pfsd is running"
  2825.    fi
  2826.    if [ "${PFSM}x" = "x" ] ; then
  2827.       echo "pfs_mount is not running"
  2828.    else
  2829.       echo "pfs_mountd is running"
  2830.    fi
  2831. ;;
  2832. *)
  2833.    echo "Bad or missing arguments..."
  2834.    echo
  2835.    echo "Usage: $0 stop|start|start_msg|stop_msg|status"
  2836. ;;
  2837. esac
  2838. exit 0
  2839. ===== END CUT =====
  2840.  
  2841.   # chmod 555 /sbin/init.d/pfs
  2842.   # chown bin:bin /sbin/init.d/pfs
  2843.   # ln -s /sbin/init.d/pfs /sbin/rc2.d/S901pfs
  2844.   # ln -s /sbin/init.d/pfs /sbin/rc1.d/K099pfs
  2845.  
  2846. ===== CUT FROM HERE, PASTE TO /etc/rc.config.d/pfs =====
  2847. #
  2848. # pfs configuration: set to a non-zero value to
  2849. # initiate pfsd and pfs_mountd at run_level 2
  2850. #
  2851. # Installed at /etc/rc.config.d/pfs
  2852. #
  2853. RUN_PFS_SERVER=1
  2854. # Set the number of PFS daemons to run
  2855. PFS_DAEMONS=4
  2856. ===== END CUT =====
  2857.  
  2858.   # chmod 444 /etc/rc.config.d/pfs
  2859.   # chown bin:bin /etc/rc.config.d/pfs
  2860.  
  2861. ------------------------------
  2862.  
  2863. Subject: 5.3.10  Where can I get updated disktab entries for third-party
  2864.                  disks?
  2865. Updated: 04/20/01
  2866.  
  2867. Disktabs are obsolete for HP-UX 10.00 and later.  For HP-UX 9.x and
  2868. earlier, see:
  2869.  
  2870.   o <http://hpwww.epfl.ch/HPUX/tools/disktab.html>
  2871.  
  2872. Installing patches PHCO_5236, PHCO_6819, PHCO_7253, and PHCO_7461 will
  2873. give you the latest and greatest HP-provided disktab entries for 9.x.
  2874.  
  2875. ------------------------------
  2876.  
  2877. Subject: 5.3.11  How can I determine whether a disk is bootable?
  2878. Added: 08/29/01
  2879.  
  2880. To display the different bootstrings for a disk:
  2881.  
  2882.   # lifls <rawdevice> 
  2883.  
  2884. For example:
  2885.  
  2886.   # lifls /dev/rdsk/c0t6d0
  2887.  
  2888. A bootable disk reports something like:
  2889.  
  2890.   ISL          AUTO         HPUX         PAD          LABEL        
  2891.  
  2892. While a non bootable disk reports:
  2893.  
  2894.   lifls: Can't list /dev/rdsk/c0t6d0; not a LIF volume
  2895.  
  2896. To show the content of the bootentries:
  2897.  
  2898.   # lifcp <blockdevice>:<STRING> -
  2899.  
  2900. For example:
  2901.  
  2902.   # lifcp /dev/dsk/c0t6d0:AUTO -
  2903.   hpux
  2904.  
  2905. For further information on LIF, refer to lif(4).
  2906.  
  2907. ------------------------------
  2908.  
  2909. Subject: 5.3.12  How do I defragment my filesystems?
  2910. Added: 05/02/02
  2911.  
  2912. VxFS filesystems can be defragmented using the fsadm command. However,
  2913. the online reorganization and online resize features of fsadm are
  2914. enabled only with the HP OnLineJFS optional product.
  2915.  
  2916. Here are the relevant options:
  2917.  
  2918.   -D          Report on directory fragmentation.  If specified in
  2919.               conjunction with the -d option, the fragmentation
  2920.               report is produced both before and after the
  2921.               directory reorganization.
  2922.  
  2923.   -d          Reorganize directories.  Directory entries are
  2924.               reordered to place subdirectory entries first, then
  2925.               all other entries in decreasing order of time of last
  2926.               access.  The directory is also compacted to remove
  2927.               free space.
  2928.  
  2929.   -E          Report on extent fragmentation.  If specified in
  2930.               conjunction with the -e option, the fragmentation
  2931.               report is produced both before and after the extent
  2932.               reorganization.
  2933.  
  2934.   -e          Reorganize extents.  Minimize file system
  2935.               fragmentation.  Files are reorganized to have the
  2936.               minimum number of extents.
  2937.  
  2938. An example:
  2939.  
  2940.   # fsadm -dDeE /var
  2941.  
  2942. See fsadm_vxfs(1M) for further details.
  2943.  
  2944. No commands are available for defragmenting HFS filesystems.
  2945.  
  2946. ------------------------------
  2947.  
  2948. Subject: 5.4  Display
  2949.  
  2950. ------------------------------
  2951.  
  2952. Subject: 5.4.1  How do I define a new terminal type?
  2953. Added: 04/26/01
  2954.  
  2955. In HP-UX 10.0 and later, the terminfo database
  2956. (/usr/share/lib/terminfo/?/*) is designed to take the place of the
  2957. termcap database (/usr/share/lib/termcap).  However, because of the many
  2958. programs that have been written with and for the termcap database, the
  2959. termcap database is still included with HP-UX.  All additions and
  2960. modifications to either of these databases should be done with extreme
  2961. caution.  These files are critical to the proper operation of your
  2962. terminal.
  2963.  
  2964. NOTE: The terminfo database contains printer definitions, in addition to
  2965.       terminal definitions.
  2966.  
  2967. To convert one or more termcap entries to terminfo source format, use the
  2968. captoinfo(1M) command:
  2969.  
  2970.   $ captoinfo termcap_entry.txt >terminfo_entry.txt
  2971.  
  2972. To compile a terminfo source file, and add the compiled entry to the
  2973. terminfo database, use the tic(1M) command:
  2974.  
  2975.   # tic terminfo_entry.txt
  2976.  
  2977. If you must have both termcap and terminfo terminal descriptions, keep
  2978. the
  2979. terminfo description only, and use infocmp -C to get the termcap
  2980. descriptions.  This is recommended because the terminfo entry will be
  2981. more
  2982. complete, descriptive, and accurate than the termcap entry possibly could
  2983. be.
  2984.  
  2985. If you have been using cursor optimization programs with the -ltermcap or
  2986. -ltermlib option in the cc command-line,         those programs will
  2987. still be
  2988. functional. However, these options should be replaced with the -lcurses
  2989. option.
  2990.  
  2991. Richard S. Shuford maintains an archive of video terminal information.
  2992. The archive is a collection of information concerning character-cell
  2993. video-display terminals, serial-line remote-graphics terminals, and
  2994. software that emulates them.  The URL is:
  2995.  
  2996.   o <http://www.cs.utk.edu/~shuford/terminal_index.html>
  2997.  
  2998. ------------------------------
  2999.  
  3000. Subject: 5.4.2  How can I change the video mode on my workstation?
  3001. Added: 06/17/02
  3002.  
  3003. Use the following command: 
  3004.  
  3005.   # /opt/graphics/common/bin/setmon
  3006.  
  3007. setmon is a program that allows you to change video formats. When you
  3008. run setmon, it will print a table of available formats. The first
  3009. number on each line is an index.  Enter the index number for the entry 
  3010. you want to use and setmon will change the card to match. The change
  3011. can be either temporary (until next boot) or permanent. Similar
  3012. functionality is available in sam. The -h option gives limited help.
  3013.  
  3014. ------------------------------
  3015.  
  3016. Subject: 5.5  Kernel Configuration
  3017.  
  3018. ------------------------------
  3019.  
  3020. Subject: 5.5.1  How can I tell if I have a 32-bit or 64-bit kernel?
  3021. Added: 04/19/01
  3022.  
  3023. First off, in all versions of HP-UX prior to 11.00, the kernel is always
  3024. 32-bit.  That being said, on 11.x systems, there are several ways to
  3025. determine whether you're running a 32 or 64 bit kernel...
  3026.  
  3027. From the command-line
  3028. =====================
  3029.   $ getconf KERNEL_BITS
  3030.  
  3031. or:
  3032.  
  3033.   $ file /stand/vmunix
  3034.   /stand/vmunix:  PA-RISC1.1 executable           --->   32-bit
  3035.   /stand/vmunix:  ELF-64 executable object file   --->   64-bit
  3036.  
  3037. From SAM
  3038. ========
  3039.   1) goto Performance Monitors -> System Properties -> Operating System
  3040.   2) check OS Kernel Width: value
  3041.  
  3042. ------------------------------
  3043.  
  3044. Subject: 5.5.2  How do I determine if a system supports a 32 and/or a
  3045.                 64-bit kernel? 
  3046. Added: 09/13/01
  3047.  
  3048. From the command-line
  3049. =====================
  3050.   $ getconf HW_CPU_SUPP_BITS
  3051.   32                             ---> system supports only 32-bit
  3052.   32/64                          ---> system supports both 32 and 64-bit
  3053.   64                             ---> system supports only 64-bit
  3054.  
  3055. From SAM
  3056. ========
  3057.   1) goto Performance Monitors -> System Properties -> Processor
  3058.   2) check Kernel Width Support: value
  3059.  
  3060. The following summarizes the 11.00 implementations supported on HP9000
  3061. Servers:
  3062.  
  3063. 32-bit only
  3064. ===========
  3065.       * A-Class: A180/180C
  3066.       * D-Class: D200/x10 (only w/ XSW 9806+)
  3067.                  Dx20/x30/x50/x60
  3068.       * E-Class: all
  3069.       * F/G/H/I-Class: all
  3070.       * K-Class: K100/200/x10/x20
  3071.       * T-Class: T500/520
  3072.  
  3073. 32/64-bit
  3074. =========
  3075.       * D-Class: Dx70/x80/D390
  3076.                  (Dx70/Dx80 supports 64-bit only w/ Firmware rev. 38.30+)
  3077.                  (D390 supports 64-bit only w/ Firmware rev. 38.31+)
  3078.                  (Dx70/x80/D390 require XSW 9808+ to run 64-bit)
  3079.                  and provide NO support for any EISA cards!)
  3080.       * K-Class: Kx50/x60/x60EG/460XP/x70/x80
  3081.       * R-Class: all
  3082.       * T-Class: T600
  3083.       * Enterprise Parallel Servers: all
  3084.  
  3085. 64-bit Only
  3086. ===========
  3087.       * A-Class: A400/500
  3088.       * L-Class: all
  3089.       * N-Class: all
  3090.       * V-Class: all
  3091.  
  3092. The following summarizes the 11.00 implementations supported on HP9000
  3093. Workstations:
  3094.  
  3095. 32-bit Only
  3096. ===========
  3097.       * B-class: B132L/160L
  3098.       * C-class: C100/110/160/160L/180/180-XP/200/240/360/3000/3600
  3099.       * J-Class: J200/210/210XC
  3100.       * 700-Series: 712, 715/64, 715/80, 715/100, 715/100XC, 725/100,
  3101. 743, 744
  3102.  
  3103. 32/64-bit
  3104. =========
  3105.       * B-Class: B132L+/180L/1000 (only w/ XSW 9808+)
  3106.       * C-Class: C200/240/160/180/180XP (only w/ XSW 9808+)
  3107.       * J-Class: J280/282/2240 (only w/ XSW 9808+)
  3108.  
  3109. ------------------------------
  3110.  
  3111. Subject: 5.5.3  Where can I find detailed documentation of the various
  3112.                 kernel parameters?
  3113. Added: 01/22/03                
  3114.  
  3115. The following URLs provide documentation for kernel parameters on 11.00
  3116. and 11i:
  3117.       
  3118.   o 11.00:
  3119. <http://docs.hp.com/hpux/onlinedocs/939/KCParms/KCparams.OverviewAll.html>
  3120.   o 11i:   <http://docs.hp.com/hpux/onlinedocs/TKP-90202/TKP-90202.html>
  3121.  
  3122. Additionally, in 11.22 and later, each kernel parameter has its own
  3123. manpage in section 5. These generally contain greater detail than the
  3124. above URLs and much of it is also applicable to 11.00, 11.11, and/or
  3125. 11.20. These manpages can be viewed online at:
  3126.  
  3127.   o <http://docs.hp.com/hpux/onlinedocs/B3921-90010/00/20/2040-con.html> 
  3128.                              
  3129.  
  3130. ------------------------------
  3131.  
  3132. Subject: 5.6  Monitors, Diagnostics, and Performance
  3133.  
  3134. ------------------------------
  3135.  
  3136. Subject: 5.6.1  How can I look at what my system is doing?
  3137. Updated: 04/08/01
  3138.  
  3139. The best tool for monitoring your system is HP GlancePlus.  In the U.S.
  3140. call 800.237.3990 for a trial version.  Outside the U.S. contact your HP
  3141. sales representative.  HP sells other performance tools as well including
  3142. HP Performance Collection Software, HP PerfRX (for long-term performance
  3143. analysis of a single system), and HP PerfView which runs under OpenView
  3144. (for simultaneous monitoring of a network of systems including HP-UX,
  3145. Solaris[TM], and AIX[R].
  3146.  
  3147. A couple cheaper, but less robust, options are the sar(1M) and top(1)
  3148. commands.
  3149.  
  3150. On 9.x systems, you can use /usr/contrib/bin/monitor.
  3151.  
  3152. ------------------------------
  3153.  
  3154. Subject: 5.6.2  What happened to the sysdiag command?
  3155. Updated: 03/27/01
  3156.  
  3157. For HP-UX 10.01 and later, the HP-UX Online Diagnostic System, of which
  3158. sysdiag(1M) was a part, has been replaced with the HP-UX Support Tools
  3159. package (HP Part No. B6191AAE).  sysdiag's replacement is called Support
  3160. Tools Manager (STM).  See stm(1M).
  3161.  
  3162. The Support Tools come preinstalled on HP9000 systems purchased on or
  3163. after May 1999.  Note, the SD bundle name for Support Tools is
  3164. 'OnlineDiag'.  For older systems, the latest release of Support Tools can
  3165. be downloaded, free of charge, from the "network & system administration"
  3166. section of <http://software.hp.com/>.  For Support Tools documentation,
  3167. see
  3168. <http://docs.hp.com/hpux/diag/>.
  3169.  
  3170. ------------------------------
  3171.  
  3172. Subject: 5.6.3  How can I improve overall system performance?
  3173. Updated: 05/03/02
  3174.  
  3175. There are, of course, many answers to this question.  Many people have
  3176. noticed that HP's conservative choices in some configuration areas affect
  3177. performance, especially as compared to Solaris.  A couple examples:
  3178.  
  3179.   o 'fs_async' kernel parameter
  3180.  
  3181.       HP-UX by default makes all file systems I/O synchronous.  Sun[R],
  3182.       by contrast, defaults to asynchronous I/O and depends on the
  3183. syncer.
  3184.       Changing this parameter's value from 0 to 1 can significantly
  3185.       increase write speeds, BUT at the risk of losing data in a system
  3186.       crash.  You can change this parameter using SAM.
  3187.  
  3188.   o 'async' NFS option
  3189.  
  3190.       Similar to local writes, NFS writes to a filesystem exported from
  3191. an
  3192.       HP-UX system are synchronous by default.  Add the async option to
  3193.       your /etc/exports if you want to change that, but be sure to
  3194.       carefully read the exports(4) manpage first.
  3195.  
  3196. An abundance of performance tuning tips are provided by HP in the
  3197. following 
  3198. tuning guides:
  3199.  
  3200.   o HP-UX Workstation System Tuning and Performance Guide, 08/31/00: 
  3201.    
  3202. <http://www.hp-partners.com/tcl_public/html/technical_support/tuning.html>
  3203.  
  3204.   o HP-UX Kernel Tuning and Performance Guide v3.1, 03/15/00:
  3205.     <http://docs.hp.com/hpux/onlinedocs/os/11.0/tuningwp.html>
  3206.  
  3207. ------------------------------
  3208.  
  3209. Subject: 5.7  Networking and Communications
  3210.  
  3211. ------------------------------
  3212.  
  3213. Subject: 5.7.1  How can I change the order of hostname resolution?
  3214. Updated: 03/22/01
  3215.  
  3216. Edit /etc/nsswitch.conf.  See nsswitch.conf(4).
  3217.  
  3218. ------------------------------
  3219.  
  3220. Subject: 5.7.2  How can I track network packets?
  3221.  
  3222. TRACING - Trace all packets seen by the device driver on the HP nodes,
  3223.           except diskless packets.  Trace packets sent by the node, or
  3224.           addressed to the node.
  3225.  
  3226. Network tracing can be done with nettl(1M).  nettl can only be used by
  3227. the
  3228. superuser, so su to root before proceeding.
  3229.  
  3230. 1.  Start Trace - put data into 1MB trace file. The data
  3231.     will be stored in /tmp/raw.TRC0 and /tmp/raw.TRC1
  3232.     The most recent data will always be in TRC0, when
  3233.     it fills up, TRC0 is renamed TRC1, and new logging
  3234.     continues in the TRC0 file.  They fill up quickly!
  3235.  
  3236.       nettl -tn all -e ns_ls_ip -size 1024 -tracemax 99999 -f /tmp/raw
  3237.  
  3238.     This will trace packets in, packets out, and loopback packets at the
  3239. IP
  3240.     Layer (ns_ls_ip).  If you need link-specific packet tracing you must
  3241.     specify the appropriate network driver or "-e all".
  3242.  
  3243. 2.  Stop trace as soon as an event occurs!
  3244.  
  3245.     nettl -tf -e all
  3246.  
  3247. 3.  Format trace into a print file:
  3248.  
  3249.     netfmt -N -n -l -f /tmp/raw.TRC0 [ -c /tmp/filter ] > /tmp/fmt0
  3250.     netfmt -N -n -l -f /tmp/raw.TRC1 [ -c /tmp/filter ] > /tmp/fmt1
  3251.  
  3252.     -N - print in "nice" format (e.g. interpret)
  3253.     -n - print IP addresses, not hostnames
  3254.     -l - do not highlight fields (for hpterm)
  3255.     -f - input file (nettl-generated trace data)
  3256.     -c - optional, use a filter file (see "filtering", below)
  3257.  
  3258.     NOTE: netfmt takes a while to run!  There will be plenty of info in
  3259.           the trace file - interpretation may be necessary!
  3260.  
  3261. 3a. Filtering.  Create a filter file to tell netfmt what packets you
  3262.     are interested in seeing.
  3263.  
  3264.     E.g. only display packets to/from IP address 192.10.11.1:
  3265.     filter ip_saddr 192.10.11.1
  3266.     filter ip_daddr 192.10.11.1
  3267.  
  3268.     Filter out all put NFS packets (to/from UDP port 2049)
  3269.     filter udp_sport 2049
  3270.     filter udp_dport 2049
  3271.  
  3272.     Filter out all but TCP packets to/from port 25 (sendmail):
  3273.     filter tcp_sport 25
  3274.     filter tcp_dport 25
  3275.  
  3276.     Filter on ethernet addresses:
  3277.     filter dest 08-00-09-49-91-4a
  3278.     filter source 08-00-09-49-91-4a
  3279.  
  3280.     You can put these together (e.g. filter all NFS packets to/from IP
  3281.     addr):
  3282.     filter ip_saddr 192.10.11.1
  3283.     filter ip_daddr 192.10.11.1
  3284.     filter udp_sport 2049
  3285.     filter udp_dport 2049
  3286.  
  3287. 3b. To create timestamped 1-liner trace analysis file of all packets in
  3288.     capture file:
  3289.  
  3290.       # netfmt -N -n -l -1 -T -f /tmp/raw.TRC0 >/tmp/fmt0-1
  3291.  
  3292.     ...take note, that there is a -l (ell) and a -1 (number one)
  3293.     specified!
  3294.  
  3295.     To create a timestamped 1-liner trace analysis file using a packet
  3296.     filter, first see information in Step #3a on creating a filter file,
  3297.     then:
  3298.  
  3299.       # netfmt -N -n -l -1 -T -c /tmp/filterfile -f /tmp/raw.TRC0 \
  3300.         >/tmp/fmt0-1f
  3301.  
  3302.     ...take note, that there is a -l (ell) and a -1 (number one)
  3303.     specified!
  3304.  
  3305. HP-UX 10.20 and 11.X can use tcpdump/libpcap as found at
  3306. <ftp://ftp.ee.lbl.gov/> To select the interface to trace, one uses the -i
  3307. option and gives the interface name as "/dev/dlpiN" where N is the PPA
  3308. of the device. One uses lanscan to find PPAs. On 10.20, the PPA happens
  3309. to be the same as the Network Management ID (NMID) and is not the same
  3310. as the N in "lanN." On 11.X, the PPA happens to be the same as the Card
  3311. Instance number and happens to be the same as the N in "lanN." The
  3312. /dev/dlpiN specified to tcpdump/libpcap is not the same as the device
  3313. file /dev/dlpiM. What actually happens is tcpdump/libcap opens /dev/dlpi
  3314. and bind to PPA N. The /dev/dlpiM device files are for other uses.
  3315.  
  3316. ------------------------------
  3317.  
  3318. Subject: 5.7.3  How to get the MAC address for a particular network
  3319.                 interface?
  3320. Added: 04/09/01
  3321.  
  3322. From the command-line
  3323. =====================
  3324. Run lanscan(1M).
  3325.  
  3326. The output will look similar to this:
  3327.  
  3328.   Hardware Station        Crd Hdw   Net-Interface  NM  MAC    HP-DLPI
  3329. DLPI
  3330.   Path     Address        In# State NamePPA        ID  Type   Support
  3331. Mjr#
  3332.   0/0/0/0  0x00306E06C47D 0   UP    lan0 snap0     1   ETHER  Yes     119
  3333.   0/2/0/0  0x001083FB9956 1   UP    lan1 snap1     2   ETHER  Yes     119
  3334.  
  3335. The output will have one entry for each LAN card in the computer.  The
  3336. second field ("Station Address") is the MAC address.
  3337.  
  3338. To get the MAC addresses of another machine on the LAN, try the
  3339. following:
  3340.  
  3341.   $ ping {hostname} -n 1
  3342.   $ arp -a | grep {hostname}
  3343.  
  3344. where {hostname} is the hostname or IP address of the remote machine.
  3345.  
  3346. Programmatically
  3347. ================
  3348. The old (9.x) way to do this was by using the LLA (Link Level Access)
  3349. API,
  3350. which is obsolete in 10.x/11.x.  The new way to do it is by using the
  3351. DLPI
  3352. (Data Link Provider Interface) API, LLA's replacement.  For information
  3353. on migrating your code from LLA to DLPI, refer to chapter one of the LLA
  3354. Programming and Migration Guide (HP Part No. 98194-90053) at
  3355. <http://docs.hp.com/hpux/onlinedocs/98194-90053/00/00/1-con.html>.
  3356.  
  3357. You might want to check for a "logical" MAC address, rather than the
  3358. physical, if the software is going to be used in a switchover
  3359. environment.
  3360.  
  3361. For more information on DLPI programming, refer to the DLPI Programmer's
  3362. Guide (HP Part No. B2355-90139), available online at
  3363. <http://docs.hp.com/hpux/onlinedocs/B2355-90139/B2355-90139.html>.
  3364.  
  3365. Side Note
  3366. =========
  3367. To figure out what vendor made your Ethernet card based on the MAC
  3368. address, check out
  3369. <http://www.cavebear.com/CaveBear/Ethernet/vendor.html>.
  3370.  
  3371. ------------------------------
  3372.  
  3373. Subject: 5.7.4  Is there a Transport Level Interface (TLI) interface to
  3374.                 TCP on HP-UX?
  3375.  
  3376. In HP-UX 10.00-10.20, a special module exists which provides XTI access
  3377. over the BSD stack - TLI is not supported. TLI, for the most part after
  3378. SVID 3 volume 5, has stopped evolving and is being replaced by XTI in
  3379. most implementations.  XTI is standardized by X/Open and the current
  3380. versions from most vendors should be XPG4 compliant with some being
  3381. branded as the branding test suites are made available by X/Open.
  3382.  
  3383. Note the reason one needs a streams-based TCP is that both TLI and XTI
  3384. rely upon a streams-based module, timod, to provide specific
  3385. functionality
  3386. within the kernel and this module needs to be pushed upon the transport
  3387. stack.  Since HP-UX uses a BSD transport which is not streams-based and
  3388. is therefore incapable of having a streams-based module pushed upon it,
  3389. one can not run TLI/XTI directly upon it, and, hence, a special streams
  3390. module was created to provide this functionality for HP-UX 10.0.
  3391.  
  3392. As of HP-UX 10.30, the BSD-based transport is replced by a Streams-based
  3393. one.  XTI no longer requires a special streams module.  In the past,
  3394. where
  3395. one would open /dev/inet_cots to get TCP, one can open /dev/tcp and get
  3396. TCP.
  3397.  
  3398. ------------------------------
  3399.  
  3400. Subject: 5.7.5  How do I disable IP Forwarding?
  3401.  
  3402. For HP-UX 10.x, one uses nettune to set the variable ip_forwarding to 0.
  3403. For HP-UX 11.x, one uses ndd to set the variable ip_forwarding to 0.  For
  3404. HP-UX 11.x, this tune can be placed in the file /etc/rc.config.d/nddconf
  3405. and will then be applied automagically on every reboot.
  3406.  
  3407. ------------------------------
  3408.  
  3409. Subject: 5.7.6  Why is ifconfig giving me errors when I try to configure
  3410.                 my LAN?
  3411.  
  3412. When I try to configure my lan device on my s700 I get the error
  3413. ifconfig: no such interface - why is that?
  3414.  
  3415. This is because the interface's hardware state is down. The s700 machines
  3416. need to be connected to a network before they can be configured with
  3417. ifconfig. Add the s700 machine to the network and then reset the
  3418. interface
  3419. by running landiag (LAN->RESET). If no errors are reported, then you
  3420. should be able to ifconfig that interface.
  3421.  
  3422. ------------------------------
  3423.  
  3424. Subject: 5.7.7  How do I change the hostname, IP address, DNS Server,
  3425. etc?
  3426. Updated: 06/20/01
  3427.  
  3428. To change these system parameters, you should use the /sbin/set_parms
  3429. sehll script.  This script modifies the system configuration file 
  3430. /etc/rc.config.d/netconf.  set_parms does not backup the netconf file, so
  3431. it's a good idea to back it up yourself before running set_parms:
  3432.  
  3433.   # cd /etc/rc.config.d
  3434.   # cp -p netconf netconf.prev
  3435.  
  3436. To print the usage for set_parms, run the script with no arguments:
  3437.  
  3438.   # /sbin/set_parms
  3439.  
  3440. After modifying netconf, set_parms will ask you whether you want to
  3441. reboot
  3442. the system; this is necessary in order to apply the configuration
  3443. changes.
  3444. You can answer "Yes, Reboot", or you can answer "No, Do Not Reboot" and
  3445. reboot at a later time.
  3446.  
  3447. ------------------------------
  3448.  
  3449. Subject: 5.7.8  How do I determine the speed and duplexity of my network
  3450.                 interface?
  3451. Updated: 04/19/01
  3452.  
  3453. Use the lanadmin(1M) tool as follows:
  3454.  
  3455.   # echo "lan display quit" | lanadmin
  3456.  
  3457. The "Description" line shows the duplexity, if the network interface
  3458. supports something other than half duplex.  The "Speed" line shows the
  3459. speed in bits per second (bps).
  3460.  
  3461. ------------------------------
  3462.  
  3463. Subject: 5.7.9  How do I display all active Internet (TCP and UDP)
  3464.                 connections?
  3465. Added: 06/01/01
  3466.  
  3467.   # netstat -anf inet
  3468.  
  3469. ------------------------------
  3470.  
  3471. Subject: 5.7.10  How can multiple IP addresses be configured on one 
  3472.                  interface?
  3473. Updated: 11/18/01
  3474.  
  3475. ifalias
  3476. =======
  3477. On 10.x, a patch can be installed that adds a new command called ifalias,
  3478. allowing one to add multiple IP addresses on one interface without having
  3479. to buy MC/ServiceGuard:
  3480.  
  3481.   o For 10.20: PHNE_12492
  3482.   o For 10.10: PHNE_7108
  3483.   o For 10.01: PHNE_7107
  3484.   0 For 10.00: not available
  3485.  
  3486. After installing the patch, see the ifalias(1M) manpage.  The command's
  3487. syntax is very straightforward:
  3488.  
  3489.   # ifalias lanX add <address_list>
  3490.  
  3491. where X is the interface number, and <address_list> is the list of IP
  3492. addresses you wish to alias.
  3493.  
  3494. It is also a good idea to install the latest ARPA Transport patch:
  3495.  
  3496.   o For 10.20: PHNE_22507
  3497.   o For 10.10: PHNE_19935
  3498.   o For 10.01: PHNE_20188
  3499.   o For 10.00: PHNE_13474
  3500.  
  3501. ifconfig
  3502. ========
  3503. On 11.x, no additional patches are required, and one does not use the
  3504. ifalias command.  The functionality is part of the ifconfig(1M) command.
  3505. For additional aliases on the same physical interface, one would do:
  3506.  
  3507.   # ifconfig lanX:0 ...
  3508.   # ifconfig lanX:1 ...
  3509.   ...
  3510.   # ifconfig lanX:N ...
  3511.  
  3512. where X is the interface number.  Note, 'lanX' is equivalent to 'lanX:0'.
  3513.  
  3514. To persist the configuration, modify /etc/rc.config.d/netconf.  The
  3515. format
  3516. should resemble the following:
  3517.  
  3518.   INTERFACE_NAME[0]="lan0" 
  3519.   IP_ADDRESS[0]=13.13.10.1 
  3520.   SUBNET_MASK[0]=255.255.255.0 
  3521.   BROADCAST_ADDRESS[0]="" 
  3522.   INTERFACE_STATE[0]="" 
  3523.   DHCP_ENABLE[0]=0 
  3524.  
  3525.   INTERFACE_NAME[1]="lan0:1" 
  3526.   IP_ADDRESS[1]=13.13.20.15 
  3527.   SUBNET_MASK[1]=255.255.255.0 
  3528.   BROADCAST_ADDRESS[1]="" 
  3529.   INTERFACE_STATE[1]="" 
  3530.   DHCP_ENABLE[1]=0
  3531.  
  3532. Again, it is a good idea to install the latest ARPA Transport patch:
  3533.  
  3534.   o For 11.11: PHNE_27063
  3535.   o For 11.00: PHNE_27886
  3536.  
  3537. cmmodnet
  3538. ========
  3539. HP's MC/ServiceGuard product also allows you to configure multiple IP
  3540. addresses on one interface, using the cmmodnet command which adds IP
  3541. addresses to existing interfaces.  For example:
  3542.  
  3543.   # cmmodnet -a -i 15.13.169.16 15.13.143
  3544.  
  3545. Where -a is add, -i 15.13.169.16 is the IP address to add, and 15.13.143
  3546. is the subnet on which to add it.  The cmmodnet command (via the
  3547. ioctl()s)
  3548. then figures out which interface the subnet is currently on and adds
  3549. the new IP address to that interface.
  3550.  
  3551. VIF
  3552. ===
  3553. Similar functionality for HP-UX 9.x can be obtained using the VIF kernel
  3554. driver by Steinar Haug <sthaug@nethelp.no>.  For more info, see:
  3555.  
  3556.   o <http://www.nethelp.no/net/vif/readme.html>
  3557.  
  3558. ------------------------------
  3559.  
  3560. Subject: 5.7.11  How can I enable the LAN interface on a 700?
  3561.  
  3562. This can be problem when the LAN isn't connected at boot time. To resolve
  3563. the problem, use the 'reset' command in 'landiag'.
  3564.  
  3565. ------------------------------
  3566.  
  3567. Subject: 5.7.12  Where can I get STREAMS for HP-UX?
  3568. Updated: 03/30/01
  3569.  
  3570. STREAMS/UX is included with and fully supported on HP-UX 10.00 and later.
  3571.  
  3572. For HP-UX 9.x, STREAMS/UX was a product that could be purchased
  3573. separately.  STREAMS/UX is based on the OSF/1[R] streams code, which in
  3574. turn is based on streams code from Mentat.
  3575.  
  3576. The HP manual "STREAMS/UX for the HP 9000 Reference Manual" (Part No.
  3577. J2237-90005) can be viewed online at:
  3578.  
  3579.   o <http://docs.hp.com/hpux/onlinedocs/J2237-90005/00/00/1-con.html>
  3580.  
  3581. Or purchased in hardcopy form from:
  3582.  
  3583.   o
  3584. <http://software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/displayProductInfo.pl?productNumber=B8679BA:J2237-90005>
  3585.  
  3586. Also, there are a number of kernel parameters for streams.  An
  3587. explanation of these parameters is provided online (see section 5.5.3
  3588. for more info).
  3589.  
  3590. ------------------------------
  3591.  
  3592. Subject: 5.7.13  What version of BIND (named) comes with HP-UX?
  3593. Updated: 12/11/02
  3594.  
  3595. HP-UX 11.20 comes with BIND version 9.2.
  3596. HP-UX 11.11 comes with BIND version 8.1.2.
  3597. HP-UX 11.00 comes with BIND version 4.9.6.
  3598. HP-UX 10.20 comes with BIND version 4.9.3.
  3599. HP-UX 10.00 comes with BIND version 4.8.3.
  3600.  
  3601. Use what(1) to determine what version of BIND is installed:
  3602.  
  3603. $ what /usr/sbin/named | grep named
  3604. /usr/sbin/named:
  3605.         named 8.1.2 Tue Feb 15 06:58:53 GMT 2000
  3606.  
  3607. There are several patches available for BIND:
  3608.  
  3609.   o 11.11: PHNE_23275 - provides several bug fixes & new 'nsupdate' tool
  3610.   o 11.00: PHNE_23274 - upgrades BIND to v4.9.7.
  3611.   o 10.x:  PHNE_23277 - upgrades BIND to v4.9.7.
  3612.  
  3613. One can download a free copy of BIND 9.2.0 for 11i or BIND v8.1.2 for
  3614. 11.00 from <http://software.hp.com/> ("enhancement releases" section).  
  3615. Note there are substantial differences between BIND 4.x and BIND 8.x/9.
  3616.  
  3617. ------------------------------
  3618.  
  3619. Subject: 5.7.14  What version of sendmail comes with HP-UX?
  3620. Updated: 12/11/02
  3621.  
  3622. HP-UX 11.20 comes with sendmail version 8.11.1.
  3623. HP-UX 11.11 comes with sendmail version 8.9.3.1.
  3624. HP-UX 11.00 and 10.20 come with sendmail version 8.7.1.1.
  3625. HP-UX 10.00/01/10 come with sendmail version 5.65.
  3626.  
  3627. Use what(1) to determine what version of sendmail is installed:
  3628.  
  3629. $ what /usr/sbin/sendmail | grep version
  3630. /usr/sbin/sendmail:
  3631.         version.c       8.9.3.1 (Berkeley) 10/01/2000
  3632.  
  3633. There are several patches available for sendmail:
  3634.  
  3635.   o 11.11: PHNE_25184 - provides a couple bug fixes
  3636.   o 11.00: PHNE_24419 - upgrades sendmail to v8.9.3.1 and provides a
  3637.                         bunch of bug fixes
  3638.   o 10.20: PHNE_25183 - upgrades sendmail to v8.9.3.1 and provides a
  3639.                         bunch of bug fixes
  3640.  
  3641. One can download a free copy of sendmail 8.11.1 for 11.x or sendmail
  3642. v8.8.6 for HP-UX 9.x or 10.0x/10 from <http://software.hp.com/>
  3643. ("enhancement releases" section). Note there are substantial differences
  3644. between sendmail 5.x and sendmail 8.x.
  3645.  
  3646. ------------------------------
  3647.  
  3648. Subject: 5.7.15  What version of NFS comes with HPUX?
  3649. Updated: 01/03/02
  3650.  
  3651. o HP-UX 11.00/10/11 come with NFS Version 2 and 3 over UDP and TCP.
  3652. o HP-UX 10.20 comes with NFS Version 2 over UDP. NFS Version 3 over
  3653.   UDP can be added by installing the latest XSW patch bundle or by
  3654.   installing the latest NFS patch - currently:
  3655.     - PHNE_25234
  3656. o HP-UX 10.00/01/10 come with NFS Version 2 over UDP only.
  3657.  
  3658. ------------------------------
  3659.  
  3660. Subject: 5.7.16  What is the difference between automount and AutoFS?
  3661. Updated: 09/12/03
  3662.  
  3663. There are two versions of the Automounter available:
  3664.  
  3665.   o automount:  Also called the "legacy" or "user space" automounter,
  3666.                 ported from SunOS 4.X.  The legacy automounter supports
  3667.                 NFS Version 2 over UDP ONLY (even on 11.x).  When it
  3668.                 runs, you see a process named "automount" running.
  3669.  
  3670.   o AutoFS:  This is an older version of the Solaris AutoFS automounter.
  3671.              The AutoFS automounter supports NFS Version 2 and 3 over UDP
  3672.              and TCP.  When it runs, you see a process named "automountd"
  3673.              running, and a kernel helper process called "autofs_proc".
  3674.              The "automount" command is used to re-read and update the
  3675.              AutoFS configuration.  AutoFS is only available on 10.20 NFS
  3676.              patch versions since 1999.  It is available on all 11.x NFS
  3677.              patch levels.
  3678.  
  3679. The /etc/rc.config.d/nfsconf variable AUTOFS controls if the legacy
  3680. automounter is used (AUTOFS=0), or if the AutoFS is used (AUTOFS=1).  You
  3681. cannot run both versions simultaneously on the same host.  You can change
  3682. between the versions by stopping the nfs.client service, updating
  3683. nfsconf, and then restarting the nfs.client service.
  3684.  
  3685. ------------------------------
  3686.  
  3687. Subject: 5.7.17  Can I configure multiple network interfaces on the same
  3688.                  subnet?
  3689. Added: 05/14/01
  3690.  
  3691. You can configure it, but it may not do what you expect. 
  3692.  
  3693. When two ore more interfaces are configured into the same subnet, all
  3694. interfaces can recieve traffic. However, only one of them will be used
  3695. for outbound traffic - either the first or last configured (ifconfig)
  3696. - I can never remember which.
  3697.  
  3698. On 10.20, you are pretty much stuck unless you want to configure
  3699. static routes pointing at each specific local interface IP to give you
  3700. the outbound pattern you deisre.
  3701.  
  3702. On HP-UX 11.X, you can use ndd to set ip_strong_es_model to a value of
  3703. 1. This will force route lookup to include the source IP address. In
  3704. effect, you get per-interface routes. It also means that the system
  3705. will only accept traffic to a given IP address on the interface with
  3706. that same IP address configured.
  3707.  
  3708. ------------------------------
  3709.  
  3710. Subject: 5.7.18  Does HP-UX come with a DHCP server?
  3711. Added: 08/23/01
  3712.  
  3713. Yes, bootpd can act as a DHCP server, as well as a BOOTP server.  To 
  3714. configure it you'll need to add client entries in /etc/dhcptab and 
  3715. uncomment the bootps line in /etc/inetd.conf.  See bootpd(1M) for
  3716. details.
  3717.  
  3718. ------------------------------
  3719.  
  3720. 5.7.19 Is there a port management tool / firewall for HP-UX?
  3721. Updated: 01/23/03
  3722.  
  3723. Yes, for HP-UX 11.x there is HP IP Filter.  It is a free add-on and is
  3724. based on the public domain IP Filter package.  You can find it on the
  3725. HP-UX Applications CDs from March 2001 or later.  Look for the following
  3726. bundle:
  3727.  
  3728.    B9901AA     HP IPFilter 4.0alpha18     A.04.00
  3729.  
  3730. It is also available for download from:
  3731.  
  3732.   o
  3733. <http://software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/displayProductInfo.pl?productNumber=B9901AA>
  3734.  
  3735. It is recommended that you install the latest ARPA Transport patch before
  3736. using IP Filter:
  3737.  
  3738.   o For 11.11: PHNE_27063
  3739.   o For 11.00: PHNE_27886
  3740.  
  3741. HP IP Filter is not available for 10.x.
  3742.  
  3743. You can find documentation, source code, and instructions for building IP
  3744. Filter for HP-UX 11.x from source at the IP filter homepage:
  3745.  
  3746.   o <http://www.ipfilter.org/>
  3747.  
  3748. ------------------------------
  3749.  
  3750. Subject: 5.8  Peripheral Devices
  3751.  
  3752. ------------------------------
  3753.  
  3754. Subject: 5.8.1  How do I use the floppy drive on my HP-UX workstation?
  3755. Updated: 04/30/01
  3756.  
  3757. HP9000 workstations can be equipped with a 3.5" floppy drive, which
  3758. enables the use of DOS-formatted 1.44 MB floppy disks.  Older systems
  3759. use SCSI floppy drives, newer systems use standard PC floppy drives.
  3760. To use the floppy drive:
  3761.  
  3762. If you intend to write to the floppy disk, make sure that the write
  3763. protect tab is set to WRITE (tab closed).  Insert the disk into the
  3764. floppy drive.  To view the contents of the floppy disk enter the
  3765. command:
  3766.  
  3767.   $ dosls /dev/rfloppy/c0t1d0:
  3768.  
  3769. (The exact name device file depends on your machine type.)  To copy
  3770. files to or from the floppy disk, use the doscp command.  For example:
  3771.  
  3772.   $ doscp somefile /dev/rfloppy/c0t1d0:
  3773.   $ doscp /dev/rfloppy/c0t1d0:/somefile ~
  3774.  
  3775. For details of these commands and other related commands (dosmkdir,
  3776. dosrm, etc.), consult dosif(4).  To eject the floppy disk, press the
  3777. button located below and to the right of the slot where you inserted
  3778. the floppy disk.
  3779.  
  3780. The dosif commands are very slow; a faster alternative that can handle
  3781. long filenames and also works with ZIP drives and similar devices is
  3782. the free Mtools package, available from the HP-UX Porting and Archive
  3783. Center (see 7.1.2.1) and <http://www.tux.org/pub/knaff/mtools/>.
  3784.  
  3785. ------------------------------
  3786.  
  3787. Subject: 5.8.2  How can I format a floppy under HP-UX?
  3788.  
  3789. There is no HP-fully-supported way of getting an MS-DOS floppy formatted
  3790. on HP-UX.  (Once you have a PC-compatible floppy, the series of commands
  3791. referenced in the dosif(4) manpage allow you to read and write the
  3792. floppies).
  3793.  
  3794. However, there is a workaround.  Perform the basic mediainit with the
  3795. -f16 switch (this causes the floppy to beeeeeeeee formatted with the full
  3796. 80
  3797. tracks, rather than HP's default safer-but-nonstandard 77+3spare tracks,
  3798. 512-byte sectors, no sector skew: just like the most basic PC floppies).
  3799. Then copy on the FAT, directory, label, and other such magic from an
  3800. honest-to-goodness formatted-on-a-real-PC drive into the first N sectors.
  3801. For sizes up to 1.44MB floppies, N=20 is more than enough; I don't have
  3802. the values for the rarely used 2.88MB size (and I don't think the drives
  3803. in the s700 handle that size anyway).  This header magic should be copied
  3804. off an honest-to-goodness PC floppy once with the command
  3805.  
  3806.   # dd if=/dev/rfloppy of=/a/good/place/to/store/the/header bs=512 \
  3807.     count=20
  3808.  
  3809. and then written back to each "cloned" floppy with the same command,
  3810. reversing "if" and "of".  (Slightly faster performance is possible using
  3811. the variant:
  3812.  
  3813.   # dd of=/dev/rfloppy if=/the/copied/header ibs=512 count=20 obs=9k \
  3814.     conv=sync
  3815.  
  3816. This causes floppy I/O to be done in multiples of 9kB, i.e. one cylinder
  3817. at a time.)
  3818.  
  3819. You should of course have two such headers, one for 720kB and one for
  3820. 1.44MB floppies: lying to MS-DOS or the dos* utilities about the floppy
  3821. capacity would be a bad idea.  If you're writing a script to automate
  3822. all this, you can determine the capacity of a floppy loaded in the drive
  3823. using the following fragment of Korn shell:
  3824.  
  3825.     kbsize=$( diskinfo -b /dev/rfloppy 2>/dev/null )
  3826.     if (( $? != 0  ||  $kbsize == 0 )) ; then
  3827.         print -u2 "$0: Wot, no media!?"
  3828.         rm -f core  # 9.01s700 diskinfo coredumps
  3829.         exit 1
  3830.     fi
  3831.  
  3832. ------------------------------
  3833.  
  3834. Subject: 5.8.3  How can I get an Exabyte to work on an HP?
  3835. Updated: 01/23/03
  3836.  
  3837. A number of Exabyte drives are supported by HP-UX, though, in some cases,
  3838. the tape drive's firmware may need to be updated.  Information on
  3839. upgrading your tape drive to the latest firmware can be obtained here:
  3840.  
  3841.   o <http://www.exabyte.com/downloads>
  3842.  
  3843. To determine the level of firmware installed in a tape drive, try:
  3844.  
  3845.   # ioscan -funC tape
  3846.  
  3847. It is also not a bad idea to upgrade the system's SCSI tape drivers -
  3848. stape (tape2 also, on 10.x).  However, this will require a reboot...
  3849.  
  3850.   o For HP-UX 10.10, install PHKL_19804.
  3851.   o For HP-UX 10.20, install PHKL_22855.
  3852.   o For HP-UX 11.00, install PHKL_28216.
  3853.   o For HP-UX 11.11, install PHKL_28217.
  3854.  
  3855. Several third-party vendors of backup software (to be specific - BakBone,
  3856. Computer Associates, Legato, SCH, SOPRA, and VERITAS) support certain
  3857. Exabyte drives on HP-UX.  For a complete listing of which vendors support
  3858. which drives, see:
  3859.  
  3860.   o <http://www.exabyte.com/support/online/documentation/os.cfm?id=11>
  3861.  
  3862. What about OmniBack, you may ask.  Though
  3863. <http://www.exabyte.com/support/online/documentation/software.cfm?id=31>
  3864. indicates that HP's OpenView OmniBack II software supports Exabytes only
  3865. on the Windows platform, HP does support the Exabyte 8505XL drive
  3866. (internal and external) with OmniBack 2.1 and later for HP-UX systems.
  3867. For details, see:
  3868.  
  3869.   o
  3870. <http://www.managementsoftware.hp.com/products/omniback/specifications/>
  3871.  
  3872. ------------------------------
  3873.  
  3874. Subject: 5.8.4  How can I get a stuck DDS tape out of the drive?
  3875.  
  3876. 1)  Power down your machine (remember shutdown!!! ;-))
  3877. 2)  Open it up (you'll prob. need Torx screwdrivers).
  3878. 3)  On the side of the drive, you should see a small rectangular piece
  3879.     of plastic.  Gently pry it off... it should come off quite easily.
  3880. 4)  The aforementioned piece of plastic covers a hole, which houses a
  3881.     small dial.  Spinning this dial ejects the tape.
  3882. 5)  Replace plastic piece, close machine... and Bob's your uncle.
  3883.  
  3884. p.s.  The dial has very little torque (ie. the tape comes out quite
  3885. slowly, but you can see it move.  It'll take about 2-3 minutes of
  3886. spinning before the tape comes out.
  3887.  
  3888. ------------------------------
  3889.  
  3890. Subject: 5.8.5  Do I need to terminate the internal SCSI on a 700?
  3891.  
  3892. According to some people, an unterminated internal SCSI on a 700
  3893. will cause interrupts which are ignored but slow down the machine.
  3894. Terminate to be safe.
  3895.  
  3896. ------------------------------
  3897.  
  3898. Subject: 5.8.6  How can I play audio CDs on an HP workstation's CD-ROM
  3899.                 drive?
  3900. Updated: 03/29/01
  3901.  
  3902. Use xmcd.
  3903.  
  3904. Xmcd is a full-featured CD Player utility package including xmcd, a CD
  3905. Player for the X window system using the Motif graphical user interface,
  3906. and cda, a command-line driven, text-mode CD Player which also features a
  3907. curses-based, screen-oriented mode.  Both utilities transform your
  3908. CD-ROM,
  3909. CD-R or CD-RW drive into a stereo CD player, allowing you to play music
  3910. CDs on your computer.
  3911.  
  3912. A CD database feature is supported, maintaining the disc artist/title,
  3913. track titles, and arbitrary text (such as band information and song
  3914. lyrics).  A large Xmcd database can be downloaded from the Liverpool
  3915. archive; the name of the package is xmcd_cddb.
  3916.  
  3917. Moreover, xmcd supports CD recognition via CDDB[TM], and even supports
  3918. using a proxy server to get to CDDB[TM] servers from behind a firewall.
  3919.  
  3920. Xmcd controls the CD-ROM drive only, and does not control the built-in
  3921. audio hardware on SGI, Sun, HP and some other workstations. Thus, there
  3922. is no way to make the CD-ROM play via the workstation's internal
  3923. speakers,
  3924. unless an external program is used to control the audio hardware.
  3925.  
  3926. Use headphones or high quality external amplified speakers,
  3927. connected to the front jack on your CD-ROM drive.  This setup should
  3928. provide sound quality that is superior to the system's internal speakers.
  3929.  
  3930. If you are running HP-UX 10.x or later, you may need to install an
  3931. "Audio Subsystem" patch from HP in order for the system to recognize the
  3932. CD-ROM drive as an input source:
  3933.  
  3934.   o 10.01/10/20: PHSS_22935
  3935.   o 11.00:       PHSS_22936
  3936.  
  3937. Xmcd is free, Open Source software, released under the GNU General Public
  3938. License.
  3939.  
  3940. Precompiled binaries can be downloaded from the Xmcd homepage
  3941. (<http://www.ibiblio.org/tkan/xmcd/>) or the Liverpool HP-UX archive.
  3942.  
  3943. ------------------------------
  3944.  
  3945. Subject: 5.8.7  How can I set up /dev/audio to point to the external jack
  3946.                 on a 700?
  3947.  
  3948. Alter the /dev/audio device file as follows:
  3949.  
  3950. crw-rw-rw-   1 root     sys       57 0x208011  /dev/audio  ; external
  3951. jack
  3952. crw-rw-rw-   1 root     sys       57 0x208000  /dev/audio  ; internal
  3953. speaker
  3954.  
  3955. The command is:
  3956.  
  3957.   # mknod /dev/audio c 57 0x2080??  # replace ?? w/ 00 or 11
  3958.  
  3959. ------------------------------
  3960.  
  3961. Subject: 5.8.8  How can I configure the parallel port handshake on a 700?
  3962.  
  3963. Check out cent(7).
  3964.  
  3965. ------------------------------
  3966.  
  3967. Subject: 5.8.9  What are the specs of the audio hardware on the 700
  3968.                 series?
  3969.  
  3970. This is a summary of the audio features supported by the model 715, 725,
  3971. 735, and 755 workstations.  The 705 and 710 also have audio, but the
  3972. specs
  3973. are not available.  The 720, 730, and 750 models DO NOT have audio.
  3974.  
  3975. Audio features  Programmable sample rates (kHz): 8, 11.025, 16,
  3976.                     22.05,32, 44.1, 48
  3977.                 Programmable output attenuation: 0 to -96 dB in 1.5 dB
  3978.                                                  steps
  3979.                 Programmable input gain: 0 to 22.5 dB in 1.5 dB steps
  3980.                 Input monitoring
  3981.                 Coding formats: 16-bit linear, 8-bit mulaw, or A-law
  3982.  
  3983. Audio inputs        Line in
  3984. (not on all models) Mono microphone with 1.5V phantom power
  3985.  
  3986. (Editorial comment - a Sun microphone appears to work just fine.)
  3987.  
  3988. Audio outputs       Line out
  3989. (not on all models)     Headphone
  3990.                     Mono speaker jacks
  3991.                     Built-in mono speaker
  3992.  
  3993. Audio CODEC         Crystal CS4215
  3994.  
  3995. Typical specifications measured on a stock 715.  Values will differ only
  3996. slightly on other models.
  3997.  
  3998. Frequency response      25 - 20,000 Hz
  3999.  
  4000. Input Sensitivity/Impedance
  4001.             Line In         2.0 V(pk) / 47 kohms
  4002.             Microphone  22 mV(pk) / 1 kohm
  4003.  
  4004. Output Impedance (nominal)
  4005.             Line out    619 ohms
  4006.             Headphone   118 ohms
  4007.             Speaker (ext)  11 ohms
  4008.  
  4009. Max Output Level/Impedance
  4010.             Line Out    2.8 V (p-p) / 47 kohms
  4011.                         Headphone   2.75 V (p-p) / 50 ohms
  4012.                         Speaker (ext)  5.88 V (p-p) / 48 ohms
  4013.  
  4014. Signal to Noise
  4015.             Line In     61 dB
  4016.             Line Out    65 dB
  4017.             Microphone  57 dB
  4018.             Headphone   61 dB
  4019.             Speaker (ext)  63 dB
  4020.  
  4021. THD (at nominal load)
  4022.             Line In     -75 dB
  4023.             Line Out    -73 dB
  4024.             Microphone  -73 dB
  4025.             Headphone   -70 dB
  4026.             Speaker (ext)   -68 dB
  4027.  
  4028. ------------------------------
  4029.  
  4030. Subject: 5.8.10  Is there a trackball for the 700?
  4031. Updated: 04/04/01
  4032.  
  4033. Yes, there are two options.
  4034.  
  4035. BKS manufactures and markets THE ORIGINAL HP M1309A HP-HIL Trackball,
  4036. plug-compatible with HP's standard 3-button HP-HIL mouse (~$350):
  4037.  
  4038.   o <http://www.trackballs.com/xlhil.htm>
  4039.   o <http://www.trackballs.com/xx.htm>
  4040.  
  4041. Various MOUSE-TRAK trackballs are available for s700 HP workstations -
  4042. no quad port adapter required (~$99-$325)
  4043.  
  4044.   o <http://www.mousetrak.com/>
  4045.  
  4046. ------------------------------
  4047.  
  4048. Subject: 5.8.11  What keyboards and mice are compatible with HP9000
  4049.                  workstations?
  4050. Added: 04/30/01
  4051.  
  4052. Michael Piotrowski has assembled a web page that lists PS/2 and USB
  4053. keyboards and mice that have been reported to work on HP9000
  4054. workstations:
  4055.  
  4056.   o <http://www.linguistik.uni-erlangen.de/~mxp/kbd.en.html>
  4057.  
  4058. As for serial mice, most Logitech or Microsoft models should work.  The
  4059. following entry would need to be in /etc/X11/X0devices:
  4060.  
  4061.   Begin_Device_Description
  4062.   Name   pcmouse.1
  4063.   Use    Pointer
  4064.   Path   /dev/tty0p0
  4065.   End_Device_Description
  4066.  
  4067. Be sure to change the device file if needed, and chmod it to 666 (the
  4068. Xserver runs as 'daemon', not 'root', and it must have read/write access
  4069. to the device file).
  4070.  
  4071. ------------------------------
  4072.  
  4073. Subject: 5.8.12  How do I change the keyboard type (e.g. from UK to
  4074. German
  4075.                  or vice versa) after HP-UX is already installed?
  4076. Updated: 12/30/03
  4077.  
  4078. To change the keyboard type only until the next system reboot, execute
  4079. the
  4080. following commands as root:
  4081.  
  4082.   # /sbin/itemap -i -L
  4083.   
  4084. To persist the new keyboard type setting across system reboots, execute
  4085. the
  4086. following commands as root:
  4087.  
  4088.   # rm /etc/kbdlang
  4089.   # /sbin/itemap -i -L -w /etc/kbdlang
  4090.  
  4091. In either case, you will be prompted for the keyboard type, as you were
  4092. during the OS installation.
  4093.  
  4094. ------------------------------
  4095.  
  4096. Subject: 5.8.13  How do I ascertain which device file corresponds to my
  4097.                  CD-ROM or DVD-ROM drive?
  4098. Added: 03/05/02                 
  4099.  
  4100. To get the path of your CD-ROM or DVD-ROM device file:
  4101.  
  4102.    $ CDROM=`ioscan -fkn -C disk | awk '{if(match($0,"(CD|DVD)-"))\
  4103.            {getline;print $1}}'`
  4104.    $ echo $CDROM
  4105.  
  4106. To verify that this device file path is correct:
  4107.    $ ioscan -k $CDROM
  4108. or, as root:
  4109.    # diskinfo `echo $CDROM | sed 's:^/dev/:/dev/r:'`
  4110.             
  4111. ------------------------------
  4112.  
  4113. Subject: 5.9  Printers and Plotters
  4114.  
  4115. ------------------------------
  4116.  
  4117. Subject: 5.9.1  What happened to lpr?
  4118. Updated: 04/05/01
  4119.  
  4120. lpr is part of the BSD-style print queue system, which is being phased
  4121. out
  4122. over the next few years in favor of the System-V-style system.  As of
  4123. HP-UX 10.00, the SYSV system is bundled.  Here's a quick cheatsheet:
  4124.  
  4125.     lpr -Pvaxps         -> lp -dvaxps
  4126.     lpq -Pvaxps         -> lpstat vaxps
  4127.     lprm -Pvaxps ID     -> cancel vaxps ID
  4128.  
  4129. Why would I want to switch over to the System-V-style HP-UX LP spooler?
  4130.  
  4131. Because you can do neat things like:
  4132.  
  4133.   $ lp -dvaxps -odouble FILENAME
  4134.  
  4135. which will print double-sided, that is, on both sides of the paper, if
  4136. your printer supports it.
  4137.  
  4138. How do I send output from nroff to HP LaserJet printers?
  4139.  
  4140. Try this:
  4141.  
  4142.   $ nroff -Tlj ... | lp -onroff
  4143.  
  4144. ------------------------------
  4145.  
  4146. Subject: 5.9.2  Why does lpstat report the printer down, even though it's
  4147.                 not?
  4148.  
  4149. You may be missing the following line in your /etc/passwd, required for
  4150. the LP system to function properly:
  4151.  
  4152.   lp:*:9:7::/var/spool/lp:/sbin/sh
  4153.  
  4154. ------------------------------
  4155.  
  4156. Subject: 5.9.3  How can I turn off the LP banner page?
  4157. Updated: 04/04/01
  4158.  
  4159. Depending on the type of spooler script, do either:
  4160.  
  4161.    a) Edit your /var/spool/lp/interface/"printer name" file, and disable
  4162.       the banner page.  Note that if you are using the JetAdmin tool, the
  4163.       script will instead be /var/spool/lp/interface/model.orig/"printer
  4164.       name"  The most commonly used means of diabling the banner page is
  4165.       changing the BANNER variable's value from "yes" to "no"
  4166.  
  4167.    b) Newer interface files (in /var/spool/lp/interface/*) may call
  4168.       /usr/sbin/rlp; if your model script does this then insert the
  4169.       following line before the /usr/sbin/rlp statement:
  4170.  
  4171.          BSDh="-h"
  4172.  
  4173.       The model script would now look something like:
  4174.  
  4175.          ...
  4176.          shift; shift; shift; shift; shift
  4177.          # Added the no banner option here
  4178.          BSDh="-h"
  4179.          /usr/sbin/rlp -I$requestid $BSDC $BSDJ $BSDT $BSDi $BSD1 $BSD2
  4180.          ...
  4181.  
  4182. ------------------------------
  4183.  
  4184. Subject: 5.9.4  How can I print man pages without losing the formatting?
  4185. Updated: 04/07/01
  4186.  
  4187. To get the italic and bold fonts from the man file on a LaserJet:
  4188.  
  4189.   $ zcat manfile.1 | nroff -man -Tlj | lp ...
  4190.  
  4191. On a PostScript printer (you'll need GNU groff):
  4192.  
  4193.   $ zcat manfile.1 | groff -man -Tps | lp ...
  4194.  
  4195. If your man file is a complex one including tables, pipe it through 'tbl'
  4196. before piping it through 'nroff'.
  4197.  
  4198. Some man pages like ioctl(2) may need the HP macros:
  4199.  
  4200.   $ zcat manfile.1 | groff -t -e -C -M/usr/lib/tmac -man -Tps | lp ...
  4201.  
  4202. Note, on man files that are not compressed, use cat in place of zcat.
  4203.  
  4204. ------------------------------
  4205.  
  4206. 5.9.5  How can I view and print Postscript (.ps) files?
  4207. Added: 07/08/02
  4208.  
  4209. To view PostScript files, install the GhostScript package as well as the
  4210. GhostView (gv) package.  Then you can use gv (an X app) to display .ps
  4211. files.
  4212.  
  4213. To print PostScript (.ps) files, it is necessary to have a 
  4214. PostScript-compatible printer.  
  4215.  
  4216. If you do have a PostScript printer, simply use the 'lp' command as
  4217. follows:
  4218.  
  4219.   $ lp foo.ps
  4220.  
  4221. If you do not, there are public domain programs, for example,
  4222. ghostscript,
  4223. that can convert PostScript to other printer languages such as PCL.
  4224.  
  4225. ------------------------------
  4226.  
  4227. Subject: 5.10  Process Management
  4228.  
  4229. ------------------------------
  4230.  
  4231. Subject: 5.10.1  How much memory can a process use?
  4232. Updated: 04/07/01
  4233.  
  4234. There are three kernel parameters that control this.
  4235.  
  4236. The maximum user-stack segment size for a process is specified via the
  4237. 'maxssiz' kernel parameter.  The user-stack segment is where dynamically
  4238. allocated (ie - malloc'ed) data is stored.
  4239.  
  4240. The maximum shared-text segment size for a process is specified via the
  4241. 'maxtsiz' kernel parameter.  The shared-text segment is where executable
  4242. code is stored.
  4243.  
  4244. The maximum data segment size for a process is specified via the
  4245. 'maxdsiz'
  4246. kernel parameter.  The data segment is where statically allocated data
  4247. (ie - arrays) is stored.
  4248.  
  4249. The max[std]siz parameters are fences, not consumable resources.
  4250. Therefore, you can set them to large values with no impact on the kernel.
  4251. Their sole purpose is to prevent poorly written programs from using
  4252. massive amounts of memory.
  4253.  
  4254. For the values of both maxssiz maxdsiz, use integers that are multiples
  4255. of 4096 bytes, the system pagesize.
  4256.  
  4257. More information on maxdsiz, maxssiz, and other process-related kernel
  4258. parameters is provided online (see section 5.5.3 for more info).
  4259.  
  4260. Another potential limiter is swap space.  The combined virtual data space
  4261. of all running processes can't exceed swap size.  Run /etc/swapinfo -t
  4262. and
  4263. look at the "total" line.  That's what you have left.
  4264.  
  4265. ------------------------------
  4266.  
  4267. Subject: 5.10.2  Why do my processes keep dying at 64 MB memory usage?
  4268. Updated: 04/08/01
  4269.  
  4270. You need to increase the kernel parameter "maxdsiz". By default, the
  4271. per-process data space is limited to 64 MB. More information on maxdsiz
  4272. can be found online (see section 5.5.3).
  4273.  
  4274. ------------------------------
  4275.  
  4276. Subject: 5.10.3  How do I set per-process limits?
  4277. Added: 09/13/01
  4278.  
  4279. Many system-wide per-process limits can be set by root by modifying
  4280. kernel
  4281. parameters.  Regular users can also set some per-process limits via shell
  4282. builtins.  Of course, system-wide limits cannot be exceeded. 
  4283.  
  4284. In the POSIX and Korn shells, the 'ulimit' builtin command can be used to
  4285. set pre-process limits.  Though both builtins have the name ulimit, their
  4286. capabilities and syntax are different.
  4287.  
  4288. For the Korn shell (ksh), ulimit only affects the filesize limit, which
  4289. defaults to 4194303, which ksh interprets to mean unlimited.  See ksh(1).
  4290.  
  4291. For the POSIX shell (sh), there are several variables that can be set
  4292. with ulimit.  The 'ulimit -a' command lists all the variables that can be
  4293. set.  There are soft and hard limits for these variables, and some ulimit
  4294. maximum values are based on certain kernel parameters:
  4295.  
  4296.      Soft Limit                        Relevant Kernel Params
  4297.      ========================================================
  4298.      $ ulimit -aS
  4299.      time(seconds)        unlimited
  4300.      file(blocks)         unlimited
  4301.      data(kbytes)         65536        max determined by maxdsiz
  4302.      stack(kbytes)        8192         max determined by maxssiz
  4303.      memory(kbytes)       unlimited
  4304.      coredump(blocks)     4194303
  4305.      nofiles(descriptors) 60           max determined by maxfiles
  4306.  
  4307.      Hard Limit                        Relevant Kernel Params
  4308.      ========================================================
  4309.      $ ulimit -aH
  4310.      time(seconds)        unlimited
  4311.      file(blocks)         unlimited
  4312.      data(kbytes)         65536
  4313.      stack(kbytes)        8192
  4314.      memory(kbytes)       unlimited
  4315.      coredump(blocks)     unlimited
  4316.      nofiles(descriptors) 1024        max determined by maxfiles_lim
  4317.  
  4318. See also sh-posix(1).
  4319.  
  4320. The C shell (csh) has similar variables.  These variables can be set
  4321. using
  4322. the csh 'limit' builtin command.  See csh(1).
  4323.  
  4324. ------------------------------
  4325.  
  4326. Subject: 5.10.4  How can I tell what files, ports, etc.. a process has 
  4327.                  open?
  4328. Added: 11/10/01
  4329.  
  4330. You need to download and install lsof (LiSt Open Files), an indispensable
  4331.  
  4332. freeware utility.  The lsof homepage is:
  4333.  
  4334.   o <http://www-rcd.cc.purdue.edu/~abe/>
  4335.  
  4336. HP-UX binaries can be downloaded from one of the below sites:
  4337.  
  4338.   o <ftp://vic.cc.purdue.edu/pub/tools/unix/lsof/binaries/hpux/>
  4339.   o <http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.64/>
  4340.  
  4341. However, the author discourages using precompiled binaries, and instead
  4342. recommends compiling lsof yourself on the same system on which you'll be
  4343. running it.
  4344.  
  4345. ------------------------------
  4346.  
  4347. Subject: 5.10.5  How can I get the ps command to display more than 64
  4348.                  characters of process command lines?
  4349. Added: 01/22/03
  4350.  
  4351. It is finally possible on any 11.x system! 
  4352.  
  4353. 11i adds a new option -x to ps that will display up to 1K of the command
  4354. line. On 11.00, this functionality can be added by installing the
  4355. following patches:
  4356.  
  4357.   o PHKL_28202
  4358.   o PHKL_26008
  4359.   o PHCO_26274
  4360.                  
  4361. ------------------------------
  4362.  
  4363. Subject: 5.11  Routine Tasks
  4364.  
  4365. ------------------------------
  4366.  
  4367. Subject: 5.11.1  How can I track log files and core files?
  4368.  
  4369. SAM allows you to track all standard log files and trim them if desired.
  4370. It will also find all core files on a file system and allow you to get
  4371. rid of them.
  4372.  
  4373. ------------------------------
  4374.  
  4375. Subject: 5.11.2  What's a good strategy for clearing /tmp and /var/tmp?
  4376. Updated: 03/29/01
  4377.  
  4378. Run the below shell script from root's crontab:
  4379.  
  4380.   #!/bin/sh
  4381.   DAYS=7
  4382.   DIRS="/tmp /var/tmp"
  4383.   find $DIRS -depth -fsonly vxfs -fsonly hfs -atime +$DAYS \
  4384.   -exec rm -rf {} \;
  4385.  
  4386. The -depth option ensures no directory is removed before its contents,
  4387. -fsonly options are to avoid attempting ttttttttto remove files beneath
  4388. NFS or
  4389. CDFS mountpoints that might exist.
  4390.  
  4391. ------------------------------
  4392.  
  4393. Subject: 5.12  Software Management
  4394.  
  4395. ------------------------------
  4396.  
  4397. Subject: 5.12.1  General Software Management
  4398.  
  4399. ------------------------------
  4400.  
  4401. Subject: 5.12.1.1  Where can I find out more about Software Distributor
  4402.                    (SD-UX)?
  4403. Updated: 03/30/01
  4404.  
  4405. HP Software Distributor, also known as SD-UX, is used to install, update,
  4406. remove, and package software on HP-UX 10.0 and later.  SD-UX is often
  4407. informally shortened to just SD (even though there is also an unbundled
  4408. HP OpenView product called SD-OV that offers enhancements over SD-UX).
  4409. All HP-UX 10.x and 11.x software is shipped on media compatible with SD.
  4410.  
  4411. SD offers three user interfaces:
  4412.  
  4413. 1.  An interactive graphical user interface available for the swinstall,
  4414.    swcopy, and swremove commands.
  4415.  
  4416. 2.  An interactive user interface suitable for ASCII terminals (on S800)
  4417.     for the swinstall, swcopy, and swremove commands.
  4418.  
  4419. 3.  A non-interactive command-line user interface for all commands.
  4420.  
  4421. The SD-UX manual ("Managing HP-UX Software With SD-UX") is available
  4422. online:
  4423.  
  4424.   o for 11.11:
  4425.     <http://docs.hp.com/hpux/onlinedocs/B2355-90699/00/00/1-con.html>
  4426.   o for 11.00:
  4427.     <http://docs.hp.com/hpux/onlinedocs/B2355-90154/00/00/1-con.html>
  4428.   o for 10.xx:
  4429.     <http://docs.hp.com/hpux/onlinedocs/B2355-90127/00/00/1-con.html>
  4430.  
  4431. There are also several excellent whitepapers available on SD-UX's
  4432. patch-related features:
  4433.  
  4434.   For 11.x:
  4435.  
  4436.     o <http://devrsrc1.external.hp.com/STK/hpuxpatch.html>
  4437.     o <http://devrsrc1.external.hp.com/STK/partner/hpuxpatching.html>
  4438.     o <http://docs.hp.com/hpux/os/11.0/index.html#Patch%20Management>
  4439.  
  4440.   For 10.x:
  4441.  
  4442.     o <http://docs.hp.com/hpux/os/10.x/index.html#Patch%20Management>
  4443.  
  4444. For additional information on SD commands and features, see the SD manual
  4445. pages (start with sd(5)) and the SD GUI's online help.
  4446.  
  4447. ------------------------------
  4448.  
  4449. Subject: 5.12.1.2  How can I tell what products have been loaded on my
  4450.                    system?
  4451.  
  4452. Use the swlist command.  See swlist(1M).
  4453.  
  4454. ------------------------------
  4455.  
  4456. Subject: 5.12.1.3  How do I safely remove software from my system?
  4457.  
  4458. Use the swremove command.  See swremove(1M).
  4459.  
  4460. ------------------------------
  4461.  
  4462. Subject: 5.12.1.4  How is the unique node ID used for licensing
  4463.                    determined?
  4464. Added: 04/16/01
  4465.  
  4466. Most licensing systems (LicensePower/iFOR, FLEX/lm, SentinelLM, NetLS,
  4467. etc..) uniquely identify a system by the MAC address of the system's
  4468. primary network interface (the interface with the lowest ID number -
  4469. usually lan0).  The MAC address (aka - Station Address or Physical
  4470. Address) can be obtained by running lanscan, like so:
  4471.  
  4472.   $ lanscan
  4473.  
  4474. HP-UX 10.x/11.x comes with the LicensePower/iFOR product, which uses only
  4475. the rightmost eight bytes of the MAC address as the "target ID."  This
  4476. number can be obtained using the following iFOR command:
  4477.  
  4478.   $ /opt/ifor/ls/bin/i4target -v
  4479.  
  4480. There is also the hardware identification number which is stored on the
  4481. SPU board.  This is the number that is used by HP Software Distributor to
  4482. uniquely identify a system.  The SPU ID can also be used on systems that
  4483. have no network interface.  SPU IDs can only be reset by certified HP
  4484. technicians.
  4485.  
  4486. ------------------------------
  4487.  
  4488. Subject: 5.12.1.5  What is Ignite-UX?
  4489. Added: 04/16/01
  4490.  
  4491. Ignite-UX is an HP-UX administration toolset to help you:
  4492.  
  4493.   o Install HP-UX 10.x, 11.0 and 11i on multiple systems in your network.
  4494.   o Create custom install configurations.
  4495.   o Recover HP-UX systems remotely.
  4496.   o Monitor system-installation status.
  4497.  
  4498. Ignite can be downloaded free of charge from:
  4499.  
  4500.   o <http://software.hp.com/products/IUX/>
  4501.  
  4502. This page also contains links to Ignite documentation, release notes,
  4503. FAQ,
  4504. specifications, mailing lists, and training.
  4505.  
  4506. ------------------------------
  4507.  
  4508. Subject: 5.12.2  Patch Management
  4509.  
  4510. ------------------------------
  4511.  
  4512. Subject: 5.12.2.1  Where do I get HP-UX patches?
  4513. Added: 04/06/01
  4514.  
  4515. All customers with a valid software agreement are sent quarterly releases
  4516. titled "Support Plus" (previously called "Extension Software").  On each
  4517. CD are the latest patch bundles for ALL supported OS/platform
  4518. combinations.  If you are not receiving "Support Plus" CDs and would like
  4519. to start receiving them, contact HP.
  4520.  
  4521. Note that you can get "Support Plus" on tape, but HP is encouraging folks
  4522. to use CD-ROM.  If you have a support contract you can call the Response
  4523. Center (800-633-3600) and have the patches sent to you on tape.
  4524.  
  4525. For information on how to download "Support Plus" patch bundles, or
  4526. individual patches, from the Internet, see question 7.1.1.1.
  4527.  
  4528. ------------------------------
  4529.  
  4530. Subject: 5.12.2.2  How can I list all installed patches?
  4531. Updated: 04/16/01
  4532.  
  4533. On 10.00 and later, use:
  4534.  
  4535.   $ swlist -l product 'PH??_*'
  4536.  
  4537. ------------------------------
  4538.  
  4539. Subject: 5.12.2.3  How can I tell what patches are in the kernel?
  4540. Updated: 03/23/01
  4541.  
  4542. Kernel patches are required to register their presence when they are
  4543. installed into the system's kernel (/stand/vmunix).  The what(1) utility
  4544. will list this information:
  4545.  
  4546.   $ what /stand/vmunix | grep PH.._
  4547.  
  4548. You can compare the output of the above with the output of the command
  4549. "swlist -l product 'PH??_*'" command.
  4550.  
  4551. A typical kernel patch string is in HP-UX 10.x or 11.0 looks like:
  4552.  
  4553.   PATCH_11.00: pty.o  1.6.118.4  00/03/29  PHNE_21433
  4554.  
  4555. And in 11.x, patch strings look like:
  4556.  
  4557.   mem.c $Date: 2001/01/29 17:53:59 $Revision: r11.11/1 PATCH_11.11...
  4558.   ...(PHKL_23250)
  4559.  
  4560. All patches named PHKL*, and some patches named PHNE*, are kernel
  4561. patches.
  4562. See question x.x.x for a description of the patch naming scheme used by
  4563. HP.
  4564.  
  4565. ------------------------------
  4566.  
  4567. Subject: 5.12.2.4  How do I get rid of old 10.x patches or superseded
  4568.                    patches?
  4569. Updated: 05/06/03
  4570.  
  4571. DO NOT USE SWREMOVE!  swremove will check the scripts for the patch you
  4572. ask it to remove, and happily remove whatever file you tell it to, and
  4573. replace it with an earlier version of the patch from /var/adm/sw/patch/
  4574. (if one exists).
  4575.  
  4576. NOTE:  If you have already removed previous OS version patches with
  4577. swremove, you will either 1) need to restore from backup, or 2) reload
  4578. the OS.
  4579.  
  4580. First download and install one of the following patches, which contain
  4581. the HP-UX patch tools:
  4582.  
  4583.   o 10.x:  PHCO_20824  ('cleanup' only)
  4584.   o 11.00: PHCO_27779  ('cleanup', 'check_patches', & 'show_patches')
  4585.   o 11.11: PHCO_27780  ('cleanup', 'check_patches', & 'show_patches')
  4586.  
  4587. The patch tools come with 11.00, but you should still install patch
  4588. PHCO_24347 to fix several bugs that exist in it.
  4589.  
  4590. The 'cleanup' tool is used to commit patches while preserving a set level
  4591. of rollback, remove HP-UX 10.x patch information from the IPD, and prune
  4592. superseded patches from a depot.  The 'check_patches' utility checks for
  4593. partially installed (split) patches, incorrect patch_state, patch
  4594. attribute corruption, and objects within an archive library.  The
  4595. 'show_patches' tool can display the set of active or superseded patches
  4596. on a system.
  4597.  
  4598. To remove old 10.x patches from /var/adm/sw/patch/, use the command:
  4599.  
  4600.   # cleanup -i
  4601.  
  4602. Committing a patch causes rollback files associated with that patch to be
  4603.  
  4604. deleted from /var/adm/sw/save/.
  4605.  
  4606. To commit all patches that have been superseded at least twice, use
  4607. the command:
  4608.  
  4609.   # cleanup -c 2
  4610.  
  4611. On 11.x, to commit a patch that has not been superseded, use the command:
  4612.  
  4613.   # swmodify -x patch_commit=true <patch-name(s)>
  4614.  
  4615. In case you were wondering, 'cleanup -c 0' does not work.
  4616.  
  4617. WARNING: Once the above swmodify command has been executed, you CANNOT 
  4618.          roll back (remove) the patch unless you remove the associated
  4619.          base software that the patch modified.  For this reason, I do
  4620.          not recommend doing it unless you desperately need to free up
  4621.          space under /var, and you have exhausted all other means of
  4622.          doing so.
  4623.  
  4624. ------------------------------
  4625.  
  4626. Subject: 5.12.2.5  How can I install multiple patches, without having to
  4627.                    reboot more than once?
  4628. Updated: 04/10/01
  4629.  
  4630. Use swcopy(1M) on each patch to copy the patch into a local depot, then
  4631. use swinstall(1M) to install all patches contained in the local depot.
  4632.  
  4633.   # swcopy -s /tmp/PHCO_12345.depot -x enforce_dependencies=false \* \
  4634.     @ /tmp/my_patch_depot
  4635.   # swcopy -s /tmp/PHCO_67890.depot -x enforce_dependencies=false \* \
  4636.     @ /tmp/my_patch_depot
  4637.  
  4638.   etc..
  4639.  
  4640.   # swinstall -s /tmp/my_patch_depot -x autoreboot=true \*
  4641.  
  4642. The following script automates the process of creating the depot:
  4643.  
  4644. #!/sbin/sh
  4645. # cd to the directory where the patches are (PHxx_xxxx) and start
  4646. # this script. it will extract the patches one by one and create
  4647. # a patch-depot in $PDEPOT.
  4648.  
  4649. PATH=/usr/bin:/usr/sbin
  4650. PDEPOT=/tmp/my_patch_depot
  4651. for PFILE in PH*[0-9]; do
  4652.   sh $PFILE
  4653.   rm $PFILE
  4654. done
  4655. # It's a good habit first reading the PHxx_xxxx.text files before
  4656. deleting
  4657. # them.
  4658. # rm *.text
  4659. for PFILE in PH*depot; do
  4660.   swcopy -s -x enforce_dependencies=false $PWD/$PFILE \* @ $PDEPOT
  4661. done
  4662. clear
  4663. echo
  4664. "*********************************************************************"
  4665. echo "   PLEASE NOTE: The Patch depot $PDEPOT has been created."
  4666. echo
  4667. "*********************************************************************"
  4668. echo "Please start swinstall with $PDEPOT as the source, and don't"
  4669. echo "forget to unregister the depot (e.g. swreg -u -l depot $PDEPOT)."
  4670.  
  4671. ------------------------------
  4672.  
  4673. Subject: 5.12.2.6  How do I configure swlist to not display superseded
  4674.                    patches?
  4675. Added: 04/10/01
  4676.  
  4677. A new option to swlist, "show_superseded_patches", was introduced in
  4678. HP-UX
  4679. 11.00 via the SD-UX cumulative patch PHCO_20078.  In 11.00, by default,
  4680. swlist displays all installed patches, including superseded ones.  In
  4681. 11.10+, by default, swlist does not display superseded patches.
  4682.  
  4683. Assuming you have PHCO_20078, or any more recent SD-UX cumulative
  4684. patch installed, you may change the default behavior of swlist in 11.00.
  4685. To do so, add the following line to the file /var/adm/sw/defaults:
  4686.  
  4687.   swlist.show_superseded_patches = false
  4688.  
  4689. ------------------------------
  4690.  
  4691. Subject: 5.12.2.7  What is the naming convention used for HP-UX patch
  4692.                    names?
  4693. Added: 04/05/01
  4694.  
  4695. A patch name consists of the characters "PH" (Patch HP-UX), followed by
  4696. a two-character type-identifier, followed by an underscore, followed by
  4697. a four or five-digit number.
  4698.  
  4699. The currently defined patch types are:
  4700.  
  4701. CO - COmmands & libraries
  4702. KL - KerneL
  4703. NE - NEtworking
  4704. SS - SubSystems
  4705.  
  4706. An example name of a Kernel patch name would be "PHKL_23507."
  4707.  
  4708. Kernel patches always require a system reboot, so that the newly updated
  4709. kernel can be loaded.  Many Networking patches (PHNE*) also make
  4710. modifications to the kernel, and hence require a reboot.
  4711.  
  4712. Note that the numerical portion of any given patch name is unique, among
  4713. ALL patches.  So there would never be a patch named "PHCO_23507", in
  4714. addition to a patch named "PHKL_23507."  This lends itself nicely to
  4715. grepping for a particular patch (ie - to see if "PHKL_23507" is
  4716. installed, one could use "swlist -l product | grep 23507"
  4717.  
  4718. ------------------------------
  4719.  
  4720. Subject: 5.12.2.8  Where can I get OpenView patches?
  4721. Added: 04/17/01
  4722.  
  4723. Patches for the various HP OpenView products, can be obtained at:
  4724.  
  4725.   o <http://support.openview.hp.com/cpe/patches/>
  4726.  
  4727. ------------------------------
  4728.  
  4729. Subject: 5.13  Time
  4730.  
  4731. ------------------------------
  4732.  
  4733. Subject: 5.13.1  How can I change the timezone?
  4734. Updated: 05/03/02
  4735.  
  4736. The timezone is dtermined by reading the 'TZ' environment variable.
  4737.  
  4738. This variable is set when you execute 'set_parms timezone'. Set_parms
  4739. edits the file '/etc/TIMEZONE,' which exports the 'TZ' environment
  4740. variable. When you reboot after executing set_parms, the file
  4741. /etc/TIMEZONE will be read and your TZ variable set to the value you
  4742. specified. The value is in the format:
  4743.  
  4744.   [:]STDoffset[DST[offset][,rule]]
  4745.  
  4746. For example: PST8PDT for the U.S. Pacific Time Zone
  4747.  
  4748. See the environ(5) manpage for a detailed description of the format.
  4749.  
  4750. Note, the offset for daylight savings time is supplied by the
  4751. '/usr/lib/tztab' configuration file.
  4752.  
  4753. libc functions like ctime use the 'TZ' variable to determine the
  4754. timezone.
  4755.  
  4756. ------------------------------
  4757.  
  4758. Subject: 5.13.2  How can I print yesterday's or tomorrow's date?
  4759. Updated: 07/31/01
  4760.  
  4761. From the command-line:
  4762. ======================
  4763. [Using Perl]
  4764. To print yesterday's date:
  4765.  
  4766.   $ perl -e
  4767. '@T=localtime(time-86400);printf("%02d/%02d/%02d",$T[4]+1,$T[3],($T[5]+1900)%100)'
  4768.  
  4769. To print tomorrow's date:
  4770.  
  4771.   $ perl -e
  4772. '@T=localtime(time+86400);printf("%02d/%02d/%02d",$T[4]+1,$T[3],($T[5]+1900)%100)'
  4773.  
  4774. [the TZ trick]
  4775. If the system is located WEST of the Greenwich Meridian (ie - in the
  4776. Americas), you can determine tomorrow's date by temporarily subtracting
  4777. 24 hours from the timezone offset, like so:
  4778.  
  4779.   $ offset=`echo $TZ | tr -d '[A-Z+]'`
  4780.   $ new_offset=`echo $offset - 24 | bc`
  4781.   $ TZ=`echo $TZ | sed "s/[+-]\{0,1\}[1-9][0-9]\{0,1\}/$new_offset/` \
  4782.    date +%D
  4783.  
  4784. Unfortunately, in this part of the world, a similar method method cannot
  4785. be used to obtain yesterday's date, because, under HP-UX, the timezone
  4786. offset can not be greater than +24.
  4787.  
  4788. If the system is located EAST of the Greenwich Meridian (ie - in Europe),
  4789. you can determine yesterday's date by temporarily adding 24 hours to the
  4790. timezone offset, like so:
  4791.  
  4792.   $ offset=`echo $TZ | tr -d '[A-Z+]'`
  4793.   $ new_offset=`echo $offset + 24 | bc`
  4794.   $ TZ=`echo $TZ | sed "s/[+-]\{0,1\}[1-9][0-9]\{0,1\}/$new_offset/` \
  4795.     date +%D
  4796.  
  4797. Unfortunately, in this part of the world, a similar method method cannot
  4798. be used to obtain tomorrow's date, because, under HP-UX, the timezone
  4799. offset cannot be less than -24.
  4800.  
  4801. [GNU date]
  4802. The GNU date command has a powerful -d option that the HP-UX date command
  4803. does not have.  You can do things like:
  4804.  
  4805.   $ date -d yesterday
  4806.   $ date -d '2 days ago'
  4807.   $ date -d '1 week ago'
  4808.   $ date -d tomorrow
  4809.   $ date -d '2 days'
  4810.   $ date -d '1 week'
  4811.  
  4812. GNU date is part of the GNU sh_utils package.  You can grab precompiled
  4813. HP-UX binaries from the Liverpool archive.
  4814.  
  4815. Programmatically
  4816. ================
  4817. You can write a simple (and portable) C program that does the job using
  4818. the good ol' time() function:
  4819.  
  4820.   #include <time.h>
  4821.   time_t today = time(null);
  4822.   time_t yesterday = today - (time_t)(24 * 60 * 60);
  4823.   time_t tomorrow = today + (time_t)(24 * 60 * 60);
  4824.   char *date_yesterday = ctime(&yesterday);
  4825.   char *date_tomorrow = ctime(&tomorrow);
  4826.  
  4827. NOTE: Daylight Savings Time causes problems with the above code, since
  4828.       there are two days in the year when this program would fail due to
  4829.       the fact that some days don't have 24 hours.  Calling this program
  4830.       early in the morning, the day after a 23-hour day, will give you
  4831.       the day before yesterday.  Calling this program late at night, on
  4832.       a 25-hour day would give you the same day.
  4833.       
  4834. ------------------------------
  4835.  
  4836. Subject: 5.13.3  How can I convert a timestamp (seconds since the Epoch)
  4837.                  to a date/time string?
  4838. Added: 04/06/01
  4839.  
  4840. This can be accomplished using 'adb' as follows:
  4841.  
  4842.   echo "0d$timer=Y" | adb | tr -d '\011'
  4843.  
  4844. where $timer is the timestamp you wish to convert.
  4845.  
  4846. ------------------------------
  4847.  
  4848. Subject: 5.13.4  What is the purpose of the 'timezone' and 'dst' kernel
  4849.                  parameters?
  4850. Added: 05/03/02
  4851.  
  4852. The 'TZ' environment variable and the 'timezone' and 'dst' kernel
  4853. parameters are two independent features to handle timezones and daylight
  4854. savings time. The former is meant to replace the latter. Unless your
  4855. application programs use out-of-date system calls, you do not have to
  4856. configure the 'timezone' or 'dst' kernel parameters.
  4857.  
  4858. According to the SAM help menu, the 'timezone' and 'dst' kernel
  4859. parameters
  4860. should be kept in sync with the 'TZ' variable. This was true in the past,
  4861. when older system calls were used which referenced the kernel parameters.
  4862. These two system calls are gettimeofday(2) and ftime(2). HP-UX
  4863. applications and most third party applications do not use these system
  4864. calls any more. The manpage for gettimeofday(2) states: "Programs should
  4865. use this time zone information only in the absence of the 'TZ'
  4866. environment
  4867. variable."
  4868.  
  4869. As long as your application programs use standard libc functions to
  4870. obtain
  4871. timezone information, you do not have to set the 'timezone' or 'dst'
  4872. kernel
  4873. parameters.
  4874.  
  4875. If you still need to set these parameters, here is how to do so:
  4876.  
  4877.   o for 'timezone': multiply the TZ_offset by 60; i.e. for EST5EDT:
  4878.                     TZ_offset = 5, so timezone = 5 * 60 = 300
  4879.                     (Valid values range from -720 to 720)
  4880.   o for 'dst': check the DST setting and select the proper 'dst' kernel
  4881.                value (valid dst values are listed in the SAM help menu
  4882.                for 'dst' kernel parameter)
  4883.  
  4884. ------------------------------
  4885.  
  4886. Subject: 5.14  Users and Groups
  4887.  
  4888. ------------------------------
  4889.  
  4890. Subject: 5.14.1  How can I tell if I need more than a 2-user license?
  4891. Updated: 04/10/01
  4892.  
  4893. For Series 700/800 machines running HP-UX 10.20 or 11.00, this is no
  4894. longer an issue, since HP is giving away unlimited user licenses!  
  4895. Simply go to <http://software.hp.com/> and search for "unlimited
  4896. license".
  4897. Then, download the UnlimUserLic bundle, and install it. No more 2-user
  4898. limit!
  4899.  
  4900. An unlimited license is included with 11.11 and later.
  4901.  
  4902. For earlier HP-UX releases, there are several fundamental things to
  4903. remember about HP-UX licensing:
  4904.  
  4905.   o Display console counts as one user
  4906.   o Each ASCII terminal counts as a user, regardless of how it is
  4907.     connected
  4908.   o The LAN connection counts as one user
  4909.  
  4910. ASCII Terminals
  4911. ===============
  4912. The simple rule to remember is any ASCII terminal that is logged in
  4913. counts as a user.
  4914.  
  4915. ASCII terminal connections can come in several different forms:
  4916.   o Direct-connected via a serial terminal multiplexer
  4917.   o Connected via Data Terminal Concentrators (DTCs) or via
  4918.     terminal servers
  4919.   o Personal Computers (PCs) acting in terminal emulation mode,
  4920.     whether connected via serial line or via Local Area Network (LAN)
  4921.  
  4922. X-terminals and workstations
  4923. ============================
  4924. When a customer buys an X-terminal or workstation from HP or from
  4925. another vendor, HP acknowledges that the customer has also bought a
  4926. single UNIX license-to-use.
  4927.  
  4928. Therefore, the customer has the right to an unlimited number of logins
  4929. and
  4930. terminal windows _over_the_LAN_ to a Series 700 or Series 800 from either
  4931. X-terminals or workstations. These logins can be via X terminal windows
  4932. (_hpterm_ and _xterm_), _telnet_, _rlogin_, or other means.
  4933.  
  4934. PC's that use X-terminal emulation software such as XView each count the
  4935. same as an X terminal. This is because the PC essentially becomes an
  4936. X-terminal when it is running the X server software. Therefore, when a PC
  4937. is running an X-terminal emulator, the PC has the right to an unlimited
  4938. number of logins to an HP-UX system.
  4939.  
  4940. To purchase license upgrades for HP-UX 10.10 and earlier, go to
  4941. <http://software.hp.com/> and search for "operating license upgrade".
  4942. You'll be provided with a link to a reseller from which you can purchase
  4943. upgrades.
  4944.  
  4945. ------------------------------
  4946.  
  4947. Subject: 5.14.2  How can I set up group-based FTP access?
  4948. Updated: 04/20/01
  4949. See-Also: item 7.1.1.3
  4950.  
  4951. Here is how to set up ftp so that a group of users only have ftp access,
  4952. they all have their own individual passwd, but they all access the same
  4953. set of files (i.e., the system thinks they are all really the same ftp
  4954. user).  With only a slight change, you can have a group of users that
  4955. only have ftp access, each with their own individual passwd, and access
  4956. only to their own set of files (this is left as an exercise for the
  4957. reader).
  4958.  
  4959. 1) Set up anonymous ftp (assumed in later instructions to be at
  4960.    /users/ftp).
  4961.  
  4962. 2) Add a user and group to /etc/passwd and /etc/group.
  4963.  
  4964.    For example, in /etc/passwd:
  4965.  
  4966.         ftpuser:*:1000:1000:FTP User:/users/ftp/ftpusers:/bin/false
  4967.  
  4968.    and in /etc/group:
  4969.  
  4970.         ftpgroup:*:1000:ftpuser
  4971.  
  4972.    Note that ftpuser login is disabled (a "*" in the password field).
  4973.    This allows various utilities (such as "ls") to recognize files
  4974.    that belong to an ftp user (particularly important for backups).
  4975.  
  4976. 3) In /users/ftp/etc, you must have a group and passwd file, of the same
  4977.    format as their related system files.  For example, in
  4978.    /users/ftp/etc/group add:
  4979.  
  4980.    ftpgroup:*:1000:
  4981.  
  4982.    and in /users/ftp/etc/passwd add:
  4983.  
  4984.    ftpuser:*:1000:1000:FTP User:/ftpusers:/bin/false
  4985.  
  4986.    Also, for each individual that you want to give access, add an
  4987.    additional entry.  Note that these have passwords (see passwd(1)
  4988.    for instructions on setting passwords in this file).
  4989.  
  4990.    george:3RgfBzfnipJPQ:1000:1000:George Smith \
  4991.                 (FTP User):/ftpusers:/bin/false
  4992.  
  4993.    A few things to notice.  "ftpuser" is disabled.  The home directory
  4994.    for ftpuser is simply "/ftpusers", since anonymous ftp performs a
  4995.    chroot to the home directory specified for ftp in /etc/passwd (see
  4996.    chroot(2) and chroot(1M) for details).  "george" has the
  4997.    same uid, gid, and home directory that ftpuser has.  "george"
  4998.    will login as george with his own password.
  4999.  
  5000. 4) Under /users/ftp, create a directory "ftpusers".  Make this
  5001.    directory with owner "ftpuser" and group "ftpgroup", with 770
  5002.    permissions.  This effectively prevents anonymous ftp access to this
  5003.    directory, since it is not world readable/writable.
  5004.  
  5005. That's it.
  5006.  
  5007.    Users access the system via anonymous:
  5008.  
  5009.    $ ftp sysname
  5010.    Connected to sysname.whatever.
  5011.    220 sysname FTP server
  5012.    Name (something:someuser): ftp
  5013.    331 Guest login ok, send ident as password.
  5014.    Password:
  5015.    230 Guest login ok, access restrictions apply.
  5016.    Remote system type is UNIX.
  5017.    Using binary mode to transfer files.
  5018.    ftp>
  5019.  
  5020.    Then, they use a sublogin to access their files:
  5021.  
  5022.    ftp> user george
  5023.    331 Password required for george.
  5024.    Password:
  5025.    230 User george logged in.
  5026.    ftp> pwd
  5027.    257 "/ftpusers" is current directory.
  5028.    ftp>
  5029.  
  5030.    Users are placed in whatever directory is specified as their
  5031.    home directory in /users/ftp/etc/passwd (relative to the
  5032.    chroot at /users/ftp).
  5033.  
  5034.    To remove access, remove their passwd entry from
  5035.    /users/ftp/etc/passwd.
  5036.  
  5037. This is all documented (though poorly) in the various ftp-related
  5038. manpages.
  5039.  
  5040. ------------------------------
  5041.  
  5042. Subject: 5.14.3  Has /etc/logingroup functionality changed in 11.x?
  5043. Added: 05/03/02
  5044.  
  5045. HP has confirmed the change from 10.x to 11.x in the setting of the
  5046. group id at login time vis-a-vis /etc/logingroup.
  5047.  
  5048. It's not documented, but now the behavior is sort of the *reverse* of
  5049. 10.x behavior:
  5050.  
  5051. 10.x:
  5052.   o no /etc/logingroup --> only GID is that from /etc/passwd.
  5053.                   The user must execute 'newgrp' to change GID.
  5054.   o /etc/logingroup exists --> user is effectively the member of every
  5055.                   group in which he is listed in /etc/logingroup, without
  5056.                   having to do a 'newgrp'.
  5057.  
  5058. A common trick is simply 'ln -s /etc/group /etc/logingroup' if you want
  5059. membership in all groups listed in /etc/group.
  5060.  
  5061. 11.x:
  5062.   o no /etc/logingroup --> user is effectively the member of *every*
  5063.                   group in which he is listed in /etc/group
  5064.   o /etc/logingroup exists --> user is effectively the member of *only*
  5065.                   the groups in which he is listed in /etc/logingroup.
  5066.  
  5067. So, the "workaround" to get 11.x to behave as 10.x did, is simply:
  5068.  
  5069.   # >/etc/logingroup
  5070.  
  5071. Now the user is now not listed in any groups in /etc/logingroup and so is
  5072. only a member of the group listed /etc/passwd. I'm not sure why you'd
  5073. ever
  5074. want to fall back to the 10.X behavior except, maybe, legacy situations
  5075. of
  5076. some sort.
  5077.  
  5078. ------------------------------
  5079.  
  5080. Subject: 5.15  X-Windows and CDE
  5081.  
  5082. ------------------------------
  5083.  
  5084. Subject: 5.15.1  X Window System (X11)
  5085.  
  5086. ------------------------------
  5087.  
  5088. Subject: 5.15.1.1  Where can I get X11R6?
  5089. Updated: 04/09/01
  5090.  
  5091. Despite the fact that the top of the X(1) manpage says "X Version 11
  5092. Release 5", HP-UX 10.20 and later actually come with Release 6.  If you
  5093. want proof, just do a "what /usr/bin/X11/X".  10.20 comes with X11R6.1,
  5094. and 11.x comes with X11R6.3.  If you want to run the very latest release,
  5095. you'll have to download the source from 
  5096. <http://www.x.org/Downloads_XWinSys.htm> and build it yourself - probably
  5097. not worth the hassle.
  5098.  
  5099. The basic core distribution of X11R6.1.1 can also be obtained from the
  5100. Liverpool archive.  The package names are:
  5101.  
  5102.   o XR6src   - source
  5103.   o XR6built - binaries
  5104.  
  5105. Notes:
  5106.  
  5107. - the binaries are meant to be installed         in /usr/local/X11R6
  5108.   (if you want them elsewhere, use a symbolic link, or grab the source)
  5109. - most libraries come with archive and shhhhhhhhhared versions
  5110.   (and the built binaries mostly use the .sl versions)
  5111. - this is JUST the core distribution (xc/////////)
  5112. - xc/test and xc/workInProgress aren't innnnnnnnncluded in the built
  5113. package
  5114.   (the source is present, but hasn't been looked at in the src packages)
  5115.  
  5116. ------------------------------
  5117.  
  5118. Subject: 5.15.1.2  Where can I get the missing X11 header files?
  5119. Updated: 02/27/02
  5120.  
  5121. As you may have noticed, HP does not ship a "full" set of X11 header
  5122. (.h) files.  You can obtain the missing files from one of three places:
  5123.  
  5124.   o HP ANSI C or HP ANSI C++ (aCC) optional products
  5125.  
  5126.   o HP's free HP-UX Linux Porting Kit:
  5127.     - order CD:
  5128. <http://software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/displayProductInfo.pl?productNumber=B9891AA>
  5129.     - download: <http://devrsrc1.external.hp.com/LPK/>
  5130.  
  5131.   o the InterWorks FTP site: <ftp://interworks.org/pub/comp.hp/X11R6/>
  5132.   
  5133. ------------------------------
  5134.  
  5135. Subject: 5.15.1.3  How can I set up an HP-UX workstation as an X
  5136. terminal?
  5137. Updated: 01/08/01
  5138.  
  5139. Add the following lines to /etc/inittab:
  5140.  
  5141.    # X server:
  5142.    X0:3:respawn:env PATH=/usr/bin/X11:/usr/bin X -query <hostname>
  5143.  
  5144. Replace <hostname> with the hostname or IP address of the host running
  5145. xdm, vuelogin, dtlogin, etc..
  5146.  
  5147. See Xserver(1) for additional X server options.
  5148.  
  5149. To prevent the login process from rapidly restarting at the console,
  5150. disable getty (login) at runlevel "3".
  5151.  
  5152. Edit /etc/inittab, and change the line:
  5153.    cons:123456:respawn:/usr/sbin/getty console console  # system console
  5154. to:
  5155.    cons:12456:respawn:/usr/sbin/getty console console   # system console
  5156.  
  5157. ------------------------------
  5158.  
  5159. Subject: 5.15.1.4  How do I get a scroll bar on hpterms?
  5160. Updated: 04/01/01
  5161.  
  5162. There are two ways to do this...
  5163.  
  5164. At the command-line, enter:
  5165.  
  5166.   $ hpterm -sb -sl 1000 &
  5167.  
  5168. The second way is to execute the following series of commands, prior to
  5169. running hpterm:
  5170.  
  5171.   $ xrdb -m
  5172.   HPterm*scrollBar: True
  5173.   HPterm*saveLines: 1000
  5174.   (Ctrl-D)
  5175.  
  5176. You can set saveLines to 1000 or some other arbitrarily large number.
  5177. Alternatively, you can set saveLines to something like "4s", which
  5178. indicates four screens.  You can also set the above resources in an
  5179. app-default file (/usr/lib/X11/app-defaults/HPterm).
  5180.  
  5181. ------------------------------
  5182.  
  5183. Subject: 5.15.1.5  How can I change the title in my hpterm titlebar?
  5184. Updated: 03/25/01
  5185.  
  5186. From the command-line
  5187. =====================
  5188. LEN=`echo "$1\c" | wc -c`
  5189. echo "\033&f0k${LEN}D${1}\c"   # set title bar name
  5190. echo "\033&f-1k${LEN}D${1}\c"  # set icon name
  5191.  
  5192. You can stick the following lines in your .profile or .kshrc to display
  5193. the system name and current directory in your hpterm title bar & icon:
  5194.  
  5195. if [ "$TERM" = hpterm ]; then
  5196.    alias cd=Hcd
  5197.    Hcd ()
  5198.    {
  5199.       if [ $# -ne 0 ]; then
  5200.          'cd' "$@"
  5201.       else
  5202.          'cd'
  5203.       fi
  5204.       NAME="$(uname -n):${PWD}"
  5205.       LEN=`echo "$NAME\c" | wc -c`
  5206.       # reset name of hpterm title bar & icon to $NAME
  5207.       echo "\033&f0k${LEN}D${NAME}\c"   # set title bar name
  5208.       echo "\033&f-1k${LEN}D${NAME}\c"  # set icon name
  5209.    }
  5210.    Hcd .
  5211. fi
  5212.  
  5213. Programmatically:
  5214. =================
  5215. Here's a two-line C program that'll do the trick:
  5216.  
  5217. /* Quick and dirty program to put argv[1] in the title bar of an hpterm
  5218.    Tom Arons, March 1992
  5219. */
  5220. #include <string.h>
  5221. main(argc,argv)
  5222. int argc; char **argv;
  5223. {
  5224.    printf("\033&f0k%dD%s", strlen(argv[1]), argv[1]);
  5225.    printf("\033&f-1k%dD%s", strlen(argv[1]), argv[1]);
  5226. }
  5227.  
  5228. ------------------------------
  5229.  
  5230. Subject: 5.15.1.6  Why do my terminal windows keep going away by
  5231.                    themselves?
  5232. Updated: 03/31/01
  5233.  
  5234. You are probably using C Shell (/bin/csh) and have the autologout
  5235. variable
  5236. set (it is set to 60 minutes by default).  Put an "unset autologout" in
  5237. your .cshrc.
  5238.  
  5239. If you are using the Korn (/bin/ksh) or POSIX shell (/bin/sh) it is
  5240. probably due to the value set for the shell variable TMOUT.  Set it to 0
  5241. (infinite timeout) in your .kshrc or .profile.
  5242.  
  5243. ------------------------------
  5244.  
  5245. Subject: 5.15.1.7  How can I get console messages to go to an hpterm?
  5246. Updated: 04/01/01
  5247.  
  5248. You can avoid console messages writing to your graphics planes and
  5249. trashing your CDE session by starting an hpterm and designating it to
  5250. receive console messages, and to de-iconify, when console messages are
  5251. received.  Put something like this in your ~/.dt/sessions/sessionetc:
  5252.  
  5253. # Start up the Terminal Console as iconic, and raise it if any output
  5254. hpterm -C -iconic -ls -sb -sl 256 -name Console -T Console -map \
  5255. -xrm *mapOnOutputDelay:\ 30 -xrm Console*********clientFunctions:\ -close
  5256. \
  5257. -xrm *workspaceList:\ all &
  5258.  
  5259. ------------------------------
  5260.  
  5261. Subject: 5.15.1.8  What's a good termcap entry for hpterm?
  5262. Updated: 04/07/01
  5263.  
  5264. Although it is not supported for hpterm use, the 262x entry in
  5265. /usr/newconfig/usr/share/lib/termcap will do the trick.
  5266.  
  5267. ------------------------------
  5268.  
  5269. Subject: 5.15.1.9  My screen is wedged.  What should I do?
  5270.  
  5271. One thing you can try is to unplug the keyboard for about 5 seconds. 
  5272. Note
  5273. that you will have to rerun "xset -r" to get autorepeat to work after
  5274. doing
  5275. this.
  5276.  
  5277. ------------------------------
  5278.  
  5279. Subject: 5.15.1.10  How can I get an X app to come up in an alternate
  5280.                     workspace?
  5281.  
  5282. Try:
  5283.  
  5284.   $ client -xrm "*workspaceList: <name>"
  5285.  
  5286. ------------------------------
  5287.  
  5288. Subject: 5.15.2  Common Desktop Environment (CDE)
  5289.  
  5290. ------------------------------
  5291.  
  5292. Subject: 5.15.2.1  What happened to VUE?
  5293.  
  5294. VUE has been replaced with CDE, which debuted with HP-UX 10.10.  Starting
  5295. with 10.20, CDE became the default windowing environment, though VUE was
  5296. still provided as an option.  As of 11.00, VUE is no longer part of
  5297. HP-UX.
  5298.  
  5299. The design of the CDE desktop incorporates and enhances many HP VUE
  5300. features.  Although the CDE desktop has a similar appearance to HP VUE,
  5301. there are important differences. The differences include:
  5302.  
  5303.   o New and more customizable Front Panel
  5304.   o Graphical MIME-enabled mail application
  5305.   o Graphical Calendar
  5306.   o Graphical Print Queue Manager
  5307.   o New terminal emulator
  5308.   o Action and datatype syntax changes
  5309.   o ToolTalk messaging support
  5310.   o Desktop application registration
  5311.  
  5312. ------------------------------
  5313.  
  5314. Subject: 5.15.2.2  How do I start/stop/reset CDE (dtlogin)?
  5315. Added: 04/03/01
  5316.  
  5317. First off, to start/stop/reset CDE, you must first su to root.
  5318.  
  5319. To start CDE (/usr/dt/bin/dtlogin):
  5320.  
  5321.   # /sbin/init.d/dtlogin.rc start
  5322.  
  5323. To stop CDE (kill the dtlogin process):
  5324.  
  5325.   # /sbin/init.d/dtlogin.rc stop
  5326.  
  5327. To Reset CDE (tell the dtlogin process to reread CDE config files to
  5328. incorporate any changes):
  5329.  
  5330.   # /sbin/init.d/dtlogin.rc reset
  5331.  
  5332. ------------------------------
  5333.  
  5334. Subject: 5.15.2.3  How can I enable/disable CDE (dtlogin)?
  5335. Added: 04/03/01
  5336.  
  5337. To disable CDE:
  5338.  
  5339.   o Become root
  5340.   o Stop CDE as described in the previous item in this FAQ.
  5341.   o Execute the command "/usr/dt/bin/dtconfig -d"
  5342.  
  5343. To enable CDE:
  5344.  
  5345.   o Become root
  5346.   o Start CDE as described in the previous item in this FAQ.
  5347.   o Execute the command "/usr/dt/bin/dtconfig -e"
  5348.  
  5349. Under the covers, what "dtconfig -d" and "dtconfig -e" actually do is
  5350. modify the file /etc/rc.config.d/desktop, which is the config file that
  5351. is read by the CDE rc script, /sbin/init.d/dtlogin.rc.
  5352.  
  5353. ------------------------------
  5354.  
  5355. Subject: 5.15.2.4  Why does id/groups not show secondary groups in
  5356.                    dtterm/CDE?
  5357. Updated: 04/22/03
  5358.  
  5359. Under HP-UX 10.20 with CDE, if your account (at least with NIS[TM]) has
  5360. multiple groups associated with it, the id/groups commands will not show
  5361. the secondary groups inside a dtterm window ... and they in fact do not
  5362. work.  What is confusing is that they *do* work when you fire up an
  5363. xterm.
  5364. Note that /etc/logingroup is correctly symlinked to /etc/group.
  5365.  
  5366. Installing the latest CDE Runtime patch will correct this problem, along
  5367. with numerous other defects:
  5368.  
  5369.   o 11.20: patch PHSS_28058
  5370.   o 11.11: patch PHSS_27872
  5371.   o 11.00: patch PHSS_27869
  5372.   o 10.20: patch PHSS_27877
  5373.   o 10.10: patch PHSS_26488
  5374.  
  5375. ------------------------------
  5376.  
  5377. Subject: 5.15.2.5  How can I improve CDE's performance?
  5378. Added: 04/03/01
  5379.  
  5380. Performace can be substantially by disabling the 'enableMultiKeyBindings'
  5381. resource as follows:
  5382.  
  5383.   o [ ! -f /etc/dt/config/C/sys.resources ] && \
  5384.     cp /usr/dt/config/C/sys.resources to /etc/dt/config/C/sys.resources
  5385.   o Edit /etc/dt/config/C/sys.resources, and find the resource:
  5386.     *enableMultiKeyBindings:                True
  5387.   o Change the resource value from "True" to "False"
  5388.     *enableMultiKeyBindings:                False
  5389.     !*enableMultiKeyBindings:                True
  5390.   o Save /etc/dt/config/C/sys.resources and re-log into CDE.
  5391.  
  5392. ------------------------------
  5393.  
  5394. Subject: 5.15.2.6  Is there a CDE FAQ?
  5395. Added: 04/11/01
  5396.  
  5397. Yes, it lives at:
  5398.  
  5399.   o <http://www.math.unizh.ch/locinfo/cde.html>
  5400.  
  5401. ------------------------------
  5402.  
  5403. Subject: 5.15.2.7  When I log on to CDE, I want certain applications to
  5404.                    automatically start.  How can this be done ?
  5405. Added: 04/11/01
  5406.  
  5407. Create a script in ~/.dt/sessions named 'sessionetc' containing any
  5408. commands you want CDE to execute at startup.
  5409.  
  5410. If necessary, you can also use ~/.dt/sessions/sessionexit to execute
  5411. commands at CDE exit time.
  5412.  
  5413. ------------------------------
  5414.  
  5415. Subject: 5.15.2.8  How do I get cut-n-paste to work correctly with CDE?
  5416. Updated: 04/22/03
  5417.  
  5418. Text cut-n-paste (with the mouse buttons) does not work correctly between
  5419. applications under HP-UX 10.x CDE, as delivered by HP.  To fix this,
  5420. set the 'enableBtn1Transfer' resource to 'False' as follows:
  5421.  
  5422.   o [ ! -f /etc/dt/config/C/sys.resources ] && \
  5423.     cp /usr/dt/config/C/sys.resources to /etc/dt/config/C/sys.resources
  5424.   o Edit /etc/dt/config/C/sys.resources, and find the resource:
  5425.     *enableBtn1Transfer:                    button2_transfer
  5426.   o Change the resource value from "button2_transfer" to "False"
  5427.     !*enableBtn1Transfer:                    button2_transfer
  5428.     *enableBtn1Transfer:                    False
  5429.   o Save /etc/dt/config/C/sys.resources and re-log into CDE.
  5430.  
  5431. For 10.20, installing the latest CDE Runtime patch will fix the problem:
  5432.  
  5433.   o 10.20: patch PHSS_27877
  5434.  
  5435. ------------------------------
  5436.  
  5437. Subject: 5.15.2.9  Why do NCD X-terminals hang when trying to connect via
  5438.                    XDMCP to an HP-UX 10.20 host running CDE?
  5439. Updated: 04/09/01
  5440.  
  5441. This is probably a language negotiation problem.  Copy the file
  5442. /usr/dt/config/Xconfig into /etc/dt/config, then edit it.  Find the bit
  5443. that reads:
  5444.  
  5445. ##########################################################################
  5446.    #  To specify a default language for the display.
  5447.    #
  5448.    #  Dtlogin*language:          <lang>
  5449.  
  5450. and modify it so it looks something like:
  5451.  
  5452. ##########################################################################
  5453.    #  To specify a default language for the display.
  5454.    #
  5455.    #  Dtlogin*language:    <lang>
  5456.    Dtlogin*language: en_GB.iso88591
  5457.  
  5458. i.e. - Specify a language/locale rather than letting dtlogin use the
  5459.        default value of "C", which may not be acceptable to the client.
  5460.  
  5461. ------------------------------
  5462.  
  5463. 6. DEVELOPMENT
  5464.  
  5465. ------------------------------
  5466.  
  5467. Subject: 6.1  General
  5468.  
  5469. ------------------------------
  5470.  
  5471. Subject: 6.1.1  What threads support is provided?
  5472. Added: 04/13/01
  5473.  
  5474. The HP DCE package (version 1.5) shipped with HP-UX 10.x provides support
  5475. for a threads package derived from The Open Group[TM]'s DCE 1.2.1 version
  5476. which is based on the POSIX.4a draft 4 API and several extensions. In
  5477. addition, it provides an exception support not specified in the POSIX.4a.
  5478. HP-UX 10.x DCE threads are user-space threads.
  5479.  
  5480. For more information on DCE threads, see thr_intro(3).
  5481.  
  5482. HP-UX 11.x ships with DCE v1.7.  In addition, 11.x provides a POSIX
  5483. threads package based on the POSIX.1c-1996 standard.  11.x POSIX threads
  5484. are kernel-space threads.
  5485.  
  5486. For more information on POSIX.1c threads, see pthread(3T).
  5487.  
  5488. For an in-depth look at threads, pick up a copy of the book:
  5489.  
  5490.   "ThreadTime" by Scott J. Norton and Mark D. DiPasquale, Prentice-Hall,
  5491.   ISBN 0131900676, 1996.
  5492.  
  5493. Another valuable resource is the comp.programming.threads FAQ:
  5494.  
  5495.   o <http://www.serpentine.com/~bos/threads-faq/>
  5496.  
  5497. ------------------------------
  5498.  
  5499. Subject: 6.1.2  What's the deal with _INCLUDE_xxxx_SOURCE?
  5500.  
  5501. The ANSI standard clearly states what identifiers it reserves, and says
  5502. the rest are available to you, the programmer.  Many "important things"
  5503. like "ulong" are *not* specified by ANSI, so ANSI header files are not
  5504. allowed by the standard to define them.  Each standard supported by HP-UX
  5505. (POSIX1, POSIX2, XPG2, XPG3, XPG4, AES, etc) has its own set of reserved
  5506. identifiers and header files, and the convention is to require
  5507. "-D_POSIX_SOURCE" (et al) to enabled their respective namespaces.  Since
  5508. HP could not predict what future standards would come along and claim
  5509. more header files and identifiers, it proved much simpler to make the
  5510. namespace as restrictive as possible unless "-D_HP-UX_SOURCE" is
  5511. specified.  While this has turned into one the most frequently asked of
  5512. FAQs about HP-UX, at least once you learn this, you don't have to deal
  5513. with inconsistencies again.  Whereas, had we allowed all non-standard
  5514. headers to define all non-standard symbols, you'd find identifiers
  5515. randomly "disappearing" from headers over time as they were claimed by
  5516. various standards.
  5517.  
  5518. Also check the man page for "cc -Ae"; it enables the HP-UX_SOURCE
  5519. namespace.
  5520.  
  5521. ------------------------------
  5522.  
  5523. Subject: 6.1.3  Where can I find a list of all available system calls?
  5524. Added: 04/19/01
  5525.  
  5526. o On 11.x, see /usr/include/sys/scall_define.h
  5527. o On 10.x, see /usr/include/sys/syscall.h
  5528.  
  5529. ------------------------------
  5530.  
  5531. Subject: 6.1.4  How can I tell if something was built debuggable?
  5532.  
  5533. If the output of "/usr/contrib/bin/odump -spaces file.o" shows a space
  5534. named $DEBUG$, then it was compiled with -g.
  5535.  
  5536. ------------------------------
  5537.  
  5538. Subject: 6.1.5  Why is syslog() call not doing what i want it to?
  5539.  
  5540. My program looks like:
  5541.  
  5542. #include <syslog.h>
  5543. void main(int argc,char *argv[])
  5544. {
  5545.  syslog(LOG_EMERG,"This is an emergency message\n"));
  5546.  syslog(LOG_ALERT,"This is an alert message\n");
  5547.  syslog(LOG_CRIT,"This is a critical message\n");
  5548.  syslog(LOG_ERR,"This is an error message\n");
  5549.  syslog(LOG_WARNING,"This is a warning\n");
  5550.  syslog(LOG_NOTICE,"This is a notice\n");
  5551.  syslog(LOG_INFO,"This is an informal message\n");
  5552.  syslog(LOG_DEBUG,"This is a debug message\n");
  5553. }
  5554.  
  5555. It doesn't log all the messages to /var/adm/syslog - why not?
  5556.  
  5557. First of all, the LOG_EMERG can not be used with user processes and
  5558. should
  5559. return -1 (if you check the return status).  This is not documented in
  5560. the
  5561. man page! All the other messages should appear, but your /etc/syslog.conf
  5562. file might not be configured correctly. To test it, replace the
  5563. /etc/syslog.conf with the following line:
  5564.  
  5565.    *.debug                 /var/adm/syslog
  5566.  
  5567. Then do: kill -HUP `cat /etc/syslog.pid`
  5568. Then run the test program and then tail the /var/adm/syslog file
  5569. and you should see all the messages, ie:
  5570.  
  5571.    Nov 23 09:02:54 orca syslogd: restart
  5572.    Nov 23 09:02:58 orca syslog: This is an alert message
  5573.    Nov 23 09:02:58 orca syslog: This is a critical message
  5574.    Nov 23 09:02:58 orca syslog: This is an error message
  5575.    Nov 23 09:02:58 orca syslog: This is a warning
  5576.    Nov 23 09:02:58 orca syslog: This is a notice
  5577.    Nov 23 09:02:58 orca syslog: This is an informal message
  5578.    Nov 23 09:02:58 orca syslog: This is a debug message
  5579.  
  5580. ------------------------------
  5581.  
  5582. Subject: 6.1.6  How can I get C programs to automatically generate stack
  5583.                 dumps?
  5584.  
  5585. Here is how you get a C program automatically generate a stack dump
  5586. when they abend:
  5587.  
  5588. U_STACK_TRACE() is an undocumented function that resides in libcl.  Set
  5589. up
  5590. the signal handling like this:
  5591.  
  5592.   #include <signal.h>
  5593.   extern void U_STACK_TRACE();
  5594.   signal(SIGSEGV, U_STACK_TRACE);
  5595.  
  5596. ------------------------------
  5597.  
  5598. Subject: 6.1.7  HP C++ email discussion lists
  5599.  
  5600. Rich Rauenzahn <mailto:rrauenza@cup.hp.com> has set up majordomo
  5601. based Email lists for the discussion of HP C++ compilers (both ANSI
  5602. C++/aCC and Cfront/CC).
  5603.  
  5604. The available lists are as follows:
  5605.  
  5606.   o cxx-dev                 HP C++ Development Discussion List
  5607.   o cxx-dev-announce        HP C++ Development Announcements
  5608.   o cxx-dev-digest          HP C++ Development Discussion List Digest
  5609.  
  5610. cxx-dev-announce is also broadcast to cxx-dev, so there is only a need
  5611. to subscribe to one of the lists.  The digest also includes both
  5612. cxx-dev and cxx-dev-announce.
  5613.  
  5614. To subscribe to the list, send a message to <majordomo@cxx.cup.hp.com>
  5615. with the following command in the body of the message:
  5616.  
  5617.   subscribe list-name
  5618.  
  5619. For additional help/information, send a message to
  5620. <majordomo@cxx.cup.hp.com> with the word "help" in the body of the
  5621. message.
  5622.  
  5623. ------------------------------
  5624.  
  5625. Subject: 6.1.8  HP-UX development email discussion lists
  5626.  
  5627. Rich Rauenzahn <mailto:rrauenza@cup.hp.com> has set up majordomo based
  5628. Email lists for the discussion of the HP toolchain, from compilers to
  5629. linkers, libraries to debuggers.
  5630.  
  5631. The available lists are as follows:
  5632.  
  5633.   o hpux-devtools            HP-UX Development Discussion List
  5634.   o hpux-devtools-announce   HP-UX Development Announcements
  5635.   o hpux-devtools-digest     HP-UX Development Discussion List Digest
  5636.  
  5637. hpux-devtools-announce is also broadcast to hpux-devtools, so there is
  5638. only a need to subscribe to one of the lists.  The digest also includes
  5639. both hpux-devtools and hpux-devtools-announce.
  5640.  
  5641. To subscribe to the list, send a message to <majordomo@cxx.cup.hp.com>
  5642. with the following command in the body of the message:
  5643.  
  5644.   subscribe list-name
  5645.  
  5646. For additional help/information, send a message to
  5647. <majordomo@cxx.cup.hp.com> with the word "help" in the body of the
  5648. message.
  5649.  
  5650. ------------------------------
  5651.  
  5652. Subject: 6.2  Compiling and Linking
  5653.  
  5654. ------------------------------
  5655.  
  5656. Subject: 6.2.1  Why is the default C compiler brain-dead?
  5657. Updated: 04/13/01
  5658.  
  5659. The C compiler shipped with HP-UX is intended only to rebuild the kernel
  5660. with, not for program development.  To get a "real" C compiler, you have
  5661. two options:
  5662.  
  5663.   o buy HP's ANSI C product
  5664.   o use the GNU C Compiler (gcc), downloadable in binary form from the
  5665.     Liverpool archive
  5666.  
  5667. ------------------------------
  5668.  
  5669. Subject: 6.2.2  How do I make Perl on HP-UX?
  5670. Updated: 04/02/01
  5671.  
  5672. Reply like this to the Configure script's prompts:
  5673.  
  5674.   1. When it asks for optimization flags answer
  5675.         -O
  5676.   2. When it asks for additional flags to cc answer
  5677.         -DJMPCLOBBER
  5678.   3. When it asks for additional libraries answer
  5679.         -lndbm -lm      (ignore the other libraries Configure finds).
  5680.       You can also safely add -lBSD if you want BSD signal semantics.
  5681.   4. When it asks if you want to use perl's malloc answer
  5682.         n
  5683.   5. When perl asks on which boundary a double must be aligned answer
  5684.         8
  5685.  
  5686. NOTE: Precompiled versions of Perl 5.6.0 for 10.20 and 11.x can be
  5687.       found on the Liverpool archive.
  5688.  
  5689. ------------------------------
  5690.  
  5691. Subject: 6.2.3  How do I deal with "too many defines"?
  5692.  
  5693. Use the "-Wp,-Hxxxxxxx" where xxxxxxxx is the number of bytes to add
  5694. to cpp's table size.
  5695.  
  5696. There is no equivalent in lint or cflow to the cc driver's -W flag to
  5697. pass options to subprocesses like cpp.  However, both lint and cflow
  5698. invoke cpp via the cc driver, so you can achieve the same effect by
  5699. setting the CCOPTS environment variable.  For example,
  5700.  
  5701.     CCOPTS="-Wp,-H500000"
  5702.     export CCOPTS
  5703.     lint large_file.c
  5704.  
  5705. ------------------------------
  5706.  
  5707. Subject: 6.2.4  Why do I get "_builtin_va_start" undefined when I build
  5708.                 with gcc?
  5709.  
  5710. The <varargs.h> and <stdarg.h> include files define va_start in terms of
  5711. this function, which is built-in on the HP C compiler.
  5712.  
  5713. If you're using GCC you should be picking up include files
  5714. from the gcc library directory.  These include files do the right
  5715. thing for both GCC and HP C.
  5716.  
  5717. More often than not these files were never installed, or someone has
  5718. placed a copy of varargs.h/stdarg.h into /usr/local/include (gcc searches
  5719. there *first*).
  5720.  
  5721. When all else fails, you can replace the definition of va_start as
  5722. follows, depending on whether you are using varargs or stdarg (K&R or
  5723. ANSI, respectively).
  5724.  
  5725.     #include <varargs.h>
  5726.     #ifdef __hppa
  5727.     #undef va_start
  5728.     #define va_start(a) ((a)=(char *)&va_alist+4)
  5729.     #endif
  5730.  
  5731.     #include <stdarg.h>
  5732.     #ifdef __hppa
  5733.     #undef va_start
  5734.     #define va_start(a,b) ((a)=(va_list)&(b))
  5735.     #endif
  5736.  
  5737. For <varargs.h>, this replacement should always work.
  5738.  
  5739. For <stdarg.h>, this replacement will work unless the last fixed
  5740. parameter ("b" in the call to va_start) is a structure larger
  5741. than 8 bytes.  Large structures are passed by reference, with the
  5742. callee responsible for copying the structure to a temporary area
  5743. if it will be modified.  In this case, "&b" will take the address
  5744. of that temporary area instead of the position in the argument
  5745. list, and va_next won't work.  That's why HP uses a compiler
  5746. built-in.
  5747.  
  5748. ------------------------------
  5749.  
  5750. Subject: 6.2.5  Is there some kind of problem with using FLT_MIN in ANSI
  5751.                 mode?
  5752.  
  5753. The C compiler dislikes this construct in ANSI mode:
  5754.  
  5755. x = FLT_MIN;    /* <---- warning here */
  5756.  
  5757. The problem is that the ANSI mode (_PROTOTYPES) version of
  5758. FLT_MIN/FLT_MAX in <float.h> end their constants with an F, which seems
  5759. to upset the compiler.
  5760.  
  5761. The workaround is to temporarily undef _PROTOTYPES around the <float.h>
  5762. inclusion:
  5763.  
  5764.   #ifdef _PROTOTYPES
  5765.   #undef _PROTOTYPES
  5766.   #include <float.h>
  5767.   #define _PROTOTYPES
  5768.   #else
  5769.   #include <float.h>
  5770.   #endif
  5771.  
  5772. ------------------------------
  5773.  
  5774. Subject: 6.2.6  Why do I get the error "*Initialization*:1: missing
  5775.                 token-sequence in `#assert'" when I compile with gcc?
  5776. Updated: 04/18/01
  5777.  
  5778. This error is caused by the HP and GNU compilers using the -A command
  5779. line option for different things.
  5780.  
  5781. The HP compiler uses -A to set which dialect of C the compiler expects
  5782. to see in the input files, K&R (-Ac), ANSI (-Aa) or Extended ANSI (-Ae).
  5783. In recent versions, Extended ANSI mode is the default.  In earlier
  5784. versions, K&R mode is the default.
  5785.  
  5786. The GNU compiler has a conditional compilation mechanism that allows
  5787. questions to be asked during the compilation using the construct '#if
  5788. #question(answer)' and a mechanism of telling the compiler in advance
  5789. the answers to questions with the construct '#assert question(answer)'.
  5790. For the GNU compiler the -A optoion is equivalent to a #assert
  5791. directive.
  5792.  
  5793. The error message above occurs when the GNU compiler gets the option -Aa
  5794. intended for the HP compiler and reads it as an attempt to provide the
  5795. answer to the question 'a' but the answer itself (which would appear in
  5796. brackets) is missing.
  5797.  
  5798. The problem can be resolved by removing the -Aa option from the command
  5799. line used for the compiler (check Makefiles for CC and CFLAGS settings)
  5800. as the GNU compiler defaults to understanding ANSI C anyway.
  5801.  
  5802. ------------------------------
  5803.  
  5804. Subject: 6.2.7  How can I detect the HP-UX version at compile time?
  5805. Added: 05/02/02
  5806.  
  5807. The below macro sequence allows you to figure out the HP-UX major
  5808. version number:
  5809.  
  5810. #include <sys/privgrp.h>
  5811. #if defined(PRIV_PSET)
  5812. #define _hpux_11i
  5813. #elif defined(PRIV_SPUCTL)
  5814. #define __hpux_11x
  5815. #elif defined(PRIV_SERIALIZE)
  5816. #define __hpux_10x
  5817. #elif defined(PRIV_SETRUGID)
  5818. #define __hpux_9x
  5819. #endif
  5820.  
  5821. ------------------------------
  5822.  
  5823. Subject: 6.3  Porting
  5824.  
  5825. ------------------------------
  5826.  
  5827. Subject: 6.3.1  Porting from an Earlier Release of HP-UX
  5828. Updated: 01/10/03
  5829.  
  5830. See the HP-UX 11.x STK: Source Code Transitions page at:
  5831.  
  5832.   o <http://devrsrc1.external.hp.com/STK/srctransitions.html>
  5833.  
  5834. Also refer to the release notes for the release of HP-UX that you are
  5835. porting TO (release notes are in /usr/share/doc).
  5836.  
  5837. ------------------------------
  5838.  
  5839. Subject: 6.3.2   Porting from Other Platforms (Solaris, AIX, etc..)
  5840. Updated: 06/12/02
  5841.  
  5842. Porting Guides & Kits from HP
  5843. =============================
  5844. o Solaris to HP-UX 11.0 Porting Guide:
  5845.   +
  5846. <http://h21007.www2.hp.com/dspp/tech/tech_TechDocumentDetailPage_IDX/1,1701,980,00.html>
  5847.           
  5848. o IRIX to HP-UX Migration Guide:
  5849.   +
  5850. <http://h20000.www2.hp.com/bc/docs/support/SupportManual/lpv37626/lpv37626.pdf>
  5851.  
  5852. o Linux Porting Kit 1.0 for HP-UX 11.x (porting from Linux to HP-UX
  5853. 11.x):
  5854.   + <http://devrsrc1.external.hp.com/LPK/>
  5855.  
  5856. Porting Guides from Interex
  5857. ===========================
  5858. o HP-UX/Sun Interoperability Cookbook, Version 2:
  5859.   + <http://www.interex.org/tech/9000/Tech/sun_hpux_interop/>
  5860.  
  5861. o AIX/HP-UX Interoperability Guide, Version 2:
  5862.   + <http://www.interex.org/tech/9000/Tech/aix_hpux_interop_v2/>
  5863.  
  5864. o SunOS to HP-UX 9.05 Porting Guide:
  5865.   + <http://www.interex.org/tech/9000/Tech/sun_hpux_port/>
  5866.  
  5867. o All three Interex porting & interoperability guides are also available
  5868.   via FTP, in ASCII, HTML, and Postscript format at:
  5869.   + <ftp://interworks.org/pub/comp.hp/porting_info/>
  5870.  
  5871. Other Porting Resources
  5872. =======================
  5873. o Mike Peterson's HP-UX porting tricks (last updated 06/16/99):
  5874.   + <http://www.noc.utoronto.ca/~mikep/unix/HPTRICKS>
  5875.   
  5876. o HP-UX to Compaq Tru64 UNIX Porting Guide:
  5877.   + <http://www.tru64unix.compaq.com/docs/porting/HP-Porting/TITLE.HTM>
  5878.   (reverse everything it says :-)
  5879.  
  5880. ------------------------------
  5881.  
  5882. Subject: 6.3.3  How do I know if binaries built on a one release of HP-UX
  5883.                 are compatible with a different release of HP-UX?
  5884. Added: 12/03/01
  5885.  
  5886. The general rule is binaries built on a given release of HP-UX will
  5887. always
  5888. run on that release and all later releases, but will never run on earlier
  5889. releases. Of course, if you will be limited to the APIs provided by the
  5890. release of HP-UX running on the build machine. So a binary compiled on a
  5891. 10.20 system will run on 10.20, 11.00, and 11i.
  5892.  
  5893. ------------------------------
  5894.  
  5895. Subject: 6.4  Tools
  5896.  
  5897. ------------------------------
  5898.  
  5899. Subject: 6.4.1  Where can I get Interviews for HP-UX?
  5900. Updated: 03/28/01
  5901.  
  5902. HP released a product called Interviews Plus in 1992, which is now
  5903. officially obsolete.  However, the public-domain version of Interviews
  5904. can still be obtained from:
  5905.  
  5906.   o <ftp://foofoo.stanford.edu/pub/interviews/>
  5907.  
  5908. ------------------------------
  5909.  
  5910. Subject: 6.4.2  Is there a disassembler included with HP-UX?
  5911. Added: 01/23/03
  5912.  
  5913. First off, if you have the source code for the program, the best way to
  5914. produce assembly code is to use cc's -S option, which writes out the
  5915. assembly language code into a file with a .s extension.
  5916.  
  5917. Now, as for disassembling a binary...
  5918.  
  5919. The dis command is possibly the only XPG4 command that is not included
  5920. with HP-UX.
  5921.  
  5922. If you simply wish to disassemble a function in a program, gdb can do
  5923. this.  If you don't have it in /opt/langtools/bin already, get it from
  5924. <http://www.hp.com/go/wdb>. For a given executable, if you know the name
  5925. of a function:
  5926.  
  5927.   $ gdb <name of executable>
  5928.   (gdb) disassem <name of function>
  5929.   ... disassembly produced ...
  5930.  
  5931. If you wish to decode machine codes yourself, I asked this question a
  5932. little earlier in the week: the solution I opted for was to fork off an
  5933. "adb" process and use that to disassemble. I only wanted to decode a
  5934. single instruction so that is what my code does.  It should be reasonably
  5935. easy to send more than one command before closing the adb session if
  5936. that's what you need, although I'm not sure how practical this is for
  5937. large scale disassembly; Dave's suggestion of investigating the gdb
  5938. source may be better in this instance.  It also lacks any support for
  5939. helpful annotations and symbolic names some disassemblers can add to aid
  5940. understanding.
  5941.  
  5942. I've included my function for your information; I make no guarantees
  5943. about its correctness or that it makes sufficient checks for errors:
  5944.  
  5945. #include <stdio.h>
  5946. #include <unistd.h>
  5947. #include <string.h>
  5948. #include <errno.h>
  5949. #include <ctype.h>
  5950.  
  5951. const char *ProcInfo::disassemble(long long unsigned int mc) {
  5952.  
  5953.     static char result[200];
  5954.     // First create a couple of pipes for the new I and O, and fork the
  5955.     // process.
  5956.     int fildes_in[2], fildes_out[2];
  5957.     pid_t pid;
  5958.     fildes_in[0] = fildes_in[1] = fildes_out[0] = fildes_out[1] = -1;
  5959.     bool fail = true;
  5960.  
  5961.     if (pipe(fildes_in) == 0 && pipe(fildes_out) == 0) {
  5962.         switch (pid = fork()) {
  5963.         case 0:
  5964.             {
  5965.                 // I'm the child, I have to setup the pipes to be stdin,
  5966.                 // and stdout and then start adb.
  5967.                 close(0); dup(fildes_in[0]); close(fildes_in[1]);
  5968.                 close(1); dup(fildes_out[1]); close(fildes_out[0]);
  5969.                 execlp("adb", NULL);
  5970.                 // If the exec returns, we've failed. Just report the
  5971.                 // error to the parent and exit.
  5972.                 perror("adb");
  5973.                 exit(1);
  5974.             }
  5975.         default:
  5976.             {
  5977.                 // I'm the parent, I'll just close the appropriate sides
  5978.                 // of the pipe and send the request and expect an answer.
  5979.                 // I'd rather not block on the write, but if it does I'm
  5980.                 // not going to check.
  5981.                 close(fildes_in[0]);
  5982.                 close(fildes_out[1]);
  5983.                 char command[20];
  5984.                 sprintf(command, "0x%X=i\n", mc);
  5985.                 write(fildes_in[1], command, strlen(command));
  5986.                 int readlen = read(fildes_out[0], result, sizeof(result)
  5987.                                    - 1);
  5988.                 result[readlen] = '\0';
  5989.                 if (readlen == 0) {
  5990.                     strcpy(result, "No translation");
  5991.                 }
  5992.                 // We've got an answer, let's bin the pipes and let 'adb'
  5993.                 // tidy up for itself.
  5994.                 close(fildes_in[1]);
  5995.                 close(fildes_out[0]);
  5996.                 fail = false;
  5997.             }
  5998.         case -1:
  5999.             {
  6000.                 // Just drop out since the fork() call failed.
  6001.                 break;
  6002.             }
  6003.         }
  6004.     }
  6005.  
  6006.     if (fail) {
  6007.         // We've failed... let's return an error and clean up.
  6008.         strcpy(result, strerror(errno));
  6009.         close(fildes_in[0]);
  6010.         close(fildes_in[1]);
  6011.         close(fildes_out[0]);
  6012.         close(fildes_out[1]);
  6013.     }
  6014.  
  6015.     // Now reformat the result to get rid of any excess space.
  6016.     int len = strlen(result);
  6017.     bool need_space = false;
  6018.     for (int s = 0, d = 0; s != len && result[s] != '\n'; s++) {
  6019.         if (isspace(result[s])) {
  6020.             need_space = true;
  6021.         } else {
  6022.             if (need_space && d != 0) {
  6023.                 result[d++] = ' ';
  6024.             }
  6025.             result[d++] = result[s];
  6026.             need_space = false;
  6027.         }
  6028.     }
  6029.     result[d] = '\0';
  6030.     return result;
  6031. }
  6032.  
  6033. There are a couple 3rd-party PA-RISC disassemblers available:
  6034.  
  6035. o Allegro's AVATAR Disassembler (~$2000):
  6036.  
  6037.   A disassembler/patcher/code-explorer for PA-RISC based HP-UX systems,
  6038.   by Allegro Consultants, Inc.  See:
  6039.  
  6040.   + <http://www.allegro.com/products/hp9000/avatar.hpux.info.html>
  6041.  
  6042. o DataRescue's IDA Pro HP-PA RISC Disassembler (~$495):
  6043.  
  6044.   IDA Pro is a Multi-Processor Interactive DisAssembler that combines a
  6045.   powerful automatic analysis engine with your interactivity to achieve
  6046.   outstanding reverse engineering results.  See:
  6047.  
  6048.   + <http://www.datarescue.com/idabase/idahp-pa.htm>
  6049.  
  6050. If you are looking to decompile PA-RISC assembly code to C or some other
  6051. high-level language, it can not easily be done, especially via an
  6052. automated process.  The problem is that with optimizing compilers, a
  6053. given output of the compiler has an infinite (or thereabouts ;) number of
  6054. possible source programs.  The fact is, that a decompiler can produce
  6055. perfectly valid C code, that makes barely any sense to normal humans.
  6056.  
  6057. Source Recovery has recently released a HP-UX C/C++ SOM decompiler called
  6058. DOC C/C++!  SOM is the file format of 32-bit PA-RISC executables. For
  6059. more information, see:
  6060.  
  6061.   o <http://www.sourcerecovery.com/abstract.htm>
  6062.   
  6063. Or if you want to take a shot at doing it manually, you should look over 
  6064. the following web sites:
  6065.  
  6066.   o PA-RISC Resources:
  6067.     +
  6068. <http://h21007.www2.hp.com/dspp/tech/tech_TechTypeListingPage_IDX/1,1704,10403,00.html>
  6069.   
  6070.   o HP Assembler Reference Manual, 9th Edition - 06/98:
  6071.     + <http://docs.hp.com/hpux/onlinedocs/92432-90012/92432-90012.html>
  6072.     
  6073.   o The Decompilation Page:
  6074.     +
  6075. <http://www.program-transformation.org/twiki/bin/view/Transform/DeCompilation>
  6076.     
  6077.   o fravia's pages of reverse engineering:
  6078.     + <http://www.instinct.org/fravia/>
  6079.  
  6080. ------------------------------
  6081.  
  6082. 7. APPS AND UTILS
  6083.  
  6084. ------------------------------
  6085.  
  6086. Subject: 7.1.1  HP Freeware
  6087.  
  6088. ------------------------------
  6089.  
  6090. Subject: 7.1.1.1  Patches
  6091. Updated: 04/22/03
  6092.  
  6093. Individual patches for HP-UX, MPE/iX, and HP firmware can be downloaded
  6094. from the HP IT Resource Center (ITRC):
  6095.  
  6096. ITRC web site, Americas / Asia Pacific
  6097. ======================================
  6098. URL:       <http://us.itrc.hp.com/>
  6099. Alt URL 1: <http://www1.itrc.hp.com/>
  6100. Alt URL 2: <http://www2.itrc.hp.com/>
  6101. Note:      Go to "maintenance / support" -> "patching" ->
  6102.            "individual patches"
  6103.  
  6104. ITRC ftp site, Americas / Asia Pacific
  6105. ======================================
  6106. URL:       <ftp://ftp.itrc.hp.com/>
  6107.              - or -
  6108.            <ftp://us-ffs.external.hp.com/>
  6109.  
  6110. ITRC web site, European
  6111. =======================
  6112. URL:       <http://europe.itrc.hp.com/>
  6113. Alt URL 1: <http://itrc.hp.com/>
  6114. Alt URL 2: <http://www4.itrc.hp.com/>
  6115.  
  6116. Note:      Go to "maintenance / support" -> "patching" ->
  6117.            "individual patches"
  6118.  
  6119. ITRC ftp site, European
  6120. =======================
  6121. URL:       <ftp://europe-ffs.external.hp.com/>
  6122.  
  6123. HP-UX Support Plus patch bundles can be downloaded from the HP Software
  6124. Depot web site:
  6125.  
  6126.   o <http://software.hp.com/SUPPORT_PLUS/>
  6127.  
  6128. There are three varieties of patch bundles available:
  6129.  
  6130.   o General Release
  6131.       + tested sets of HP-UX core patches
  6132.       + superset of Hardware/Critical bundle
  6133.       + formerly known as eXtension SoftWare (XSW)
  6134.   o Hardware/Critical
  6135.       + hardware-enablement & critical OS patches only
  6136.       + subset of General Release Bundle
  6137.       + formerly known as Independent Peripheral Release (IPR)
  6138.   o Quality Pack (QPK)
  6139.       + contains defect fixes and performance enhancements
  6140.       + some patches in the QPK are also in the General Release bundle,
  6141.         and others are not
  6142.  
  6143. ------------------------------
  6144.  
  6145. Subject: 7.1.1.2  Drivers
  6146. Added: 04/19/01
  6147.  
  6148. Drivers are normally found on the HP-UX Applications CDs.  See:
  6149.  
  6150.   o <http://software.hp.com/RELEASES-MEDIA/>
  6151.  
  6152. ------------------------------
  6153.  
  6154. Subject: 7.1.1.3  I heard there is a new ftpd available.  Where do I get
  6155.                   it?
  6156. Added: 04/11/01
  6157.  
  6158. The "new ftpd" is WU-FTPD 2.4 ported to HPUX, with added bug and security
  6159. fixes.  It was released by HP in June '98, as a patch for 11.00.
  6160.  
  6161. WU-FTPD contains a slew of enhancements over the "legacy ftpd."
  6162.  
  6163. To get the new ftpd for 11.00, download and install PHNE_21936.  After
  6164. installing the patch, you can get information on the new features
  6165. introduced by this new version of ftpd from the file:
  6166.  
  6167.   o /usr/share/doc/RelNotes_newftp.txt
  6168.  
  6169. This version of FTP has some new configuration files that can be used to
  6170. take advantage of new functionality.  Sample of the new configuration
  6171. files are provided in /usr/newconfig/etc/ftpd.  You can edit these files
  6172. as per your need and copy them to the location /etc/ftpd.
  6173.  
  6174. NOTE: WU-FTPD has a problem with passwords starting with a '-': if a
  6175.       password starts with a '-', you need to prepend another '-' to the
  6176.       password.
  6177.  
  6178. The new ftpd is not available for 10.x, and it is included with 11.10 and
  6179. later.
  6180.  
  6181. Note, WU-FTPD 2.6.1 binaries for 10.20 and 11.00 can be downloaded from
  6182. the Liverpool archive (the package name is 'wu_ftpd').  Of course, this
  6183. version is not supported by HP.
  6184.  
  6185. ------------------------------
  6186.  
  6187. Subject: 7.1.1.4  HPRC FTP Site
  6188. Added: 04/20/01
  6189.  
  6190. The HP Response Center (HPRC) maintains an FTP site containing a
  6191. collection of unsupported tools, FAQs and white papers.  The tools are
  6192. NOT supported, although the author may allow email communication for bug
  6193. reports.  You can email bugs about the FAQs, config guides, & white
  6194. papers to <hprc@hprc.external.hp.com>.  General help or support is NOT
  6195. available from this site.
  6196.  
  6197. The URL of the HPRC FTP site is:
  6198.  
  6199.   o <ftp://contrib:9unsupp8@hprc.external.hp.com/>
  6200.  
  6201. For more information on the purpose of the FTP site, see the HPRC
  6202. homepage
  6203. at:
  6204.  
  6205.   o <http://hprc.external.hp.com/>
  6206.  
  6207. Here are some of the more useful bits available from the HPRC site:
  6208.  
  6209. XVG
  6210. ===
  6211. XVG is an LVM display program for Xwindows.  It will
  6212. show disk layouts, volume groups, unused space, device
  6213. files, non-contiguous volumes, etc.  Can be run on
  6214. workstations or servers with any version of HP-UX
  6215. from 9.xx and higher, and displayed on any Xwindow
  6216. device including PCs with Xwindow emulators.  The latest
  6217. version can be downloaded at:
  6218.  
  6219.   o <ftp://contrib:9unsupp8@hprc.external.hp.com/sysadmin/xvg/>
  6220.  
  6221. pdcinfo
  6222. =======
  6223. The pdcinfo programs allow you to retrieve PDC (PIM) information from HP
  6224. computer systems. On some systems (such as the T-Class), this program can
  6225. retrieve HPMC tombstone data.  The latest version can be downloaded at:
  6226.  
  6227.   o <ftp://contrib:9unsupp8@hprc.external.hp.com/hardware/pdc/>
  6228.  
  6229. memwin_stats
  6230. ============
  6231. The memwin_stats command is intended for usage with the new memory
  6232. windows
  6233. functionality. For 11.00, memory windows functionality is installed via
  6234. two patches:
  6235.  
  6236.   o patch PHKL_18543      (kernel)
  6237.   o patch PHCO_23705      (commands)
  6238.   
  6239. For future releases, memory windows is part of the core release. 
  6240. Download
  6241. memwin_stats from:
  6242.  
  6243.   o <ftp://contrib:9unsupp8@hprc.external.hp.com/sysadmin/memwin/>
  6244.  
  6245. various sys-admin scripts
  6246. =========================
  6247. o various "cool" scripts:
  6248.   + <ftp://contrib:9unsupp8@hprc.external.hp.com/sysadmin/coolscripts/>
  6249. o system inventory scripts:
  6250.   + <ftp://contrib:9unsupp8@hprc.external.hp.com/sysadmin/inventory/>
  6251. o scripts to run as cronjobs:
  6252.   + <ftp://contrib:9unsupp8@hprc.external.hp.com/sysadmin/cronjobs/>
  6253. o improved versions of /etc/profile, /.profile, and /etc/skel/.profile:
  6254.   + <ftp://contrib:9unsupp8@hprc.external.hp.com/sysadmin/profiles/>
  6255.  
  6256. ------------------------------
  6257.  
  6258. Subject: 7.1.1.5  GNOME
  6259. Added: 12/30/03
  6260.  
  6261. Ximian GNOME for HP-UX is a modern, highly customizable desktop
  6262. environment that runs on top of the X Window System, as an alternative to
  6263. CDE. It runs on all 11.x releases of HP-UX. Binaries, source, and
  6264. documentation are available at:
  6265.  
  6266.   o <http://software.hp.com/products/GNOME/>
  6267.  
  6268. Note, HP does not provide support for GNOME for HP-UX.
  6269.  
  6270. ------------------------------
  6271.  
  6272. Subject: 7.1.2  Non-HP Freeware
  6273.  
  6274. ------------------------------
  6275.  
  6276. Subject: 7.1.2.1  The Software Porting And Archive Centre for HP-UX
  6277. Updated: 01/22/03
  6278.  
  6279. The Software Porting And Archive Centre for HP-UX, commonly referred to
  6280. as the Liverpool Archive contains over 2,100 packages ported to HP-UX
  6281. 10.20, 11.00 and/or 11.20, conveniently packaged in SD-UX format.
  6282.  
  6283. As of June 2002, HP-UX 10.20 binaries are no longer produced by the
  6284. Porting Centre for new package releases.
  6285.  
  6286. Send comments and porting requests to <hpux@connect.org.uk>.
  6287.  
  6288. WWW
  6289. ---
  6290. URL:       <http://hpux.connect.org.uk/>           United Kingdom
  6291. Mirrors:   <http://hpux.cs.utah.edu/>              Unites States
  6292.            <http://hpux.asknet.de/>                Germany
  6293.            <http://hpux.cict.fr/>                  France
  6294.            <http://hpux.tn.tudelft.nl/>            Netherlands
  6295.            <http://hpux.ee.ualberta.ca/>           Canada                
  6296.      
  6297.  
  6298. FTP
  6299. ---
  6300. URL:       <ftp://hpux.connect.org.uk/>            United Kingdom
  6301. Mirrors:   <ftp://hpux.cs.utah.edu/>               United States         
  6302.  
  6303.            <ftp://hpux.asknet.de/>                 Germany           
  6304.            <ftp://hpux.cict.fr/>                   France
  6305.            <ftp://hpux.tn.tudelft.nl/>             Netherlands
  6306.            <ftp://hpux.ee.ualberta.ca/>            Canada
  6307.  
  6308. ------------------------------
  6309.  
  6310. Subject: 7.1.2.2  InterWorks FTP site
  6311. Updated: 04/18/01
  6312.  
  6313. The anonymous FTP server for what used to be InterWorks (see question
  6314. 4.10.1.2).  It contains lots of HP-UX utilities and information, most of
  6315. which are outdated.  The site also keeps the last 4-6 months of
  6316. comp.sys.hp.hpux online (via an Interex member logon.  An archive going
  6317. back to June 1990 is available -- contact the InterWorks librarian for
  6318. details.  Additionally, a large (~1300 line) "HP-UX Troubleshooting
  6319. Guide" is available under the Interex member logon.
  6320.  
  6321.   o <ftp://interworks.org/pub/comp.hp/>
  6322.  
  6323. ------------------------------
  6324.  
  6325. Subject: 7.1.2.3  Netperf
  6326. Added: 04/04/01
  6327.  
  6328. Netperf is a benchmark that can be used to measure the performance of
  6329. many different types of networking.  It provides tests for both
  6330. unidirectional throughput, and end-to-end latency.  The environments
  6331. currently measureable by netperf include:
  6332.  
  6333.   o TCP and UDP via BSD Sockets
  6334.   o DLPI
  6335.   o UNIX Domain Sockets
  6336.   o Fore ATM API
  6337.   o HP HiPPI Link Level Access
  6338.  
  6339. Note that, though it is written and maintained by an HP employee (Rick
  6340. Jones), Netperf is not an official HP product, and its use is in no way
  6341. supported by HP.
  6342.  
  6343.   o <http://www.netperf.org/netperf/NetperfPage.html>
  6344.  
  6345. ------------------------------
  6346.  
  6347. Subject: 7.1.2.4  SLIP and CSLIP
  6348.  
  6349. Both SLIP and CSLIP come with HP-UX 10.00 and later.  As of HP-UX 10.30,
  6350. the PPP daemon (pppd) also handles incoming SLIP and CSLIP connections.
  6351. In HP-UX 10.x, SLIP and CSLIP were handled by a program called ppl.
  6352. See slip(1).
  6353.  
  6354. For more information on CSLIP and SLIP refer to the manual:
  6355.  
  6356. o Installing SLIP/PPL Software on HP-UX ((Part No. 98194-90051):
  6357.   + <http://docs.hp.com/hpux/onlinedocs/98194-90051/00/00/1-con.html>
  6358.  
  6359. ------------------------------
  6360.  
  6361. Subject: 7.1.2.5  PPP
  6362. Updated: 11/24/01
  6363.  
  6364. PPP comes with HP-UX 10.30 and later.
  6365.  
  6366. The PPP manual "Installing and Adminsistering PPP" (Part No. B2355-90137)
  6367. can be viewed online at:
  6368.  
  6369.   o <http://docs.hp.com/hpux/onlinedocs/B2355-90137/B2355-90137.html>
  6370.  
  6371. Or purchased in hardcopy form from:
  6372.  
  6373.   o
  6374. <http://software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/displayProductInfo.pl?productNumber=B8679BA:B2355-90137>
  6375.  
  6376. Follow these steps to configure PPP on your 11.x system:
  6377.  
  6378.      1. Execute the GSP (Guardian Service Processor) DR command to
  6379. disable
  6380.         the remote.
  6381.  
  6382.         Note: It is not necessary to run this command if the modem is on
  6383.               the MUX (mulitplexer) port.
  6384.  
  6385.      2. Modify the 19200 entry in /etc/gettydefs to include the following
  6386.         information:
  6387.  
  6388.          19200 #B19200 HUPCL CS8 SANE ISTRIP IXANY TAB3
  6389.                  #B19200 SANE CS8 ISTRIP IXANY TAB3 HUPCL
  6390.                  #login: #19200
  6391.  
  6392.      3. Create a device file for calling into a remote console port:
  6393.  
  6394.          mksf -C tty -H 0/0/4/0 -m 0x000202 /dev/ttyd0p2
  6395.  
  6396.          Note: For MUX cards, use SAM (System Administration Manager) or
  6397.                 use the following command:
  6398.  
  6399.                 mksf -d <mux_driver> -H <hw_path> -I <instance> \
  6400.                      -p <port_number> -a 2
  6401.  
  6402.      4. Add the following line in /etc/inittab:
  6403.  
  6404.          a1:3:respawn:/usr/bin/pppd <hostname>:<remote_host_IP> netmask
  6405.          <netmask> idle 150 requireauth <port_device_file> 19200
  6406.  
  6407.          Note: See the pppd(1) man page for more information.
  6408.  
  6409.      5. Re-initialize the /etc/inittab file so that the changes will take
  6410.         effect:
  6411.  
  6412.          init q
  6413.  
  6414.      6. Edit /etc/ppp/Auth against authentication of dial-up networking
  6415.         users:
  6416.  
  6417.          <username> <password_in_cleartext> ...
  6418.          ... <optional_address_restrictions>
  6419.  
  6420.          Note: Please see the ppp.Auth(4) man page for more
  6421.                 information.
  6422.  
  6423.      7. Next, test the ppp connection from a PC. Launch:
  6424.  
  6425.          Start
  6426.           --> Programs
  6427.                --> Accessories
  6428.                     --> Dial-up Networking
  6429.  
  6430.          Use the same username/passwd pair that was entered into the
  6431.          /etc/ppp/Auth file.
  6432.  
  6433. As for HP-UX 9.x and 10.x, there are a couple options:
  6434.  
  6435.   o iij-ppp: a public-domain PPP implementation that has been ported to
  6436.              HP-UX
  6437.  
  6438.     Check out Barthold Lichtenbelt's "PPP for HP-UX" web page at:
  6439.  
  6440.       o <http://www.interex.org/~borg/ppp.html>
  6441.  
  6442.     This page provides instructions for installing and configuring 
  6443.     iij-ppp.
  6444.  
  6445.   o Sun/Cobalt/Progressive Systems/Morningstar PPP: Once upon a time,
  6446. this
  6447.     was a fine, supported product.  Due to merger-mania, Sun now owns
  6448. this
  6449.     product, but offers no support for it.  Expect no further
  6450. development.
  6451.     But, you can still buy a license for the product if you ask your Sun
  6452.     salesperson.  The product offers PPP and SLiP on HP-UX 9.x or 10.x
  6453.     systems.  Works with SecurID[R] cards and dialback modems.
  6454.  
  6455. It is a good idea to install the latest Mux/Pty patch before using PPP:
  6456.  
  6457.   o 11.11: patch PHNE_27760
  6458.   o 11.00: patch PHNE_27788
  6459.   o 10.20: patch PHNE_21872
  6460.   o 10.10: patch PHNE_20838
  6461.   o 10.0x: patch PHNE_9436
  6462.  
  6463. For additional general information on PPP and SLIP, check out:
  6464.  
  6465.   o <http://www.stokely.com/unix.serial.port.resources/ppp.slip.html>
  6466.  
  6467. ------------------------------
  6468.  
  6469. Subject: 7.1.2.6  SMTP
  6470. Added: 08/24/01
  6471.  
  6472. Sendmail comes with HP-UX.  See item 5.7.14 for information on upgrading
  6473. to a more recent version of Sendmail.
  6474.  
  6475. Postfix is a popular alternative to Sendmail.  The Postfix homepage is:
  6476.  
  6477.   o <http://www.postfix.org/>
  6478.  
  6479. Ralf Hildebrandt provides Postfix binaries for HP-UX at:
  6480.  
  6481.   o <http://www.stahl.bau.tu-bs.de/~hildeb/postfix/>
  6482.  
  6483. There are a number of other alternatives:
  6484.  
  6485.   o Exim: <http://www.exim.org/>
  6486.   o Courier: <http://courier.sourceforge.net/>
  6487.   o Qmail: <http://www.cgiscripts.net/mirrors/qmail/>
  6488.  
  6489. ------------------------------
  6490.  
  6491. Subject: 7.1.2.7  POP and IMAP
  6492. Updated: 08/24/01
  6493.  
  6494. QUALCOMM[R], makers of the Eudora[R] email client for Macs and PCs, is
  6495. currently maintaining Qpopper[TM], a modified version of Berkeley's
  6496. 1.831beta popper.  It can be downloaded for free (in source form) from:
  6497.  
  6498.   o <ftp://ftp.qualcomm.com/eudora/servers/unix/popper>
  6499.  
  6500. The Qpopper homepage is:
  6501.  
  6502.   o <http://www.eudora.com/qpopper/>
  6503.  
  6504. When building, use the 'sysv' target for HP/UX (i.e. "make sysv").
  6505.  
  6506. Do NOT install popper 1.831beta (or any version of Berkeley POP).  It is
  6507. vulnerable to buffer overflow attacks.  Use qpopper instead.
  6508.  
  6509. A second alternative is the free IMAP developer's kit from The University
  6510. of Washington, Computing & Communications department.  The kit includes
  6511. sources for an imapd server, an `ms' demo client, pop2 and pop3 servers,
  6512. and a C-client library.  Download from:
  6513.  
  6514.   o <ftp://ftp.cac.washington.edu/mail/>
  6515.  
  6516. If you are running Qmail, Exim, or Postfix as your mail server and you
  6517. have maildirs configured, the best way to go is Courier IMAP, available 
  6518. at:
  6519.  
  6520.   o <http://www.inter7.com/courierimap/>
  6521.  
  6522. ------------------------------
  6523.  
  6524. Subject: 7.1.2.8  Sudo
  6525. Added: 03/26/01
  6526.  
  6527. Sudo binaries can be downloaded from the Sudo FTP site
  6528. (<ftp://ftp.courtesan.com/pub/sudo/binaries/>) or the Liverpool archive.
  6529. The binaries on the Sudo site may be a more recent version of Sudo.
  6530.  
  6531. ------------------------------
  6532.  
  6533. Subject: 7.1.2.9  Ntalk
  6534. Updated: 03/26/01
  6535.  
  6536. There are several problems with the version of Ntalk that comes with
  6537. HP-UX
  6538. 9.x.  A patched version of the Ntalk source, ported to run on HP-UX, can
  6539. be downloaded from:
  6540.  
  6541.   o <ftp://ftp.amtp.cam.ac.uk/pub/HP/>
  6542.  
  6543. ------------------------------
  6544.  
  6545. Subject: 7.1.2.10  TTCP
  6546. Added: 04/19/01
  6547.  
  6548. TTCP (Test TCP Program) can be used to test network TCP and UDP
  6549. throughput.  A separate use of this tool is to create network pipes for
  6550. transferring user data.  Cisco routers now incorporate a version of this
  6551. tool, enabling you to easily evaluate network performance.  Source code
  6552. and manpages are provided here for this useful tool:
  6553.  
  6554.   o <http://www.pcausa.com/Utilities/pcattcp.htm>
  6555.  
  6556. NOTE: Do not confuse this with "ttcp - copy files and inform the ToolTalk
  6557.       service"!!
  6558.  
  6559. ------------------------------
  6560.  
  6561. Subject: 7.1.2.11  Free SCSI utilities for HP-UX workstations
  6562. Added: 03/25/01
  6563.  
  6564. MDL Corporation provides several free SCSI uitlities for HP-UX and
  6565. DomainOS.
  6566.  
  6567.   o <http://www.mdlcorp.com/bugfixes.html>
  6568.  
  6569. ------------------------------
  6570.  
  6571. Subject: 7.1.2.12  PSCREEN/uX
  6572. Added: 04/25/01
  6573.  
  6574. PSCREEN/uX is a screen-capture utility for HP-UX. pscreen runs on HP-UX
  6575. 9.x and later, on both S800s and S700s, and assumes that you have either
  6576. an HP-compatible terminal (or emulator) or hpterm.
  6577.  
  6578. PSCREEN can be downloaded from Allegro Consultants, Inc., at:
  6579.  
  6580.   o <http://www.allegro.com/software/hp9000/>
  6581.  
  6582. ------------------------------
  6583.  
  6584. Subject: 7.1.2.13  GNU software
  6585. Added: 04/19/01
  6586.  
  6587. Check the Liverpool archive (see question 7.1.2.1) for the latest GNU
  6588. packages compiled for HP-UX 10.x and 11.x.
  6589.  
  6590. Also, for 11.x, you can order a free Linux Porting Kit CD, which contains
  6591. the HP Open Source Developer's Toolkit, from <http://software.hp.com/>
  6592. (search for "linux porting").
  6593.  
  6594. The toolkit includes the following popular open source tools:
  6595.  
  6596.  autoconf, automake, bash, bison, bzip2, ddd, dejagnu, diffutils, emacs,
  6597.  enscript, expect, fileutils, flex, gawk, gcc, gdb, gdbm, gettext,
  6598.  ghostscript, glib, gmake, grep, gtk+, gv, gzip, imake, inc, jpeg,
  6599.  lclint, less,libgd, libpng, m4, ncurses, patch, perl, python, readline,
  6600.  sed, tar, tcl, tcp_wrappers, tcsh, texinfo, textutils, tiff, tk, unzip,
  6601.  vim, xalan, xaw3d, xemacs, xerces, xpm, zip, zlib
  6602.  
  6603. For descriptions of each of the tools, or to download tools on an
  6604. individual basis, go to:
  6605.  
  6606.   o
  6607. <http://h21007.www2.hp.com/dspp/tech/tech_TechDocumentDetailPage_IDX/1,1701,4682,00.html>
  6608.  
  6609. ------------------------------
  6610.  
  6611. Subject: 7.1.2.14  Web browsers
  6612. Updated: 09/12/03
  6613.  
  6614. HP-UX 10.20 and 11.00 come with Netscape Navigator Gold 3.01 (installed
  6615. under /opt/navgold/).  HP-UX 11.11 includes Netscape Communicator 4.75
  6616. (installed under /opt/netscape/).
  6617.  
  6618. The open source Mozilla browser will be the supported browser on HP-UX
  6619. going forward. Packaged Mozilla binaries for HP-UX 11.x can be
  6620. obtained from HP at:
  6621.  
  6622.   o <http://www.hp.com/go/mozilla>
  6623.  
  6624. Packaged binaries of Netscape 7.0 for 11.x, Netscape Communicator 4.8 for
  6625. 11.x, and Netscape Communicator 4.75 for 10.20 can be obtained from HP 
  6626. at:
  6627.  
  6628.   o <http://www.hp.com/go/netscape>
  6629.   
  6630. Microsoft no longer officially provides Internet Explorer and Outlook
  6631. Express 5 for HP-UX or any other UNIX platform. For more information,
  6632. see:
  6633.  
  6634.   o <http://www.microsoft.com/unix/ie/>
  6635.   
  6636. However, it can still be downloaded from:
  6637.  
  6638.   o
  6639. <http://download.microsoft.com/download/ie5/128bit/5.0/HPUX/EN-US/ie5setup_128>
  6640.  
  6641. Lynx binaries can be downloaded from the Liverpool archive, or the source
  6642. is available at:
  6643.  
  6644.   o <http://lynx.isc.org/release/>
  6645.  
  6646. ------------------------------
  6647.  
  6648. Subject: 7.1.2.15  Miscellaneous freeware
  6649. Added: 04/16/01
  6650.  
  6651. URL:       <ftp://ftp.lut.fi/pub/hpux/>
  6652. Contents:  Various HP-UX binaries (has not been updated since '94)
  6653.  
  6654. ------------------------------
  6655.  
  6656. Subject: 7.1.2.16  RealAudio Player
  6657. Added: 05/02/02
  6658.  
  6659. RealPlayer can be downloaded from:
  6660.  
  6661.   o <http://scopes.real.com/real/player/unix/unix.html>
  6662.  
  6663. A Helix Universal Server (aka RealServer) evaluation version can be
  6664. downloaded from:
  6665.  
  6666.   o <http://licensekey.realnetworks.com/rnforms/products/servers/eval/>
  6667.  
  6668. Both are for 11.x only.
  6669.  
  6670. ------------------------------
  6671.  
  6672. Subject: 7.1.2.17  CD Burning Software
  6673. Updated: 02/04/03
  6674.  
  6675. Please see section 5.2.4.
  6676.  
  6677. ------------------------------
  6678.  
  6679. Subject: 7.2  Shareware
  6680.  
  6681. ------------------------------
  6682.  
  6683. Subject: 7.3.1  HP Commercial Software
  6684.  
  6685. ------------------------------
  6686.  
  6687. Subject: 7.3.1.1  Where can I find release histories for various HP 
  6688.                   software products?
  6689. Added: 11/14/01
  6690.  
  6691. Up-to-date release histories for the following products are available:
  6692.  
  6693.   o HP-UX:      <http://software.hp.com/RELEASES-MEDIA/>
  6694.  
  6695.   o HP aC++:   
  6696. <http://h21007.www2.hp.com/dspp/tech/tech_TechSoftwareDetailPage_IDX/1,1703,1743,00.html>
  6697.  
  6698.   o HP C:      
  6699. <http://h21007.www2.hp.com/dspp/tech/tech_TechDocumentDetailPage_IDX/1,1701,1255,00.html>
  6700.  
  6701.   o HP Fortran:
  6702. <http://h21007.www2.hp.com/dspp/tech/tech_TechSoftwareDetailPage_IDX/1,1703,1847,00.html>
  6703.  
  6704.  
  6705. ------------------------------
  6706.  
  6707. Subject: 7.3.1.2  Where can I find a list of all applications that are
  6708.                   available for HP-UX?
  6709. Added: 01/08/02
  6710.  
  6711. The HP-UX Application Availability Matrix shows what HP-UX Application
  6712. Software is available on particular HP-UX Operating System releases. 
  6713. This matrix will be continuously updated at least once monthly to reflect
  6714. changes in software availability:
  6715.  
  6716.   o <http://www.software.hp.com/MATRIX/>                  
  6717.  
  6718. ------------------------------
  6719.  
  6720. Subject: 7.3.2  Non-HP Commercial Software
  6721.  
  6722. ------------------------------
  6723.  
  6724. Subject: 7.3.2.1  Interex FastStart Toolbox
  6725. Updated: 03/24/01
  6726.  
  6727. Interex is now packaging HP-UX freely available software, ported
  6728. to HP-UX 11.00 in depot format, on a CD called the FastStart 11.0
  6729. Toolbox. See <http://www.interex.org/index/fstart.html> for more
  6730. information.
  6731.  
  6732. ------------------------------
  6733.  
  6734. Subject: 7.3.2.2  Is there anything remotely like the Apollo DM editor
  6735.                   available?
  6736. Updated: 06/27/03
  6737.  
  6738. HP had a product called DMX, which ran on both Domain & HP-UX, and
  6739. enabled
  6740. a standard "Domain-like" interface for both platforms.  Unfortunately,
  6741. this product is no longer available.  It was replaced by VUE/vuepad,
  6742. which has since been replaced by CDE/dtpad.
  6743.  
  6744. Nevertheless, for all you hardcore DM-junkies, there is still hope...
  6745.  
  6746. The ARPUS[TM]/ce[TM] editor is a full-screen, X-Windows-based editor that
  6747. provides easy-to-use text editing across a variety of UNIX platforms. 
  6748. Developed originally for users migrating from Apollo's Domain
  6749. environment,
  6750. ce was modeled after the Display Manager (DM) editor.  ETG has
  6751. incorporated the features of the DM editor that Apollo users liked best,
  6752. as well as adding new features. Some features of ce include: ceterm,
  6753. multiple edit sessions, rectangular cut & paste, global bounded search
  6754. and replace, coordinated mouse and text cursor control, command macros, 
  6755. unlimited UNDO & REDO, customized keyboard mapping, vertical and
  6756. horizontal scrolling, and automatic file backup and save.
  6757.  
  6758. To download an evaluation copy of ce for HP-UX, go to:
  6759.  
  6760.   o <http://www.swlink.net/~styma/ce.shtml>
  6761.  
  6762. A university in France also maintains a copy of the web pages at:
  6763.   
  6764.   o http://www.lmd.jussieu.fr/informatic/jussieu/docs/ce/
  6765.  
  6766. See the "README" file for detailed instructions.
  6767.  
  6768. The eval files normally expire 30-60 days from the date you downloaded
  6769. them.  See the "README.Pricing" file for pricing information.
  6770.  
  6771. For more information, contact:
  6772.  
  6773.   Robert E. Styma 
  6774.   Principal Engineer
  6775.   AG Communication Systems, Phoenix - A subsidiary of Lucent
  6776.   Email: stymar@agcs.com
  6777.   Phone: 623-582-7323
  6778.   FAX:   623-581-4884
  6779.   Company:  http://www.agcs.com
  6780.   Personal: http://www.swlink.net/~styma
  6781.  
  6782. ------------------------------
  6783.  
  6784. Subject: 8. MISCELLANEOUS
  6785.  
  6786. ------------------------------
  6787.  
  6788. Subject: 8.1  How can I find the HP-UX equivalent for a given
  6789.               Solaris/AIX/etc.. command?
  6790. Added: 03/31/01
  6791.  
  6792. Rosetta Stone for UNIX (A Sysadmin's Universal Translator; or "What do
  6793. they call that in this world?") provides a very nice
  6794. AIX/DG-UX/FreeBSD/HP-UX/IRIX/Linux/NetBSD/OpenBSD/Solaris/SunOS/Tru64/...
  6795. ...Ultrix equivalency table at:
  6796.  
  6797.   o <http://bhami.com/rosetta.html>
  6798.  
  6799. UNIXguide.net also provides a
  6800. AIX/FreeBSD/HP-UX/Linux(RedHat)/Solaris/Tru64 equivalency table, at:
  6801.  
  6802.   o <http://www.unixguide.net/unixguide.shtml>
  6803.  
  6804. ------------------------------
  6805.  
  6806. Subject: 8.2  What do I need to do to make my HP-UX system Year 2000
  6807.               compliant?
  6808. Updated: 03/16/01
  6809.  
  6810. This isn't exactly a question burning on people's minds anymore, but the
  6811. answer is to install the latest HP-UX hardware/critical patch bundle
  6812. (previously known as the Indepedent Product Release (IPR) bundle).  The
  6813. bundle is freely available from the HP Software Depot
  6814. (<http://software.hp.com/>), in the "Enhancement Releases" section.
  6815.  
  6816. ------------------------------
  6817.  
  6818. Subject: 8.3  How do I boot into single user mode?
  6819.  
  6820. Press ESC to stop the auto-boot.
  6821. When the list of boot devices is presented:
  6822.  
  6823.   b PX ISL        (where X is your root disc)
  6824.  
  6825. And at the ISL> prompt:
  6826.  
  6827.   HP-UX9.x:     ISL>  hpux -iS disc(;0)/hp-ux
  6828.   HP-UX-10.x:    ISL>  hpux -iS disc(;0)/stand/vmunix
  6829.  
  6830. The '-iS' are the flags to init which says come up single user.  The rest
  6831. of the command is what the bootprocess does automatically.
  6832.  
  6833. ------------------------------
  6834.  
  6835. Subject: 8.4  How can I send mail to an MPE/iX HPDESK address?
  6836.  
  6837. For a person whose DESK address is:
  6838.   JANE DOE /HP1234/XY
  6839.  
  6840. Ignore the subentity (XY) and use the form:
  6841.   jane_doe@hp1234.desk.hp.com
  6842.  
  6843. Send them a test message and tell them to make a note of the return
  6844. address, as forming internet addresses on DESK is a little more
  6845. complicated.  If there is an X.400 system between you and the DESK
  6846. person, what you get back may look like a very strange internet address,
  6847. but it generally works.
  6848.  
  6849. Notice the underscore between names.  Names can be first_last or
  6850. last_first, but first_last is easier to remember and get correct,
  6851. especially if they have initials in their name as in
  6852. fred_l_doe@hpatc1.desk.hp.com.  Be sure that the DESK address they give
  6853. you is exactly what is reported by DESK when they send a message to
  6854. themselves or look at the distribution list on a piece of mail the
  6855. recipient already has to verify the address.
  6856.  
  6857. ------------------------------
  6858.  
  6859. Subject: 8.5  How can I limit core files?
  6860. Updated: 04/03/01
  6861.  
  6862. In the POSIX shell (/usr/bin/sh):
  6863.  
  6864.   $ ulimit -c 0
  6865.  
  6866. To disable core dump generation for all POSIX shell users on the system,
  6867. add the following line to your /etc/profile:
  6868.  
  6869.   ulimit -c 0 2>/dev/null  # swallow ksh error msg
  6870.  
  6871. In the C shell (/usr/bin/csh):
  6872.  
  6873.   % limit coredumpsize 0
  6874.  
  6875. To disable core dump generation for all C shell users on the system, add
  6876. the following line to your /etc/csh.login:
  6877.  
  6878.   limit coredumpsize 0
  6879.  
  6880. There is no coredump limit facility available in the Korn shell
  6881. (/usr/bin/ksh) or the Bourne shell (/usr/old/bin/sh).
  6882.  
  6883. As originally shipped, HP-UX 10.01/10/20 create a 0-byte core file if the
  6884. core dump limit has been set to 0.  The following patches will change
  6885. the behavior to not creating a core file at all if the limit is 0 (the
  6886. commonly expected behavior):
  6887.  
  6888.   o 10.20 700: PHKL_22701
  6889.   o 10.20 800: PHKL_22702
  6890.   o 10.10 700: PHKL_23477
  6891.   o 10.10 800: PHKL_23478
  6892.   o 10.01 700: PHKL_23512
  6893.   o 10.01 800: PHKL_23513
  6894.  
  6895. Prior to 10.01, HP-UX had no built in function to limit core file
  6896. generation from the standard shells.
  6897.  
  6898. One way to limit core file generation is to create a directory called
  6899. "core" with 000 permissions in the directory in which you expect a core
  6900. dump to occur.  Additionally, two programs are available (nocore and
  6901. corelimit) that can be used as wrappers around other programs that you
  6902. may expect to dump.  And, many publicly available shells (tcsh, bash,
  6903. etc..) allow core file limits.  Or, you can place a link called "core"
  6904. to /dev/null in the directory you expect the core dump to occur.
  6905.  
  6906. Here is the source for corelimit. It is completely unsupported; the
  6907. Response Center will disavow all knowledge of you and your mission should
  6908. you call them with a problem relating to this. Build it in the usual way
  6909. (cc -o corelimit corelimit.c) and use it like so: "corelimit hpterm 0".
  6910. This example will limit the core file size of all children of the hpterm
  6911. process to 0.
  6912.  
  6913. #include <stdio.h>
  6914. #include <sys/resource.h>
  6915. #define RLIMIT_CORE     4               /* core file size */
  6916.  
  6917. main(argc, argv)
  6918. int argc;
  6919. char **argv;
  6920. {
  6921.   int res;
  6922.   struct rlimit rlp;
  6923.   if (argc != 3) {
  6924.      fprintf(stderr, "%s: wrong number of parameters\n", argv[0]);
  6925.      fprintf(stderr, "\tformat: %s command core_size\n", argv[0]);
  6926.      exit(-1);
  6927.   }
  6928.   rlp.rlim_cur = atoi(argv[2]);
  6929.   res = setrlimit(RLIMIT_CORE, &rlp);
  6930.   if (res < 0) {
  6931.     perror("setrlimit: RLIMIT_CORE");
  6932.     exit(-2);
  6933.   }
  6934.   system(argv[1]);
  6935. }
  6936.  
  6937. To start all of CDE with core dumps disabled:
  6938.  
  6939.   o compile corelimit (above) and copy the binary to /usr/local/bin/
  6940.   o edit /usr/dt/config/dtrc.d/90_dtlogin_st
  6941.  
  6942.     replace:
  6943.      exec $DTLOGIN $VL_ARGS </dev/null >/dev/null 2>&1
  6944.     with:
  6945.      /usr/local/bin/corelimit exec $DTLOGIN $VL_ARGS </dev/null \
  6946.      >/dev/null 2>&1
  6947.  
  6948. ------------------------------
  6949.  
  6950. Subject: 8.6  How do I disable the Caps Lock key?
  6951. Updated: 04/07/01
  6952.  
  6953. To disable the "placement challenged" Caps Lock key on the ITF keyboard,
  6954. use an xmodmap script:
  6955.  
  6956. Add the below lines to your ~/.dt/sessions/sessionetc:
  6957.  
  6958. /usr/bin/X11/xmodmap - <<'EoF'
  6959.   clear lock
  6960.   keycode 55 = Control_L
  6961.   keycode 86 = Caps_Lock
  6962.   keycode 39 = grave asciitilde guillemotleft guillemotright
  6963.   keycode 71 = Escape
  6964.   add Lock = Caps_Lock
  6965.   add Control = Control_L
  6966. EoF
  6967.  
  6968. This works until logout/login, when Caps Lock toggles the control
  6969. feature,
  6970. even though 'xmodmap -pm' shows that Lock has no assignments.  You have
  6971. to
  6972. restart the X server to reset completely, which can be automated by
  6973. uncommenting the line:
  6974.  
  6975. Dtlogin*terminateServer:   True
  6976.  
  6977. in the file {/usr,/etc}/dt/config/Xconfig.
  6978.  
  6979. ------------------------------
  6980.  
  6981. Subject: 8.7  Why does my Korn shell login hang?
  6982.  
  6983. This can happen if your home directory is across an NFS mount point;
  6984. you can workaround the problem by completely unprotecting (chmod 777)
  6985. ~/.sh_history, or by pointing HISTFILE to somewhere local.
  6986.  
  6987. ------------------------------
  6988.  
  6989. Subject: 8.8  How can I avoid those annoying copyright notices on login?
  6990.  
  6991. The following code in /etc/profile prints the copyright notice only the
  6992. very first time a user logs in:
  6993.  
  6994.   NUMLOGINS=`/etc/last -2 $LOGNAME | wc -l`
  6995.   [ $NUMLOGINS -lt 2 ] && cat /etc/copyright
  6996.  
  6997. And, for /etc/csh.login:
  6998.  
  6999.   set NUMLOGINS=`/etc/last -2 $LOGNAME | wc -l`
  7000.   if ( $NUMLOGINS<2 ) cat /etc/copyright
  7001.  
  7002. Technically, each user will get the copyright on their first login after
  7003. each time the /etc/wtmp file is pruned, but that needn't be often.
  7004.  
  7005. ------------------------------
  7006.  
  7007. Subject: 8.9  How can I turn off quota checking?
  7008.  
  7009. There are a few ways to go about this:
  7010.  
  7011. 1) # chmod -x /usr/bin/quota
  7012.    This prevents quota from running.  It's also a self documenting flag
  7013.    in that a future system manager who tries to run /etc/quota will get
  7014.    the "can not execute" error message.
  7015.  
  7016. 2) # chmod -x /usr/bin/quote /etc/edquota
  7017.    This appears to turn quota's completely off (which is what I
  7018.    suspect the vast majority of people want) and not only speeds
  7019.    up the login process, but you don't get any annoying messages.
  7020.  
  7021. 3) # mv /usr/bin/quota /usr/bin/quota_check ; cp /bin/true /usr/bin/quota
  7022.    This will still make the login program do the quota-check, but at
  7023. least
  7024.    it goes by very very quickly now (as opposed to actualy checking every
  7025.    single NFS mount with quota, and so on).  Then, just run quota_check
  7026.    whenever you want.
  7027.  
  7028. 4) Remove the DiskQuota product ("swremove DiskQuota").  This will still
  7029.    allow you to keep using quotas, as long as the NFS server still has
  7030.    quota enabled, and is exporting the home directory filesystems with
  7031. all
  7032.    the quotas enabled.  Watch out though, since this deletes
  7033.    /usr/bin/quota.  So make a copy before removing the package, if you
  7034.    still want to have the ability to do "quota -v", etc..
  7035.  
  7036. ------------------------------
  7037.  
  7038. Subject: 8.10  Why can't I start Aserver?
  7039.  
  7040. Often this is because "localhost" isn't configured in DNS. Try:
  7041.  
  7042.   $ nslookup localhost
  7043.  
  7044. If that command fails, you will want to have an entry added to your
  7045. name server(s) or /etc/hosts file for "localhost.your.particular.domain"
  7046. pointing at 127.0.0.1.
  7047.  
  7048. ------------------------------
  7049.  
  7050. Subject: 8.11  How can I get a daemon to successfully start from an rc
  7051.                script?
  7052. Updated: 03/08/01
  7053.  
  7054. When /sbin/rc exits, all child processes, including daemons that have not
  7055. yet daemonized themselves (called setsid()), will be killed.
  7056.  
  7057. To ensure that a process is not killed, invoke it via nohup(1).  This
  7058. will
  7059. work for all programs, not just daemons.
  7060.  
  7061. Another trick is to start the command via at(1), as follows:
  7062.  
  7063.   /usr/bin/at now <<EoF
  7064.   mydaemon
  7065.   EoF
  7066.  
  7067. ------------------------------
  7068.  
  7069. Subject: 8.12  How do I convert the uname string to a model string?
  7070. Updated: 04/09/01
  7071.  
  7072. BTW, if you're running 9.00 or later, on hardware that was released in
  7073. '92
  7074. or later, you can use the model(1) command to get an expanded model
  7075. string.  For example:
  7076.  
  7077.   $ uname -m
  7078.   9000/829
  7079.   $ model
  7080.   9000/829/K400
  7081.  
  7082. Here are the mappings for older HP9000 Series 800 machines:
  7083.  
  7084.    Model number on the     String returned
  7085.    outside of the box      by uname -m
  7086. =============================================
  7087.         default ----------> 9000/800
  7088.         E25 --------------> 9000/806
  7089.         E35 --------------> 9000/816
  7090.         E45 --------------> 9000/826
  7091.         E55 --------------> 9000/856
  7092.         F10 --------------> 9000/807
  7093.         F20 --------------> 9000/817
  7094.         H20 --------------> 9000/827
  7095.         K400 -------------> 9000/829
  7096.         F30 --------------> 9000/837
  7097.         G30/H30 ----------> 9000/847
  7098.         I30 --------------> 9000/857
  7099.         G40/H40 ----------> 9000/867
  7100.         I40 --------------> 9000/877
  7101.         G50/H50 ----------> 9000/887
  7102.         I50 --------------> 9000/897
  7103.         G70/H70 ----------> 9000/887
  7104.         I70 --------------> 9000/897
  7105.         G60/H60 ----------> 9000/887
  7106.         I60 --------------> 9000/897
  7107.         T500 -------------> 9000/891
  7108.  
  7109. On earlier machines, "9000/800" was returned by "uname -m" when HP-UX
  7110. could not determine the model number of the machine.  This generally
  7111. indicated that the machine was not properly configured.
  7112.  
  7113. On more recent machines (As, Rs, Ls, Ns, etcx..), "uname -m" ALWAYS
  7114. returns "9000/800."  To ascertain the machine's model string you MUST
  7115. use the model command.
  7116.  
  7117. ------------------------------
  7118.  
  7119. Subject: 8.13  Is Perl included with HP-UX?
  7120. Added: 04/09/01
  7121.  
  7122. Yes, HP-UX releases 10.10 through 11.10 are shipped with Perl v4.0.1.8.
  7123. 11.11 comes with Perl 5.005_02.  The perl executable is
  7124. /usr/contrib/bin/perl.  A little known gem of knowledge is that the Perl
  7125. 4
  7126. exectuable that is included with 10.10 through 11.10 is statically
  7127. linked!
  7128. Since the binary is only 532k, you should consider the option of placing
  7129. a copy in /sbin.  That way, if you ever need to boot into single-user
  7130. mode
  7131. to do system maintenance or emergency recovery, you'll have all the power
  7132. of Perl at your disposal!  :-)
  7133.  
  7134. Perl 5.6.0 binaries for 10.20 and 11.x can be obtained from on the
  7135. Liverpool archive.
  7136.  
  7137. ------------------------------
  7138.  
  7139. Subject: 8.14  Why can't I type an '@' character?
  7140.  
  7141. If you do a 'stty -a' and you will see that your 'kill' character is
  7142. set to '@'.  You need to set your 'kill' character to be something
  7143. other than the '@' character by doing something like 'stty kill '^U''.
  7144. You should add this to your .profile or .cshrc file.
  7145.  
  7146. ------------------------------
  7147.  
  7148. Subject: 8.15  Why can't I get my machine into boot admin mode?
  7149.  
  7150. When i reboot my workstation I do not get the "..push and hold the ESCAPE
  7151. key to ..." - why?
  7152.  
  7153. The machine is configured in secure boot mode. To get into boot admin
  7154. mode you will need to remove all bootable media (i.e. disconnect disks,
  7155. LAN, etc.) and then power on - the boot will fail and you can then get
  7156. to boot admin and switch off secure boot mode.
  7157.  
  7158. ------------------------------
  7159.  
  7160. Subject: 8.16  What happened to "less"?
  7161. Updated: 04/05/01
  7162.  
  7163. Use "more" or "pg" instead.  Under HP-UX 10.00 and later, "more" is just
  7164. as robust as "less".  If you really want "less", you can grab it from the
  7165. Liverpool archive.
  7166.  
  7167. ------------------------------
  7168.  
  7169. Subject: 8.17  What should go in my PATH and MANPATH environment
  7170.                variables?
  7171. Updated: 03/05/01
  7172.  
  7173. PATH
  7174. ----
  7175. At least:
  7176.  
  7177.   /usr/bin /usr/contrib/bin /usr/bin/X11 /usr/contrib/X11/bin
  7178.   /usr/contrib/bin/X11 /usr/local/bin
  7179.  
  7180. If you have the HP ANSI C compiler installed:
  7181.  
  7182.   /opt/ansic/bin /opt/langtools/bin /usr/ccs/bin
  7183.  
  7184. And, for system management stuff:
  7185.  
  7186.   /usr/sbin /sbin
  7187.  
  7188. Alternately, you can simply add the following to your .profile:
  7189.  
  7190.   PATH=`cat /etc/PATH`               # for sh or ksh
  7191.   setenv PATH `cat /etc/PATH`        # for csh
  7192.  
  7193. The "/etc/PATH" file is supposed to be updated every time new software
  7194. is installed under /opt/.  /etc/PATH will contain everything mentioned
  7195. above, except for "/usr/sbin" and "/sbin".
  7196.  
  7197. Simply add any additonal command directories you need.  For example:
  7198.  
  7199.   PATH="$HOME/bin:$PATH"
  7200.  
  7201. MANPATH
  7202. -------
  7203. First pull in /etc/MANPATH (works the same way as /etc/PATH):
  7204.  
  7205.   MANPATH=`cat /etc/MANPATH`         # for sh or ksh
  7206.   setenv MANPATH `cat /etc/MANPATH`  # for csh
  7207.  
  7208. Then add any additonal manual directories you need.  For example:
  7209.  
  7210.   MANPATH="$HOME/man:$MANPATH"
  7211.  
  7212. ------------------------------
  7213.  
  7214. Subject: 8.18  Why does the 10.x/11.x cksum command produce a different
  7215.                checksum than the 9.x cksum command?
  7216. Updated: 04/05/01
  7217.  
  7218. The 9.x cksum was defective - it did not correctly implement the POSIX
  7219. spec.  That is understandable, because the POSIX cksum spec does not
  7220. supply a test suite to easily verify an implementation is correct.
  7221.  
  7222. The 10.x/11.x cksum is correct.  Unfortunately that means it can not
  7223. match 9.x cksum.
  7224.  
  7225. Another implementation that did not match POSIX spec was in AIX 3.*; I
  7226. haven't checked AIX 4.* or Solaris.
  7227.  
  7228. Other good implementations (they give the same answer as 10.x/11.x
  7229. cksum):
  7230.   - GNU cksum
  7231.   - Solaris 7/8
  7232.   - HP Software Distributor swpackage program, on both 9.x and 10.x
  7233.  
  7234. ------------------------------
  7235.  
  7236. Subject: 8.19  Can I run Linux on an HP9000 system?
  7237. Updated: 04/22/02
  7238.  
  7239. Yes!
  7240.  
  7241. PA-RISC Linux is an activevly developed (and working) native port of
  7242. Linux
  7243. to the PA-RISC architecture, which will eventually be merged into the
  7244. mainstream kernel tree and into commercial distributions.  HP officially
  7245. supports and endorses the project.  Currently, PA-RISC Linux supports
  7246. practically any HP workstation, as well as the A180 server.  Support for
  7247. Ls and Ns is in the works.  See:
  7248.  
  7249.   o <http://parisc-linux.org/>
  7250.  
  7251. MkLinux was successfully ported to PA-RISC 1.1.  This project has not
  7252. been
  7253. active since '97:
  7254.  
  7255.   o <http://www.openpa.net/other.html#mk>
  7256.  
  7257. There is also an HP9000/300 Linux port that has been merged with the
  7258. Linux/m68k kernel tree as of about Linux 2.1.119.  The homepage for this
  7259. effort is:
  7260.  
  7261.   o <http://www.tazenda.demon.co.uk/phil/linux-hp/>
  7262.  
  7263. ------------------------------
  7264.  
  7265. Subject: 8.20  Can I run *BSD on an HP9000 system?
  7266. Added: 04/18/01
  7267.  
  7268. Yes!
  7269.  
  7270. There are HP9000 ports of both OpenBSD and NetBSD.  Check out the
  7271. following links:
  7272.  
  7273. o Series 700/800 (32-bit only):
  7274.   + <http://www.openbsd.org/hppa.html>
  7275.   + <http://www.netbsd.org/Ports/hp700/>
  7276.  
  7277. o Series 300/400:
  7278.   + <http://www.openbsd.org/hp300.html>
  7279.   + <http://www.openbsd.org/hp300/hp300faq.html>
  7280.   + <http://www.netbsd.org/Ports/hp300/>
  7281.  
  7282. ------------------------------
  7283.  
  7284. Subject: 8.21   What happened to /usr/local?  What are these /usr/contrib
  7285.                 and /opt directories?
  7286. Updated: 04/04/01
  7287.  
  7288. As of HP-UX 10.00, things have been moved around some -- probably for
  7289. the better:
  7290.  
  7291. /opt
  7292.     optional HP software packages like the ANSI C & C++ compilers and
  7293.     debuggers, and the Java[TM] SDK; larger 3rd-party apps (ie - emacs,
  7294.     Perl 5)
  7295. /usr/contrib
  7296.     Unsupported, 3rd-party or public-domain software compiled and
  7297.     maintained by the local IT group on their software depot
  7298.     (ie - nn, gzip & other GNU utils)
  7299. /usr/local
  7300.     workstation-unique software packages that users have installed
  7301.     themselves, or are local to a specific machine.  This directory
  7302.     is world-writable (ack!).
  7303.  
  7304. For more information on the SVR4 filesystem layout, see hier(5).
  7305.  
  7306. ------------------------------
  7307.  
  7308. Subject: 8.22  Is it OK to change root's shell?
  7309. Updated: 04/05/01
  7310.  
  7311. No!  root's shell has to be /sbin/sh, the default setting, or another
  7312. shell that resides on the root filesystem (ie - /sbin/csh).  The /usr
  7313. filesystem isn't mounted in single-user mode, so changing root's shell
  7314. to /usr/bin/ksh, or any other shell not on the root filesystem, can
  7315. potentially cause you serious grief.
  7316.  
  7317. A nice compromise is to add something like the following at the very end
  7318. of /.profile:
  7319.  
  7320.   # if /usr/ is mounted, change our shell to ksh...
  7321.   /usr/bin/true 2>/dev/null && exec /usr/bin/ksh
  7322.  
  7323. ------------------------------
  7324.  
  7325. Subject: 8.23  Why does HP-UX 10 generate copious "Sti_save" syslog
  7326.                messages?
  7327. Updated: 04/05/01
  7328.  
  7329. HP-UX 10 generates a FLOOD of syslog messages that look like this:
  7330.    vmunix: Warning! [82194698 ticks since boot] Sti_save:IteLock not...
  7331.    ...available for 60 seconds
  7332.  
  7333. From what I can gather, these are spurious messages than can be ignored.
  7334.  
  7335. One way to turn them off (any suggestions for others?) is to uncomment
  7336. the "Dtlogin@grabServer:  False" line in {/usr,/etc}/dt/config/Xconfig.
  7337.  
  7338. After this, reset CDE (see question 4.15.2), and you won't see 'em again!
  7339.  
  7340. ------------------------------
  7341.  
  7342. Subject: 8.24  How can I tell which kernel was booted?
  7343. Updated: 01/02/02
  7344.  
  7345. In 11.x, this can be done using the kmpath command (must be root):
  7346.  
  7347.   # /usr/sbin/kmpath
  7348.   /stand/vmunix
  7349.  
  7350. Prior to 11.20, the kmpath command was undocumented.  The 11.20 manpage
  7351. can be viewed online at:
  7352.  
  7353.   o <http://devrsrc1.external.hp.com/STKLI/man/11iv1.5/kmpath_1m.html>
  7354.  
  7355. I don't know how to do ascertain the running kernel in 10.x.  If you
  7356. know of a way to do it, please let me know, and I'll update this item.
  7357.  
  7358. ------------------------------
  7359.  
  7360. Subject: 8.25  What is the equivalent of ldd under HP-UX?
  7361. Updated: 04/05/01
  7362.  
  7363. In 10.x, you can use one of the below methods:
  7364.  
  7365.   o chatr yourprog
  7366.   o odump -sllibload yourprog
  7367.   o _HP_DLDOPTS="-ldd" yourprog
  7368.  
  7369. ldd is actually shipped with HP-UX 11.x, though, in many cases, chatr is
  7370. still a good alternative.
  7371.  
  7372. ------------------------------
  7373.  
  7374. Subject: 8.26  How do I configure a program to automatically start up or
  7375.                shutdown when the system starts up or shuts down?
  7376.  
  7377. In 10.x and 11.00, this is documented in the following files in the
  7378. /usr/share/doc directory:
  7379.  
  7380.  o file_sys.txt
  7381.  o sequence.txt
  7382.  o start_up.txt
  7383.  
  7384. As of 11i, these white papers are no longer available in the
  7385. /usr/share/doc directory.  However, the "10.0 File System Layout"
  7386. white paper can be viewed online at:
  7387.  
  7388.   o <http://docs.hp.com/hpux/onlinedocs/5963-8942/00/00/1-con.html>
  7389.  
  7390. Also refer to rc(1M), init(1M), and inittab(4).
  7391.  
  7392. ------------------------------
  7393.  
  7394. Subject: 8.27  How can I do regular expression matching?
  7395. Added: 04/13/01
  7396.  
  7397. First of all, refer to regexp(5) for the definitions of basic and
  7398. extended
  7399. regular expressions.
  7400.  
  7401. From the command-line
  7402. =====================
  7403. The following commands support basic regular expression matching:
  7404.  
  7405.   o grep(1)
  7406.   o sed(1)
  7407.   o ed(1)
  7408.   o ex(1)
  7409.   o vi(1)
  7410.  
  7411. The following commands support extended regular expression matching:
  7412.  
  7413.   o egrep(1) (grep -E)
  7414.   o awk(1)
  7415.  
  7416. Perl supports Perl regular expressions, a superset of extended regular
  7417. expressions.
  7418.  
  7419. Programmatically
  7420. ================
  7421. Use regcomp(3C).  Do not use regcmp(3X) or re_comp(3X); these are
  7422. obsolescent and may be removed in a future HP-UX release.
  7423.  
  7424. ------------------------------
  7425.  
  7426. Subject: 8.28  How can I play MP3s?
  7427. Added: 03/29/01
  7428.  
  7429. Use mpg123.
  7430.  
  7431. mpg123 is a real time MPEG Audio Player for Layers 1, 2, and 3.  It can
  7432. play MP3s in stereo on reasonably fast machines.  mpg123 is only for
  7433. non-commercial use.  Precompiled binaries for 10.20 or 11.00 can be
  7434. obtained from the Liverpool archive.
  7435.  
  7436. ------------------------------
  7437.  
  7438. Subject: 8.29  How can I use audio on HP-UX 10.x/11.x without a network?
  7439. Updated: 04/24/01
  7440.  
  7441. The problem is that audio relies on the DCE rpcd, which doesn't start if
  7442. there's no network.  Consequently, the audio server (Aserver) fails to
  7443. start either.
  7444.  
  7445. You can always access /dev/audio directly, but you won't be able to
  7446. use HP's audio software, such as the Audio Control Panel or the Audio
  7447. Editor.  Furthermore, this method is not documented by HP.
  7448.  
  7449. To get Aserver to work, you basically have to make the machine believe
  7450. it's on a network.  You have to get the lan interface up; loopback is
  7451. not enough.  Plugging a transceiver into the AUI port is reported to
  7452. work on 715s and 712s.
  7453.  
  7454. Another solution is to restore /usr/audio/*, llbd and libAt.* from a
  7455. 9.x backup tape and replace rpcd with a symbolic link to llbd.  Then,
  7456. you can use audio in much the same way as on HP-UX 9.x.  The only
  7457. problem is that the buttons in the audio_editor don't have any text in
  7458. them, so one has to guess which one does what.
  7459.  
  7460. Unfortunately, SD-UX doesn't work with this configuration, which makes it
  7461. impossible to install or remove SD packages.  To fix this, you have to
  7462. recreate the standard RPC symlinks - link /usr/bin/rpcd to
  7463. /opt/dce/sbin/rpcd,
  7464. and /opt/dce/sbin/rpcd to dced.
  7465.  
  7466. Michael Piotrowski created a page to collect solutions for this problem:
  7467.  
  7468.   o <http://www.linguistik.uni-erlangen.de/~mxp/audio>
  7469.  
  7470. ------------------------------------------------------------------------------
  7471.  
  7472. Subject: 8.30  Is there a tool to trace system calls?
  7473.  
  7474. Yes, for HP-UX 11.x, the tusc command provides system call tracing
  7475. functionality.  It is available from:
  7476.  
  7477.   o <ftp://ftp.cup.hp.com/dist/networking/tools/>
  7478.  
  7479. Tusc is made available by the good graces of Chris Bertin of HP.
  7480.  
  7481. For earlier HP-UX releases, the situation is murkier.  A system call
  7482. tracing program called trace is available from Interworks, as well as the
  7483. Liverpool archive.  However, this program only works on some systems
  7484. (mostly 700s).  The author, Kartik Subbarao. has declared trace obsolete
  7485. in favor of tusc, and has discontinued further development and bug fixes.
  7486.  
  7487. ------------------------------
  7488.  
  7489. Subject: 8.31  What OS capacity limits exist?
  7490. Updated: 12/11/02
  7491.  
  7492. Attribute               10.01          10.10
  7493. ==================================================
  7494. Physical RAM:           2 GB              3.75 GB
  7495. Shared Memory:          1.75 GB           1.75 GB
  7496. Process Data Space:     0.9 GB              1.9 GB
  7497. # File Descriptors:     60,000            60,000
  7498. # User Ids:             60,000            60,000
  7499. CPUs:                   ?                 ?
  7500.  
  7501.             10.20,
  7502. Attribute               32-bit 11.0/11i      64-bit 11.0/11i v1.x
  7503. ===============================================================
  7504. Physical RAM:           3.75 GB           256 GB
  7505. Shared Memory:          2.75 GB           512 GB?
  7506. Process Data Space:     1.9 GB            256 GB?
  7507. # File Descriptors:     60,000            60,000
  7508. # User Ids:             2,147,483,647     2,147,483,647
  7509. CPUs:                   16?               32/64
  7510.             
  7511. Attribute               11i v2.x
  7512. ======================================
  7513. Physical RAM:           1 TB
  7514. Shared Memory:          2 TB?
  7515. Process Data Space:     1 TB?
  7516. # File Descriptors:     60,000
  7517. # User Ids:             2,147,483,647
  7518. CPUs:                   128
  7519.  
  7520. Beginning with Release 10.10, the supported sizes for files and file
  7521. systems on HP-UX have gradually increased.  Below is a summary of the
  7522. supported sizes for Releases 10.01 through 11i.
  7523.  
  7524. NOTE:  Although it may be possible to create files or file systems larger
  7525. than these documented limits, such files and file systems are not
  7526. supported, and the results of using them may be unpredictable.
  7527.  
  7528. HFS Supported Sizes
  7529. ===================
  7530. The maximum file and filesystem sizes supported by HFS are listed in the
  7531. table below.
  7532.  
  7533.   TABLE 1.  HFS Supported File and File System Sizes
  7534.   ====================================
  7535.   HP-UX          File      Filesystem
  7536.   Release        Size      Size
  7537.   ====================================
  7538.    10.01          2 GB        4 GB
  7539.    10.10          2 GB      128 GB
  7540.   *10.20,11.x   128 GB      128 GB  
  7541.   ====================================
  7542.  
  7543.   * On these releases it is possible to exceed the 128 GB limit to 256
  7544.     GB, but it is not supported.
  7545.  
  7546. JFS (VxFS) Supported Sizes
  7547. ==========================
  7548. The maximum file and file system sizes supported by the Journaled File
  7549. System (JFS), also known as the VERITAS File System (VxFS), are listed in
  7550. the table below.
  7551.  
  7552.   TABLE 2.  VxFS Supported File and Filesystem Sizes
  7553.   ==============================================================
  7554.   HP-UX      JFS           Disk Layout     File      Filesystem
  7555.   Release    Version       Version         Size      Size
  7556.   ==============================================================
  7557.    10.01     -             Version 2**      2 GB        4 GB
  7558.  
  7559.    10.10     -             Version 2**      2 GB      128 GB
  7560.  
  7561.    10.20     Version 3.0   Version 2        2 GB      128 GB
  7562.    10.20     Version 3.0   Version 3**    128 GB      128 GB
  7563.  
  7564.    11.00     Version 3.1   Version 2        2 GB      128 GB
  7565.   *11.00     Version 3.1   Version 3**      1 TB        1 TB
  7566.  
  7567.    11.00     Version 3.3   Version 2        2 GB      128 GB
  7568.    11.00     Version 3.3   Version 3**      1 TB        1 TB
  7569.    11.00     Version 3.3   Version 4        1 TB        1 TB
  7570.  
  7571.    11i       Version 3.3   Version 2        2 GB      128 GB
  7572.    11i       Version 3.3   Version 3        2 TB        2 TB
  7573.    11i       Version 3.3   Version 4**      2 TB        2 TB
  7574.    11i v2.x  Version ?     Version ?        4 TB        4 TB      
  7575.   ==============================================================
  7576.   * PHKL_22719 is needed to avoid mount problems if extending
  7577.     or creating file systems beyond 128 GB.
  7578.  
  7579.   ** default disk layouts for particular HP-UX Releases.
  7580.  
  7581. Related JFS Patches
  7582. ===================
  7583. On HP-UX 10.20, several patches have been introduced to prevent the
  7584. creation or extension of JFS filesystems beyond the supported maximum 
  7585. size of 128 GB:
  7586.  
  7587.   o PHCO_23035 - extendfs_vxfs(1M) cumulative patch
  7588.   o PHCO_23036 - fsadm_vxfs(1M) cumulative patch
  7589.   o PHCO_23037 - mkfs_vxfs(1M) cumulative patch
  7590.  
  7591. Corresponding patches for HP-UX 11.00 and 11i are being prepared.  The 
  7592. patch numbers were not known when this document was written.  For the 
  7593. latest information about available patches, see the IT Resource Center:
  7594.  
  7595.   o <http://ITresourcecenter.hp.com/>
  7596.  
  7597. If you have a support contract, select Browse Support Info By Product. 
  7598. If
  7599. you do not have a support contract, select Individual Patches to search
  7600. the Patch Database.  Then select HP-UX Patches, select 11.00 or 11i or
  7601. 11.11 as the OS version, and search for the keyword JFS to get a list of
  7602. JFS patches.
  7603.  
  7604. NOTE: You must register with the IT Resource Center to search the
  7605.       patch database
  7606.  
  7607. ------------------------------
  7608.  
  7609. Subject: 8.32  How can I determine how much RAM my system has?
  7610. Updated: 06/14/02
  7611.  
  7612. From SAM
  7613. ========
  7614. 1) goto Performance Monitors -> System Properties -> Memory
  7615. 2) check Clock Frequency: value
  7616.  
  7617. From the command-line
  7618. =====================
  7619. If you are root, you can use adb to query the kernel:
  7620.  
  7621.   # echo "memory_installed_in_machine/D" | adb -k /stand/vmunix /dev/mem
  7622. | \
  7623.     tail -1 | awk '$2 > 0 { print $2 / 256 }'
  7624.  
  7625. Or if /etc/dmesg is still current, you can grep it:
  7626.  
  7627.   $ /etc/dmesg | grep "real mem" | tail -1 | \
  7628.     awk '$4 > 0 { print $4 / 1048576 }'
  7629.  
  7630. A few more methods that can be used (as root only):
  7631.  
  7632. o As of 10.x, the following SAM command will show memory in MB:
  7633.     # /usr/sam/lbin/getmem
  7634.   However, getmem reportedly does not work on systems with >512 MB of
  7635. RAM,
  7636.   and it is not supported by HP.
  7637.  
  7638. o It's painfully slow, but the following cute method will also give the
  7639.   total MB:
  7640.     # expr `wc -c /dev/mem | cut -d' ' -f1` / 1048576
  7641.  
  7642. o The following creative method suggested by Siem Korteweg
  7643.   <siem@xs4all.nl> prints the size in MB but works only on 10.x:
  7644.     # dd if=/dev/mem of=/dev/null bs=1024k 2>&1 | grep in | cut -d+ -f1
  7645.  
  7646. Programmatically
  7647. ================
  7648. Here is a short program that will print the system's RAM size (can be run
  7649. by any user):
  7650.  
  7651. /*  mem.c - To compile: cc +DAportable -o mem mem.c  */
  7652. #include <errno.h>
  7653. #include <stdio.h>
  7654. #include <sys/param.h>
  7655. #include <sys/pstat.h>
  7656. #define BYTES_PER_MB 1048576
  7657. main()
  7658. {
  7659.   struct pst_static pst;
  7660.   union pstun pu;
  7661.  
  7662.   pu.pst_static = &pst;
  7663.   if ( pstat( PSTAT_STATIC, pu, (size_t)sizeof(pst), (size_t)0, 0 ) != -1
  7664. ) {
  7665.     printf( "Physical RAM = %ld MB\n", 
  7666.       (long)( (double)pst.physical_memory * pst.page_size / BYTES_PER_MB
  7667. ) );
  7668.     exit( 0 );
  7669.   } else {
  7670.     perror("pstat_getstatic");
  7671.     exit( errno );
  7672.   }
  7673. }
  7674.  
  7675. ------------------------------
  7676.  
  7677. Subject: 8.33  What are the various revisions of PA-RISC?
  7678. Updated: 01/23/03
  7679.  
  7680. Rev  Bits    Rel  Models
  7681. ==========================================================================
  7682. 1.0  32-bit  '86  TS1, NS, NS1, CS1, NS2, PCx
  7683. 1.1  32-bit  '89  PA7000 (PCx-S), PA7100 (PCx-T), PA7150 (PCx-T+),
  7684.                   PA7100LC (PCx-L), PA7200 (PCx-T'), PA7300LC (PCx-L2)
  7685. 2.0  64-bit  '94  PA8000 (PCx-U), PA8200 (PCx-U+), PA8500 (PCx-W),
  7686.                   PA8600 (PCx-W+),PA8700 (PCx-W2), PA8800, PA8900
  7687.  
  7688. o The PA8700 is scheduled for release in the first half of 2001.
  7689. o The PA8800 is slated for release in the first half of 2002.
  7690. o The PA8900 is slated for release in the first half of 2003, and will
  7691.   probably be the final processor in the PA-RISC family.
  7692.  
  7693. o HP-UX 10.10 is the last supported release for all PA-RISC 1.0 systems.
  7694. o HP-UX 10.20 is the first supported release for PA-RISC 2.0 systems.
  7695. o HP-UX 11.00 is the first release to utilize the 64-bit capacity of
  7696.   PA-RISC 2.0.
  7697.  
  7698. PA-RISC architecture evolution
  7699. ==============================
  7700. When the original PA-RISC 1.0 Architecture was designed in the early
  7701. eighties, its goal was to be a single architecture that efficiently spans
  7702. Hewlett-Packard's three computer lines: the HP3000 commercial
  7703. minicomputers, the HP9000 technical workstations and servers, and the
  7704. HP1000 realtime controllers. Before introduction, the program was
  7705. codenamed SPECTRUM.  At introduction in 1986, it was known as HP's
  7706. Precision Architecture, HP-PA, or just PA.  Subsequently, the
  7707. architecture was called PA-RISC, with the first version of the
  7708. architecture known as PA-RISC 1.0.
  7709.  
  7710. Since its introduction, the PA-RISC architecture has remained remarkably
  7711. stable. Only minor changes were made over the next decade, to facilitate
  7712. higher performance in floating-point and system processing. When PA-RISC
  7713. 1.0 was designed, floating-point performance was not essential for the
  7714. majority of the HP computer systems targeted at that time. Hence, the
  7715. architecture defined floating-point support as optional coprocessor
  7716. instructions, without emphasizing high performance. In 1989, driven by
  7717. the performance needs of the HP9000 technical workstation line, PA-RISC
  7718. 1.1 was introduced. This included additional floating-point capabilities,
  7719. such as more floating-point registers, doubling the amount of register
  7720. space for single-precision floating-point numbers, and introducing
  7721. combined operation floating-point instructions[3]. These floating-point
  7722. features enabled higher performance in technical computations, including
  7723. graphics, where single-precision floating-point numbers are extensively
  7724. used.
  7725.  
  7726. In the system area, PA-RISC 1.1 architectural extensions were made to
  7727. speed up the processing of performance-sensitive abnormal events, such as
  7728. misses in the address translation cache (also called the TLB). Such
  7729. architectural changes are only visible to the operating system, and do
  7730. not affect any applications programs. Minor system changes have been
  7731. added to the three editions of the PA-RISC 1.1 architecture, known as
  7732. editions 1, 2 and 3, respectively, of the architecture manual.
  7733.  
  7734. PA-RISC 1.1 also added bi-endian support. Previously, PA-RISC 1.0 was a
  7735. consistently big endian machine, but in PA-RISC 1.1, support for little
  7736. endian was also provided by means of a mode bit.
  7737.  
  7738. The PA-RISC 2.0 architecture represents the first time that user-visible
  7739. changes have been made to the core integer architecture. In addition to
  7740. support for 64-bit integer data and 64-bit flat addresses, other
  7741. user-visible changes have also been added to enhance the performance of
  7742. new user workloads. For example, Multimedia Acceleration eXtensions (MAX)
  7743. have been added to speedup multimedia processing by software running on
  7744. the main processor, rather than on separate optional hardware. Some
  7745. additional floating-point and system-level changes have also been added.
  7746.  
  7747. (Excerpt from "64-bit and Multimedia Extensions in the PA-RISC 2.0
  7748.  Architecture" by Ruby Lee <rblee@ee.princeton.edu> and Jerry Huck
  7749.  <huck@cup.hp.com>, (c)Hewlett-Packard, 01/15/97)
  7750.  
  7751. For further information on PA-RISC processors, see the below URLs:
  7752.  
  7753.   o <http://cpus.hp.com/technical_references/parisc.shtml>
  7754.   o
  7755. <http://www.hp.com/products1/itanium/infolibrary/information/pa-risc_illuminata.pdf>
  7756.  
  7757. For a description of considerations for 32-bit and 64-bit program
  7758. development, including cross-platform development, see:
  7759.  
  7760.   o <http://devrsrc1.external.hp.com/STK/crossplatform.html>
  7761.  
  7762. You can expect programs compiled on a particular release of HP-UX to run
  7763. on that release, or on any later release, but NOT on an earlier release.
  7764. Hence, a program compiled on 11.00 can not be expected to run on 10.20.
  7765.  
  7766. The HP compilers' scheduling option, +DS xxx, does not affect the
  7767. compatibility of the generated object code.  It affects only how the
  7768. optimizer schedules instructions that have long latencies, so it is
  7769. usually to your advantage to schedule the code for the fastest machine
  7770. currently shipping, even if you are generating code for an earlier
  7771. architecture.
  7772.  
  7773. HP will gradually transition its servers from PA-RISC to the new
  7774. Itanium[TM] processor family (IPF), also known as IA-64, starting in mid
  7775. 2001.  The IA-64 architecture was co-developed by Intel and HP, and so it
  7776. inherits many features (and instructions) from PA-RISC.  PA-RISC binaries
  7777. will run on IA-64 systems.  
  7778.  
  7779. Intel's Itanium roadmap can be viewed at:
  7780.  
  7781.   o <http://www.openvms.org/hp/intel_itanium_roadmap.jpg>
  7782.  
  7783. For more information on Itanium[TM], visit:
  7784.  
  7785.   o <http://www.hp.com/products1/itanium/>
  7786.  
  7787. Information on transitioning to IA-64 is available as part of the HP-UX
  7788. 11.x Software Transition Kit:
  7789.  
  7790.   o <http://devrsrc1.external.hp.com/STK/>
  7791.  
  7792. ------------------------------
  7793.  
  7794. Subject: 8.34  How do I find the clock speed of my system's CPU(s)?
  7795. Updated: 04/03/01
  7796.  
  7797. From the command-line
  7798. =====================
  7799.   # echo "itick_per_usec/D" | adb /stand/vmunix /dev/mem | tail -1
  7800.   itick_per_usec: 552
  7801.  
  7802. From SAM
  7803. ========
  7804.   o Go to Performance Monitors -> System Properties -> Memory
  7805.   o Check Clock Frequency: value
  7806.  
  7807. ------------------------------
  7808.  
  7809. Subject: 8.35  How can I view/print PDF files?
  7810. Added: 04/16/01
  7811.  
  7812. You must install the HP-UX version of Adobe Acrobat Reader, which can be
  7813. downloaded for free from:
  7814.  
  7815.   o <ftp://ftp.adobe.com/pub/adobe/acrobatreader/unix/>
  7816.  
  7817. or:
  7818.  
  7819.   o <http://www.adobe.com/products/acrobat/readstep2.html>.
  7820.  
  7821. ------------------------------
  7822.  
  7823. Subject: 8.36  How do I read an SGI-written tar format DDS tape?
  7824.  
  7825. The secret (at least in this case) is to byte-swap the tape before
  7826. passing it to tar:
  7827.  
  7828.   # dd if=/dev/rmt/0m conv=swab | tar -xvf -
  7829.  
  7830. Byte swapping is believed to only be necessary if the device which
  7831. created the tape was a swapping one (swapping tape devices are the
  7832. default on IRIX 4, but not in IRIX 5).  One can use /dev/nrtapens on
  7833. either system to produce tapes which are not byte-swapped.
  7834. If the SGI is running Irix 5.0x and above, a large (512k) block
  7835. size is used:
  7836.  
  7837.   # dd if=/dev/rmt/0m ibs=512k obs=10k| tar -xvf -
  7838.  
  7839. ------------------------------
  7840.  
  7841. Subject: 8.37  Is the Euro supported?
  7842. Added: 04/17/01
  7843.  
  7844. 11i, as well as later 11.00 refresh releases, includes Euro support.
  7845.  
  7846. Euro support can be added to 10.20 or 11.00 by installing a set of
  7847. patches.  These patches are listed at:
  7848.  
  7849.   o <http://software.hp.com/products/EURO/>
  7850.  
  7851. ------------------------------
  7852.  
  7853. Subject: 8.38  How can I view various Windows-format files (Word docs,
  7854.                Excel spreadsheets, etc..) on an HP-UX system?
  7855. Added: 04/17/01
  7856.  
  7857. There is an excellent product called Quick View Plus[R] that is made by
  7858. IntraNet Solutions (INSo).  You can purchase a single copy of Quick View
  7859. Plus for HP-UX from IntraNet Solutions.  The cost is $59.00 and annual
  7860. support can be purchased for an additional $8.85.  Support provides
  7861. technical assistance and any product enhancements for a 12-month period.
  7862. Call INSo if you are interested in purchasing; they accept credit cards
  7863. or purchase orders:
  7864.  
  7865.   Laura Pierce
  7866.   Corporate Sales
  7867.   IntraNet Solutions
  7868.   800.989.9774 x2090
  7869.   952.903.2090
  7870.   952.829.5424 fax
  7871.   <mailto:laura.pierce@intranetsolutions.com>
  7872.   <http://www.intranetsolutions.com/>
  7873.  
  7874. ------------------------------
  7875.  
  7876. Subject: 8.39  How is the system load average, as reported by the uptime
  7877.                and top commands, calculated?
  7878. Added: 04/17/01
  7879.  
  7880. The load average is the average number of processes in the queue waiting
  7881. for CPU time, over the last 1, 5, and 15 minutes.
  7882.  
  7883. ------------------------------
  7884.  
  7885. Subject: 8.40  Where can I get HP9000 firmware updates?
  7886. Added: 04/19/01
  7887.  
  7888. Firmware updates can be downloaded from the HP ITRC (see question 4.2.1.3
  7889. for info on the ITRC).  Go to:
  7890.  
  7891.   maintenance and support ---> patching: individual patches ---> firmware
  7892.  
  7893. Check the "CPU patches" checkbox, before clicking the "SEARCH" button.
  7894.  
  7895. ------------------------------
  7896.  
  7897. Subject: 8.41 Where can I look up HP part numbers?
  7898. Added: 12/18/01
  7899.  
  7900. Go to the HP PartSurfer web site:
  7901.  
  7902.   o <http://partsurfer.hp.com/>
  7903.  
  7904. or purachase the HP Service Parts Information (HP-SPI) CD-ROM:
  7905.  
  7906.   o <http://partsurfer.hp.com/hp-spi/>
  7907.  
  7908. Once you know the part numbers, you can order parts from the HP Parts
  7909. Direct web site:
  7910.  
  7911.   o <http://partsdirect.hp.com/>
  7912.  
  7913. ------------------------------
  7914.  
  7915. Subject: 8.42 How can I create a /dev/zero special file?
  7916. Updated: 10/14/02
  7917.  
  7918. Prior to 11.11, HP-UX did not come with the special device file
  7919. /dev/zero.
  7920. However, it is possible to create one in 11.0 using the following
  7921. command:
  7922.  
  7923.   # mknod /dev/zero c 3 4
  7924.  
  7925. Of course, use of the device file on an 11.0 system is unsupported by HP.
  7926.  
  7927. In conjunction with the dd command, /dev/zero can be used to fill a file
  7928. with a given number of the '\0' (nul) character. For example, to create a
  7929. 1 MB file named "foo" full of nul characters, use the command:
  7930.  
  7931.   $ dd bs=1024k count=1 if=/dev/zero of=foo
  7932.  
  7933. Note the same thing can be accomplished in 10.x using the prealloc(1)
  7934. command as follows:
  7935.  
  7936.   $ prealloc foo 1048576
  7937.  
  7938. Note, filling a file with zeroes is not a secure way to wipe file data 
  7939. from disk.  For this, you must use a utility such as 'shred', which is
  7940. part of the GNU fileutils package.
  7941.  
  7942. A device file with slightly similar behavior to /dev/zero can be created
  7943. on 10.x as follows:
  7944.  
  7945.   # mknod /dev/full c 3 3
  7946.  
  7947. Reading from this device will always succeed and report that the
  7948. requested number of bytes were read. However, no data will actually be
  7949. copied to the read buffer.
  7950.  
  7951. ------------------------------
  7952.  
  7953. Subject: 8.43  Why is tail's output truncated for large amounts of input?
  7954. Added: 05/02/02
  7955.  
  7956. From the tail(1) manpage:
  7957.  
  7958.   WARNINGS: Tails relative to end-of-file are stored in a 20-Kbyte
  7959. buffer,
  7960.             and thus are limited in length.  Therefore, be wary of the
  7961.             results when piping output from other commands into tail.
  7962.  
  7963. For HP-UX 11.11, the 20K limitation is corrected by PHCO_24707.  For
  7964. HP-UX
  7965. 11.0 and earlier, GNU tail, part of the GNU textutils package, can be
  7966. used
  7967. instead.
  7968.  
  7969. ------------------------------
  7970.  
  7971. Subject: 8.44  What commands or scripts exist for gathering and
  7972. summarizing
  7973.                system information?
  7974. Updated: 08/14/02
  7975.  
  7976. If Ignite-UX is installed, the print_manifest command provides a good
  7977. amount of information, including model, serial number, device info, swap
  7978. & LVM info, IP and kernel parameters, and installed filesets. 
  7979.  
  7980.   # /opt/ignite/bin/print_manifest
  7981.  
  7982. Ignite-UX comes preinstalled on newer boxes, or the latest version can be
  7983. obtained for free from:
  7984.  
  7985.   o <http://software.hp.com/products/IUX/>
  7986.  
  7987. If you're running 11.20 or later, the new machinfo command provides
  7988. similar information:
  7989.  
  7990.   # /usr/contrib/bin/machinfo
  7991.  
  7992. ------------------------------
  7993.  
  7994. Subject: 8.45  How can I convert numbers from one base to another?
  7995. Added: 05/03/02
  7996.  
  7997. You can use adb(1) to convert decimal to hexadecimal and hexadecimal to
  7998. decimal as follows:
  7999.  
  8000. To convert decimal 127 to hex:
  8001.  
  8002.   $ echo '0d127=X' | adb
  8003.  
  8004. You should receive the following output:
  8005.  
  8006.   7F
  8007.  
  8008. To convert hex 7F to decimal:
  8009.  
  8010.   $ echo '0x7f=D' | adb
  8011.  
  8012. You should receive the following output:
  8013.  
  8014.   127
  8015.  
  8016. Alternatively, the 'typeset' and 'set' shell builtins can be used to do
  8017. base conversions.  See sh-posix(1) or ksh(1).
  8018.  
  8019. ------------------------------
  8020.  
  8021. Subject: 8.46  What are the machine ID and serial number used for?
  8022. Added: 05/03/02
  8023.  
  8024. The machine (or software) ID # is not the same as the system serial #. 
  8025. Here is my attempt at summarizing what the two #'s mean and how they can
  8026. be obtained:
  8027.  
  8028. Machine ID #
  8029. ============
  8030. This number uniquely identifies a machine.  It is usually 10 digits. It
  8031. is used by HP and some 3rd party vendors for associating a software 
  8032. license with a particular machine. The number is stored on the system
  8033. board and can only be changed by an HP support technician.  It can be
  8034. obtained using one of the following methods:
  8035.  
  8036.   $ uname -i     # standard method
  8037.  
  8038.   $ getconf CS_MACHINE_IDENT     # 11.11 and later only
  8039.  
  8040.   # print_manifest | grep "Software ID:"     # if Ignite-UX is installed
  8041.                                              # (must be root)
  8042.  
  8043. According to Dave Peter <dave.peter@eu.citrix.com>, some older
  8044. workstations (735s for example) do not have unique machine ID #s.
  8045.  
  8046. System Serial #
  8047. ==============
  8048. I don't think this number is unique among all HP systems. I'm guessing
  8049. that it's at least unique only among systems with the same model #.
  8050. Unlike the machine ID #, it is not stored on the system board.  In fact,
  8051. on older machines and non-factory-installed machines, it is not stored
  8052. anywhere on the system, even on disk.
  8053.  
  8054. On more recent factory-Ignited machines (As, Ls, Ns, etc..), the serial
  8055. number is stored in the file
  8056. '/var/opt/ignite/local/manifest/manifest.seed'
  8057. You can check if the serial number is stored in this file by executing
  8058. the
  8059. following command as root:
  8060.  
  8061.   # print_manifest | grep "Serial number:"
  8062.  
  8063. If the above command doesn't produce any output, you'll have to find the
  8064. serial number the old-fashioned way. Look for it in the documents that
  8065. shipped with the machine or on a sticker somewhere on the machine itself.
  8066. Once you've found the serial number, use the following undocumented
  8067. method
  8068. to store it, along with your company's name, in the 'manifest.seed' file:
  8069.  
  8070.   # echo 'SERIAL xxxxxxxxxx'
  8071. >>/var/opt/ignite/local/manifest/manifest.seed
  8072.   # echo 'CUSTOMER "My Company, Inc."' \
  8073.     >>/var/opt/ignite/local/manifest/manifest.seed
  8074.  
  8075. Now give 'print_manifest' another try.  You should see the serial # and
  8076. your company's name in the output.
  8077.  
  8078. Another command that is supposed to print the serial # on 11.11 and later
  8079. is:
  8080.  
  8081.   # getconf CS_MACHINE_SERIAL
  8082.  
  8083. However, I have not been able to get this command to print anything other
  8084. than a blank line. It apparently does not read from the 'manifest.seed' 
  8085. file is used by Ignite-UX.
  8086.  
  8087. ---
  8088.  
  8089. If you have a system which does not support FRU IDs (currently every
  8090. system
  8091. except the N- and L-Class) take a look into the predictive configuration.
  8092. The serial no. should be entered there. On a V2500/V2600 you can execute
  8093. the
  8094. command 'jf-ccmd_info' on the TestStation.
  8095.  
  8096. ------------------------------
  8097.  
  8098. Subject: 8.47  How can I tell what commands SAM is executing under the
  8099.                hood?
  8100. Added: 07/08/02
  8101.  
  8102. From within SAM, select the 'View SAM Log' option to view part or all of
  8103. the SAM log file at varying levels of detail. The log viewer can also be
  8104. accessed by executing '/usr/sam/bin/samlog_viewer'.
  8105.  
  8106. ------------------------------
  8107.  
  8108. Subject: 8.48  How can I view a file in octal or hexadecimal?
  8109. Added: 07/08/02
  8110.  
  8111. For octal, use: 
  8112.  
  8113.   $ od -b file
  8114.   
  8115. For hexadecimal, use:
  8116.   
  8117.   $ xd -b file
  8118.  
  8119. ------------------------------
  8120.  
  8121. Subject: 8.49  How do I configure the kernel to write corefiles as
  8122.                core.<pid>?
  8123. Added: 07/24/02
  8124.  
  8125. If you are using 11.00 or later, set the 'core_addpid' kernel parameter
  8126. to a non-zero value. The kernel will now create corefiles as core.<pid>.
  8127. SAM can be used to easily modify kernel paramters.  Note, a reboot will
  8128. be necessary.
  8129.  
  8130. ------------------------------
  8131.  
  8132. Subject: 8.50  How do I analyze a system crash dump?
  8133. Added: 07/24/02
  8134.  
  8135. The tool to read them is called q4, although you can also get some info
  8136. from adb by going into the the directory and running:
  8137.  
  8138.   # echo "msgbuf+8/s" | adb -m vmunix .
  8139.  
  8140. Don't forget the dot on the end :-)
  8141.  
  8142. If you really want to learn as much as possible for a customer about the
  8143. HP-UX kernel, and so gain some insight as to what's going on inside a
  8144. dump, then the best thing is to take the "Inside HP-UX" course from HP;
  8145. it's course number is H5081S.
  8146.  
  8147. The normal way to deal with crash dumps is to have an HP support
  8148. contract,
  8149. and then get their Responce Center to have a look at the dump, ascertain
  8150. if it's a known problem, and if so tell you which patch(es) you need to
  8151. apply.
  8152.  
  8153. Analyzing a crash dump takes a great deal of experience, knowledge and
  8154. access to the source code for HP-UX and a large data mine full of
  8155. similar crash dumps. The msgbuf will say something like:
  8156.  
  8157.   data segmentation violation
  8158.  
  8159. which means: the kernel made a mistake and a pointer to an integer has an
  8160. odd address (must be an even address). However, this is of no use until
  8161. you try to unwind why the kernel made this mistake, look at the source
  8162. code to see if a fix has been made, and finally recommend a patch.
  8163.  
  8164. Here are a few reasons that you'll see in msgbuf (and also
  8165. /etc/shutdownlog):
  8166.  
  8167.   freeing free frag
  8168.   freeing free inode
  8169.  
  8170. This means severe filesystem corruption exists on the disk (not to be
  8171. confused with I/O errors unless the error is undetected).
  8172.  
  8173.   HPMC
  8174.  
  8175. This is a hardware failure and a board will have to be replaced.
  8176. Determining which board is actually easier than finding a patch for a
  8177. software problem.
  8178.  
  8179. The vast majority of crash mistakes have been corrected through patches,
  8180. so you can save your self a lot of time by applying the complete set of
  8181. patch bundles from your SupportPlus CDROM. Any CD from the past year is a
  8182. good choice. Or you can download the latest SupportPlus patch bundles
  8183. from:
  8184.  
  8185.   o <http://software.hp.com/SUPPORT_PLUS/>
  8186.  
  8187. ------------------------------
  8188.  
  8189. Subject: 8.51  Is HP-UX free for non-profit users (students, hobbyists,
  8190.                etc..)?
  8191. Updated: 01/10/03
  8192.  
  8193. In the past, if you owned an HP-UX workstation (series 700) system, HP-UX
  8194. 11.0 media could be obtained for free as part of HP's Easy Setup
  8195. initiative. Unfortunately, since Easy Setup functionality is now built
  8196. into the standard HP-UX 11.0 and 11i distributions, free media is no
  8197. longer provided.
  8198.   
  8199. If you own a server (series 800) system, you must either purchase an
  8200. HP-UX media kit from HP, or make a copy of someone else's OS media.
  8201.  
  8202. As for HP-UX licenses, they basically come with the hardware, though for
  8203. used _servers_, a license transfer request form, signed by the buyer and
  8204. the seller, has to be submitted to HP. For 10.20 and later, 
  8205. unlimited-user license upgrades can be obtained for free from HP; see
  8206. 5.14.1 for details.
  8207.  
  8208. ------------------------------
  8209.  
  8210. Subject: 8.52  Where can I obtain a free HP-UX shell account?
  8211. Added: 08/14/02
  8212.  
  8213. The HP/Compaq test drive program allows you to test drive some of the
  8214. latest HP/Compaq hardware running HP-UX or other HP-supported operating
  8215. systems:
  8216.  
  8217.  o <http://www.testdrive.compaq.com/>
  8218.  
  8219. ------------------------------
  8220.  
  8221. Subject: 8.53  How do I grep for an exact word as with "grep -w" in
  8222. Linux?
  8223. Added: 09/12/03
  8224.  
  8225. From 11.11 onwards, the -w option is supported. Otherwise, use:
  8226.  
  8227.   $ grep -E "(^|[^[:alnum:]_])(<word_to_be_searched>)([^[:alnum:]_]|$)"
  8228.  
  8229. or install GNU grep and use its -w option.
  8230.  
  8231. ------------------------------
  8232.  
  8233. Subject: 9. ACKNOWLEDGEMENTS
  8234.  
  8235. ------------------------------
  8236.  
  8237. Subject: 9.1  Contributors
  8238.  
  8239. Thanks to all those who have contributed to this FAQ over the years!
  8240.  
  8241. And special thanks to all former maintainers of this FAQ:
  8242.  
  8243.   o Greg Cagle <greg_cagle@hp.com> of HP, Portland (OR) site, was the FAQ
  8244.     maintainer until Nov '94.
  8245.  
  8246.   o Colin Wynd formerly of HP, was the maintainer until Nov '95.
  8247.  
  8248.   o Craig Gilmore <craig_gilmore@hp.com> of HP, Mountain View (CA)
  8249.     site, was the maintainer until Feb '96.
  8250.  
  8251.   o Alek Komarnitsky <alek@komar.org> got conned into doing this by
  8252.     Greg starting in Aug '96 (where's that six-pack of Hank's?!?  ;-)
  8253.  
  8254.   o Ian P. Springer <ian_springer@hp.com> of HP, Mount Laurel (NJ)
  8255.     site, took over maintaining the FAQ in Mar '01.
  8256.  
  8257. ------------------------------
  8258.  
  8259. Subject: 9.2  Trademarks
  8260.  
  8261. Adobe[R] and Adobe Acrobat[R] are trademarks of Adobe Systems, Inc.
  8262.  
  8263. AIX[R] is a registered trademark of IBM Corp.
  8264.  
  8265. ARPUS and Ce are trademarks of Enabling Technologies Group, Inc.
  8266.  
  8267. DLT is a trademark of Quantum Corp.
  8268.  
  8269. Eudora[R] is a registered trademark of the University of Illinois Board
  8270. of
  8271. Trustees, licensed to QUALCOMM, Inc.
  8272.  
  8273. HP-UX[R] and PA-RISC[R] are registered trademarks of Hewlett Packard
  8274. Company.
  8275.  
  8276. Intel[R] is a U.S. registered trademark of Intel Corp.
  8277.  
  8278. Itanium[TM] is a trademark or registered trademark of Intel Corp. in the
  8279. U.S. and other countries.
  8280.  
  8281. Java[TM], NIS[TM], and Solaris[TM] are trademarks of Sun Microsystems,
  8282. Inc., in the U.S. and other countries.
  8283.  
  8284. Linux[R] is a registered trademark of Linus Torvalds.
  8285.  
  8286. Oracle[R] is a registered U.S. trademark of Oracle Corp., Redwood City,
  8287. CA.
  8288.  
  8289. The Open Group[TM] and X Window System[TM] are trademarks of the Open
  8290. Software Foundation in the U.S. and other countries.
  8291.  
  8292. OSF/1[R], Motif[R], and UNIX[R] are registered trademarks of the Open
  8293. Software Foundation in the U.S. and other countries.
  8294.  
  8295. POSIX[TM] is a trademark of the The Institute of Electrical and
  8296. Electronics Engineers, Inc.
  8297.  
  8298. QUALCOMM[R] is a registered trademark and Qpopper[TM] is a trademark of
  8299. QUALCOMM, Inc.
  8300.  
  8301. Quick View Plus[R] is a registered trademark of IntraNet Solutions, Inc.
  8302.  
  8303. SecurID is a registered trademark of RSA Security Inc.
  8304.  
  8305. Sun[R] and NFS[R] are registered trademarks of Sun Microsystems, Inc., in
  8306. the U.S. and other countries.
  8307.  
  8308. Windows[R] and Windows NT[R] are U.S. registered trademarks of Microsoft
  8309. Corp.
  8310.  
  8311. All other trademarked brand or product names mentioned in this FAQ are
  8312. the
  8313. properties of their respective owners.
  8314.  
  8315. ------------------------------
  8316.  
  8317.  
  8318. __________________________________
  8319. Do you Yahoo!?
  8320. Yahoo! SiteBuilder - Free web site building tool. Try it!
  8321. http://webhosting.yahoo.com/ps/sb/
  8322.