Coming from an IRIX environment HPUX should not be too difficult to understand. Most of my notes on my main Unix page are directly applicable.
For HP-UX adminstrators, in addition to my general Unix reading list on that page, I recommend
Poniatowski, Marty, 1997. HP-UX System Adminstration Handbook and Toolkit,NJ:Prentice Hall.
Many of the common troubleshooting and tuning tools (such as ps) are available under HPUX, but may differ somewhat from other Unix'es. Here are some HPUX-specific tools or HPUX-specific implementations of common tools to look for:
sam - HP's all-around system management and configuration tool.swinstall (etc.) - HP's all-around system software management tool. (Also use swlist -l products, swlist -l filesets -a state -a install_date to list software and configurations, swverify to check installations.)model - displays HP's model names for the systemnettune - Change network parameters (like "systune" on svr4 systems, for network variables).sysdef - shows configuration of kernel parameters.dmesg - shows system startup messages and memory configuration.ioscan [-f] - Hardware inventory./usr/lbin/sysadm/system_prep -s - Recreates the "system" file, in /stand, which shows changes to default kernel variable settings, as well as other kernel installation features.lsdev/lssof - Device driver inventory/details.top - top shows some information (RSS) that ps does not, and vice-versasar - Sar shows most of what you would expect from other systems. Be warned however, that the statistics for such things as inod-tables actually refer to the occupancy of the cache, not the table itself. (This is not properly documented, but was revealed to me by HP support.) Also, better paging statistics can be found in vmstat, some more i/o info in iostatswapinfo [-m]|[-at] - Shows config & use of the swap devices.lanadmin/landiag/lanscan - Can give network interface stats, show ethernet addresses. Supplemental
to netstat, and can reset the counters.netfmt -v -f /var/adm/nettl.LOG00 - List detailed troubleshooting messages from the lan interfacenettl - HP's packet tracer. nfsstat,showmount and rpcinfo for NFS troubleshooting and tuningd2 option for nslookup for performance and troubleshooting and logging for named using signals or sig_named. Also remember that in addition to /etc/resolv.conf (use "man resolver" to get information) HPUX uses /etc/nsswitch.conf (use "man switch" to get information).sendmail- The sendmail options for resolving addresses are sendmail -bv -v -oL10 address (note that -bv prebvents message sending). Use sendmail -bt to get information about address rewriting. Use sendmail -v for mail tracing (to the next delivery agent).what- this is a general utility for printing SCCS strings embedded in executables. It's particularly useful on HP's because they compile these into their code, and it an indicate which libraries were linked with the executable.chatr - can be used to show libraries linked by an executable (Don't forget the old reliable tools for listing symbols and strings: nm and strings.)These free tools are available from software.hp.com, as well as other locations.
dmon - a curses-based performance monitor, makes the normal stats easier to monitor interactively.lsof - like fuser, shows the files used by processes. Also shows other resource use, such as network ports. Invaluable for troubleshooting.trace - Trace the system calls for an executable. Invaluable for troubleshooting. (Does not trace shell scripts, but remember that shell scripts can be traced by putting debug flags in the #! line.)tcpdump - Trace packets on the network. Invaluable for network troubleshooting, can also be used as the foundation of a performance measurement tool.HP-UX also has a significantly different approach to memory management than most other Unixes. Two kernel features may be of particular interest:
You may also want to read the
The HPUX bootup process is conceptually the same as the IRIX bootup process described in my handouts. Both OS's: (1) Load bootup parameters from non-volatile memory, and run diagnostics. (2) Load a bootstrap loader for the OS. (3) Start init and procede through the inittab entries and the rcXX.d scripts.
Some of the HPUX commands, especially in stages 1 & 2, are different in the details:
HP-UX does not support the svr5r3 tool icrash, which is immensely useful for crash debugging. Instead, they provide their own scripts. This is what you need to do to run a panic analysis:
| Copyright © 1995-2009 | Micah Altman |