HP-UX

From My Admin Page
Jump to: navigation, search
HP-UX Support EOL Dates
Vers Introduced End of Sales End Factory Support
11i v3 February-2007 31-December-2014 31-December-2020
11i v2 September-2003 31-December-2010 31-December-2013
11i v1 December-2000 31-December-2009 31-December-2013
11.0 November-1997 01-February-2005 31-December-2006
From the HP-UX 11i versions and their lifecycle dates Document

Disk Related

  • To manage RAID controllers use SACONFIG and SAUTIL. The command requires the device file /dev/ciss* which is the path for a HP SmartArray card path.
  • To scan for and show disk devices do: ioscan -fnkC disk
    • **NOTE** the "-C" part specifies by CLASS which is (as defined in the ioscan man page): "A device category, defined in the files located in the directory /usr/conf/master.d and consistent with the listings output by lsdev (see lsdev(1M)). Examples are disk, printer, and tape."
  • Mirroring root disk on Itanium-based systems

User Accounts & Passwords

  • unlock account (Trusted)
/usr/lbin/modprpw -k -l <user> (unlock)
 -v   "Validate/refresh" the specified user's password. This option is specified with a user name.
 -k   unlock/enable a user's account that has become disabled, except when the lock is due
      to a missing password or * password. (May be combined with the -l and/or -m options.)
 -e   This option is specified with a user name to expire the specified user's password. 
      It zeroes the successful change time.
 -x   Delete the user's password and return a random password that the user must later supply 
      to the login process to login and pick a new password.

 -V   "Validate/refresh" all user's passwords. This option is specified WITHOUT a user name.
 -E   Expire all user's passwords (is specified WITHOUT a user name).
  • PASSWD Options
 -a   Display some password attributes for all users in the password file.  The -a option must be 
      used in  conjunction with the -s <user> option, with no name specified. For files, this is 
      restricted to superuser.   For a more complete display of attributes use the logins -x command.
 -d   Allow user to login without a password by deleting it. This option unlocks/activates the user 
      account if found locked/deactivated.
 -f   Force user to change password upon next login by expiring the current password.
 -l   Lock user account.  This option replaces the encrypted password with *.

Printing

Misc

  • Show listening ports & processes: lsof -nPi tcp | grep LISTEN
Colums are: COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
To restart : /sbin/init.d/SnmpMaster stop ; /sbin/init.d/SnmpMaster start
  • How to Disable TRUSTED mode (from here) : /usr/lbin/tsconvert -r
  • How to convert Password files to /etc/passwd & /etc/shadow : pwconv
  • To check events: cat /var/opt/resmon/log/event.log

Patching & Software Installation

Software Install

HP Porting and Archiving Centere (Open Source pkgs) Note - best to use their installer depothelper.
HP Support Center

Installation with swinstall

  • List contents of a depot File : /usr/sbin/swlist -l file -s /<directory>/<depot file>
  • Install software from local depot file: /usr/sbin/swinstall -s /<directory>/<depot file> \*
  • Install software from local depot using any response files generated (e.g swask): swinstall -s <directory> -x ask=true \*

Patching

I’ve found that this command is the most useful form to get the report done:
  • swa report -x crl_check=false -r html > somepath.html
Then, once this is done, you can get the patches with this command:
  • swa get -x crl_check=false -t /var/tmp/depot
When the patches are downloaded and the depot created, use something like this to install the patches:
  • swinstall -i -s /var/tmp/depot @ /
  • How to tell when last patched: ls -lrt /car/adm/sw/save
  • Show patches:
wlist -l bundle | grep -i patch
/usr/contrib/bin/show_patches
swlist -l patch -a state.

Documentation

Multipathing

read Simple Load Balancing with PV Links and Multipathing on HP-UX (LVM vs. VxVM)