From: john.doe@xyz.com (John Doe)
Newsgroups: comp.sys.hp.hpux,comp.sys.hp.misc,comp.sys.hp.hardware,comp.answers,news.answers Subject: Legacy (pre-10.0) comp.sys.hp.hpux FAQ Followup-To: comp.sys.hp.hpux
Summary: This is the FAQ for the HP-UX operating system, version 9.x and

earlier.
Keywords: HP-UX, HPUX, FAQ, legacy, 9.0, 9.x, 8.0, 8.x, 7.0, 7.x Lines: 5022

Archive-name: hp/hpux-faq
Posting-Frequency: never
Last-modified: 00/10/10
Version: 7.51
URL: http://faqs.org/faqs/hp/hpux-faq/
Copyright: (c)2000 Alek Komarnitsky
Maintainer: nobody

Legacy (pre-10.0) comp.sys.hp.hpux FAQ (Frequently Asked Questions)

[HTML version of this available - pls see section 3.1]

Subject: 1. INTRODUCTION

This article contains the answers to Frequently Asked Questions (FAQ) seen in the Usenet newsgroup comp.sys.hp.hpux. Issues may also be discussed in comp.sys.hp.apps, comp.sys.hp.misc, and comp.sys.hp.hardware. Discussion in this document centers around Hewlett-Packard computer systems running the HP-UX operating system; the focus tends to be on the series 700 workstations, although topics are also applicable to series 800 machines, and to a lesser degree, series 300 and 400 machines. It will be posted about (!) twice a month as the maintainer sees fit (and remembers ... ;-)

This is Copyright 1996-2000 by Alek Komarnitsky. It may be freely redistributed in its entirety provided that this copyright notice is not removed. It may not be sold for profit or incorporated in commercial documents without the written permission of the copyright holder. Permission is expressly granted for this document to be made available for file transfer from installations offering unrestricted anonymous file transfer on the Internet. This article is provided as is without any express or implied warranty. The content of this article is the sole responsibility of the author and contributors, and does not necessarily represent their employers or Hewlett-Packard.

Refer to question 3.1 for details on where to get this FAQ.

This FAQ is written in "minimal digest format". You can skip from one section to the next by pressing ^G in many newsreaders, such as rn, trn and strn (but not nn).

Internet resources are pointed to in this document by URL (Uniform Resource Locator). A simplistic view of URL syntax:

method://server[:port]/pathname

Where "method" can commonly be any of [file|gopher|wais|news|ftp|http]. An example: a file is available via FTP at rtfm.mit.edu/ and the pathname is pub/tmp/test. The URL is:

ftp://rtfm.mit.edu/pub/tmp/test

Questions marked with a "+" are new to this issue, and questions with changes since the last issue are marked by a "!".

Submissions, corrections, comments, input, complaints should be directed to Alek Komarnitsky <alek@komar.org>.

NOTE:
For other questions and answers not included in this FAQ, please check www.dejanews.com before posting to comp.sys.hp.hpux. Many times what you want to know has been asked and answered many times before and you will get your answer quicker searching through www.dejanews.com/.

Helpful Hint: When searching at www.dejanews.com, include the expression '~g comp.sys.hp.hpux' along with your keywords to narrow the search to only the comp.sys.hp.hpux newsgroup.


Subject: 2. TABLE OF CONTENTS

  1. INTRODUCTION
  2. TABLE OF CONTENTS
  3. FINDING INFORMATION 3.1 Where can I get a copy of this FAQ file? 3.2 Courses on HP-UX 3.3 Interex, The International Association of Hewlett-Packard 3.4 InterWorks, the Technical Users Forum of Interex 3.5! Interex HP Users Conferences 3.6! InterWorks Conference 3.7 HP/Works 3.8 HP/Works Conferences 3.9 Japanese HP Computer Users Association 3.11 DutchWorks 3.12 HP-UX freely available software from InterWorks. 3.13 Anonymous FTP Sites for HP-UX, and UNIX related software. 3.14 Where can I get a demo CD with software for HP-UX? 3.15 HP-UX patch information 3.16 How can I send mail to an "hpdesk" address? 3.17 What are the known issues with porting BSD-based programs to HP-UX? 3.18 What periodicals are available that focus on HP-UX? 3.19 Books on HP-UX 3.20 HP-UX Sysadmin Mailing List 3.21 HP-related WWW Sites 3.22 Is there any way to get rid of a frequent poster's posts? 3.23 HP 9000 series 500 Mailing List 3.24 HP 3000 FAQ 3.25 What is HP's involvement in the HP-related newsgroups? 3.26 Who were the former maintainers of the FAQ? 3.27 Where do i get information on HP's Printers? 3.28 Where is the SunOS to HP-UX Porting Guide? 3.29 Where can I get support from HP on the Web? 3.30 HP 9000 Info & Documentation website: http://www.docs.hp.com 3.31 What do I need to do to make my HP system Year 2000 complaint?
  4. THIRD PARTY VENDORS 4.1 Third party vendors for RAM. 4.2 Third party vendors for other things 4.3 Do Seagate 9GB drives working with s700 and s800?
  5. UTILITIES 5.1 ASCII to Postscript converter. 5.2 How do I make perl on HP-UX? 5.3 What is the status of the various gnu items on HP-UX?
  6. X WINDOW SYSTEM, MOTIF, HP-VUE, AND CDE 6.1 X11 libraries (Athena, etc.) and utilities (imake, etc.). 6.2 How can I display an image on the root window with HP-VUE? 6.3 How do I get a scroll bar on hpterms? 6.4 How can I put a title in my hpterm titlebar? 6.5 How come my hpterms keep going away by themselves? 6.6 How come my HP X/Motif clients take a LONG time to display on a Sun? 6.7 How can I get my login stuff to work under HP-VUE? 6.8 How can I get console messages to go to an hpterm? 6.9 What happened to the vuewm key accelerators at VUE 3.0? 6.10 How come I can no longer disable the caps lock key with xmodmap? 6.11 How come vi behaves strangely in xterms at 9.01? 6.12 How do I disable HP-VUE? 6.13 What's a good termcap entry for hpterm? 6.14 My screen is wedged. What should I do? 6.15 How can I get an X client to come up in an alternate workspace? 6.16 How can I get HP-VUE to not override colors? 6.17 How can I override the system default printer in vuepad? 6.18 What about X11R6? 6.19 How can I set user-specific app-defaults in HP-VUE? 6.20 How can I get VUE to share colormap entries? 6.21 How can I disallow root login at the console with VUE? 6.22 id/groups doesn't show secondary groups in dtterm/CDE 6.23 What type of books are available about CDE and oriented toward HP-UX? 6.24 Getting mouse button cut-n-paste to work correctly with HPUX10/CDE
  7. OPERATING SYSTEM 7.1 Can I have filenames longer than 14 chars? 7.2 How can I tell what products have been loaded on my system? 7.3 How do I safely remove software from my system? 7.4 How can I change the order of hostname resolution? 7.5 How come the LOGnnnn files in /usr/adm keep growing and growing? 7.6 How come I can't lock mail or other files on a Sun? 7.7 Why are mail files in /usr/mail are owned by daemon instead of the

    recipient? 7.8 How can I tell if I need more than a 2-user license? 7.9 How can I tell what patches are in the kernel? 7.10 How come I have to hit return after control-d in the Korn shell? 7.11 How do I boot into single user mode? 7.12 How come my Korn shell login hangs? 7.13 How can I avoid those annoying copyright notices on login? 7.14 How can I turn off quota checking? 7.15 How can I track log files and core files? 7.16 How much memory can a process use? 7.17 How can I make a ramdisk? 7.18 What's a good strategy for clearing /tmp and /usr/tmp? 7.19 How can I change the timezone? 7.20 How can I look at what my system is doing? 7.21 How can I partition HP-UX disks on 700s at 9.x? 7.22 How can I print man pages successfully? 7.23 How can I limit core files? 7.24 Can I put more than one backup on DDS with fbackup? 7.25 How can I load multiple patches on a machine at the same time? 7.26 How can I set up an HP-UX workstation as an X terminal? 7.27 What causes "Unable to initialize MI" when running Glance? 7.28 How come I can't get all of my swap space? 7.29 How come I can't start my Aserver? 7.30 How can I get a daemon to successfully start from /etc/rc at 9.x? 7.31 How come my /dev/null keeps getting blown away? 7.32 How can I track network packets? 7.33 How come my processes keep dying at 67M memory usage? 7.34 Is it possible to artificially limit the memory size? 7.35 How come my alt key combinations don't work in emacs X mode? 7.36 I can't get FLEXlm based licensing to work. 7.37 How can I set up group-based FTP access? 7.38 How come my 700 doesn't perform as well as I expect? 7.39 How do I convert the uname string to the model string? 7.40 Problem with ntalkd and it's handling on /etc/utmp. 7.41 How to get an MS-DOS floppy formatted using HP-UX? 7.42 How to get the MAC (station) address programmatically? 7.43 Is there a Transport Level Interface (TLI) interface to TCP on HP-UX? 7.44 How do you disable IP Forwarding 7.45 Does HPUX 9.0 have support for threads? 7.46 How come I can't type an '@' character? 7.47 How come I can't get my machine into boot admin mode? 7.48 What's a quick check to see if a fileset is installed on 9.x? 7.49 How does one package a set of files for HP-UX 9.X? 7.50 Why is ifconfig giving me errors when I try to configure my LAN? 7.51 What new features are in HP-UX 9.07? 7.52 Why do I get the message "Can't start message server..." 7.53 How can I disable new logins? 7.54 What is the maximum filesystem size on a 7xx, running HP-UX 9.X or 10.X? 7.55 What is the current revision of HP-UX? 7.56 What's different between HP-UX 9.x and 10.20? 7.57 What's different between HP-UX 10.01 and 10.2? 7.58 What happened to /usr/local? What's this /usr/contrib directory? 7.59 What happened to "less"? 7.60 Remote mounts and the automounter -- What's new? 7.61 Why does tcsh have problems with 'bind'? 7.62 How do I change the hostname, IP address, DNS Server, etc? 7.63 What should go in my PATH and MANPATH environment variables? 7.64 What happened to 'lpr' and other misc. lp hints? 7.65 Lpstat reports the printer down, even though it's not (?) 7.66 Misc. HP-UX10.x gotcha with root's shell 7.67 cksum command is a bit "squirrely" in HPUX09 7.68 HPUX10 generate copious "Sti_save" syslog messages 7.69 Why does pfs_mount fail with the message 'Not Owner' when I try to use

    it? 7.70 What is the HP equivelent of ldd (determine shared library dependancy)? 7.71 PHKL_4413 breaks xntp 7.72 How do I get rid of these old 10.X patches since I upgraded OS's? 7.73 How to install multiple patches on a 10.x system without rebooting? 7.74 How can I determine how much memory there is in my HP-UX system? 7.75 Can I run Linux on HP PA-RISC hardware? 7.76 How does one have a program auto startup/shutdown when the system does? 7.77 How do I determine the speed and duplexity of my Network Interface?

  8. COMPILERS AND LINKERS 8.1 What's a P-FIXUP error? 8.2 Where is regcmp on HP-UX? 8.3 How come the default C compiler is brain-dead? 8.4 How do I deal with "too many defines"? 8.5 How come I get "_builtin_va_start" undefined when I build with gcc? 8.6 How can I tell if something was built debuggable? 8.7 Is there some kind of problem with using FLT_MIN in ANSI mode? 8.8 What's the deal with _INCLUDE_xxxx_SOURCE? 8.9 How come I need to explicitly specify -I/usr/include? 8.10 Is there an equivalent for getrusage()? 8.11 Why is syslog() call not doing what i want it to? 8.12 Is trace on HP-UX? 8.13 How to get C programs automatically generate stack dumps? 8.14 C++ Email discussion lists 8.15 C Email discussion lists 8.16 Why do I get the error "Initialization:1: missing token-sequence in

    `#assert'" when I compile with the GNU C compiler (gcc).

  9. HARDWARE AND PERIPHERALS 9.1 Are alternate keyboards available for HP workstations? 9.2 How can I play audio CDs on an HP workstation? 9.3 How can I enable the LAN interface on a 700? 9.4 How can I get an Exabyte to work on an HP? 9.5 Is there a "node ID" on 700s? 9.6 How can I get a stuck DDS tape out of the drive? 9.7 How can I use dump with a DDS tape? 9.8 What is the correct major number for DDS drives on 9.x? 9.9 How can I set up /dev/audio to point to the external jack on a 700? 9.10 How can I configure the parallel port handshake on a 700? 9.11 What are the specs of the audio hardware on the 700 series? 9.12 What are the various revisions of PA-RISC? 9.13 How do I read an SGI-written tar format DDS tape? 9.14 Is there a trackball for the 700? 9.15 Where can I get disktab entries for third party disks? 9.16 Do I need to terminate the internal SCSI on a 700? 9.17 What is the largest disk partition I can have at 9.x? 9.18 How can I determine how much RAM I have non-interactively? 9.19 How can I turn off the lpspooler cover page? 9.20 Why are CDROM filenames all UPPERCASE with ;1 attached? 9.21 DIP Switch Settings for HP 7475 Plotter (RS-232) 9.22 Why inserts HP-UX 4 spaces when I print using a parallel port? 9.23 How do I find the speed of my system? 9.24 Why do NCD X-terms hang when trying to run XDMCP from an HP-UX 10.20

    host running CDE? 9.25 How can I use audio on HPUX 10 without a network? 9.26 Why is HP-UX the only OS that doesn't read my RockRidge CD's correctly?

  10. LOOKING FOR... 10.1 Where did xline go at 9.x? 10.2 How about the VUE 2.01 man page help index? 10.3 Is there anything remotely like the Apollo DM available? 10.4 Where can I get SLIP for HP-UX? 10.5 Where can I get pcnfsd on HP-UX? 10.6 Where can I get ppp for HP-UX? 10.7 Where can I get STREAMS for HP-UX? 10.8 What about POSIX threads? 10.9 Where can I get Interviews for HP-UX? 10.10 Where can I get POP for HP-UX? 10.11 Where can I get sudo for HP-UX? 10.12 Where can I get ntalk for HP-UX? 10.13 Where can i get disktab entries for certain seagate drives? 10.14 Where can I get information on a public domain PPP? 10.15 Where can I get generic information about PPP on HP-UX?
  11. HP-UX 10.x INFORMATION 11.1 Can you have Multiple IP addresses on one interface? 11.2 What version of named is running at HP-UX 10.0? 11.3 What documents are available on HP-UX 10.0? 11.4 What is SD-UX and why does it replace /etc/update?
  12. S300/400 SPECIFIC INFORMATION 12.1 When will HPUX 9.10 be available? 12.2 What are the highlights of HP-UX 9.10?

Subject: 3. FINDING INFORMATION


Subject: 3.1 Where can I get a copy of this FAQ file?

HTML versions of this document are available at: http://hpux.cae.wisc.edu/hppd/FAQ/
http://hpux.csc.liv.ac.uk/hppd/FAQ/

You can also get it by e-mail from <mail-server@rtfm.mit.edu>; send the text "send usenet/news.answers/hp/hpux-faq". Or from <majordomo@dutchworks.nl>; send the text:

get hpux-admin HP_FAQ
end

The FAQ is also included with the InterWorks software CD-ROM, the Interex CSL, and the Walnut Creek Internet CD-ROM. Note that these versions were current when the respective distributions were frozen.

A Japanese version of this document is available from CUA (HP Computer Users Association); send mail to <tagami@jpn.hp.com>. The original translation was done by Masataka Isoya. Subsequent translations have been done by Kumiko Watanabe.

If all else fails, contact the maintainer (alek@komar.org).


Subject: 3.2 Courses on HP-UX

Call the following numbers for information or the latest HP Education Catalog. U.S.: 1-800-HPCLASS {1-800-472-5277} Canada: (416)678-9430


Subject: 3.3 Interex, The International Association of Hewlett-Packard

Computing Professionals

The Independent Association of Hewlett-Packard Computing Professionals, known as Interex, has a worldwide membership of more than 18,000. It is a not-for-profit, 20 year old organization. Interex has a monthly publication called "HP World", as well as a detailed technical publication called "hp-ux/usr". Interex sponsors the HP World and InterWorks conferences. For detailed information about Interex, please see the website at http://www.interex.org/.

To contact Interex:

(800) INT-EREX or (800) 468-3739
or: (408) 747-0227
fax: (408) 747-0947
ehrhardt@interex.org - Editor of hp-ux/usr magazine pubs@interex.org - Circulation/advertising membership@interex.org - Membership inquiries conference@interex.org - Conference related inquiries

Address:  Interex                              Interex  (for US mail)
          1192 Borregas Avenue.                P.O. Box 3439
          Sunnyvale, CA 94088                  Sunnyvale, CA  94088-3439

Subject: 3.4 InterWorks

InterWorks, formerly the Apollo Domain User's Society (ADUS), was originally formed to provide a users group specifically for HP _workstation_ users. Over the course of the past few years the organization has merged with Interex, and is now primarily focused on continuing the InterWorks conference, covering system adminstration, software development, and other technical topics for HP-UX users. For membership information, contact Interex.


Subject: 3.5 HP World Conference & Expo

The next HP World conference is at the Pennsylvania Convention Center, 9/9-9/14 2000. You can find more details about the conference and register on the Web at http://www.hpworld.com, or by contacting Interex.

(Deloy Cole, cole@interex.org)


Subject: 3.6 InterWorks Conference

The next InterWorks conference is at the MGM Grand Hotel, Las Vegas, Nevada, 4/10-4/13 2000. The annual InterWorks Conference is internationally recognized as the best place for technical professionals using HP technology to get in-depth training on today's most compelling computing issues. As an attendee, you'll gather the technical tips and techniques that can make your environment perform optimally. HP-UX, Linux, and Windows 2000/NT are just some of the critical topics that will be explored during the 4-day event. For more details go to http://www.interex.org/conference/iworks2000/ or contact Interex.

(Deloy Cole, cole@interex.org)


Subject: 3.7 HP/Works

HP/Works is the HP/Apollo Workstation User Society in Europe. Based in the UK the Society supports all HP/Apollo workstation users - running the HP-UX or DOMAIN operating systems - throughout Europe.

The Society aims to offer a high level of service to our members whilst continuously expanding the number of benefits available. Currently these benefits include:

Two Major Conferences a Year

Special Interest groups (SIGs)
A quarterly newletter (PING)

       Contributed software libraries for both HP-UX and DOMAIN
       Introductory documentation and short courses

Mailings of the latest product information and offers Contacts with outher European HP Computer Users

For further information and a membership pack contact:

       Helen Grainger,
       PO Box 47,
       Bicester,
       United Kingdom +44 (0)869 321080

or by e-mail from helen@hpworks.demon.co.uk


Subject: 3.8 HP/Works Conferences

HP/Works Provisional Diary of Events - 1997

28 January - Integration of Unix and NT - Openland, HP Bracknell

6 March - OpenView Special Interest Group Meeting - BBSRC, Harpenden

15/16 April - Setting up a Web server/html document writing/Web security

15/16 July - Network Printing + additional topics with hands on opportunities

Mid-October - OpenView SIG

November - to be arranged

Contact Helen (see info above) for more info. Thanx to Mike Ellison (M.H.Ellison@durham.ac.uk)


Subject: 3.9 Japanese HP Computer Users Association

In Japan, the HP users group is called CUA (Computer Users Association); for information, contact Junko Matsumoto <j_matsu@jpn.hp.com>.

     Address: Hewlett-Packard Japan, Ltd.
              9-1 Takakura-cho Hachioji Tokyo, Japan 192

              Tel: 81-426-60-2949
              Fax: 81-426-60-8535
              e-mail:j_matsu@jpn.hp.com

Subject: 3.11 DutchWorks

DutchWorks, formerly GGTS, was formed to provide a users group for technical users. It represents technical HP users of HP9000 Workstations and Servers, Instrument Controllers (RTE, HP-RT, RM BASIC, etc.), and Vectra PC's. The group has a BBS which maintains a library of HP-UX, DOMAIN, RTE and BASIC software. Since october '94 it runs also a full mirror of the Liverpool's HP-UX Archive.

Membership details are available from:

Hans Hartwijk,
Weidezoom 11,
2742 EX Waddinxveen
The Netherlands
31 (0)1828 15086

or by e-mail to jaap@klft.tn.tudelft.nl (Jaap Kooman, chair DutchWorks)


Subject: 3.12 HP-UX freely available software from Interex.

Interex is now packaging HP-UX freely available software, ported to HP-UX 10.20 in depot format, on a CD called the FastStart Toolbox. See http://www.interex.org/index/fstart.html for more information.


Subject: 3.13 Anonymous FTP Sites for HP-UX, and UNIX related software.

Site: ftp://interworks.org/pub/comp.hp Contents: The InterWorks HP-UX Library in the directory "pub/comp.hp" as

           described above. The iworks node also keeps the last 4-6
           months of comp.sys.hp.hpux online (via an InterWorks member logon
           (see question 3.4 above). An archive going back to June 1990
           is available-- contact the InterWorks librarian for details.
           Additionally, a large (~1300 line) "HP-UX Troubleshooting
           Guide" is available under the InterWorks member logon.

Name:      ftp://hpux.csc.liv.ac.uk

Contents: Over 1,000 packages ported to HP-UX 8.X and 9.X

Name:      http://hpux.csc.liv.ac.uk/ which is Mirrored at:
           http://hpux.cae.wisc.edu/ 
           http://hpux.ask.uni-karlsruhe.de/ 
           http://hpux.cict.fr/ 
           http://hpux.tn.tudelft.nl/
           http://hpux.ee.ualberta.ca/ 
           http://hpux.dsi.unimi.it/
           http://hpux.cs.utah.edu/   Utah, USA
           http://hpux.petech.ac.za/  South Africa
           http://hpux.u-aizu.ac.jp/  Japan

Contents: WWW interface to the above HP-UX archive

Name: gopher://hpux.csc.liv.ac.uk
Contents: Gopher interface to the above HP-UX archive

There is also a mail server at mail-server@csc.liv.ac.uk for users without FTP.

Name: ftp://hpux.ask.uni-karlsruhe.de Contents: Official German HP-UX archive site (same as hpux.csc.liv.ac.uk/)

Name: ftp://hpux.cae.wisc.edu
Contents: Official US HP-UX archive site (same as hpux.csc.liv.ac.uk/)

Name: ftp://hpux.cict.fr
Contents: Official French HP-UX archive site (same as hpux.csc.liv.ac.uk/)

Name: ftp://hpux.tn.tudelft.nl
Contents: Official Netherlands HP-UX archive site (same as hpux.csc.liv.ac.uk/)

Name: ftp://hpux.ee.ualberta.ca
Contents: Official Canadian HP-UX archive site (same as hpux.csc.liv.ac.uk/)

Name: ftp://hpux.dsi.unimi.it
Contents: Official Italian HP-UX archive site (same as hpux.csc.liv.ac.uk/)

Site: ftp://export.lcs.mit.edu
Contents: The X Window System and contributed clients.

Site: ftp://waterloo.external.hp.com Contents: X Window System libraries and utilities.

See /pub/enware/ for X-Terminal software stuff

Site: ftp://ftp-boi.external.hp.com Contents: Drivers for HP printers.

Site:      ftp://lut.fi/pub/hpux
           ftp://lut.fi/pub/unix/hp-ux

Contents: Various

Site: ftp://nic.funet.fi/pub/unix/arch/hpux Contents: Various

Site: ftp://prep.ai.mit.edu
Contents: The Free Software Foundation's GNU utilities, etc.

Site: ftp://hybrid.irfu.se/pub
Contents: X11 archive and shared libraries, full imake support,

and all missing .h files for both X11R4 and R5, dvi2pcl.

Site: ftp://geod.emr.ca
Contents: GNU stuff ported to HP-UX 9.x by Pierre Mathieu.

Site: http://www.netperf.org/netperf/NetperfPage.html Contents: netperf, a network performance measurement tool.

Site: ftp://jazz.gsfc.nasa.gov
Contents: bathymetry, FFT, graph, pgplot, triangulation, sortroutine

Site: ftp://us-support.external.hp.com Contents: HP-UX patches available from FTP for SupportLine customers.

Site: ftp://patch.external.hp.com
Contents: European mirror of us-support.external.hp.com/

Site:      ftp://jaguar.cs.utah.edu/dist
           Currently available in the "dist" directory:

              gdb-4.13.u4
              binutils-2.5.2.u4
              gcc-2.6.3.u6
              libg++-2.6.2.u2

           There is no more "hpgdb", and "gas" is now bundled in the binutils.

           The prebuilt binaries can be retrieved all at once from
           hpuxbin.tar.Z, or in pieces from the hpuxbin directory.

Site:      ftp://ftp.cs.colorado.edu/pub/sysadmin/utilities/

Contents: sudo in cu-sudo.v1.3.1-beta9.tar/.Z

Site: ftp://ftp.amtp.cam.ac.uk/pub/HP Contents: ntalk in ntalk.tgz

Site: http://www.am.qub.ac.uk/world/lists/hpmini-l/ Contents: It contains an archive of messages from the HPMINI mailing list

           which is dedicated to topics directly relating to Hewlett-Packard
           workstations and primarily those running HP-UX.
           There are also other pointers to HP-UX information.

Subject: 3.14 Where can I get a demo CD with software for HP-UX?

See your friendly local HP sales rep to get a copy of the latest "Power On" CD.


Subject: 3.15 HP-UX patch information

To determine what patches are installed (9.x only):

The standard patch installation will leave a directory in /system that is is name of the patch. For example, PHSS_3259 creates

/system/PHSS_3259

$lsf /system/PHSS_3259
CDFinfo copyright customize* index new/ orig/

The orig directory contains the modules that were replaced by the patch and the new directory will contain any modules that were not installed for whatever reason.

This can take up a lot of space, so you may want to archive this directory and remove the new and orig sub-directories. You may want to leave the customize file because it has a list of the modules replaced. To see the list do:

grep Patch customize | grep -v \#

Another place to look is in /etc/filesets:

$ls /etc/filesets/PHSS*
/etc/filesets/PHSS_1644 /etc/filesets/PHSS_2695 /etc/filesets/PHSS_3060 ...
/etc/filesets/PHSS_2686 /etc/filesets/PHSS_3032 /etc/filesets/PHSS_3328

If someone has removed the /system/PHSS* directories and the PHSS* entries in /etc/filesets, there is no easy way to tell what patches are installed. You can tell if a given patch has been installed by comparing what(1) and sum(1) outputs with those given in the PHSS_nnnn.text file. Refer to question 7.11 about kernel patches.

For 10.x, use the swlist command.

How to get patches - there are four ways:

All customers with a valid software agreement are sent quarterly releases titled "Extention Software" On each CD is the latest patch bundle for ALL supported OS/platform combinations. If you are not receiving your Extention Software CD's, contact HP. Note that you can get this on tape ... but HP is encouraging folks to use CD-ROM.

If you have a support contract you can call the Response Center (800-633-3600) and have the patches sent to you on magnetic media.

If you wish to get patches from the Internet, you can access the Electronic Support Center (http://us-support.external.hp.com) In addition to patches, you can also access online problem solving information, subscribe to mailing lists, and get documents.

While users must register to access the Support Center, some of these services, including the patch database, are available to uses with support contracts. You can also get patches from

ftp://us-support.external.hp.com/hp-ux_patches or you can get them via the web at

http://us-support.external.hp.com/.

John Morris of the Atlanta Response Center posts a weekly list of new patches to comp.sys.hp.hpux on Mondays. It tells what's new and what patches are replaced by the new patches, along with sizes.


Subject: 3.16 How can I send mail to an "hpdesk" address?

For a person whose DESK address is:
JANE DOE /HP1234/XY

Ignore the subentity (XY) and use the form: jane_doe@hp1234.desk.hp.com

Send them a test message and tell them to make a note of the return address, as forming internet addresses on DESK is a little more complicated. If there is an X.400 system between you and the DESK person, what you get back may look like a very strange internet address, but it generally works.

Notice the underscore between names. Names can be first_last or last_first, but first_last is easier to remember and get correct, especially if they have initials in their name as in fred_l_doe@hpatc1.desk.hp.com. Be sure that the DESK address they give you is exactly what is reported by DESK when they send a message to themselves or look at the distribution list on a piece of mail the recipient already has to verify the address.

(Thanks to Bob Niland and Bill Hassell)


Subject: 3.17 What are the known issues with porting BSD-based programs to HP-UX?

Mike Peterson <system@alchemy.chem.utoronto.ca> periodically posts his list of BSD-HP tricks to comp.sys.hp.hpux. It is also archived on the InterWorks FTP site (mentioned above) as "hptricks".


Subject: 3.18 What periodicals are available that focus on HP-UX?

This magazine covers MPE, HP-UX, PCs, peripherals and Networking for HP users. Its focus is on both commercial as well as technical computing. It is published by:

          Cardinal Business Media, Inc.
              101 Witmer Road
              Horsham, PA 19044
              (215) 957-1500     FAX: (215) 957-1050

email: simpson@cardinal.com (editor-in-chief)

This tabloid-sized newspaper contains news from HP and other vendors of compatible hardware, software and peripherals. Published by:

               Publications and Communications, Inc
               12416 Hymeadow Drive
               Austin, TX  8750-1896
               (512) 250-9023    Fax: (512) 231-3900
               email: {cs.utexas.edu/, execu, texbell}!pcinews!wks
               Compuserve: 76011,307
               MCI mail: PCI
               EasyLink: 62755060

(Thanks to Bill Hassell, HP, for most of this)


Subject: 3.19 Books on HP-UX

A recently published book on HP-UX system administration:

'The HP-UX System Administrator's "How To" Book' by Marty Poniatowski

     Prentice-Hall
     ISBN 0-13-099821-4

If you're serious about administering HP-UX workstations, get this book. Unfortunately, it fails to mention the Internet or this FAQ as alternate resources, but it does discuss InterWorks and Interex.

Marty has now published a 10.x version of this book which has an ISBN number of 0-13-125873-7.

(Thanks to Mike Taylor, HP)

Learning the HP-UX Operating System

by Marty Poniatowski ISBN 01-13-258534-0

Disk and File Management Tasks on HP-UX

by Tom Madell ISBN 0-13-518861-x

CLUSTERS for High Availability

by Peter S. Weygant ISBN 0-13-494758-4

(Thanx to Pat Goodwin, pgodwin@ast.lmco.com)

HP-UX System and Administration Guide, by Jay Shah published by McGraw-Hill, 1997 (ISBN 0-07-057277-1)

The book's coverage includes SAM, LaserROM, new system installation (Instant Ignition), Kernel Configuration, I/O buses and backplanes, Logical Volume Manager, and Performance monitoring.

(Suggested by (surprise! ;-) Jay Shah, jay_shah@merck.com)


Subject: 3.20 HP-UX Sysadmin Mailing List

Bart Muyzer runs an HP-UX system administration mailing list. To reach ALL MEMBERS of the list, send e-mail to <hpux-admin@dutchworks.nl>; to SUBSCRIBE, send mail to <majordomo@dutchworks.nl> with in the body: subscribe hpux-admin e-mail address
end
The e-mail address is optional and, when left out, will be set to the contents of your "From: " line.

To get a list of available commands, send a message containing help
end
to <majordomo@dutchworks.nl>."

Problems, questions, suggestions and the like should go to the address "owner-hpux-admin@dutchworks.nl". You can retrieve the charter from <majordomo@dutchworks.nl>; send a message containing:

get hpux-admin hpux-admin-policy
end

A copy of the FAQ is available in the same way by sending: get hpux-admin HP_FAQ
end


Subject: 3.21 HP-related WWW Sites

There are now several sites supporting WWW access on HP-related topics, including HP itself.

The HP SupportLine World Wide Web service allows you to:

The HP SupportLine World Wide Web service home page is located at URL:

http://us-support.external.hp.com

The Hewlett-Packard World Wide Web home page (Access HP) is located at URL:

http://www.hp.com

Please forward all feedback about the HP SupportLine World Wide Web service to webmaster@us-support.external.hp.com.

Other HP-related WWW sites include:

Site: http://hpwww.epfl.ch/HPUX/tools/disktab.html

      http://hpwww.epfl.ch/bench/bench.html
      http://hpwww.epfl.ch/
      Or send mail to mailer@hpwww.epfl.ch to access disktab info.

Contents: Contains many disktabs for non-HP disks

Site: http://hpux.csc.liv.ac.uk/hppd/FAQ/ Contents: This FAQ.

Site: http://hpux.csc.liv.ac.uk/hppd/hpux Contents: Interface to the Liverpool archive, including package descriptions,

      man pages and screen shots as well as the packages themselves.

Site: http://hpux.cae.wisc.edu/hppd/hpux/ Contents: This FAQ.

Site: http://hpux.cae.wisc.edu/intro.html Contents: Interface to the Wisconsin Liverpool archive mirror, including

      package descriptions, man pages and screen shots as well as the
      packages themselves.

Site: http://hpwww.epfl.ch/
Contents: French speaking HP www support (some info also in english like

benchmarks, disktab entries, etc...)

Site: http://www.interex.org/
Contents: Information from Interex.

Site: http://www.InterWorks.org/
Contents: Information from InterWorks.


Subject: 3.22 Is there any way to get rid of a frequent poster's posts?

If you wish to remove a frequent poster's posts (ie Joe Bloggs) and most of the related followups and if you are running rn, put the following commands in your kill file:

/Joe Bloggs/a:j
/joeb@anyplace.com/a:j

If you are using Gnus (an Emacs-based newsreader), type "M-k" in the Subject buffer of the relevant newsgroup to expose the killfile, insert these two lines into the killfile:

(gnus-kill "From" "joeb@anyplace.com" '(gnus-summary-kill-thread nil)) (gnus-expunge "K")

and then type "C-c C-c" in the killfile buffer. From then on, you will not see any thread trees rooted at an article from Joe Bloggs.


Subject: 3.23 HP 9000 series 500 Mailing List

There now exists a mailing list dedicated to the HP 9000 series 500 machine. To get on (or off) the list, send email to

<hp9000-500-request@nvc.cc.ca.us> with the word

subscribe
in the subject line.

(Thanks to Chris Osborn, <fozztexx@nvc.cc.ca.us>)


Subject: 3.24 HP 3000 FAQ

There is a HP3000 FAQ available at: http://www.3k.com/faq/hpfaqi.html

(thanks to Chris Bartram, 3K Associates <rcb@3k.com>)


Subject: 3.25 What is HP's involvement in the HP-related newsgroups?

HP does not, to my knowledge, have a formal policy regarding employee involvement in the HP-related newsgroups. There is significant activity from HP employees, typically Response Center engineers and lab engineers. Much of the information in this document originally came from internal HP sources.


Subject: 3.26 Who were the former maintainers of the FAQ?

Greg Cagle (gregc@teleport.com) from Mentor Graphics was the FAQ maintainer until November 1994. All entries with no attribution are Greg's. Thanks for all the work getting the FAQ started and running.

Colin Wynd (colin@col.hp.com) from the NetMetrix Operation in Hewlett-Packard was the maintainer until November 1995.

Craig Gilmore (craigg@mayfield.hp.com) from Mountain View Hewlett-Packard was the maintainer until February/96.

Alek Komarnitsky (alek@komar.org) got conned into doing this by Greg starting in August/96 (where's that six-pack of Hank's?!? ;-)


Subject: 3.27 Where do i get information on HP's Printers?

You can access printer information and software from:

              http://hpcc997.external.hp.com/cposupport/cpoindex.html
   Site:      ftp://ftp-boi.external.hp.com

Contents: Drivers for HP printers.

There is a phone number for ordering printer drivers: (303) 339-7009


Subject: 3.28 Where is the SunOS to HP-UX Porting Guide?

Electronic copies of the guide are available via the Interworks Library. The Library may be accessed via:

FTP: www.interworks.org
WWW URL: ftp://www.interworks.org

      /pub/comp.hp/porting_info/
        sun_hpuxportascii_0295        ASCII version of the Porting Guide
        sun_hpuxporthtml_0295.tar     WWW HTML version of the Porting Guide
        sun_hpuxportps_0295.tar       Postscript (level 3) version

Hard copies are available free of charge ONLY through your local HP Sales Representative. Please reference HP Literature Distribution Center document number 5963-5416E.

(Thanks to John Agosta <agosta@fc.hp.com>)


Subject: 3.29 Where can I get support from HP on the Web?

HP's support offerings on the Web are fairly extensive. Anyone can access the Patch Database, Support Information Digests, and certain portions of the Technical Knowledge Database.

With a valid software agreement, you can also log non-urgent calls, and search more of the Technical Knowledge Database. You will also be able to access the Software Update Manager. With PSS or PAS level support, you are also able to access the Custom Patch Manager.

HP DOES require registration to access the Electronic Support Center. When you click on any of the links, it will ask you to either Enter as a Registered User, or Register Now.

If you do not have a software agreement, or you don't have the information for it, after you have registered and the ESC has given you your userid, go back until you get the "Enter as a Registered User" choice again. (The only link on the page that gives you your userid tries to link you to a software agreement)

The Electonic Support Center is at:

http://us-support.external.hp.com

Thanx to Skunk Schouten <skunky@skunky.org>


Subject: 3.30 HP 9000 Info & Documentation website: http://www.docs.hp.com

Here you can browse, search, and view the latest product documentation and technical information about HP 9000 hardware and software products, either by topic or release.

Included are installation guides, user guides, reference manuals, manual pages, tools, training, technical white papers, and FAQ's for both 10.x and 11.x releases.

This looks as if it's a web page version of the HP LaserRom.

Rich Rauenzahn (rrauenza@cup.hp.com)


3.31 What do I need to do to make my HP system Year 2000 complaint?

See the following websites:

http://www.hp.com/year2000/
IT'S GONE NOW - ALEK, 6/00


Subject: 4. THIRD PARTY VENDORS


Subject: 4.1 Third party vendors for RAM.

The following vendors are listed in alphabetical order. No guarantees are made regarding compatibility or relative merit of the vendors.

Camintonn                          Clearpoint Research Corporation
22 Morgan                          25 Birch Street
Irvine, CA 92718                   Milford, MA 01757
(800) 843-8336                     800-253-2778 (800-CLEARPT)
(714) 454-6500                     http://www.clearpoint.com/

Concorde Technologies              Dataram
7966 Arjons Dr. B-201              PO Box 7528
San Diego, CA 92126                Princeton, NJ 08543-7528
(800) 359-0282                     (800) DATARAM
(619) 578-3188                     (800) 799-0071

Digitial Micronics                 Eventide
2075 Corte Del Nogal               1 Alsan Way
Unit N                             Little Ferry, NJ 07643
Carlsbad, CA 92009                 (201) 641-1200

Helios Systems                     Herstal Automation
1996 Lundy Ave                     3171 West Twelve Mile Rd.
San Jose, CA 95131                 Berkley, MI 48072
(408) 432-0292                     (313) 548-2001

(800) 366-0283

IEM                                Infotek Systems
P.O. Box 1889                      625 South Lincoln
Fort Collins, CO 80522             Suite 204
(800) 321-4671                     Steamboat Springs, CO 80487
(303) 221-3005                     (800) 767-1084

Intelligent Interfaces             ISA Ltd
P.O. Box 1486                      1-1-5 Sekiguchi
Stone Mountain, GA 30086-1486      Bunkyo-Ku
(800) 842-0888                     Tokyo 112 Japan
                                   81-3 (5261) 1160
                                   US Office (Texas)
                                   (713) 493-9925

Kelly Computer Systems             Kingston Technology Corporation
1101 San Antonio Rd.               17600 Newhope Street
Mountain View, CA 94043            Fountain Valley, CA 92708
(415) 960-1010                     (714) 435-2600

Martech                            Merida Systems
1151 W. Valley Blvd.               (617) 933-6790

Alhambra, CA 91803-2493
(800) 582-3555
(818) 281-3555

MDL Corporation
15301 NE 90th St.
Redmond, WA 98052
FAX (206)861-6767
(800)800-3766
(206)861-6700

Newport Digital                    R Squared
14731 Franklin Avenue              11211 E. Arapahoe Rd., Suite 200
Suite A                            Englewood, CO 80112
Tustin, CA 92680                   (303) 799-9292
(714) 730-3644                     (800) 777-3478

HCS Hanseatischer Computerservice GmbH
Oldesloer Str.97-99
22457 Hamburg, Germany
+49 40 559 747 - 0
+49 40 559 747 - 77 Fax
email: gfkt@hcs.de

(Thanks to Roy McMorran <mcmorran@ll.mit.edu>)


Subject: 4.2 Third party vendors for other things

Vendor                          Product(s)
------                          ----------
Andataco                        System integrator and peripheral reseller

10140 Mesa Rim Road
San Diego, CA 92009
(619)453-9191
mailto: inquire@andataco.com

Black River Computers           Carry both HP Brand equipment and HP
7630 Race Road                  compatible equipement (memory & disks)
North Ridgeville, OH 44039      Also does on-site service for HP stuff.

800-840-4277, 216-365-9950
FAX: 216-365-3916
http://www.blackriver.com
mailto: tomk@blackriver.com Tom Killen

Database Excelleration Systems Solid-state disk emulators (SSDs) 2945 Oakmead Vilage Court Specializing in database accelleration Santa Clara, CA 95051
FAX: 408-727-5496
(408)727-5497
http://www.desdbx.com

IEM, Inc.                       Tapes (4mm, 8mm, QIC, 3480), disks,
1629 Blue Spruce Drive          optical, floppy and backup software.
Fort Collins, CO  80524         SCSI and HP-IB peripherals.

Voice: (303)221-3005
FAX: (303)221-1909
mailto: info@iem.com

Imperial Technology             Provider of high-performance solid state disks
2305 Utah Ave.                  and cached disk subsystems designed to increase
El Segundo, CA 90245            the performance of HP-UX based applications.

310-536-0018
www.imperialtech.com

Interphase Corporation          High performance bus interfaces (EISA/FDDI,
13800 Senlac                    VME/ATM.)

Dallas, Texas 75234
(214)919-9000

ITAC Systems, Inc. Supports Mouse-trak trackball for HP-HIL 3113 Benton St.
Garland, Tx 75042
(800)533-4822
mailto: yvonne@moustrak.com

MDL Corporation                 Disk, tape, optical, jukebox, EISA expansion,
15301 NE 90th St.               RAID, others.

Redmond, WA 98052
FAX (206)861-6767
(800)800-3766
(206)861-6700

Modular Industrial              MICHIL PS2 to HP-HIL converter. Allows
Computers                       standard PC keyboards and mice to be connected
(423)499-0700                   to HP workstations

Norma Hansen

SBE EISA serial and SCSI boards. 4550 Norris Canyon Road
San Ramon, CA 94583-1389
(510)355-2000
(800)925-2666
fax (510)355-2020

Texas ISA                       SCSI & HP-IB External Storage Sub-Systems
14825 St. Mary's Lane           UNIX Power Management Solutions - Auto
Suite 250                       Startup/Shutdown Devices for networked and
Houston, TX 77079               non-networked UNIX systems.

(713)493-9925
(800)361-2258
mailto: sales@texasisa.com
mailto: support@texasisa.com

Vital, Inc.                     Modern Graphical File Editor With Enhanced
4109 Candlewyck Drive           Softbench Encapsulation.

Plano, TX 75024
U.S.A
(214) 491-6907
(214) 491-6909
mailto: info@vital.com

Workstation Solutions Data backup and recovery solutions. One Overlook Drive
Amherst, NH 03031-2800
VOX: (603) 880-0080
FAX: (603) 880-0696
mailto: jimm@worksta.com (Jimm Parsons, Technical Services Manager)

Confluent, Inc.                UNIX diagramming and flowcharting tools
132 Encline Court              for engineering, technical, business graphics

San Francisco, CA 94127
Voice: (415) 586-8700
FAX: (415) 586-8700
mailto: info@confluent.com
http://www.confluent.com

(Thanks to various contributors)


Subject: 4.3 Do Seagate 9GB drives working with s700 and s800?

The s700's and s800's can't handle anything more than 4Gb (for the forseeable future including initial 10.0 release). Another vendor, MDL, sells 9Gb drives with a driver for HP-UX.

MDL can be reached at:

    Michael Lampi                 lampi@mdlcorp.com
    MDL Corporation               (206) 861-6700
    15301 NE 90th Street          (206) 861-6767 FAX
    Redmond, WA 98052             (800) 800-3766

Mosaic: http://www.mdlcorp.com/

(thanks to Bill Hassell <blh@hpuerca.atl.hp.com>)


Subject: 5. UTILITIES


Subject: 5.1 ASCII to Postscript converter.

You can get an ASCII to Postscript converter from:

ftp://ftp.uu.net/usenet/comp.sources.misc/volume10/a2ps3.Z

Additionally, nenscript is available from various FTP sites.


Subject: 5.2 How do I make perl on HP-UX?

Reply like this to Configure:

  1. When it asks for optimization flags answer +O1 if you have HP-UX 7.05 or less -O if you have HP-UX 8.0 or later.
  2. When it asks for additional flags to cc answer -DJMPCLOBBER
  3. When it asks for additional libraries answer -lndbm -lm (ignore the other libraries Configure finds). You can also safely add -lBSD if you want BSD signal semantics.
  4. When it asks if you want to use perl's malloc answer y If you have HP-UX 8.07 or later you may choose to answer no to this since that malloc is OK.
  5. When perl asks on which boundary a double must be aligned answer 8 if you are on a 9000/800 or 9000/700 series machine (HP-PA

    architecture). 2 otherwise (Motorola 68k architecture)

NOTE: That an already compiled version of Perl 5.000 can be found on the

Liverpool archive and its mirrors.


Subject: 5.3 What is the status of the various gnu items on HP-UX?

Check the Liverpool archive for the latest GNU packages on HP-UX.


Subject: 6. X WINDOW SYSTEM, MOTIF, HP-VUE, AND CDE


Subject: 6.1 X11 libraries (Athena, etc.) and utilities (imake, etc.).

NOTE: This FTP site no longer works ... does anyone have a new spot for it? NOTE: This FTP site no longer works ... does anyone have a new spot for it? NOTE: This FTP site no longer works ... does anyone have a new spot for it?

As you may have noticed, HP does not ship a "full" set of X11 libraries and include files, and does not provide imake or associated tools. There is a HP maintained, but UNSUPPORTED, set of X11R4 libraries and utilities for the HP 9000 Series 300, 400, 700, and 800. You can get the libraries, include files, and config files (imake) via anonymous FTP from

ftp://hpcvaaz.cv.hp.com/pub/MitX11R4/libs.s*00.tar.Z

This is also archived on the iworks node as mentioned above. HP has also submitted X11R5 sources to the iworks node as mentioned above. And, Bo Thide has X11R4 and R5 support available via anon. FTP as mentioned above.

Note that imake is shipped with HP-UX 10.x.


Subject: 6.2 How can I display an image on the root window with HP-VUE?

Set Vuewm*backdrop*image: none. Note that there is an explicit pick for this in the Style Manager with HP-VUE 3.0. When the backdrop is clear, you can use xloadimage, xsetroot, xv, or the like to display the image of your choice.


Subject: 6.3 How do I get a scroll bar on hpterms?

Set the following resources:

HPterm*scrollBar:       TRUE
HPterm*saveLines:       1024

or some other other arbitrarily large number. To do this interactively, use "hpterm -sb -sl 1024". You can also set these in an app-default file (/usr/lib/X11/app-defaults/HPterm). You can also set saveLines to something like "4s", which indicates four screens.

If you want the VUE panel terminal icon produce hpterm's that have scroll bars, and also have their login shell run at the startup of the terminal. To do this you have to modify the default action of the VUE panel. The easiest way to do this on a system-wide basis is to edit the "/usr/vue/types/xclients.vf" file. Change the line that says "hpterm" to "hpterm -ls -sb -sl 400":

/usr/vue/types/xclients.vf

ACTION Hpterm

        TYPE            COMMAND
        WINDOW-TYPE     NO-STDIO
        EXEC-STRING     hpterm -ls -sb -sl 400
        DESCRIPTION     The Hpterm action starts an hpterm terminal
                        emulator.

END

(Thanks to Greg Cagle <gregc@teleport.com> and John Kemp <JohnKemp@uiuc.edu> )


Subject: 6.4 How can I put a title in my hpterm titlebar?

Here is a two line program that you might find useful:

/* Quick and dirty program to put argv[1] in the title bar of an hpterm

Tom Arons March 1992
*/
#include <string.h>
main(argc,argv)

int argc; char **argv;
{

        printf("\033&f0k%dD%s", strlen(argv[1]), argv[1]);
        printf("\033&f-1k%dD%s", strlen(argv[1]), argv[1]);

}

An alternative is:

#!/bin/sh
LENGTH=`strlen $1`
echo "&f0k${LENGTH}D$1\c"

That's ESC between the first quote and the f0k.

strlen, in case you don't have it, comes from:

#include <stdio.h>

main(argc, argv)

int argc;
int *argv[];
{

if (argc != 2)

exit(0);
printf("%d\n", strlen(argv[1]));
}

To set the title in the icon:

#!/bin/sh
LENGTH=`strlen $1`
echo "&f-1k${LENGTH}D$1\c"

Where the & is ESC.

(Thanks to Tom Arons <arons@ash.eecs.ucdavis.edu> and John T. Beck, HP.)


Subject: 6.5 How come my hpterms keep going away by themselves?

You are probably using the C Shell (/bin/csh) and have autologout set (it is set to 60 minutes by default). Put an "unset autologout" in your ".cshrc".

If you are using the korn shell it is probably due to the value set for the shell variable TMOUT. Set it to 0 (infinite timeout).

(Thanks to Jim Sharpe <jms@spatial.com> for the Korn Shell information.)


Subject: 6.6 How come my HP X/Motif clients take a LONG time to display on a Sun?

The problem is with the OW3 server. You can request OW3 patch 100444-35 (or whatever is the current replacement) from Sun to fix the problem. Supposedly this has been rolled into OW 3.0.1. A workaround is to set the X resource *useColorObj: False on the Sun.


Subject: 6.7 How can I get my login stuff to work under HP-VUE?

Suggestion 1) The HP-VUE User's Guide suggests that people make a copy

              of /usr/vue/config/sys.vueprofile to ~/.vueprofile. This file
              contains a detailed set of comments about setting it up so
              that their .login/.profile will be sourced correctly (including
              details on making sure that tset(1)-like programs are only run
              when NOT in HP-VUE).

Suggestion 2) When you login via VUE, VUE sources ~/.vueprofile *INSTEAD

              OF* your .login (csh), .profile (sh/ksh), and other startup
              files.  Whatever actions are taken in  ~/.vueprofile are
              persistent across any children started by VUE. Meaning that
              if you symbolic link  ~/.vueprofile to your ~/.profile, then
              VUE will source your ~/.profile before starting the window
              system, and all children (hpterms/xterms and their interactive
              shells) will inherit this environment (prompt variables et al).

              Documentation indicates your ~/.vueprofile should contain
              either csh, or sh/ksh syntax, depending upon what your login
              shell is.

              When csh is my login shell, I set my  ~/.vueprofile  to contain
              only two lines:

                 if ( -f /etc/csh.login ) source /etc/csh.login
                 if ( -f ~/.cshrc ) source ~/.cshrc

              When sh/ksh is my login shell, I set my ~/.vueprofile to
              contain only two lines:

                 test -f /etc/profile && . /etc/profile
                 test -f ${HOME}/.profile && . ${HOME}/.profile

              So, before  starting the window  manager and any clients, VUE
              makes sure that all my shell startup files are sourced and all
              the variables I want in my shell environment are already there
              and waiting for me.

(Thanks to David Masterson <davidm@prism.kla.com>, and

Steve Jumonville, 3com)


Subject: 6.8 How can I get console messages to go to an hpterm?

You can avoid console messages writing to your graphics planes and trashing your VUE session by starting an hpterm and designating it to receive console messages, and to de-iconify, when console messages are received. Put something like this in your "vue.session" file in ~/.vue/sessions/home. (line wrapped for readability):

# Start up the Terminal Console as iconic, and raise it if any output

vuesmcmd -cmd "hpterm -C -iconic -ls -sb -sl 256 -name Console -T Console -xrm *mapOnOutputDelay:\ 30 -xrm *mapOnOutput:\ True -xrm Console*clientFunctions:\ -close -xrm *workspaceList:\ all"

(Thanks to Steve Jumonville, HP)


Subject: 6.9 What happened to the vuewm key accelerators at VUE 3.0?

Well, we don't really know. Here's how to set them, though. Add an entry like this (you can, of course, customize it to your liking) to your $HOME/.vue/vuewmrc file:

Menu VueWindowMenu
{

    "Restore"          _R        Alt<Key>F5         f.normalize
    "Move"             _M        Alt<Key>F7         f.move
    "Size"             _S        Alt<Key>F8         f.resize
    "Minimize"         _n        Alt<Key>F9         f.minimize
    "Maximize"         _x        Alt<Key>F10        f.maximize
    "Lower"            _L        Alt<Key>F3         f.lower
     no-label                                       f.separator
    "Occupy..."        _O        Alt<Key>O          f.workspace_presence
    "Occupy all"       _a        Alt Shift<Key>O    f.occupy_all
     no-label                                       f.separator
    "Remove from WS"   _e        Alt Shift <Key>F4  f.remove
    "Close"            _C        Alt<Key>F4         f.kill

}

And then add this resource:

Vuewm*windowMenu: VueWindowMenu

And restart the window manager.

(Thanks to Bill Bennett, HP)


Subject: 6.10 How come I can no longer disable the caps lock key with xmodmap?

A common activity in the past has been to disable the, shall we say, "placement challenged" caps lock key on the ITF keyboard using a simple xmodmap script. This no longer works consistently at X11R5/VUE 3.0; the best solution so far:

In file ~/.vue/sessions/lite/vue.session:

/usr/bin/X11/xmodmap - << EOF

        clear lock
        keycode 55 = Control_L
        keycode 86 = Caps_Lock
        keycode 39 = grave asciitilde guillemotleft guillemotright
        keycode 71 = Escape
        add Lock = Caps_Lock
        add Control = Control_L

EOF

This works until logout/login, when Caps Lock toggles the control feature, even though 'xmodmap -pm' shows that Lock has no assignments. You have to restart the server to reset completely, which can be automated by setting the value

Vuelogin*terminateServer: True

in the file /usr/vue/config/Xconfig.


Subject: 6.11 How come vi behaves strangely in xterms at 9.01?

Apparantly initial invocation of xterm under csh does not set LINES/COLUMNS correctly, and vi doesn't handle that real well. One workaround is to put the following in .cshrc:

if ( $?WINDOWID ) then

set noglob;eval `/usr/bin/X11/resize`;unset noglob endif

PHSS_2753 addresses this problem.

(Thanks to Raymond Nijssen for the workaround.)


Subject: 6.12 How do I disable HP-VUE?

There have been several recommendations on this base thread. Here is one that is documented for X terminals (it works for workstations too). This takes advantage of the fact that Vue sets several environment variables for the session, one of which is USER.

Modify the /usr/lib/X11/vue/Vuelogin/Xsession (pre-9.0 HPUX) or the /usr/vue/config/Xsession (9.0 HPUX and later) file:

  1. Go to the portion that contains the coment "Determine the startup if the user didn't specify one." -- approximately line 295 in an unaltered version of the file.
  2. Add a following case statement to fit your needs. It should look something like:
                   case $USER in
                      martha | joe) startup=${HOME}/.x11start''
                   esac

You can add as much or little intelligence to this as you like. The above assumes that the users' have a .x11start script in their home directory, that its permissions are correct, etc. You can build in a fallback machanism. For example, the script will check to see if the user has a .x11start script and if not, to fallback to /usr/lib/X11/sys.x11start. To see an example of this logic, do a more(1) on /usr/bin/x11start.

The above case statement is documented in Ch 2 of the "HP 700/RX System Administrators Guide".

Anoter method of disabling VUE assumes you have a .xsession file that starts up your initial xterms, other programs, and window manager. Replace your ~/.vueprofile with:

#! /bin/sh
exec sh $HOME/.xsession

Note that the first line was needed, since /usr/lib/X11/vue/Vuelogin/Xsession looks for the shell it want to use.

(Thanks to Bill Morrison, HP and John Bowe <bowe@osf.org>)


Subject: 6.13 What's a good termcap entry for hpterm?

Although it is not supported for hpterm use, the 262x entry in /etc/newconfig/termcap will work.

(Thanks to Frank Slootweg, HP)


Subject: 6.14 My screen is wedged. What should I do?

One thing you can try is to unplug the keyboard for ~5 seconds. Note that you will have to rerun xset -r to get autorepeat to work after doing this.

(Thanks to Paul Liebert, HP.)


Subject: 6.15 How can I get an X client to come up in an alternate workspace?

You can try:

client -xrm "*workspaceList: <name>"

(Thanks to <finger@rz.uni-karlsruhe.de>)


Subject: 6.16 How can I get HP-VUE to not override colors?

The Motif library on HP-UX has extra code added to make the default colors follow the color schemes that the user selects with the vuestyle controls. This extra code makes trouble for some applications which don't want this unique and unexpected behavior.

You can prevent the entire color scheme mechanism from being used in an application by setting "*useColorObj: False" for the application before creating the first widget. This can be done by adding the resource to the application defaults, the fallback resources, or as an extra "-xrm" "*useColorObj: False" args pair in the argv and argc parameters passed to XtAppInitialize. If you set the resource in xrdb it would be best to set it for only specific applications like "MyApp*useColorObj: False".

Setting the useColorObj resource could make programs core dump on some 8.0* systems. There is a patch that corrects the core dump.

You can use the vue colors and prevent the specific difference between dialog colors vs. non-dialog colors by setting a resource that specifies the behavior of the color scheme mechanism. To force the dialogs to use the same colors as the other windows set the following resources in your app_defaults file or fallback settings-

*primaryColorSetId: 3
*secondaryColorSetId: 3

This sets the dialog or "secondary" colors to the same set as the primary colors. This is discussed in the "HP VUE 3.0 User's Guide" in chapter 26.

(Thanks to Mike Stroyan, HP.)


Subject: 6.17 How can I override the system default printer in vuepad?

cp /usr/vue/types/vuepad.vf $HOME/.vue/types

Edit the file and change the ACTION PRINT_PR_VPAD to:

# The PRINT_PR_VPAD action paginates its arguments using pr(1) and prints # them with lp(1). It uses arg 2 for a title. It then removes the temp # file. This action is used by the client vuepad. ACTION PRINT_PR_VPAD

        TYPE            COMMAND
        WINDOW-TYPE     NO-STDIO
        EXEC-HOST       %LocalHost%
        EXEC-STRING     /bin/sh -c "pr -h %Arg_2% %(File)Arg_1% | \
                                lp -d%"Printer:"%; rm %(File)Arg_1%"
                                   ^^^^^^^^^^^^^^

END

This will cause a dialog box to appear to prompt you for a printer name. However, if you set LPDEST in your .vueprofile, then lp will use that value instead of the system default.

(Thanks, Dan Mercer, <damercer@mmm.com>)


Subject: 6.18 What about X11R6?

The basic core distribution of X11R6 is now installed on the Liverpool FTP archive. See section 3.12 for details.

Current contents:
XR6src-6.0.part/0{1,2,3}.tar.gz
XR6built-6.0.tar.gz/

Notes:

(Thanks to Dave Shield, Liverpool)


Subject: 6.19 How can I set user-specific app-defaults in HP-VUE?

HP-VUE looks in the directory $HOME/.vue/app-defaults in addition to the default location (/usr/lib/X11/app-defaults).


Subject: 6.20 How can I get VUE to share colormap entries:

VUE, by default, allocates several read/write colorcells in the default colormap so that it can change the VUE colors by just changing the colormap instead of re-writing all the pixels. Read/write colorcells are not sharable, and if you have the maximum number of colors selected in your VUE palette, quite a few are going to get soaked up and not be available for other color hogs like xv.

If you can live with having to restart VUE whenever you change your palette, then set the following resource:

*dynamicColor: False

This will cause VUE to allocate read-only cells, which other apps can share.

(thanks to Karl Schulz, HP <kws@fc.hp.com>)


Subject: 6.21 How can I disallow root login at the console with VUE?

Configure your /usr/vue/config/Xstartup as something like this :

if [ -f /etc/securetty ] &&

      # pwget is an HP command which checks also for Yellow Pages.
      # exit code from awk is inverted (!) since sh's tests are...
      # === a more simple test would be [ "$USER" = root ] ===
      pwget -n "$USER" | awk -F: '{ exit !($3 == 0) }'; then
         echo Root Login not allowed | /usr/lib/X11/ignition/text_dialog ERROR
         exit 1

fi
if [ -f /etc/nologin ]; then

exit 1
fi
exit 0

See man vuelogin(1X) for more details.

(Thanks to Cyrille Lefevre <Cyrille.Lefevre@ici.der.edf.fr>)


Subject: 6.22 id/groups doesn't show secondary groups in dtterm/CDE

Under HP-UX10.20 with CDE, if your account (at least with NIS) has multiple groups associated with it, the "id/groups" command will not show the secondary groups inside a dtterm window ... and they in fact do not work. What is confusing is that they do work when you fire up an Xterm. Note that /etc/logingroup is correctly symlinked to /etc/group.

Turns out the solution is fairly simple ... apply a patch! PHSS_8667 fixes a number of CDE related problems, including this one.

Alek Komarnitsky got befuddled by this one for a while (! ;-), and thanx to mike_stroyan@fc.hp.com & gregc@hpupora.nsr.hp.com for identifying this as the fix (didn't pop up in a Mayfield search).


Subject: 6.23 What type of books are available about CDE and oriented toward HP-UX?

  1. The following books are available.

Configuring CDE: Common Desktop Environment

by Charles Fernandez ISBN 0-13-102724-7

Common Desktop Environment 1.0 Advanced User's and System Administrator's Guide

by CDE Documentation Group ISBN 0-201-48952-X

Mentioned by Pat Godwin (pat.godwin@lmco.com)


Subject: 6.24 Getting mouse button cut-n-paste to work correctly with HPUX10/CDE

Cut-n-paste (with the mouse buttons) does not work correctly between applications under HPUX10.20 & CDE as delivered by HP. The sys.resources file needs to have the resource 'enableBtn1Transfer' set to False. You should do this in either {/etc,/usr}/dt/config/C/sys.resources depending on how you manage this at your site.

Thanx to Luis P. Caamano (luis_caamano@hp.com)


Subject: 7. OPERATING SYSTEM


Subject: 7.1 Can I have filenames longer than 14 chars?

Yes, change to long filenames using /etc/convertfs. You can't go back, though. Here's how to check if an existing filesystem has long filenames enabled:

# tunefs -v /dev/rdsk/XXX | grep magic
magic 95014 clean FS_OK time Tue Mar 23 14:13:01 1993

           \__ if = 95014 then long filenames
            \__ if = 11954 then short filenames

You can also look at this on a per directory basis with the POSIX command getconf:

$ getconf NAME_MAX directory

(Thanks to Ken Burke and Masataka Isoya <Masataka_Isoya@jpn.hp.com>)


Subject: 7.2 How can I tell what products have been loaded on my system?

For 9.x, Check the /etc/filesets directory. There is a file there for each fileset that has been loaded that summarizes the files in that fileset. This directory is used by the /etc/update, /etc/updist, /etc/netdistd, and /etc/rmfn utilities for loading and unloading software.

For 10.x, use the swlist command.


Subject: 7.3 How do I safely remove software from my system?

The _only_ safe way to remove HP software is to use /etc/rmfn on 9.x. On 10.x, use the swremove command.


Subject: 7.4 How can I change the order of hostname resolution?

Patches exist for 9.x that allow hostname resolution with the use of the nsswitch.conf file (similar to how it is done under Solaris 2.x). See the latest patch listings for details ... but ones of interest include PHCO_4439, PHCO8760, PHNE_4487, PHNE_4563, PHSS5902, PHSS_7751. This functionality is built-in/included with 10.x.

Updated by Alek Komarnitsky (alek@komar.org) on 1/2/97


Subject: 7.5 How come the LOGnnnn files in /usr/adm keep growing and growing?

The LOGnnnn files in /usr/adm (8.x except 8.02) or /usr/adm/diag (8.02 and 9.0) are the diagnostic event log files. Most likely the files are growing for one of two reasons: either the diagnostics system was improperly installed, or there is an actual hardware problem on the system.

(Thanks to Wayne Krone of HP)


Subject: 7.6 How come I can't lock mail or other files on a Sun?

Believe it or not, Sun's lockd is broken at 4.1.x. The proper Sun patch number is Patch-ID# 100075-09, called the "lockd jumbo patch".


Subject: 7.7 Why are mail files in /usr/mail are owned by daemon instead of the recipient?

The mail delivery agent /bin/rmail needs to be able to chown(2) these files. It can not do so if you have removed the privilege CHOWN (see setprivgrp(1m); removing CHOWN is recommended to prevent cheating on disk quotas). To get around this, noting that /bin/rmail runs setgid to group mail, you can grant privilege CHOWN to group mail only by inserting the line "mail CHOWN" in /etc/privgroup. The change takes effect on the next reboot, or immediately if you execute the command "setprivgrp -f /etc/privgroup".

(Thanks to Jim Richardson <jimr@maths.su.oz.au>)


Subject: 7.8 How can I tell if I need more than a 2-user license?

There are several fundamental things to remember about HP-UX licensing:

ASCII Terminals

The simple rule to remember is any ASCII terminal that is logged in counts as a user.

ASCII terminal connections can come in several different forms:

X-terminals and workstations

When a customer buys an X-terminal or workstation from HP or from another vendor, HP acknowledges that the customer has also bought a single Unix license-to-use.

Therefore, the customer has the right to an unlimited number of logins and terminal windows _over_the_LAN_ to a Series 700 or Series 800 from either X-terminals or workstations. These logins can be via X terminal windows (_hpterm_ and _xterm_), _telnet_, _rlogin_, or other means.

PC's that use X-terminal emulation software such as XView each count the same as an X terminal. This is because the PC essentially becomes an X-terminal when it is running the X server software. Therefore, when a PC is running an X-terminal emulator, the PC has the right to an unlimited number of logins to an HP-UX system.

Exceptions

The policy of counting DTC users is new for the Series 700. Customers who purchased Series 700 systems prior to HP-UX 9.0 shipments (late calendar 1992) and use them as host systems for multiple DTC- connected terminals, may continue to use those configurations without buying a license upgrade. An update to HP-UX 9.0 will not lock out these configurations.

(Thanks to Tony Hart, HP)


Subject: 7.9 How can I tell what patches are in the kernel?

On 9.x, "what /hp-ux" will present you with patch strings, which you can compare with the strings called out in the patch text file. A typical patch string is:

PATCH_8.07 nfs_vnops.c 1.15.61.4 92/01/10 PHKL_0736 PHKL_0942

which shows that PHKL_0942 has been applied to the kernel.


Subject: 7.10 How come I have to hit return after control-d in the Korn shell?

Do a "set -o viraw"

Thanx to Daniel Z. Rosenzweig <danielzr@touro.edu>


Subject: 7.11 How do I boot into single user mode?

Press ESC to stop the auto-boot.
When the list of boot devices is presented:

b PX ISL (where X is your root disc)

And at the ISL> prompt:

HP-UX9.x: ISL> hpux -iS disc(;0)/hp-ux HPUX-10.x: ISL> hpux -iS disc(;0)/stand/vmunix

The '-iS' are the flags to init which says come up single user. The rest of the command is what the bootprocess does automatically.

(Thanks to Stuart Jarriel <stuart@TIVOLI.COM> & Bill Larson <wllarso@swcp.com>)


Subject: 7.12 How come my Korn shell login hangs?

This can happen if the user's home directory is across an NFS mount point; you can workaround the problem by completely unprotecting (chmod 777) .sh_history, or by pointing HISTFILE to somewhere local.


Subject: 7.13 How can I avoid those annoying copyright notices on login?

The following code in /etc/profile prints the copyright notice the first time each user logs in:

        NUMLOGINS=`/etc/last -2 $LOGNAME | wc -l`
        if [ $NUMLOGINS -lt 2 ]
        then
                cat /etc/copyright
        fi

And, for /etc/csh.login:

set NUMLOGINS=`/etc/last -2 $LOGNAME | wc -l` if ( $NUMLOGINS<2 ) cat /etc/copyright

(Actually, each user will get the copyright on their first login after each time the /etc/wtmp file is pruned, but that needn't be often.)

(Thanks to Paul Gootherts <pdg@cup.hp.com>, Steve Dum <steve_dum@mentorg.com> and John Pelan <J.Pelan@Queens-Belfast.ac.uk>)


Subject: 7.14 How can I turn off quota checking?

Suggestions:

  1. rmfn quota fileset. This will still allow you to keep using quotas, as long as the nfs-server still has quota enabled, and is exporting it with all the quota stuff turned on, even though the HP itself might not have it. Watch out tho, since this deletes /usr/bin/quota :) So make a copy, if you still want to have the ability to do "quota -v" and stuff around.
  2. mv /usr/bin/quota /usr/bin/quota_check. cp /bin/true /usr/bin/quota. This will still make the login program do the quota-check, but at least it goes by very very quickly now (as opposed to actualy checking every single nfs-mount with quota, and so on.) Then, just run quota_check whenever you want.
  3. Remove execute permissions for /usr/bin/quota as in:

    $ chmod -x /usr/bin/quota This prevents quota from running. It's also a self documenting flag in that a future system manager who tries to run /etc/quota will get the "can not execute" error message.

  4. chmod -x /usr/bin/quote /etc/edquota This appears to turn quota's completely off (which is what I suspect the vast majority of people want) and not only speeds up the login process, but you don't get any annoying messages.

(thanks to Paul Hirose <pthirose@engr.ucdavis.edu>, and Alek O. Komarnitsky <alek@komar.org>)


Subject: 7.15 How can I track log files and core files?

At 9.x, SAM allows you to track all standard log files and trim them if desired. It will also find all core files on a file system and allow you to get rid of them.


Subject: 7.16 How much memory can a process use?

The first limiter is probably swap space. The combined virtual data space of all running processes can't exceed swap size. Run /etc/swapinfo -t and look at the total line. That's all you have left.

For FORTRAN programs:

  1. Increase the kernel's stack limit (maxssiz). You can do this with sam (Kernel Configuration-> Modify Operating System Parameters-> Process Parameters). The practical limit for user stacks is around 80 Mbytes. Your system probably has an 8 Mbyte limit. Try 16 Mbytes or 32 Mbytes depending on your expected use. Give sam a number that is a multiple of the 4096-byte pagesize.
  2. Change your array allocation. HP FORTRAN allocates non-common, non-SAVE'd arrays on the process stack. Common blocks and SAVE'd variables are allocated in the process data segment (with much larger size limits). If your arrays are declared in the main program and passed to subroutines, you can just SAVE the big ones in the main program, or put them in a common block in the main program, or recompile with -K since -K puts all local variables in the data segment. (-K is a sledgehammer approach, but it gives you a quick indication that stack size is the issue.)
  3. Make sure you have enough swap space.

(Thanks to Bob Montgomery, HP)


Subject: 7.17 How can I make a ramdisk?

THIS IS UNSUPPORTED. Make sure 'ram' is configured into your kernel, and then make device files with major 9 (both blcok and char), minor 0xVSSSSS, where V is the volume number, SSSSS is the number of sectors in the ram disk, and a sector is 256 bytes. For example,

mknod /dev/ram1m c 9 0x101000

makes a 1 meg ram disk. Of course, you have to make a file system on it and mount it to make it useful:

mkfs /dev/ram1m 1024

Note that you will have to make a block device also.

This works for all 9.x systems.


Subject: 7.18 What's a good strategy for clearing /tmp and /usr/tmp?

Two suggestions (to be run from cron) are below. The first being the optimal solution:

#!/bin/sh
DAYS=7
find /tmp /usr/tmp -depth -hidden -fsonly hfs -atime +$DAYS -exec rm -rf {} \;

The -depth option ensures no directory is removed before its contents, -fsonly hfs is because occasionally I've NFS-mounted stuff there and it's better to do the clearing in the machine where it's local, and -hidden is in case CDF's appear there for some reason.

(Thanks to Tapani Tarvainen and Michael Sternberg <mgs@po.cwru.edu>)

#!/bin/sh
DAYS=7
DIRS="/tmp /usr/tmp"
find $DIRS -type d -atime +$DAYS -exec rm -rf {} \; find $DIRS ! -type d -atime +$DAYS -exec rm -f {} \;

(Thanks to Rich Jennings, HP and Michael Sternberg <mgs@po.cwru.edu>)


Subject: 7.19 How can I change the timezone?

Edit the entry in /etc/src.sh and /etc/src.csh, and reboot.


Subject: 7.20 How can I look at what my system is doing?

The best tool for monitoring your system is HP GlancePlus. In the U.S. call (800) 237-3990 for a trial version. Outside the U.S. contact your HP sales representative. HP sells other performance tools as well including HP Performance Collection Software, HP PerfRX (for long-term performance analysis of a single system), and HP PerfView which runs under OpenView (for simultaneous monitoring of a network of systems including HP-UX, Sun Sparc, and IBM AIX). You can also use /usr/contrib/bin/monitor if it exists on your system, but it is not as accurate or reliable as GlancePlus, and is not an HP supported product.


Subject: 7.21 How can I partition HP-UX disks on 700s at 9.x?

Here is a sample file which lists the sdsadmin commands to partition a disk into 2 partitions. Note that this is specific to the M2654SA disk; your mileage may vary. The mediainit is probably not required if the vendor has formatted/verified the disk. It is not "supported" to partition the boot disk, and you have to go through some contortions to do it. Note also that in order to have several partitions on the root disk AND have swap, you must create another partition which you dedicate to swap.

Note that 10.x s700 systems support LVM, which allows great flexibility in partitioning.

#
# SDS configuration file for this node. #
# To rebuild the /u1 and /news Fujitsu M2654SA disk partitions, do: # mediainit -v /dev/rdsk/c201d5s0
# sdsadmin -m -C /usr/local/etc/sdsadmin.config.u1news /dev/dsk/c201d5s0 # newfs -L -n -v -m 2 -i 16384 /dev/rdsk/c201d5s1 HP_M2654Su1x1-2 # newfs -L -n -v -m 2 -i 2048 /dev/rdsk/c201d5s2 HP_M2654Su1x1-2 #
# Disk partitions:
#
# 1 /u1 145xxxx 1K blocks (/dev/dsk/c201d5s1, /dev/rdsk/c201d5s1) # 2 /news 55xxxx 1K blocks (/dev/dsk/c201d5s2, /dev/rdsk/c201d5s2) # - ----- -------
# 2006016 1K blocks
#

type M2654Su1x1-2
label u1_news

partition 1

size 1450000K

partition 2

size max

(Thanks to Mike Petersen and Timothy Mooney <mooney@pinky.cc.ndsu.nodak.edu>)

Here's some more text on this from "Jeff L. Cooke"<jeff.cooke@lmco.com>

           (1) Create an Array Description File (in this case, you might
            want to call it a partition description file):

           # SDS array description file.
           #
           type           TYPE_NAME   # Anything you want to make up
           label         sample       # again, anything you like
           # /filesystem1
           partition  1
           size           100M
           # /filesystem2
           partition  2
           size           100M
           # /filesystem3
           partition  3
           size           max

            Details on creating ADFs are in man 1M sdsadmin.

           (2) Initialize your media (if required): mediainit -v /dev/rdsk/
           c201d5s0

            (we'll use the name /dev/rdsk/c201d5s0 for the raw device name
            in the examples here)

           (3) Use the sdsadmin command to create the partitions:

            sdsadmin -m -C <filename of your ADF> /dev/rdsk/c201d5s0

           (4) Make the filesystems with newfs:

            newfs -L -n -v /dev/rdsk/c201d5s1 HP_TYPE_NAME
            newfs -L -n -v /dev/rdsk/c201d5s2 HP_TYPE_NAME
            newfs -L -n -v /dev/rdsk/c201d5s3 HP_TYPE_NAME

           (5) Make these manual additions to /etc/checklist:

            /dev/dsk/c201d5s1  /usr/spool/filesystem1 hfs defaults  0 1 #
            /dev/dsk/c201d5s2  /usr/spool/filesystem2 hfs defaults  0 2 #
            /dev/dsk/c201d5s3  /usr/spool/filesystem3 hfs defaults  0 3 #

           (6) Prepare to mount the new filesystems:

            If this is a "clean" machine (i.e. these filesystems are not
            currently directories), then you must simply create the mount
            points (i.e. make empty directories with the same name as the
            filesystems you are creating.

             mkdir /usr/spool/filesystem1
             mkdir /usr/spool/filesystem2
             mkdir /usr/spool/filesystem3

            If the new filesystems correspond to existing directories,
            then you will need to move the content of the directories
            aside or remove the content (since, after mounting the
            directories will be inaccessible).  Make sure you leave the
            directories as mount points.

           (7) Mount the filesystems: mount -a

           (8) Replace all of the files/directories you moved in step (5).

Subject: 7.22 How can I print man pages successfully?

To get the italic and bold fonts from the man file on a LaserJet:

zcat manfile.1 | nroff -man -Tlj | lpr ...

On a PostScript printer ( you need the GNU groff):

zcat manfile.1 | groff -man -Tps | lpr ...

If your man file is a complex one including tables, pipe it through tbl.

Some man pages like ioctl may need the HP macros:

zcat manfile.1 | groff -t -e -C -M/usr/lib/tmac -man -Tps | lp ...

(Thanks to Poul Moller, Markus Gyger)


Subject: 7.23 How can I limit core files?

HP-UX has no built in function to limit core file generation from the standard shells; one way to limit core file generation is to create a directory called "core" with 000 permissions in the directory in which you expect a core dump to occur. Additionally, two programs are available (nocore and corelimit) that can be used as wrappers around other programs that you may expect to dump. And, some publicly available shells (tcsh, for example) allow core file limits. Or, you can place a link called "core" to /dev/null in the directory you expect the core dump to occur.

Note that at 10.10 and newer HP-UX revisions, the csh limit commands work as you would expect.

Here is the source for corelimit (thanks to John Agosta, HP). It is completely unsupported; the Response Center will disavow all knowledge of you and your mission should you call them with a problem relating to this. Build it in the usual way (cc -o corelimit corelimit.c) and use it in the format of: "corelimit hpterm 0". This will limit the core file size of all children of the hpterm process to 0.

#include <stdio.h>
#include <sys/resource.h>
#define RLIMIT_CORE 4 /* core file size */

main(argc, argv)
int argc;
char **argv;
{
int res;
struct rlimit rlp;

        if (argc != 3) {
           fprintf(stderr, "%s: wrong number of parameters\n", argv[0]);
           fprintf(stderr, "\tformat: %s command core_size\n", argv[0]);
           exit(-1);
        }
        rlp.rlim_cur = atoi(argv[2]);
        res = setrlimit(RLIMIT_CORE, &rlp);
        if (res < 0) {
                perror("setrlimit: RLIMIT_CORE");
                exit(-2);
        }
        system(argv[1]);

}

Or, you can edit /etc/vuerc to start all of VUE that way:

at line 22 replace:
exec $VUELOGIN $VL_ARGS </dev/null >/dev/null 2>&1 by:
exec /usr/local/bin/nocore $VUELOGIN $VL_ARGS </dev/null >/dev/null 2>&1

(thanks to Jean-Claude Arnouil, <arnouilj@esiee.fr>)


Subject: 7.24 Can I put more than one backup on DDS with fbackup?

No. fbackup always rewinds the tape. Possible alternatives:

(1) Stick with dump/cpio/tar.
(2) Use a pipe: instead of telling fbackup where the DAT is,

     let it send its output to stdout (-f -) and pipe it to the DAT, using
     Berkeley no-rewind device and dd with a suitable block size (e.g., 10K).
     You'll lose fast search and resync after error functionality, though.
     Also, the complexities of managing multiple archives per tape make this
     a high-risk proposition.
 (3) Turn your machines into a cluster served by the one with the DAT
     and do all backups there.  Unfortunately clusters are
     not supported at hp-ux 10.0, so this is not a long-term solution.
 (4) Use NFS and mount the disks of the machine without DAT to the other
     and back them both up there.  You'll have to mount 'em with root
     permissions and restoring a completely destroyed root disk will be messy.

(5) Scream at HP until they fix fbackup. :-)

(Thanks to Tapani Tarvainen <tt@math.jyu.fi> and

David Kinsell <kinsell@csn.net>)


Subject: 7.25 How can I load multiple patches on a machine at the same time?

The easiest way to do it is to set up a netdist server by using /etc/updist to load all the patches you want into a netdist area, and then starting /etc/netdistd. At 10.x, use swcopy on each patch to copy the patch into a central depot, then use swinstall to install from the depot.


Subject: 7.26 How can I set up an HP-UX workstation as an X terminal?

Install core HP-UX including network and X11. Edit "/etc/inittab" to start the X server at runlevel "3" and "4", set default init mode to "3".

<jonim@student.hin.noi> has reported a rapidly restarting login process at the console, in this case disable getty (login) at runlevel "3".

Locate the following lines in "/etc/inittab" and change them from:

init:2:initdefault:
cons:0123456:respawn:/etc/getty -h console console # system console vue :34:respawn:/etc/vuerc # VUE validation and invocation to:

init:3:initdefault:
cons:012456:respawn:/etc/getty -h console console # system console vue :34:respawn:/usr/bin/X11/X -query HOSTNAME # X server startup Note the removed "3" at console! Replace "HOSTNAME" by the DNS name of the host running xdm, vue, cde or whatever.

see also man Xserver for additional X server options.

(last updated: 1999/01/29, Kay Marquardt, kay.marquardt@basf-ag.de)


Subject: 7.27 What causes "Unable to initialize MI" when running Glance?

This error can occur for many different reasons but it indicates that the glance program had trouble starting the midaemon process. Further details are available in ~/glance.err and/or /usr/perf/log/`hostname`/midaemon.err. See man midaemon(1).

Older revisions of HP GlancePlus (prior to B.09.00 for series 700/800 systems and prior to A.09.07 for series 300/400 systems) had a Known Problem in which it was occasionally necessary to issue the following command when the above error occurred:

rm /usr/perf/databases/`hostname`/*.data

Do NOT remove other files in the directory /usr/perf/databases/`hostname`/ because they may be required for other performance tools such as HP PerfRX or HP PerfView.

This problem has been fixed in the current release of HP GlancePlus (versions B.09.00 or greater for s700/800).

Please contact your HP Support Representative when you experience problems with HP software products. Your HP support contact will know how to obtain additional information to characterize your specific problem. Please note the product version (ie: "what /usr/perf/bin/glance") when reporting problems.

(thanks to Doug Grumann <dougg@hpptc3.rose.hp.com>)


Subject: 7.28 How come I can't get all of my swap space?

The default value of the kernel parameter "maxswapchunks" limits the swap accessible by the kernel to 512M; if you configure more swap, you need to increase maxswapchunks.


Subject: 7.29 How come I can't start my Aserver?

Often this is because "localhost" isn't configured in DNS. Try:

nslookup localhost

If that command fails, you will want to have an entry added to your name servers for "localhost.your.particular.domain/" pointing at 127.0.0.1.

(thanks to rick jones, HP)


Subject: 7.30 How can I get a daemon to successfully start from /etc/rc at 9.x?

  1. /etc/rc will kill all child processes on exit; daemons started from localrc() (for example) must have called setsid() and have been given time to daemonize (what a word!) themselves.

If your system doesn't have the C compiler you can use a call to nohup to start the daemon instead of calling setsid().

B) Another trick that works is to include the following command in the rc file:

/usr/bin/at now + 1 minute < /etc/rc.at

Then create a file named /etc/rc.at, which should contain the command to start the daemon. Your daemon will start 1 minute after the rc file calls the command. You can use times other than 1 minute.

(thanks to Mike Peterson, <system@alchemy.chem.utoronto.ca>, and

Noel Hunter <noel@wfu.edu>)


Subject: 7.31 How come my /dev/null keeps getting blown away?

Apparantly this can occur if root invokes the C compiler on a nonexistent file at 9.x.


Subject: 7.32 How can I track network packets?


*
* Network Tracing with nettl - for HPUX 8.x and up *
TRACING - trace all packets seen by the device driver
          on the HP nodes, except diskless packets.
          These packets are those packets sent by the
          node, or addressed to the node.
  1. Start Trace - put data into 1MB trace file. The data will be stored in /tmp/raw.TRC0 and /tmp/raw.TRC1 The most recent data will always be in TRC0, when it fills up, TRC0 is renamed TRC1, and new logging continues in the TRC0 file. They fill up quickly!

/etc/nettl -tn pduin pduout -e all -f /tmp/raw

     If neding to trace LOOPBACK interface as well,
     consider:

     /etc/nettl -tn pduin pduout loopback -e all -f /tmp/trace

2. Stop trace as soon as an event occurs!

/etc/nettl -tf -e all

3. Format trace into a print file:

/etc/netfmt -N -n -l -f /tmp/raw.TRC0 [ -c /tmp/filter ] > /tmp/fmt0 /etc/netfmt -N -n -l -f /tmp/raw.TRC1 [ -c /tmp/filter ] > /tmp/fmt1

-N - print in "nice" format (e.g. interpret) -n - print IP addresses, not hostnames -l - do not highlight fields (for hpterm) -f - optional, use a filter file (see "filtering", below)

NOTE - netfmt takes a while to run! There will be plenty of info in the trace file - Interpretation may be necessary!

3a. Filtering. Create a filter file to tell netfmt what packets you

are interested in seeing.

E.g. only display packets to/from IP address 192.10.10.1: filter ip_saddr 192.10.10.1
filter ip_daddr 192.10.10.1

Filter out all put NFS packets (to/from UDP port 2049) filter udp_sport 2049
filter udp_dport 2049

Filter out all but TCP packets to/from port 25 (sendmail) filter tcp_sport 25
filter tcp_dport 25

Filter on ethernet addresses:
filter dest 08-00-09-49-91-4a
filter source 08-00-09-49-91-4a

You can put these together (e.g. filter all NFS packets to/from IP addr) filter ip_saddr 192.10.10.1
filter ip_daddr 192.10.10.1
filter udp_sport 2049
filter udp_dport 2049

HP-UX 10.20 and 11.X can use tcpdump/libpcap as found at ftp://ftp.ee.lbl.gov./ To select the interface to trace, one uses the -i option and gives the interface name as "/dev/dlpiN" where N is the PPA of the device. One uses lanscan to find PPAs. On 10.20, the PPA happens to be the same as the Network Management ID (NMID) and is not the same as the N in "lanN." On 11.X, the PPA happens to be the same as the Card Instance number and happens to be the same as the N in "lanN." The /dev/dlpiN specified to tcpdump/libpcap is not the same as the device file /dev/dlpiM. What actually happens is tcpdump/libcap opens /dev/dlpi and bind to PPA N. The /dev/dlpiM device files are for other uses.

Thanx to Rick Jones <raj@cup.hp.com> and Brian Hackley <hackley@apollo.hp.com>


Subject: 7.33 How come my processes keep dying at 67M memory usage?

You need to adjust the kernel parameter "maxdsiz"; by default the per process data space is limited to 67M. Adding physical memory and swap will have no effect until you modify the parameter.


Subject: 7.34 Is it possible to artificially limit the memory size?

WARNING: this is non-standard, unsupported, and may change from release-to-release.

For 9.01 and 9.03, there is a variable in the kernel called "soft_pages". The value is normally zero. If set to some number between 256 and the number of pages in your system, only that number of pages will be allocated as the physical memory in your system.

To use this, first copy your kernel from /hp-ux to something else, so that you can recover, if necessary (this variable can be set to a small enough value that the system will be unbootable). Then to set up a, say, 16 MByte system, do:

adb -w /hp-ux
soft_pages?W 0D4096

or

soft_pages?W 1000

Remember that the number of physical pages is not the only thing that goes into a minimum configuration---you also have to scale kernel parameters such as nproc and other tunables appropriately.


Subject: 7.35 How come my alt key combinations don't work in emacs X mode?

Run the following through xmodmap:

!
! The following is modified from some code received from bjarne@hsr.no ! (Bjarne Steinsbo):
!
keysym Alt_L = Meta_L
keysym F12 = Multi_key
clear mod1
add mod1 = Meta_L
clear mod2
add mod2 = Alt_R Mode_switch
! This is magic!
keysym Alt_R = Mode_switch

The result is:

(Thanks to Geir Atle Storhaug <gas@globus.ffi.no>)


Subject: 7.36 I can't get FLEXlm based licensing to work.

For some reason, Flex licensing requires /dev/lan0 to have read and write permissions for everybody. This is somewhat insecure, but is fixed in FLEXlm versions after 2.4. You should really upgrade your software, but if you can't, pls see their Web Site (see below) or here is one workaround:

  1. Create a new group call "lan0".
  2. chgrp/chmod /dev/lan0 to look like this: crw-rw---- 1 root lan0 52 0x202000 May 20 1993 /dev/lan0
  3. chgrp/chmod g+s on any binaries that need to access /dev/lan0. For example, for Interleaf, we did this to /interleaf/ileaf5/hp700/bin: -rwxr-sr-x 1 compsci lan0 5255168 Jan 29 1992 ileaf

Note also that you may or may not get Flex licensing to work with the FDDI daughter card, particularly if there is no Ethernet card. Under 9.01, the Flex utility lmhostid would not return the LAN address from the FDDI daughter card. This may have been fixed at 9.03 or 9.05, but that has not been confirmed. Additionally, PHNE_4003 is supposed to fix the problem for 9.01.

(Thanks to Richard Lloyd, Liverpool and Greg Vasquez, HP)

rich@globes.com (Rich Mirabella) says that FDDI stuff is mostly fixed now for more recent versions of HP-UX ... and that more info about FLEXlm can be found at http://www.globetrotter.com


Subject: 7.37 How can I set up group-based FTP access?

Here is how to set up ftp so that a group of users only have ftp access, they all have their own individual passwd, but they all access the same set of files (i.e., the system thinks they are all really the same ftp user). With only a slight change, you can have a group of users that only have ftp access, each with their own individual passwd, and access only to their own set of files (this is left as an exercise for the reader).

  1. Set up anonymous ftp (assumed in later instructions to be at /users/ftp).
  2. Add a user and group to /etc/passwd and /etc/group.

For example, in /etc/passwd:

ftpuser:*:1000:1000:FTP User:/users/ftp/ftpusers:/bin/false

and in /etc/group:

ftpgroup:*:1000:ftpuser

Note that ftpuser login is disabled (a "*" in the password field). This allows various utilities (such as "ls") to recognize files that belong to an ftp user (particularly important for backups).

3) In /users/ftp/etc, you must have a group and passwd file, of the same

format as their related system files. For example, in /users/ftp/etc/group add:

ftpgroup:*:1000:

and in /users/ftp/etc/passwd add:

ftpuser:*:1000:1000:FTP User:/ftpusers:/bin/false

Also, for each individual that you want to give access, add an additional entry. Note that these have passwords (see passwd(1) for instructions on setting passwords in this file).

george:3RgfBzfnipJPQ:1000:1000:George Smith \

(FTP User):/ftpusers:/bin/false

A few things to notice. "ftpuser" is disabled. The home directory for ftpuser is simply "/ftpusers", since anonymous ftp performs a chroot to the home directory specified for ftp in /etc/passwd (see chroot(2) and chroot(1M) for details). "george" has the same uid, gid, and home directory that ftpuser has. "george" will login as george with his own password.

4) Under /users/ftp, create a directory "ftpusers". Make this

directory with owner "ftpuser" and group "ftpgroup", with 770 permissions. This effectively prevents anonymous ftp access to this directory, since it is not world readable/writable.

That's it.

Users access the system via anonymous:

$ ftp sysname
Connected to sysname.whatever.
220 sysname FTP server
Name (something:someuser): ftp
331 Guest login ok, send ident as password. Password:
230 Guest login ok, access restrictions apply. Remote system type is UNIX.
Using binary mode to transfer files. ftp>

Then, they use a sublogin to access their files:

ftp> user george
331 Password required for george.
Password:
230 User george logged in.
ftp> pwd
257 "/ftpusers" is current directory. ftp>

Users are placed in whatever directory is specified as their home directory in /users/ftp/etc/passwd (relative to the chroot at /users/ftp).

To remove access, remove their passwd entry from /users/ftp/etc/passwd.

This is all documented (though poorly) in the various ftp related man pages.

(thanks to Aaron Friesen of HP <aaronf@fc.hp.com>)


Subject: 7.38 How come my 700 doesn't perform as well as I expect?

There are, of course, many answers to that question. Many people have noticed that HP's conservative choices in some configuration areas affect performance, especially relevant to Sun workstations. Two examples:

fs_async kernel parameter. HP-UX by default makes all file system

I/O synchronous. Sun, by contrast, defaults to asynchronous I/O and depends on the syncer. Setting this parameter to 1 can significantly increase write speeds, but at the risk of losing data in a system crash. You can change this parameter with SAM.

SHARE_MAGIC vs. DEMAND_MAGIC. HP binaries by default are SHARE_MAGIC.

This means that ALL pages needed are read in at invocation time. Sun, by contrast, implements demand paging by default, which speeds up the invocation time at the cost of page I/O later in process execution. You can change the behavior on HP binaries by using the chatr command.


Subject: 7.39 How do I convert the uname string to the model string?

Here's the relationship for the most common HP-UX machines:

   Model number on the     String returned
   outside of the box      by uname -m
   -------------------     ---------------
        default ----------> 9000/800
        E25 --------------> 9000/806
        E35 --------------> 9000/816
        E45 --------------> 9000/826
        E55 --------------> 9000/856
        F10 --------------> 9000/807
        F20 --------------> 9000/817
        H20 --------------> 9000/827
        K400 -------------> 9000/829
        F30 --------------> 9000/837
        G30/H30 ----------> 9000/847
        I30 --------------> 9000/857
        G40/H40 ----------> 9000/867
        I40 --------------> 9000/877
        G50/H50 ----------> 9000/887
        I50 --------------> 9000/897
        G70/H70 ----------> 9000/887
        I70 --------------> 9000/897
        G60/H60 ----------> 9000/887
        I60 --------------> 9000/897
        T500 -------------> 9000/891

9000/800 is the default used when HP-UX cannoot determine the model number of the machine. Other than prototypes, no properly configured machine should return 9000/800. A customer machine returning 9000/800 should have its stable storage updated by Support.

BTW, if you're running 10.0 or later you can use the "model" command to get an expanded model string. For example:

$ uname -m
9000/829
$ model
9000/829/K400

(Thanks to Wayne Krone (wk@cup.hp.com), and

Colin Wynd (colin@col.hp.com))


Subject: 7.40 Problem with ntalkd and it's handling on /etc/utmp.

The current version of ntalkd (talkd is probably the same here), and it's handling of /etc/utmp is broken since it doesn't check the ut_type field. This causes it to send messages to logged out tty's rather than to those who are logged in on. The patch is easy luckily and also applies to most other unix's except really BSD4.2 ones and SunOS4.

The patch is availalable on ftp.amtp.cam.ac.uk:/pub/HP/ntalk.tgz.

(Thanks to Bill Hassell <blh@hpuerca.atl.hp.com>,

Jon Peatfield <J.S.Peatfield@amtp.cam.ac.uk>)


Subject: 7.41 How to get an MS-DOS floppy formatted using HP-UX?

There is no HP-fully-supported way of getting an MS-DOS floppy formatted on HP-UX. (Once you have a PC-compatible floppy, the series of commands referenced in the dosif(4) manpage allow you to read and write the floppies).

However, there is a workaround. Perform the basic mediainit with the -f16 switch (this causes the floppy to be formatted with the full 80 tracks, rather than HP's default safer-but-nonstandard 77+3spare tracks, 512-byte sectors, no sector skew: just like the most basic PC floppies). Then copy on the FAT, directory, label, and other such magic from an honest-to-goodness formatted-on-a-real-PC drive into the first N sectors. For sizes up to 1.44MB floppies, N=20 is more than enough; I don't have the values for the rarely used 2.88MB size (and I don't think the drives in the s700 handle that size anyway). This header magic should be copied off an honest-to-goodness PC floppy once with the command

dd if=/dev/rfloppy of=/a/good/place/to/store/the/header bs=512 count=20

and then written back to each "cloned" floppy with the same command, reversing "if" and "of". (Slightly faster performance is possible using the variant:

dd of=/dev/rfloppy if=/the/copied/header ibs=512 count=20 obs=9k conv=sync

This causes floppy I/O to be done in multiples of 9kB, i.e. one cylinder at a time.)

You should of course have two such headers, one for 720kB and one for 1.44MB floppies: lying to MS-DOS or the dos* utilities about the floppy capacity would be a bad idea. If you're writing a script to automate all this, you can determine the capacity of a floppy loaded in the drive using the following fragment of Korn shell:

kbsize=$( diskinfo -b /dev/rfloppy 2>/dev/null ) if (( $? != 0 || $kbsize == 0 )) ; then

        print -u2 "$0: Wot, no media!?"
        rm -f core  # 9.01s700 diskinfo coredumps
        exit 1

fi

(Thanks to Stefek Zaba <sjmz@hplb.hpl.hp.com>)


Subject: 7.42 How to get the MAC (station) address programmatically?

Here's some sample LLA code to do this. Note that you can use DLPI to do the same, and LLA in not supported in HP-UX 10.0. Sample DLPI code can be found on HPSL, the document id is CWA940907000.

/*
Here's some sample code that you can use to get your own station address (otherwise known as MAC address or LAN card address). Be sure to compile this with the -ln option, since the net_ntoa(3N) call is found in /usr/lib/libn.a.

This program was compiled by doing: cc get.c -o get -g -ln

*/

#include <stdio.h>
#include <netio.h>
#include <fcntl.h>

main(argc, argv)
int argc;
char *argv[];
{

struct fis s_fis;
struct fis s_fis;
int lanic;
char *ascii[6];

if (argc < 2) {

      printf ("Usage: %s <device file>\n", argv[0]);
      exit (1);
      }

lanic = open(argv[1], O_RDWR);
if (lanic < 0) {

      perror ("Erroring opening device");
      (void) printf ("(Tried to open: %s)\n", argv [1]);
      printf("Error = %d\n", lanic);
      exit(1);
   } else {
      s_fis.reqtype = LOCAL_ADDRESS;
      s_fis.vtype = INTEGERTYPE;

      ioctl(lanic, NETSTAT, &s_fis);
      net_ntoa(ascii, s_fis.value.s, 6);
      printf("Station address of %s is %s\n", argv[1], ascii);

      s_fis.reqtype = PERMANENT_ADDRESS;
      s_fis.vtype = INTEGERTYPE;
      ioctl(lanic, NETSTAT, &s_fis);
      net_ntoa(ascii, s_fis.value.s, 6);
      printf("Permanent Station address of %s is %s\n", argv[1], ascii);
      close(lanic);
      }

}

(Thanks to Colin Wynd <colin@col.hp.com>)


Subject: 7.43 Is there a Transport Level Interface (TLI) interface to TCP on HP-UX?

In HP-UX 10.0 a special module has been created which provides XTI access over the BSD stack - TLI is not supported. TLI, for the most part after SVID 3 volume 5, has stopped evolving and is being replaced by XTI in most implementations. XTI is standardized by X/Open and the current versions from most vendors should be XPG4 compliant with some being branded as the branding test suites are made available by X/Open.

Note the reason one needs a streams-based TCP is that both TLI and XTI rely upon a streams-based module, timod, to provide specific functionality within the kernel and this module needs to be pushed upon the transport stack. Since HP-UX uses a BSD transport which is not streams-based and is therefore incapable of having a streams-based module pushed upon it, one can not run TLI/XTI directly upon it, and, hence, a special streams module was created to provide this functionality for HP-UX 10.0.

With the release of HP-UX 11, the BSD-based transport is replced by a Streams-based one. XTI no longer requires a special streams module. In the past, where one would open /dev/inet_cots to get TCP, one can open /dev/tcp and get TCP.

(Thanks to Mike Krause <krause@cup.hp.com> and Rick Jones <raj@cup.hp.com>)


Subject: 7.44 How do you disable IP Forwarding

For HP-UX 10, one uses nettune to set the variable ip_forwarding to 0. For HP-UX 11, one uses ndd to set the variable ip_forwarding to 0. For HP-UX 11, this tune can be placed in the file /etc/rc.config.d/nddconf and will then be applied automagically on every reboot.

Thanks to Rick Jones <raj@cup.hp.com>


Subject: 7.45 Does HPUX 9.0 have support for threads?

As part of the DCE product, a user-space thread-package was shipped. This package is also part of 10.0.

(Thanks to Mike Krause <krause@cup.hp.com>)


Subject: 7.46 How come I can't type an '@' character?

If you do a 'stty -a' and you will see that your 'kill' character is set to '@'. You need to set your 'kill' character to be something other than the '@' character by doing something like 'stty kill '^U''. You should add this to your .profile or .cshrc file.

(Thanks to Michael J. O'Connor <mjo@dojo.mi.org>)


Subject: 7.47 How come I can't get my machine into boot admin mode?

When i reboot my workstation I do not get the "..push and hold the ESCAPE key to ..." - why?

The machine is configured in secure boot mode. To get into boot admin mode you will need to remove all bootable media (i.e. disconnect disks, LAN, etc.) and then power on - the boot will fail and you can then get to boot admin and switch off secure boot mode.

(Thanks to Julian Perry <jperr@J-Sainsbury.co.uk>)


Subject: 7.48 What's a quick check to see if a fileset is installed on 9.x?

The following script will check to see if all the files in a fileset are installed in the correct place. It does not check permissions or that the kernel files are in the kernel. Certain filesets have their own verify scripts ie:

NS-SERV has /usr/nettest/nsverify/ver_ns STREAMS has /usr/bin/strvf

#!/bin/sh
FSET=/etc/filesets/$1

if [ "$FSET" = "" ]; then

echo "syntax of command $0 Filesetname " exit 1
fi

if [ ! -f $FSET ]; then

echo "Fileset $FSET not found"
exit 1
fi

# simple test to see non zero size files of any type while read File
do
if [ ! -s $File ]; then

echo "$File not found"
fi
done < $FSET
exit

(Thanks to Mike MacFaden <macfaden@kalpana.com>)


Subject: 7.49 How does one package a set of files for HP-UX 9.X?

Use the fpkg program to build a special tar file that update can read.

Be sure to use the mkpdf program to create a PDF file and add this to your psf file as follows:

pn MY-PROD
pd My product description
fv V.1.0.0
F
> <somedir>/PDF /system/MY-PROD/pdf <

pr <somedir>/prod-dir
F *

The pdf file contains a complete file manifest which tech support can use to verify the files in a product are correctly installed with the command pdfck.

(Thanks to Mike MacFaden <macfaden@kalpana.com>)


Subject: 7.50 Why is ifconfig giving me errors when I try to configure my LAN?

When I try to configure my lan device on my s700 I get the error ifconfig: no such interface - why is that?

This is because the interface's hardware state is down. The s700 machines need to be connected to a network before they can be configured with ifconfig. Add the s700 machine to the network and then reset the interface with running /usr/bin/landiag (LAN->RESET). If no errors are reported then you should be able to ifconfig that interface.

(thanks to Colin Wynd <colin@col.hp.com>)


Subject: 7.51 What new features are in HP-UX 9.07?

The 9.07 version of HP-UX is 9.05 with a number of X-window and 3D graphics enhancements for the new graphics announced in June 1995.

Starbase now joins PEXlib in having a formal API call for texture mapping. VisualEyes series require new device drivers to enable the new 3D accelerators. Freedom series support is also included in 9.07.

The X-window drivers now include Multi-Buffered-X wich is the new standard method for double-buffering X-window graphics for smooth screen updates and animations. The new X-drivers also include Single-Logical-Screen functionality which allows a single X-window to span two video display. Note that to use Single-Logical-Screen requires two identical 8-bit graphics devices and two identical video displays.

(thanks to and Andres Cuneo L. <andres.cuneo@rimpex.cl>)


Subject: 7.52 Why do I get the message "Can't start message server..."

VUE relies on being able to do hostname lookups for the local host (i.e. both the fully qualified domain name and 'localhost').

If your network is down or your DNS server is unreachable then VUE will probably fail. This could happen at login (when you get the above message) or it may manifest itself by windows opening very slowly or not at all.

The ideal solution is to get HP to fix this sensitivity but in the meantime the best idea is to make hostname lookups more robust by installing the 'nsswitch' patches (See question X.Y). See also http://www.am.qub.ac.uk/users/j.pelan/DNSandVUE.html


Subject: 7.53 How can I disable new logins?

Add the following to /etc/profile; then 'touch /etc/nologin' will disable all new login other than 'root'

uid=`id -u`
if [ -f /etc/nologin -a $uid -ne 0 ]; then

     echo "Sorry, no login allowed, try later!"
     sleep 5
     exit 0

fi

(Thanks to Nils Gerloff <ng@hcs.de>)


Subject: 7.54 What is the maximum filesystem size on a 7xx, running HP-UX 9.X HP-UX 10.X?

On a 7xx series, the maximum filesystem size under an UNPATCHED HP/UX 9.01 is 2Gb. There is a patch available which will increase the maximum filesystem size to 4Gb. Under 9.03, 9.05, and 9.07 the maximum filesystem is already 4Gb.

Under HP/UX 10.X, the maximum filesystem size is also 4Gb.

The maximum size of any file (not filesystem) is either 2Gb, or the size of the filesystem on which that files resides, whichever is smaller. Ie: You can not store a 1Gb file on a 500Mb filesystem.

The maximum size of the boot system is 2Gb under both 9.x and 10.x You can play with this, if you have a > 2Gb disk, by allocating swap equal to the balance, or some other such feature. But in general, it's probably best (at least for now) to use a 2Gb boot disk, and use that bigger disk for something else.

>From: Tom Lane <tgl@netcom7>
>
>Well, I *didn't* get it to boot off the Micropolis disk. The key fact in >all of this is that the HP S700 boot roms will not boot off a disk bigger >than 2GB. (I surmise that they use signed rather than unsigned longs in >evaluating disk addresses.) HPUX 9.03 and later can build filesystems >on disks up to 4GB, so the HPUX filesystem code is unsigned-clean. >But the boot roms ain't.
>
>HP's /etc/mkboot doesn't warn you about this; if you invoke mkboot on a >4GB disk it will happily plop a bootstrap loader at the end of the disk. >The bootstrap is useless, though. The upshot is that you can use a 4GB >disk as addon file storage but not as your root disk; the root disk must >have a working bootstrap so it must be <= 2GB. >
>All this is in the comp.sys.hp.hpux FAQ. What isn't in the FAQ is that >/etc/swapon also examines the bootstrap address (so as to avoid >overwriting the bootstrap with swap space) and rejects the disk if >the bootstrap address is invalid according to the bootrom definition. >
>So, although you should be able to use part of a 4GB disk as swap space >(by making the filesystem be smaller than 4GB), it's critical that you >not have run mkboot against the disk, or else swapon will fail. >I ran mkboot on the theory that it couldn't hurt. Wrong! >
>It turns out that /etc/rmboot will zero out the bootstrap pointer, so >if you've made this mistake you can undo it with rmboot without >damaging your filesystem. Then swapon is happy. >

Further confusing the issue under HP/UX 9.x on 7xx systems is not being able to access more than 4Gb on any physical device without some wierd manipulation (via sdsadmin). In general, a driver from MDL (See 4.2) is currently your best option if you have > 4Gb disk drives. Under 10.x this limitation is not there as you have access to LVM.

(thanks to Paul Hirose <pthirose@ucdavis.edu> &

Tom Lane <tgl@netcom7>)


Subject: 7.55 What is the current revision of HP-UX?

10.10 was unleashed last February 1996. 10.20 was released in August of 1996.
11.00 is currently shipping as of April/1998.

(Thanx to Brad Bass <bass@convex.hp.com> and others).


Subject: 7.56 What's different between HP-UX 9.x and 10.20? Common Desktop Environment -- CDE is the new industry-standard UNIX desktop, which will replace VUE in future releases. Differences from VUE include:

        New and more customizable Front Panel 
        Graphical MIME-enabled mail application 
        Graphical Calendar 
        Graphical Print Queue Manager 
        New terminal emulator 
        Action and datatype syntax changes 
        ToolTalk messaging support 
        Desktop application registration 
    more standard X-Windows stuff is part of the installation 
        Athena Widget library (Xaw) 
        X Miscellaneous Utilities library (Xmu) 
        Imake 

New Filesystem Layout -- modeled after the AT&T SVR4 and OSF/1 file systems and is implemented on both Series 700 and Series 800 computers. There are fewer differences between the layouts of other vendors' file systems and that of HP-UX Files are organized into categories such as static versus dynamic, executable versus configuration data, and so forth. Operating system software is kept in separate directories from application software Files that are meant to be shared by different hosts are kept in separate directories from host-specific files Restricted SAM -- Non-superusers can be given limited access to SAM functionality or other custom utilities added to SAM. Where appropriate, these users are promoted to superuser while they are executing SAM functionality.

Modified Commands

        du -k -- reports disk usage in 1024-byte blocks instead for 512-byte blocks
        csh -- the "limit" builtin command is available, LINES and COLUMNS 
               are set when csh starts up. 
        passwd -- New password aging options 

(Thanx to Brad Bass <bass@convex.hp.com>)


Subject: 7.57 What's different between HP-UX 10.01 and 10.2?

Large Filesystems -- the maximum filesystem size has been increased from 4GB to 128GB Large Files -- the maximum file size is 128GB. Large User IDs -- the maximum UID is 2,147,483,646 or (2^31)-2 Lots of patches are incorporated into 10.20 du -k -- reports disk usage in 1024-byte blocks instead for 512-byte blocks hooray! Common Desktop Environment -- CDE is the new industry-standard UNIX desktop, which will replace VUE in future releases.

(Thanx to Brad Bass <bass@convex.hp.com>)


Subject: 7.58 What happened to /usr/local? What's this /usr/contrib directory?

Things have been moved around some -- probably for the better:

/opt

optional HP software packages like the ANSI C & C++ compilers and debuggers. /opt/hppd

pre-compiled HP public-domain sofware downloaded from the anonymous server at http://hpux.cae.wisc.edu/ or http://hpux.cs.utah.edu/ /usr/contrib

Unsupported, 3rd-party or public-domain software compiled and maintained by the local operations group on their software depot. For example: nn, gzip, Gnu tools, perl5
/usr/local

workstation-unique software packages that the user has installed himself or are local to a specific machine. This directory is world writable.

(Alek Comments: world-writeable ... ack! ;-)

(Thanx to Brad Bass <bass@convex.hp.com>)


Subject: 7.59 What happened to "less"?

Use "more". Under HP-UX 10, it seems to be as robust as "less".

(Thanx to Brad Bass <bass@convex.hp.com>)


Subject: 7.60 Remote mounts and the automounter -- What's new?

HP-UX 10.x ships with an automounter running with a -hosts option, so it's easy to just say "/net/hostname/directory/...", and the automounter will do the rest.

If you like, you can put symbolic links in to make things easier, for example:

/x1 -> /net/x1/x1
/usr/valid -> /net/x1/valid

(Thanx to Brad Bass <bass@convex.hp.com>)

Alek comments: While this is convienent and easy to do, using explicit automount maps (ex: /home/username) is usually a better idea in terms of keeping things "tight" and maintaining server/disk independance.


Subject: 7.61 Why does tcsh have problems with 'bind'?

The syntax got changed. Bind commands like:

bind backward-delete-word ^W
need to be changed to:

bindkey ^W backward-delete-word

(Thanx to Brad Bass <bass@convex.hp.com>)


Subject: 7.62 How do I change the hostname, IP address, DNS Server, etc?

To change the hostname:

# /sbin/set_parms hostname
To change the IP address:

# /sbin/set_parms ip_address
To change DNS Server, domain, etc.:

# /sbin/set_parms addl_netwrk or to set everything just like doing the first-time install:

# /sbin/set_parms initial
WARNING Don't do this without your local IT/Operations people knowing about it. The potential for messing up the network and/or your workstation is great.

(Thanx to Brad Bass <bass@convex.hp.com>)


Subject: 7.63 What should go in my PATH and MANPATH environment variables?

at least: /usr/bin /usr/contrib/bin /usr/bin/X11 /usr/contrib/X11/bin /usr/contrib/bin/X11 /usr/local/bin

If you have the HP ANSI C compiler installed:

/opt/ansic/bin /usr/ccs/bin /opt/CC/bin /opt/langtools/bin

And, for system management stuff:

/usr/sbin

Alternately, you can start with:

setenv PATH `cat /etc/PATH` # for tcsh

at the beginning of your shell's startup 'rc' file. The "/etc/PATH" file is supposed to be updated every time new software is installed in "/opt". This will get everything mentioned above, except for "/usr/sbin".

MANPATH works the same way:

setenv MANPATH `cat /etc/MANPATH`

(Thanx to Brad Bass <bass@convex.hp.com>)


Subject: 7.64 What happened to 'lpr' and other misc. lp hints?

The Berkeley printer queue system is being phased out over the next few years. All new workstations and printers will have the HP-UX LP printer utilities instead. Here's a short cheatsheet:

    lpr -Pvaxps         -> lp -dvaxps
    lpq -Pvaxps         -> lpstat vaxps
    lprm -Pvaxps ID     -> cancel vaxps ID

Why would I want to switch over to the System-V-style HP-UX LP spooler? Because you can do neat things like:

% lp -dvaxps -odouble FILENAME which will print double-sided, that is, on both sides of the paper, if your printer supports it.

How do I send output from nroff to HP LaserJet printers? Try this: nroff -Tlj ... | lp -onroff

(Thanx to Brad Bass <bass@convex.hp.com>)


Subject: 7.65 Lpstat reports the printer down, even though it's not (?)

You probably need the following line in your /etc/passwd: lp:*:9:7::/var/spool/lp:/sbin/sh

(Thanx to Brad Bass <bass@convex.hp.com>)


Subject: 7.66 Misc. HP-UX10.x gotcha with root's shell

Root's shell has to be /sbin/sh as defined in /etc/passwd, like so:

root:r92hS4musPTNM:0:10:Superuser:/:/sbin/sh or another shell (/bin/csh) that resides on the root partition because /usr isn't mounted when init needs to use the root shell to run the startup scripts. Make sure that /etc/passwd defines the correct shell.

(Thanx to Brad Bass <bass@convex.hp.com>)


Subject: 7.67 cksum command is a bit "squirrely" in HPUX09

The chsum (1) command produces a different checksum on HPUX09 than HPUX10.

The 9.x cksum was defective, it did not correctly implement the POSIX spec. That is understandable, because the POSIX cksum spec does not supply a test suite to easily verify an implementation is correct.

The 10.x cksum is correct. Unfortunately that means it can not match 9.x cksum. A special option for 10.x "sum" was suggested to match 9.x bogus cksum, but that did not get in.

Another implementation that did not match POSIX spec was in AIX 3.*; I haven't checked AIX 4.* or Solaris.

Other good implementations (they give the same answer as 10.x cksum):

Thanx to Michael Taylor (tay@cv.hp.com)


Subject: 7.68 HPUX10 generate copious "Sti_save" syslog messages

HPUX10 generates a FLOOD of syslog messages that look like this:

vmunix: Warning! [82194698 ticks since boot] Sti_save:IteLock not available for 60 seconds

One way to turn this off (any suggestions for others?) is to uncomment the "Dtlogin@grabServer: False" line /in /usr/dt/config/Xconfig. You can also do this in /etc/dy/config/Xconfig if you have an automounted /etc/dt like we do! ;-)

After this, reboot the machine ... and you won't see 'em again! ;-) >From what I can gather, these are spurious messages than can be ignored.

Tested by Alek Komarnitsky (alek@komar.org) ... but I can't credit the person who originally posted this solution 'cause I lost their name.


Subject: 7.69 Why does pfs_mount fail with the message 'Not Owner' when I try to use it?

You (root) are probably in more than 8 groups. Run groups(1) to check. PFS was linked using HP-UX 8.0 RPC libraries which allowed only 8 groups. Reducing the number of groups fixes this problem."

Thanx to Duncan Missimer <missimer@xsvr2.cup.hp.com>


Subject: 7.70 What is the HP equivelent of ldd on HPUX10.20 that can be used to determine shared library dependancy?

Check out the man page for chatr - not only shows stuff, but allows you to do more! ;-) (added by alek)

The following script may also be useful: #!/bin/csh
echo odump...
odump -sllibload $1
echo dld...
setenv _HP_DLDOPTS -ldd
$1

BTW, ldd is shipped with HPUX11

Thanx to Rich Rauenzahn <rrauenza@cup.hp.com>


Subject: 7.71 PHKL_4413 breaks xntp

I ran into this about three years ago running timed on 9.x systems. The PHKL_4413 patch is a patch that correct "hardware clock drift" if I remember correctly. What it did to my systems running timed was to start massive clock drifting between a minute or two fast and a minute or two slow, cycling so fast that the clock ran probably 50% fast for a few minutes then 50% slow! I assume there was some sort of interaction between what timed was doing to correct the clock and what this patch did, and that interaction may also affect ntp.

I remember this well since this is the only time I have ever had to back out a patch on HP-UX, despite always just taking every patch there is when I'm doing a system load.


Subject: 7.72 How do I get rid of these old 10.X patches since I upgraded OS's?

DO NOT USE SWREMOVE! swremove will check the scripts for the patch you ask it to remove, and happily remove whatever file you tell it to. Unfortunately, swinstall does not know that the patch you are asking to remove will put back the old 10.01/10.10 file in place of the 10.10/10.20 file you just asked it to remove.

All swinstall will do is look to see, does file exist? Yes? replace file with backup copy stored in /var/adm/sw/patch. The backup copy is a 10.01/10.10 file, the file it is looking at is a 10.10/10.20 file.

The only SUPPORTED (by HP) way to remove these patches is to use the patch_ipdcheck script provided by HP. The script will check your IPD (Installed Product Database) and remove all the entries for previous OS version patches. Then it will go remove the associated directories from /var/adm/sw/patch.
A copy of this script can be retrieved from........ (somewhere, I don't know where to put it.) or you can call the response center and ask someone to e-mail it to you.

NOTE: If you have already removed previous OS version patches with swremove, you will either 1) need to restore from backup, or 2) reload the OS.

Thanx to Skunk Schouten <skunky@skunky.org>

According to Robert Sakic (rsakic@grc.hp.com), you can use the cleanup (1M) program to remove old patches ... install patch PHCO_12140 (which merges the "old" cleanup utility and ipdcheck) and run 'cleanup' to get rid of the zombie's on your disc.


Subject: 7.73 How to install multiple patches on a 10.x system without rebooting?

Use swcopy to create a Patch depot and start swinstall with the patch depot as the source. The following script will create the patch depot for you:

#!/sbin/sh
# cd to the directory where the patches are (PHxx_xxxx) and start # this script. it will extract the patches one by one and create # a patch-depot in $PDEPOT.

PDEPOT=/tmp/PATCH.depot
for PFILE in PH*[0-9];
do

sh $PFILE
done
# remove the archives
rm PH*[0-9]
# it's a good habit first reading the PHxx_xxxx.text file # before deleting them.
# rm *.text
for PFILE in PH*depot;
do

        PNAME=`echo $PFILE | cut -d. -f1`
        /usr/sbin/swcopy -s $PWD/$PFILE $PNAME @ $PDEPOT

done
clear
echo "*********************************************************************" echo " PLEASE NOTE: The Patch depot $PDEPOT has been created." echo "*********************************************************************" echo "Please start swinstall with $PDEPOT as the source, and don't" echo "forget to unregister the depot (e.g. swreg -u -l depot $PDEPOT)."

Thanx to Robert Sakic <rsakic@hpugrca.grc.hp.com>


Subject: 7.74 How can I determine how much memory there is in my HP-UX system?

Here are several methods to determine the amount of physical memory on your system (while logged on as superuser):

  1. If the diagnostic messages are still in the system buffer since the last reboot, the following will give the total kbytes:

    dmesg | awk '/Physical:/ && /Kbytes/ {print $2}'

  2. As of 10.X, the following SAM command will show memory in Mb:

    /usr/sam/lbin/getmem

  3. It's slow, but the following method will give the total bytes:

    wc -c /dev/mem

  4. You can use this code in HP-UX11.0:

    #include <sys/param.h> #include <sys/pstat.h> #include <sys/unistd.h> main() {

    struct pst_static buf; pstat_getstatic(&buf, sizeof(buf), 0, 0); printf("Physical RAM = %ldMB\n", buf.physical_memory/256); }

Thanx to Bob Hall and Richard Hubbell <Richard.Hubbell@software.com>


Subject: 7.75 Can I run Linux on HP PA-RISC hardware?

Using MkLinux, yes.


Subject: 7.76 How does one have a program auto startup/shutdown when the system does?

Q: I would like to have a program automatically startup and shutdown

during the system's startup and shutdown. How do I do this?

  1. This is documented in /usr/share/doc/file_sys.txt in 10.x and 11.x

Thanx to Rich Rauenzahn <rrauenza@cup.hp.com>


Subject: 7.77 How do I determine the speed and duplexity of my Network Interface?

Q: How do I determine the speed and duplexity of my network connection?

  1. (HP-UX 10.20) lanadmin<CR>lan<CR>display<CR>. The "Description" line shows the duplexity, if the network interface supports other than half duplex. The "Speed" line shows the speed in megabits per second.

Thanx to Bruce Hamilton <bhamilto@world.northgrum.com>


Subject: 8. COMPILERS AND LINKERS


Subject: 8.1 What's a P-FIXUP error?

Several questions in comp.sys.hp.hpux have involved the Gnu C compiler and the linker message below :

gcc test_h.o -o test_h ../libg++.a -lm ld: R_DATA_ONE_SYMBOL fixup in file ../libg++.a(streambuf.o) for code unsat symbol "abort" - use P' fixup
collect: /bin/ld returned 1 exit status

This is caused by the code generator emitting assembly code in a data subspace to initialize a function pointer, equivalent to :

.word foo

where (in this case) foo() is an extern, and shared libraries are referenced by the executable being built (usually libc.sl).

NOTE:

This problem has been fixed in gcc-2.4.5.u5; if people are still running into this error, then:

  1. They've got an old version of gas (pa-gas-1.36.u8 I believe is the first one do handle this correctly).
  2. They're linking with a library built with some old combination of gcc and gas.

The solution is to make sure gcc and gas are up-to-date and any libraries have been built with the latest gcc/gas combination. For a temporary workaround the option "-static" to gcc will suppress dynamic linking and thus avoids the error.

(thanks to Carl Burch, HP for the original, and Jeff Law <law@snake.cs.utah.edu> for the followup)


Subject: 8.2 Where is regcmp on HP-UX?

RTFM - from man regcmp:

      regcmp and regex are kept in /lib/libPW.a, and are linked by using the
      -lc and -lPW options to the ld or cc command.  See WARNINGS below.

(thanks to Andre Srinivasan, <andre@cs.pitt.edu>)


Subject: 8.3 How come the default C compiler is brain-dead?

The C compiler shipped with HP-UX is intended only to rebuild the kernel with, not for program development. To get a "real" C compiler, you must buy the ANSI C program development bundle or get gcc.


Subject: 8.4 How do I deal with "too many defines"?

Use the "-Wp,-Hxxxxxxx" where xxxxxxxx is the number of bytes to add to cpp's table size.

There is no equivalent in lint or cflow to the cc driver's -W flag to pass options to subprocesses like cpp. However, both lint and cflow invoke cpp via the cc driver, so you can achieve the same effect by setting the CCOPTS environment variable. For example,

CCOPTS="-Wp,-H500000"
export CCOPTS
lint large_file.c


Subject: 8.5 How come I get "_builtin_va_start" undefined when I build with gcc?

The <varargs.h> and <stdarg.h> include files define va_start in terms of this function, which is built-in on the HP C compiler.

If you're using GCC you should be picking up include files from the gcc library directory. These include files do the right thing for both GCC and HP C.

More often than not these files were never installed, or someone has placed a copy of varargs.h/stdarg.h into /usr/local/include (gcc searches there first).

When all else fails, you can replace the definition of va_start as follows, depending on whether you are using varargs or stdarg (K&R or ANSI, respectively).

#include <varargs.h>
#ifdef __hppa
#undef va_start
#define va_start(a) ((a)=(char *)&va_alist+4) #endif

#include <stdarg.h>
#ifdef __hppa
#undef va_start
#define va_start(a,b) ((a)=(va_list)&(b)) #endif

For <varargs.h>, this replacement should always work.

For <stdarg.h>, this replacement will work unless the last fixed parameter ("b" in the call to va_start) is a structure larger than 8 bytes. Large structures are passed by reference, with the callee responsible for copying the structure to a temporary area if it will be modified. In this case, "&b" will take the address of that temporary area instead of the position in the argument list, and va_next won't work. That's why HP uses a compiler built-in.

(Thanks to Cary Coutant, HP for the original and Jeff Law <law@snake.cs.utah.edu> for the followup)


Subject: 8.6 How can I tell if something was built debuggable?

If the output of "/usr/contrib/bin/odump -spaces file.o" shows a space named $DEBUG$, then it was compiled with -g.

(Thanks to Fran Litterio <franl@centerline.com>)


Subject: 8.7 Is there some kind of problem with using FLT_MIN in ANSI mode?

The C compiler dislikes this construct in ANSI mode:

x = FLT_MIN; /* <---- warning here */

The problem is that the ANSI mode (_PROTOTYPES) version of FLT_MIN/FLT_MAX in <float.h> end their constants with an F, which seems to upset the compiler.

The workaround ? Temporarily undef _PROTOTYPES around the <float.h> inclusion:

#ifdef _PROTOTYPES
#undef _PROTOTYPES
#include <float.h>
#define _PROTOTYPES
#else
#include <float.h>
#endif

(Thanks to Richard Lloyd of the Liverpool archive.)


Subject: 8.8 What's the deal with _INCLUDE_xxxx_SOURCE?

The ANSI standard clearly states what identifiers it reserves, and says the rest are available to you, the programmer. Many "important things" like "ulong" are not specified by ANSI, so ANSI header files are not allowed by the standard to define them. Each standard supported by HP-UX (POSIX1, POSIX2, XPG2, XPG3, XPG4, AES, etc) has its own set of reserved identifiers and header files, and the convention is to require "-D_POSIX_SOURCE" (et al) to enabled their respective namespaces. Since HP could not predict what future standards would come along and claim more header files and identifiers, it proved much simpler to make the namespace as restrictive as possible unless "-D_HPUX_SOURCE" is specified. While this has turned into one the most frequently asked of FAQ's about HP-UX, at least once you learn this, you don't have to deal with inconsistencies again. Whereas, had we allowed all non-standard headers to define all non-standard symbols, you'd find identifiers randomly "disappearing" from headers over time as they were claimed by various standards.

Also check the man page for "cc -Ae"; it enables the the HPUX_SOURCE namespace.

(Thanks to Marc Sabatella, HP)


Subject: 8.9 How come I need to explicitly specify -I/usr/include?

You have most likely not updated your C compiler correctly. Patches PHSS_3773 (A.09.63), 4061 (A.09.64) and 4151 (A.09.65) REQUIRE that you first install the C compiler from the April 1994 Application CD-ROM (A.09.61).

(Thanks to Richard Lloyd)


Subject: 8.10 Is there an equivalent for getrusage()?

>From the BSD porting tricks document (thanks, Mike):

#ifdef hpux
#include <sys/syscall.h>
#define getrusage(a, b) syscall(SYS_GETRUSAGE, a, b) #endif /* hpux */


Subject: 8.11 Why is syslog() call not doing what i want it to?

My program looks like:

#include <syslog.h>
void main(int argc,char *argv[])
{
syslog(LOG_EMERG,"This is an emergency message\n")); syslog(LOG_ALERT,"This is an alert message\n"); syslog(LOG_CRIT,"This is a critical message\n"); syslog(LOG_ERR,"This is an error message\n"); syslog(LOG_WARNING,"This is a warning\n"); syslog(LOG_NOTICE,"This is a notice\n"); syslog(LOG_INFO,"This is an informal message\n"); syslog(LOG_DEBUG,"This is a debug message\n"); }

It does log all the messages to /usr/adm/syslog - why not?

First of all, the LOG_EMERG can not be used with user processes and should return -1 (if you check the return status). This is not documented in the man page! All the other message should appear, but you're /etc/syslog.conf file might not be configured correctly. To test it replace the /etc/syslog.conf with the following line:

*.debug /usr/adm/syslog

Then do: kill -HUP `cat /etc/syslog.pid` Then run the test program and then tail the /usr/adm/syslog file and you should see all the messages, ie:

Nov 23 09:02:54 orca syslogd: restart Nov 23 09:02:58 orca syslog: This is an alert message Nov 23 09:02:58 orca syslog: This is a critical message Nov 23 09:02:58 orca syslog: This is an error message Nov 23 09:02:58 orca syslog: This is a warning Nov 23 09:02:58 orca syslog: This is a notice Nov 23 09:02:58 orca syslog: This is an informal message Nov 23 09:02:58 orca syslog: This is a debug message

(Thanks to Colin Wynd)


Subject: 8.12 Is trace on HP-UX?

For HP-UX 11.x, the tusc command provides system call tracing functionality. It is available at:

ftp://ftp.cup.hp.com/dist/networking/misc/tusc.shar

For HP-UX 10.20 and prior versions, the situation is murkier. A system call tracing program is available, called trace, from Interworks as well as the Software Porting and Archive Center web sites mentioned in FAQ 3.13. However, this program only works on some systems (mostly 700s). The author, Kartik Subbarao. has declared trace obsolete in favor of tusc, and has discontinued further development and bug fixes.

Note that the tusc system call tracing tool is made available by the good graces of Chris Bertin of Hewlett-Packard.

Thanx to Kartik Subbarao <kartik_subbarao@hp.com> & Rick Jones (raj@cpu.hp.com)


Subject: 8.13 How to get C programs automatically generate stack dumps?

Here is how you get a C program automatically generate a stack dump when they abend:

U_STACK_TRACE() is an undocumented function that resides in libcl.a. Set up the signal handling like this:

#include <signal.h>
extern void U_STACK_TRACE();
signal(SIGSEGV, U_STACK_TRACE);

(Thanks to <matthews@cadcam.pms.ford.com>)


Subject: 8.14 C++ Email discussion lists

Rich Rauenzahn <mailto:rrauenza@cup.hp.com> has set up majordomo based Email lists for the discussion of HP C++ compilers (both ANSI C++/aCC and Cfront/CC).

The available lists are as follows:

   cxx-dev                 HP C++ Development Discussion List
   cxx-dev-announce        HP C++ Development Announcements
   cxx-dev-digest          HP C++ Development Discussion List Digest

cxx-dev-announce is also broadcast to cxx-dev, so there is only a need to subscribe to one of the lists. (The digest also includes both cxx-dev and cxx-dev-announce)

To subscribe to the list, send a message to majordomo@cxx.cup.hp.com with the following command in the body of the message: subscribe list-name

For additional help/information, send a message to majordomo@cxx.cup.hp.com
with the word "help" in the body of the message:


Subject: 8.15 HPUX development Email discussion lists

Rich Rauenzahn <mailto:rrauenza@cup.hp.com> has set up majordomo based Email lists for the discussion of the HP toolchain, from compilers to linkers, libraries to debuggers.

The available lists are as follows:

hpux-devtools HP-UX Development Discussion List hpux-devtools-announce HP-UX Development Announcements hpux-devtools-digest HP-UX Development Discussion List Digest

hpux-devtools-announce is also broadcast to hpux-devtools, so there is only a need to subscribe to one of the lists. (The digest also includes both hpux-devtools and hpux-devtools-announce)

To subscribe to the list, send a message to majordomo@cxx.cup.hp.com with the following command in the body of the message:

subscribe list-name

For additional help/information, send a message to majordomo@cxx.cup.hp.com with the word "help" in the body of the message:


8.16 Why do I get the error "Initialization:1: missing token-sequence in `#assert'" when I compile with the GNU C compiler (gcc).

This error is caused by the HP and GNU compilers using the -A command line option for different things.

The HP compiler uses -A to set which dialect of C the compiler expects to see in the input files, ANSI C (-Aa) or K&R C (-Ac) with K&R mode being the current default.

The GNU compiler has a conditional compilation mechanism that allows questions to be asked during the compilation using the construct '#if #question(answer)' and a mechanism of telling the compiler in advance the answers to questions with the construct '#assert question(answer)'. For the GNU compiler the -A optoion is equivalent to a #assert directive.

The error message above occurs when the GNU compiler gets the option -Aa intended for the HP compiler and reads it as an attempt to provide the answer to the question 'a' but the answer itself (which would appear in brackets) is missing.

The problem can be resolved by removing the -Aa option from the command line used for the compiler (check Makesfiles for CC and CFLAGS settings) as the GNU compiler defaults to understanding ANSI C anyway.

Thanx to Steve Fosdick <fosdicsj@aom.bt.co.uk>


Subject: 9. HARDWARE AND PERIPHERALS


Subject: 9.1 Are alternate keyboards available for HP workstations?

Yes, HP has two keyboards available for their workstations and X Terminals.

A1099B - Workstation style keyboard (Default on workstations.) A2205A - PC-101 style keyboard (Default on X Terminals.)

The 712, 715, and newer machines support PS/2 compatible keyboards and mice.


Subject: 9.2 How can I play audio CDs on an HP workstation?

A contributed application ("xcd") exists that presents a X-window CD player front panel. xcd runs on HP-UX 7.0 and 8.0, on Series 300, 400 and 700, with either SCSI or HP-IB CD-ROM drives. The SCSI drives must be HP-supplied or Toshiba XM-3201B or XM-3301B. xcd does not yet officially work on HP-UX 9.0, but I've tried it and it seems to work just fine. Note that xcd plays only through the CD player's headphone jack and not through the workstation's speaker.

xcd is available from the InterWorks workstation user group (see above), on their ftp site, CD-ROM, and via DDS tape.

Note that source is not available.

Additionally, two new programs that provide similar functionality have recently appeared, called xdp and xmcd. I use xmcd and it's great.

(Thanks to Bob Niland and others)


Subject: 9.3 How can I enable the LAN interface on a 700?

This can be problem when the LAN isn't connected at boot time. To resolve the problem, use the "reset" command in "landiag".


Subject: 9.4 How can I get an Exabyte to work on an HP?

People have under HP-UX 8.07 used device files with major number 54, minor numbers 0x201202 and 0x201203 for /dev/rmt/2m and /dev/rmt/2mn, respectively, for low density. Other people had used 0x201242 and 0x201243.

Note that with HP-UX 9.01, low density means 8200 format in 8500 drives. Major #54, minor numbers 0x201202 and 0x201203 are low density handles. With 8200 drives the density does not matter. Software compression control with 8505 drives will require a patch to HP-UX 9.01.

Caveats: some Exabyte drives will not support a "dump" blocking factor greater than 64 from the HP. Others are apparently limited in the commands they will accept (e.g. TTI noted that their 8501 tape drive will not properly interface with the HP under all conditions; however, the TTI 8510 does interface correctly). TTI had a firmware problem which should be corrected in recent 8510s.

Note that 8500 drives act as SCSI-2, while 8200s are SCSI-1. People appear to have been more successful with getting the 8500s to work with 9.01.

Experience has also shown that you may need PHKL_2898. People have also reported that you need patch PHKL_2838 for HP_UX 9.x to get compression to work.

(Thanks to Mike Peterson for much of this.)

According to jerryk@Exabyte.COM

     just letting you know we are working on drivers for s800 systems for
     exabyte products (tape and changers) for hpux 9 and 10. When they are
     fully tested we will make them available on our web site.

Subject: 9.5 Is there a "node ID" on 700s?

Yes. Most licensing systems (FLEXlm and NetLS, for example), are driven from the LLA, available from /etc/lanscan or /usr/etc/netls/ls_targetid. There is also a CPU ID number that HP uses for /etc/update; it may be a transformation of the LLA, but this is not guaranteed to remain the case, and may be disturbed by replacement of the LAN board. Additionally, the LLA can be reset by a CE using the proper secret magic program.


Subject: 9.6 How can I get a stuck DDS tape out of the drive?

  1. Power down your machine (remember shutdown!!! ;-))
  2. Open it up (you'll prob. need Torx screwdrivers).
  3. on the side of the drive, you should see a small rectangular piece of plastic. gently pry it off... it should come off quite easily.
  4. the aforementioned piece of plastic covers a hole, which houses a small dial. spinning this dial ejects the tape.
  5. replace plastic piece, close machine... and bob's your uncle.

p.s. the dial has very little torque (ie. the tape comes out quite slowly, but you can see it move. It'll take about 2-3 minutes of spinning before the tape comes out.

(Thanks to Edlin Seebick.)


Subject: 9.7 How can I use dump with a DDS tape?

dump was written to assume 9-track tapes, so some fudging has to be done for DDS tapes. The following has the info you need along with several alternatives for dump parameters.

Approximate capacity of 60m DDS tape = 1.3G bytes Approximate DDS tape density = (1.3G bytes) / (60 m) = (550K bytes/in)

dump assumes an inter-record gap (IRG) of 0.3 in for density = 6250, 0.7 in otherwise.

dump uses a default blocking factor of 10 for density < 6250, 32 otherwise.


density = 550000
blocking factor = 32 (default)
assumed IRG = 0.7 in

Block length = (32K bytes/block) / (550K bytes/in) + (0.7 in) = (0.76 in)

Effective tape length =

(1.3G bytes) / (32K bytes/block) * (0.76 in/block) = (2511 ft)


density = 6250
blocking factor = 32 (default)
assumed IRG = 0.3 in

Block length = (32K bytes/block) / (6250 bytes/in) + (0.3 in) = (5.54 in)

Effective tape length =

(1.3G bytes) / (32K bytes/block) * (5.54 in/block) = (18325 ft)


density = 1600
blocking factor = 10 (default)
assumed IRG = 0.7 in

Block length = (10K bytes/block) / (1600 bytes/in) + (0.7 in) = (7.10 in)

Effective tape length =

(1.3G bytes) / (10K bytes/block) * (7.10 in/block) = (75113 ft)


density = 1600
blocking factor = 32
assumed IRG = 0.7 in

Block length = (32K bytes/block) / (1600 bytes/in) + (0.7 in) = (21.18 in)

Effective tape length =

(1.3G bytes) / (32K bytes/block) * (21.18 in/block) = (70022 ft)

(Thanks to Cary Coutant, HP.)


Subject: 9.8 What is the correct major number for DDS drives on 9.x?

For reasons too detailed to go into here, the major number for DDS drives has changed to 121 (from 54) at 9.01. Note that 54 had partition support, while 121 does not, but has lun support. This only works for 700s.


Subject: 9.9 How can I set up /dev/audio to point to the external jack on a 700?

Alter the /dev/audio device file as follows:

crw-rw-rw-   1 root     sys       57 0x208011  /dev/audio  ; external jack
crw-rw-rw-   1 root     sys       57 0x208000  /dev/audio  ; internal speaker

The commands are:
mknod /dev/audio c 57 0x2080?? <- replace ?? with 00 or 11 as shown above.

(Thanks to Lou Kvitek.)


Subject: 9.10 How can I configure the parallel port handshake on a 700?

Check out the man page for "cent".


Subject: 9.11 What are the specs of the audio hardware on the 700 series?

This is a summary of the audio features supported by the models 715, 725, 735, and 755 workstations. The 705 and 710 also have audio, but the specs are not available. The 720, 730, and 750 models DO NOT have audio.

Audio features Programmable sample rates (kHz): 8, 11.025, 16,

                    22.05,32, 44.1, 48
                Programmable output attenuation: 0 to -96 dB in 1.5 dB steps
                Programmable input gain: 0 to 22.5 dB in 1.5 dB steps
                Input monitoring
                Coding formats: 16-bit linear, 8-bit mulaw, or A-law

Audio inputs        Line in

(not on all models) Mono microphone with 1.5V phantom power

(Editorial comment - a Sun microphone appears to work just fine.)

Audio outputs       Line out
(not on all models)     Headphone
                    Mono speaker jacks
                    Built-in mono speaker

Audio CODEC         Crystal CS4215

Typical specifications measured on a stock 715. Values will differ only slightly on other models.

Frequency response 25 - 20,000 Hz

Input Sensitivity/Impedance

            Line In         2.0 V(pk) / 47 kohms
            Microphone  22 mV(pk) / 1 kohm

Output Impedance (nominal)

            Line out    619 ohms
            Headphone   118 ohms
            Speaker (ext)  11 ohms

Max Output Level/Impedance

            Line Out    2.8 V (p-p) / 47 kohms
                        Headphone   2.75 V (p-p) / 50 ohms
                        Speaker (ext)  5.88 V (p-p) / 48 ohms

Signal to Noise

            Line In     61 dB
            Line Out    65 dB
            Microphone  57 dB
            Headphone   61 dB
            Speaker (ext)  63 dB

THD (at nominal load)

            Line In     -75 dB
            Line Out    -73 dB
            Microphone  -73 dB
            Headphone   -70 dB
            Speaker (ext)   -68 dB

(Thanks to Rocky Craig, HP)


Subject: 9.12 What are the various revisions of PA-RISC?

PA-RISC 1.1 is an extension to the PA-RISC 1.0 architecture, and is fully backwards-compatible (i.e., all PA-RISC 1.0 programs will execute without change on PA-RISC 1.1 machines). The biggest difference is that PA-RISC 1.1 added 16 more floating-point registers, the ability to address each double-precision floating-point register as two single-precision registers, and a few new floating-point operations, so the floating-point performance is greatly improved. There were a few changes on the integer side, but nothing major.

The first machines to be shipped with PA-RISC 1.1 CPUs were the first Series 700 machines (the "Snakes" series). Shortly after that, however, the "Nova" series of Series 800 (8x7) machines was introduced using the same PA-RISC 1.1 CPU. Since then, every new PA-RISC machine that HP has produced is based on the PA-RISC 1.1 architecture.

Thus, all Series 700 machines are PA-RISC 1.1, and the newer Series 800 machines are PA-RISC 1.1. If you compile a program on a Series 700 machine, the compiler will generate PA-RISC 1.1 code by default, but if you compile a program on a Series 800 machine (even a newer 1.1 machine), the compiler will generate PA-RISC 1.0 code to ensure that the program will run within the entire 800 family.

To force the compiler to generate PA-RISC 1.0 code, you use the +DA 1.0 compiler option. This is all you need to do, as long as you are careful not to link your code with any libraries that were compiled for PA-RISC 1.1. If any object module in your program is compiled for PA-RISC 1.1, your entire program will be marked as a PA-RISC 1.1 program. The "file" command will tell you which architecture is required to execute your program. Most system archive libraries that HP ships are compiled for PA-RISC 1.0; an exception is the math library, which is shipped in both forms (a PA-RISC 1.1 version is in /lib/pa1.1), although the 1.1 version contains a few entry points that are not available in the 1.0 version.

The scheduling option, +DS xxx, does not affect the compatibility of the object code. It affects only how the optimizer schedules instructions that have long latencies, so it is usually to your advantage to schedule the code for the fastest machine currently shipping, even if you are generating 1.0 code.

When compiling code on one platform for another platform, the thing you do have to worry about is the operating system release. In general you can compile a program on a Series 700 machine with +DA 1.0, and it will run correctly as long as the program will execute on the same or a later release of the OS as the one on which it was compiled. Thus, you can not expect a program compiled on a 700 running 9.0 to run on an 800 running 8.0.

(Thanks to Cary Coutant, HP)


Subject: 9.13 How do I read an SGI-written tar format DDS tape?

The secret (at least in this case) is to byte-swap the tape before passing it to tar:

dd if=/dev/rmt/0m conv=swab | tar -xvf -

Byte swapping is believed to only be necessary if the device which created the tape was a swapping one. (Swapping tape devices are the default on IRIX 4, but not in IRIX 5). One can use /dev/nrtapens on either system to produce tapes which are not byte-swapped. If the SGI is running Irix 5.0x and above, a large (512k) block size is used:

dd if=/dev/rmt/0m ibs=512k obs=10k| tar -xvf -

(thanks to Paul Booth           <paul@eye.com> and
           Christian L Claiborn <claiborn@ctron.com>)

Subject: 9.14 Is there a trackball for the 700?

>From the 'hp-ux/resource directory' published by Interex:

"BKS manufactures and markets THE ORIGINAL HP M1309A HP-HIL Trackball. Plug-compatible with HP's standard 3-button HP-HIL mouse. BKS acquired manufacturing and marketing rights to this product from Hewlett-Packard in June 1993. Another 'no-problem' product from BKS--the specialists in hardware accessories for HP systems"

BKS Electronique
20 Rue A. Berges/Z.1.DES 1LES
Le Pont De Claix, France 38800
+33 76 98 30 99, FAX: +33 76 98 57 79

>From the September 1994 issue of 'hp-ux/usr' magazine also published by Interex:

"HP Serial MOUSE-TRAK now Available For 700 Series. No Quad Port Adapter Required.
Call for information"

ITAC Systems, Inc.
3113 Benton Street
Garland, TX 75042
(800) 533-4822 FAX: (214)494-4159
yvonne@mousetrak.com
(too many international distributors to type in) U.K., Norway, Germany, Switzerland, Denmark, Australia, Sweden, Seoul Korea, France, Israel


Subject: 9.15 Where can I get disktab entries for third party disks?

Generally, the supplier should provide a disktab entry. Andataco does a good job of this. One place to try:

http://hpwww.epfl.ch/HPUX/tools/disktab.html

Additionally, Ion has set up a mail service; to access it, send e-mail to <mailer@hpwww.epfl.ch> and respect the following syntax for the subject field:

disktab table - returns the available disktab file disktab how - returns two methods to create a new disktab entry from scratch

Send any comments, remarks, problems AND new tested disktab entries to <ion.cionca@sic.adm.epfl.ch>

Patch PHSS_4981 has the disktab entries for the following drives:

Seagate ST32430WD, Seagate ST32430N, Seagate ST31230WD, Seagate ST31230N, HPC3324A, HPC3324W, HPC3325A, HPC3325W Seagate ST31200N, Seagate ST31200W, Seagate ST12400N, Seagate ST12400W, DEC DSP3107LS, DEC DSP3107LSW, DEC DSP3210S, DEC DSP3210SW, Quantum LPS1080S, Quantum LPS1080WD

(thanks to Ion Cionca, and Colin Wynd <colin@col.hp.com>)


Subject: 9.16 Do I need to terminate the internal SCSI on a 700?

According to some people, an unterminated internal SCSI on a 700 will cause interrupts which are ignored but slow down the machine. Terminate to be safe.


Subject: 9.17 What is the largest disk partition I can have at 9.x?

On a 700, you can get 2Gbytes, unless you have the SCSI patches that allow 3.7Gbytes. You can safely put any size disk on the system you want, but the OS will only allow you to access 2G (or 3.7G).

(thanks to Mike Lampi, MDL <lampi@mdlcorp.com>, and

Seth LaForge <sethml@ugcs.caltech.edu>)


Subject: 9.18 How can I determine how much RAM I have non-interactively?

Here is a short program that returns the RAM size:

#include <sys/pstat.h>
main()
{

struct pst_static buf;
pstat(PSTAT_STATIC, &buf, sizeof(buf), 0, 0); printf("Physical RAM = %ldMB\n", buf.physical_memory/256); }

If you are root, you can use adb as follows:

# 9.x
echo "physmem/D" | adb /hp-ux /dev/kmem | tail -1 | \ awk '$2 > 0 { print $2 / 256 }'

# 10.x
echo "physmem/D" | adb /stand/vmunix /dev/kmem | tail -1 | \ awk '$2 > 0 { print $2 / 256 }'

# 11.x
echo "phys_mem_pages/D" | adb /stand/vmunix /dev/kmem | tail -1 | \ awk '$2 > 0 { print $2 / 256 }'

Or if /etc/dmesg is still current, you can grep it:

/etc/dmesg | grep "real mem" | tail -1 | awk '$4 > 0 { print $4 / 1048576 }'

(thanks to Richard Lloyd <rkl@csc.liv.ac.uk> and Mike Frison <mike_frison@mentorg.com> and Les Peters <lpeters@aol.net>)


Subject: 9.19 How can I turn off the lpspooler cover page?

  1. For one job/user only:

Alias your "lp" command to "lp -onb"

2) For all the print jobs:

Depending on the type of spooler script do either:

  1. Edit your /usr/spool/lp/interface/"printer name" file and comment out the banner page. Note that if you are using the JetAdmin tool the real script will be:- /usr/spool/lp/interface/model.orig/"printer name"
  2. The newer interface files (in /usr/spool/lp/interface/*) call /usr/lib/rlp and if your model script has that then insert the following line before the /usr/lib/rlp statement:

BSDh="-h"

The model script would now look something like:-

            ...
            shift; shift; shift; shift; shift

            #Added the no banner option here
            BSDh="-h"

            /usr/lib/rlp -I$requestid $BSDC $BSDJ $BSDT $BSDi $BSD1 $BSD2 ...
            ...

(thanks to Dan Silva     <dan@lamar.colostate.edu>, and
           Daniel Wexler <dwexler@siac.com>)

Subject: 9.20 Why are CDROM filenames all UPPERCASE with ;1 attached?

The filenames appear as UPPERCASE filenames with ;1 versions numbers in HP-UX. That's because HP-UX only supports ISO 9660 and does not translate the all UPPERCASE 8.3 character filenames to lowercase nor does it remove the ;version-numbers as they are stored in exactly this manner on the CDROM.

These names, while perfectly acceptable to HP-UX as filenames (albeit a bit inconvenient since most shells see the ; as a command separator), can be a problematic for software not written to handle the CDROM native filename format. Many other vendor offer switches to perform the lowercase and version number removal but HP-UX does not.

There are 3 workarounds:

  1. Write a script (or use cdrutil.ksh available at many archive sites) to perform the translation by creating a series of symbolic links. These links would have to be created and removed after mount and umount commands, respectively. Some CDROMs may require 15-45 minutes to complete this task.
  2. Get the patch:

PHKL_6075: s700 at 9.03, 9.05, 9.07 (no 9.01 or earlier)

PHKL_6272: s700: 10.01

PHKL_6076: s700: 10.00

PHKL_6338: s800: 9.04 (none prior to 9.04)

PHKL_6077: s800: 10.00

PHKL_6273: s800: 10.01

        These add a modification to the cdfs code which can translate all
        mounted CDROMs (not selectively) to accomplish the same task.  This
        patch adds no additional filesystem support such as POSIX or the
        RockRidge Extensions.  This patch can only be activated by modifying
        the kernel with adb.  An example of how to modify the 9.xx kernel is
        shown in the patch.  Note that this patch affects every mounted CDROM
        in the system at the same time.

     c. Through an agreement with Young Minds, Inc, the Portable File System
        (PFS) code has been made available to 700 and 800 series systems
        running 9.xx and 10.xx.  This code accomplishes not only the lowercase
        translation and version removal (both are separate options and can be
        specified on or off for each CDROM), but also provides RockRidge
        Extensions (long filenames, ownerships, permissions).  This code is
        available on the Nov-Dec 1995 application CDROM and tapes for the
        700's, and on the Jan-Feb 1996 Application CDROM/tapes.  The media can
        be purchased at any time for a nominal fee.

        PFS handles exporting of CDROM filenames as well as importing these
        names from other HP-UX systems, and is the most versatile solution
        to the CDROM compatibility problems in HP-UX.

Thanks to Bill Hassell (blh@atl.hp.com)


Subject: 9.21 DIP Switch Settings for HP 7475 Plotter (RS-232)

DIP Switch Settings for HP 7475 Plotter (RS-232)

         S   S       U   A   B   B   B   B
         2   1   Y   S   3   4   3   2   1
      +-------------------------------------+
      | +-+ +-+ +-+ +-+ +-+ +-+ +-+ +-+ +-+ |  1
      | | | | | | | | | | | |X| | | |X| | | |
      | +-+ +-+ +-+ +-+ +-+ +-+ +-+ +-+ +-+ |
      | |X| |X| |X| |X| |X| | | |X| | | |X| |
      | +-+ +-+ +-+ +-+ +-+ +-+ +-+ +-+ +-+ |  0
      +-------------------------------------+
        -+---+-  D   M   A  -+---+---+---+-
         |PAR|   |   E   4   |    BAUD   |
         |   |   |   T   |   |   |   |   |
         |   |   |   |   |   |   |   |   |
  none(*)0   0   |   |   |   0   0   0   0      external, 2 stop bits
  even   0   1   |   |   |   0   0   0   1        75 bps, 2 stop bits
  none   1   0   |   |   |   0   0   1   0       110 bps, 2 stop bits
   odd   1   1   |   |   |   0   0   1   1       150 bps, 1 stop bit
                 |   |   |   0   1   0   0       200 bps, 1 stop bit
  "D" is for ----+   |   |   0   1   0   1       300 bps, 1 stop bit
  Direct (vs. "Y"    |   |   0   1   1   0       600 bps, 1 stop bit
  for Y-connector).  |   |   0   1   1   1      1200 bps, 1 stop bit
  You'll want "D".   |   |   1   0   0   0      2400 bps, 1 stop bit
                     |   |   1   0   0   1      4800 bps, 1 stop bit
                     |   |   1   0   1   0      9600 bps, 1 stop bit(*)
  Paper Size:        |   |   1   0   1   1       300 bps, 2 stop bits
       (*)ISO A4 --- 0   0   1   1   0   0       600 bps, 2 stop bits
          ISO A3 --- 0   1   1   1   0   1      1200 bps, 2 stop bits
          ANSI A --- 1   0   1   1   1   0      2400 bps, 2 stop bits
          ANSI B --- 1   1   1   1   1   1      4800 bps, 2 stop bits

Cabling

The 7475 uses a non-standard cable (HP P/N 17255A). Mine rings out like this:
Computer                 Plotter
Female                   Male
25-pin "D"               25-pin "D"

1 ---------------------- 1

2 ---------------------- 3

3 ---------------------- 2

5 --+------------------- 20

|
6 --+

7 ---------------------- 7


Subject: 9.22 Why inserts HP-UX 4 spaces when I print using a parallel port?

HP-UX inserts 4 spaces at the beginning of each line when I print using the parallel port. To fix it look at /etc/rc, and search for "slp" and change it to be "slp -i0".

(Thanks to Nils Gerloff <ng@hcs.de>).


Subject: 9.23 How do I find the speed of my system?

I just inherited a second hand 715, but I don't know what the CPU speed is (the label on the front case has come off). Is there a way to find this out?

Login as root on a 9.x system and try:

echo itick_per_tick/D | adb /hp-ux /dev/kmem | tail -n1 \

| awk '{print $2 / 10000, "MHZ"}'

(thanks to Bruce W. Smith <brucewsmith@delphi.com>)


Subject: 9.24 Why do NCD X-terms hang when trying to run XDMCP from an HP-UX 10.20 host running CDE?

This is a language negotiation problem. Copy the file /usr/dt/config/Xconfig into /etc/dt/config then edit it. Find bit that reads:

############################################################################ # To specify a default language for the display. #
# Dtlogin*language: <lang>

and modify it so it looks something like:

############################################################################ # To specify a default language for the display. #
# Dtlogin*language: <lang>
Dtlogin*language: en_GB.iso88591

i.e. specify a language rather than letting it try to work out for itself what it should do.

Thanx to Steve Fosdick (fosdicsj@aom.bt.co.uk)


Subject: 9.25 How can I use audio on HPUX 10 without a network?

The problem is that audio relies on the DCE rpcd, which doesn't start if there's no network. Consequently, the audio server (Aserver) fails to start either.

You can always access /dev/audio directly, but you won't be able to use HP's audio software, such as the Audio Control Panel or the Audio Editor. Furthermore, this method is not documented by HP.

To get Aserver to work, you basically have to make the machine believe it's on a network. You have to get the lan interface up, loopback is not enough. Plugging a transceiver into the AUI port is reported to work on 715s and 712s.

Another solution is to restore /usr/audio/*, llbd and libAt.* from a 9.x backup tape and replace rpcd by a symbolic link to llbd. Then, you can use audio in much the same way as on HPUX 9.x. The only problem is that the buttons in the audio_editor don't have any text in them, so one has to guess which one does what.

Michael Piotrowski created a page to collect solutions of this problem: http://www.linguistik.uni-erlangen.de/~mxp/audio Thanx also to Rainer Koehler <koehler@aip.de>


9.26 Why is HP-UX the only OS that doesn't read my RockRidge CD's correctly?

The answer is, because Linux and Sun workstations load RR extensions natively while with HP-UX you have to use PFS (Portable File System) which is, luckily, included with HPUX10.x. Here is what you need to do to read 'em:

0) Check that the directory containing the PFS utilities

(usually /usr/sbin) is in your PATH.

  1. Edit (or create) the /etc/pfs_fstab file to contain a line like this:

    <device> <mount_dir> pfs-rrip xlat=rrip 0 0 Where: <device> is the path to your CD-ROM reader (e.g. /dev/dsk/c1t2d0) <mount_dir> is the path to an existing directory where the CD-ROM will be mounted (e.g. /rr_cdrom)

  2. Run the following commands:

    pfs_mountd & pfsd 4 & These daemons can be started from rc if necessary.

  3. Mount the drive with the command:

    pfs_mount <device> | <mount_dir> Or unmount it with:

    pfs_umount <device> | <mount_dir> Where <device> and <mount_dir> are the same as in 1)

The CD-ROM should be now readable with long and mixed-case filenames.

Thanx to Giovanni Bobbio <g.bobbio@netvalley.it>


Subject: 10. LOOKING FOR...


Subject: 10.1 Where did xline go at 9.x?

We don't know. The 9.x Motif version of Glance Plus has what xline had (and more).


Subject: 10.2 How about the VUE 2.01 man page help index?

The man pages will show up in the index if you copy over pre-9.X copies of the files "/usr/lib/X11/vue/help/C/manpage.cat", and "/usr/lib/X11/vue/help/C/manpage/*".

(Thanks, Mike Stroyan, HP)


Subject: 10.3 Is there anything remotely like the Apollo DM available?

HP had a product called DMX which is somewhat like the DM. Enabling Technologies has a product called "ce" which seems to be a more faithful interpretation.


Subject: 10.4 Where can I get SLIP for HP-UX?

On HP 9000 systems (both workstations and servers) SLIP is called ppl and is a part of the LAN/9000 Link product.

(Thanks to Mike Taylor and Alec Henderson, HP)


Subject: 10.5 Where can I get pcnfsd on HP-UX?

It's part of the standard NFS distribution.


Subject: 10.6 Where can I get ppp for HP-UX?

Morningstar has a commercial implementation available. See

ftp://ftp.progressive-systems.com
and more information on the product and company are available from

http://www.progressive-systems.com
Thanx to Matthew Dawson <dawsonm@progressive-systems.com>


Subject: 10.7 Where can I get STREAMS for HP-UX?

STREAMS/UX is currently a separate product that can be purchased for use with HP-UX 9.x. STREAMS/UX is based on the OSF/1 STREAMS code (which in turn is based on STREAMS code from Mentat). You can obtain a STREAMS/UX datasheet from the HP FIRST fax-back service: 800-333-1917 or 208-344-4809, document 31502. HP currently plans to bundle it with 10.x.

(thanks to Alec Henderson, HP)


Subject: 10.8 What about POSIX threads?

The DCE product includes user-space DCE threads, which are based on an early draft of the POSIX standard, but are not compatible with true POSIX threads. Version 11 of HP-UX includes kernel support for POSIX threads. (pmcphee@datamirror.com)

POSIX user-space DCE threads are currently available as part of the DCE product, which includes thread-safe C libraries and pthread.h. On HPUX 10.20 these can be found in the DCE-CoreTools product on the HPUX Install/Core CD. (rrauenza@cup.hp.com)


Subject: 10.9 Where can I get Interviews for HP-UX?

HP has a product called Interviews Plus. The product number is B2625A for Series 800 and B2626A for Series 700 systems.

(Thanks to Rob Slotemaker, HP).


Subject: 10.10 Where can I get POP for HP-UX?

pop3d is available from the Interworks archive site listed in 3.12.

Qualcomm, makers of the Eudora email client for Macs and PCs, is currently maintaining qpopper, a modified version of Berkeley's 1.831beta popper. Current version is 2.1.4-r3. It can be found at: ftp://ftp.qualcomm.com/eudora/servers/unix/popper

Use the ``sysv'' target for HP/UX (i.e. ``make sysv'').

(Thanks to David D. Kilzer <ddkilzer@iastate.edu>)


Subject: 10.11 Where can I get sudo for HP-UX?

CU sudo 1.3 and higher supports hpux. See section 3.13 for FTP sites.

(Thanks to Todd Miller, <millert@cs.Colorado.EDU>)


Subject: 10.12 Where can I get ntalk for HP-UX?

See section 3.13 for an FTP site.


Subject: 10.13 Where can i get disktab entries for certain seagate drives?

Patch PHSS_4981 has the disktab entries for the following drives:

Seagate ST32430WD, Seagate ST32430N, Seagate ST31230WD, Seagate ST31230N, HPC3324A, HPC3324W, HPC3325A, HPC3325W Seagate ST31200N, Seagate ST31200W, Seagate ST12400N, Seagate ST12400W, DEC DSP3107LS, DEC DSP3107LSW, DEC DSP3210S, DEC DSP3210SW, Quantum LPS1080S, Quantum LPS1080WD


Subject: 10.14 Where can I get information on a public domain PPP?

A version of PPP that's public domain can be retrieved from:

ftp://ftp.uni-frankfurt.de/pub/networking/HP-UX/iijppp.0.93.hp.tgz

If this site is unreachable, this alternate site can be used:

ftp://ee.utah.edu/ppp/


Subject: 10.15 Where can I get generic information about PPP on HP-UX?

Check out Barthold Lichtenbelt's "ppp on hpux" Web Page at

http://www.interex.org/~borg/ppp.html Note that he works for HP in the Workstations Systems Division (the Graphics Software Lab), but maintains the page in his free time on his personal account. HP doesn't have anything to do with it.

Thanx to Barthold Lichtenbelt <barthold@verinet.com>


Subject: 11. HP-UX 10.x INFORMATION


Subject: 11.1 Can you have Multiple IP addresses on one interface?

HP ServiceGuard allows you to configure multiple IP addresses on one interface.

First, all primary network interfaces must have "stationary" IP addresses "ifconfig"ed on them. Say for example, you have a system with 2 ethernet interfaces (one primary and one for backup) and 2 FDDI interfaces (one primary and one backup) and they are interfaces lan0, lan1, lan2 and lan3 respectively. Your /etc/rc.config.d/netconf file would have lan0 having an IP address/subnet, etc (say 15.13.169.15) and lan2 would have an IP address/subnet, etc (192.6.144.15)

lan1 and lan3 would not be specified in the netconf file as they will not initially have any IP addresses on them.

ServiceGuard has a "cmmodnet" command which will ADD IP addresses to existing interfaces. For example, to add a "Package IP" address to the ethernet lan you would:

cmmodnet -a -i 15.13.169.16 15.13.143

Where -a is add -i 15.13.169.16 is the IP address to add and 15.13.143 is the subnet where to add it. The cmmodnet command (via the ioctl()s) then figures out that the SUBNET is currently on lan0 and magically you have 2 ip addresses on the same SUBNET. Both going through lan0.

This feature is only currently available through the ServiceGuard product.

BUT ... On 10.20, if one installs the latest ARPA patches and "ifalias" patches, one can add multiple IP addresses on one interface without having to buy Service Guard.

On 11.X, no additional patches are required, and one does not use an ifalias command. The functionality is part of the ifconfig(1m) command. For additional aliases on the same physical interface, one would ifconfig lan0..., ifconfig lan0:1..., ifconfig lan0:N.

Thanx to Rick Jones (raj@cup.hp.com)


Subject: 11.2 What version of named is running at HP-UX 10.0?

Version 4.8.3 is running at HP-UX 10.0.

$ what /usr/sbin/named
/usr/sbin/named:

Copyright (c) 1986, 1989, 1990 Regents of the University of California named 4.8.3 Tue Nov 1 17:03:51 GMT 1994

And/Or you can apply PHNE_14617 to upgrade this.t For HP-UX 11, one can download a copy of BIND 8.1.1 from www.software.hp.com/.

Thanx to Rick Jones <raj@cup.hp.com>


Subject: 11.3 What documents are available on HP-UX 10.0?

Check http://us-support.external.hp.com/

The URL for a specific document is :

http://us-support.external.hp.com/kdb-bin/wwwsdoc.pl?<Document ID> Note that there is some good stuff in /usr/local/doc also.

Thanx to Skunk Schouten <skunky@skunky.org>


Subject: 11.4 What is SD-UX and why does it replace /etc/update?

For HP-UX 10.0, the distribution of HP-UX software has been completely revised. HP Software Distributor 2.0 is used to install, update, remove, and package HP-UX software. This product is called SD-UX, often informally shortened to just SD (even though there is also an unbundled product called SD-OV offering enhancements over SD-UX).

All HP-UX 10.0 software is shipped on media compatible with SD. SD media can not be read by installation tools from previous HP-UX releases like /etc/update, nor can you use previous installation tools with HP-UX 10.0 software. The /etc/update program and its associated tools (/etc/updist, /etc/filesets/, /system/, and so on) are obsolete, replaced by SD.

SD provides enhanced functionality, added features, and greater ease of use than that provided by previous installation tools. The concept of installing, configuring, removing, and otherwise managing software has not changed. However, the set of commands and some of the capabilities that SD brings to HP-UX are all new.

SD offers three user interfaces:

  1. An interactive graphical user interface available for the swinstall, swcopy, and swremove commands.
  2. An interactive user interface suitable for ASCII terminals (on S800) for the swinstall, swcopy, and swremove commands.
  3. A non-interactive command-line user interface for all commands.

For additional information on SD commands and features, see the individual SD command manual pages, SAM's online help, the "Installing HP-UX 10.0" manual (B2355-90050), and the "Managing HP-UX Software with SD-UX" manual (B2355-90054).

The release notes shipped at 10.0 in /usr/share/doc/10.0RelNotes also contain this information.


Subject: 12. S300/400 SPECIFIC INFORMATION


Subject: 12.1 When will HPUX 9.10 be available?

HP-UX 9.10 MR'd on 3/1/95. It will be shipped on April 17 1995 on DART 22.

This release is the latest PCO in the 9.X stream for the 68k platform, and completely replaces the 9.03 release of last spring.

This release provides: defect fixes, patch roll-up, selected enhancements, and additional peripheral support, while maintaining binary and script compatibility, providing improved interoperability with 10.0, and satisfying the top 10 customer requests as allowed.


Subject: 12.2 What are the highlights of HP-UX 9.10?

The HP-UX 9.10 release for Series 300/400 provides many tools to improve interoperability with Series 700/800 10.x systems:

1