copyright © john meister 2000 

How to INSTALL and use HP-UX SW tools


The following are notes covering the specific HP-UX 10.20 commands required to swcopy a licensed HP-UX Application from the media mounted on an HP-UX 9000/700 series workstation to an HP-UX SoftwareDepot on an HP-UX 9000/800 series server, and then install to the authorized workstation that application. The hostnames have been changed to protect the systems. The codewords displayed are NOT real. In the situation where these commands were used, the admin workstation is on the other end of the building and on a different floor than the server. The HP-UX 10.20 "sw" commands are typically accessible through SAM or the command line. When the GUI version of swinstall is used, the steps and menus selected will be noted. The reason for copying a licensed product to a DEPOT before installing is one to insure that the system may be rebuilt quickly in the event of hardware, typically the harddrive, failure. By placing it in a DEPOT I'm able to rebuild my workstation quickly without having to find the original CDROM. When supporting multiple systems it is imperative that tools like this are employed. Additional resources may be found at http://www.wagoneers.com/UNIX/HP-UX . See "Build" and related info. A summary of commands will appear at the end of this page.

loading s/w to an NFS mount

to write to an NFS mounted filesystem: swinstall -x write_remote_files=true

The SWinstall process from workstation to server to workstation


The INSTALLATION process (typical) for ONLINE JFS (700 Series)


----------------------------------------------------- (note: " >--> " indicates command line entry ) -----------------------------------------------------

FROM WORKSTATION

root@workstation [/home/root] >--> script install-process.txt Script started on Thu Jun 15 10:06:33 2000 ----------------------------------------------------- >--> mount /SD_CDROM this assumes you have the following entry in your /etc/fstab: /dev/dsk/c1t2d0 /SD_CDROM cdfs ro,suid 0 0 if not, then you will need to type the following: /usr/sbin/mount /dev/dsk/c1t2d0 /SD_CDROM ----------------------------------------------------- >--> swreg -l depot /SD_CDROM ======= 06/15/00 10:09:08 PDT BEGIN swreg SESSION (non-interactive) * Session started for user "root@workstation". * Beginning Selection * Targets: workstation * Objects: /SD_CDROM * Selection succeeded. ======= 06/15/00 10:09:11 PDT END swreg SESSION (non-interactive) >--> exit script done on Thu Jun 15 10:14:40 2000 "script" is exited, the file will contain all keystrokes and display info -----------------------------------------------------

FROM SERVER

----------------------------------------------------- root@server [/home/root] >--> swcopy -v -s workstation:/SD_CDROM \ customer_ID=THeCUSTOMERiD codeword=THE-code-WORD-here \ PRODUCTCODE @ /sysadmin/DEPOT/OnLine-JFS-700 note: PRODUCTCODE is the HP Product number, e.g. B5118BA - HP OnLineJFS the "\" at the end of the line is a shell command to start a new line. For some reason the command did not work as expected and after multiple attempts the command above finally worked, but produced error messages about the codeword and customer_ID - however, it seemed to work as the previously "locked" application was installed into a depot and onto my workstation, as seen below. ----------------------------------------------------- >--> swcopy -v -s worsktation:/SD_CDROM customer_ID=blahblah -x \ codeword=blahblah B5118BA @/sysadmin/DEPOT/OnLineJFS-700 ======= 06/15/00 14:50:07 PDT BEGIN swcopy SESSION (non-interactive) * Session started for user "root@server". * Beginning Selection * "server:/sysadmin/DEPOT/OnLineJFS-700": This target does not exist and will be created. * "workstation:/SD_CDROM": Cannot open the logfile on this target or source. Possibly the media is read-only or there is a permission problem. Check the daemon logfile and "/var/tmp/swagent.log" on this host for more information. ERROR: Could not apply the software selection "customer_ID=ImConfusedByHPswCommands-theyDontworkright"; it is not available from depot or root "workstation:/SD_CDROM". * Software selection failed for "workstation:/SD_CDROM". ERROR: Could not apply the software selection "-x"; it is not available from depot or root "workstation:/SD_CDROM". * Software selection failed for "workstation:/SD_CDROM". ERROR: Could not apply the software selection "codeword=ItsStupidButItworkedAnyway"; it is not available from depot or root "workstation:/SD_CDROM". * Software selection failed for "workstation:/SD_CDROM". NOTE: The software item "B5118BA" is a bundle (or a product, subproduct or fileset contained within a bundle). This item was successfully marked, but difficulties were encountered while marking some items that it depends on. The messages below show which software items encountered difficulties and exactly what these difficulties were: * The software "AdvJournalFS.AJFS-ENG-A-MAN,r=B.10.20,a=HP-UX_B.10.20_700,v=HP" was successfully marked, but it depends on the following software items which could not be found in the source. However, these items may already be in the target. This will be checked during the Analysis Phase: TextFormatters.TEXT-FMT,r>=B.10.20.%12,a=HP-UX_B.10.20_700,v=HP * The software "AdvJournalFS.AJFS-JPN-E-MAN,r=B.10.20,a=HP-UX_B.10.20_700,v=HP" was successfully marked, but it depends on the following software items which could not be found in the source. However, these items may already be in the target. This will be checked during the Analysis Phase: TextFormatters.TEXT-FMT,r>=B.10.20.%12,a=HP-UX_B.10.20_700,v=HP * The software "AdvJournalFS.AJFS-JPN-S-MAN,r=B.10.20,a=HP-UX_B.10.20_700,v=HP" was successfully marked, but it depends on the following software items which could not be found in the source. However, these items may already be in the target. This will be checked during the Analysis Phase: TextFormatters.TEXT-FMT,r>=B.10.20.%12,a=HP-UX_B.10.20_700,v=HP * The software "AdvJournalFS.VXFS-ADV-KRN,r=B.10.20,a=HP-UX_B.10.20_700,v=HP" was successfully marked, but it depends on the following software items which could not be found in the source. However, these items may already be in the target. This will be checked during the Analysis Phase: OS-Core.CORE-KRN,r>=B.10.20.%12,a=HP-UX_B.10.20_700,v=HP JournalFS.VXFS-BASE-KRN,r>=B.10.20.%12,a=HP-UX_B.10.20_700,v=HP * Source: workstation:/SD_CDROM * Targets: server:/sysadmin/DEPOT/OnLineJFS-700 * Software selections: B5118BA,r=B.10.20,a=HP-UX_B.10.20_700,v=HP AdvJournalFS.AJFS-ENG-A-MAN,r=B.10.20,a=HP-UX_B.10.20_700,v=HP AdvJournalFS.AJFS-JPN-E-MAN,r=B.10.20,a=HP-UX_B.10.20_700,v=HP AdvJournalFS.AJFS-JPN-S-MAN,r=B.10.20,a=HP-UX_B.10.20_700,v=HP AdvJournalFS.VXFS-ADV-KRN,r=B.10.20,a=HP-UX_B.10.20_700,v=HP AdvJournalFS.VXFS-ADV-RUN,r=B.10.20,a=HP-UX_B.10.20_700,v=HP * Selection succeeded. * Beginning Analysis * Session selections have been saved in the file "/sbin/root/.sw/sessions/swcopy.last". ERROR: "server:/sysadmin/DEPOT/OnLineJFS-700": The software dependencies for 4 products or filesets cannot be resolved. * The analysis phase failed for "server:/sysadmin/DEPOT/OnLineJFS-700". * Analysis had errors. * Beginning Execution ERROR: "server:/sysadmin/DEPOT/OnLineJFS-700": 4 filesets were determined to be skipped in the analysis phase. * The execution phase failed for "server:/sysadmin/DEPOT/OnLineJFS-700". * Execution had errors. NOTE: More information may be found in the agent logfile (location is server:/sysadmin/DEPOT/OnLineJFS-700/swagent.log). ======= 06/15/00 14:50:29 PDT END swcopy SESSION (non-interactive) -----------------------------------------------------

verify that the depot is active and that the copy was successful:

----------------------------------------------------- root@server [/sysadmin/DEPOT] >--> swlist -l depot # Initializing... # Target "server" has the following depot(s): /sysadmin/DEPOT/APPLICATIONS /sysadmin/DEPOT/MIRROR_UX /sysadmin/DEPOT/DEC-99-700 /sysadmin/DEPOT/ONLINE_JFS /sysadmin/DEPOT/NET_PATCHES /sysadmin/DEPOT/SD7.51 /sysadmin/DEPOT/OpenGL-RunTime /sysadmin/DEPOT/OnLineJFS-700 ----------------------------------------------------- -----------------------------------------------------

FROM WORKSTATION

----------------------------------------------------- root@workstation [/home/root] >--> swinstall -s server:/sysadmin/DEPOT/OnLineJFS-700 \ -x autoselect_reference_bundles=true -x autoselect_dependencies=true \* ======= 06/15/00 17:00:43 PDT BEGIN swinstall SESSION (non-interactive) * Session started for user "root@workstation". * Beginning Selection * Target connection succeeded for "workstation:/". * Source connection succeeded for "server:/sysadmin/DEPOT/OnLineJFS-700". * Source: server:/sysadmin/DEPOT/OnLineJFS-700 * Targets: workstation:/ * Software selections: B5118BA,r=B.10.20,a=HP-UX_B.10.20_700,v=HP AdvJournalFS.VXFS-ADV-RUN,r=B.10.20,a=HP-UX_B.10.20_700,v=HP * Selection succeeded. * Beginning Analysis * Session selections have been saved in the file "/sbin/root/.sw/sessions/swinstall.last". * The analysis phase succeeded for "workstation:/". * Analysis succeeded. * Beginning Execution * The execution phase succeeded for "workstation:/". * Execution succeeded. NOTE: More information may be found in the agent logfile (location is workstation:/var/adm/sw/swagent.log). ======= 06/15/00 17:01:17 PDT END swinstall SESSION (non-interactive) ----------------------------------------------------- root@workstation [/home/root] if you have problems installing, check the logfile: more /var/adm/sw/swagent.log -----------------------------------------------------

after install, verfiy..

>--> swlist -l fileset verify that the product is listed: # Initializing... # Contacting target "workstation"... # # Target: workstation:/ # # Accounting B.10.20 Accounting Accounting.ACCOUNTNG B.10.20 Accounting.ACCT-ENG-A-MAN B.10.20 # AdvJournalFS B.10.20 The Advanced VxFS File System AdvJournalFS.VXFS-ADV-RUN B.10.20 # AudioSubsystem B.10.20 HP-UX Audio Subsystem ======================================================================================= summary follows =======================================================================================

GRAND Summary of process/commands


  1. from admin workstation: mount /SD_CDROM
  2. from admin workstation: swreg -l depot /SD_CDROM
  3. from server: swcopy -v -s workstation:/SD_CDROM \ customer_ID=THeCUSTOMERiD codeword=THE-code-WORD-here \ PRODUCTCODE @ /sysadmin/DEPOT/OnLine-JFS-700
  4. from server: swlist -l depot
  5. from user workstation: swinstall -s server:/sysadmin/DEPOT/OnLineJFS-700 \ -x autoselect_reference_bundles=true -x autoselect_dependencies=true \*
  6. from user workstation: swlist -l fileset
  7. ...to use product on workstation... see pages on LVM and JFS elsewhere on wagoneers.com

to wagoneers.com
copyright © john meister 2000