Friday, April 1, 2011

Software Installation from a remote machine - HPUX

In the remote server(source) check for the packages that are depoted


root@ecarh4c0:/hroot# swlist -l depot
# Initializing...
# Target "ecarh4c0" has the following depot(s):
  /var/opt/ignite/depots/Rel_B.11.00/apps
  /var/opt/ignite/depots/Rel_B.11.11/core
  /var/opt/ignite/depots/Rel_B.11.11/apps
  /var/opt/ignite/depots/Rel_B.11.23/core
  /var/opt/ignite/depots/Rel_B.11.23/apps
  /var/opt/ignite/depots/Rel_B.11.00/core
  /var/opt/ignite/depots/Rel_B.11.31/core
  /var/opt/ignite/depots/Rel_B.11.31/apps
  /home/id083096/PHSS_3924/depot
  /var/opt/ignite/depots/Rel_B.11.31.old/apps
  /var/opt/ignite/depots/Rel_B.11.31.old/core
  /var/opt/ignite/depots/Teradata
  /var/opt/ignite/depots/recovery_cmds
  /var/opt/ignite/depots/PHSS_40998.depot
  /var/opt/ignite/depots/tmp/EMC/Solution_Enabler_6.5.3/SYMCLI.depot/
  /home/id810104/tcpDump.depot


To Check the installed packages:(in a previously installed server)

ec5ahn07:/root# swlist -l product | grep -i gnu
  GNUbase               B.11.23.20.12  GNU Software support
  Gettext               0.10.39.9      GNU gettext NLS library
  GnuPG                 A.11.00-1.4.7.001 Tool for secure communication and data storage        //our req pkg
  Less                  B.11.23.20.12  GNU Less (385)


To find the source from where the required package was installed:

ec5ahn07:/root# swlist -a install_source GnuPG
# Initializing...
# Contacting target "ec5ahn07"...
#
# Target:  ec5ahn07:/
#

# GnuPG                         ecarh4c0.bc:/var/opt/ignite/depots/Rel_B.11.23/apps       //source path of pkg
  GnuPG.GNUPG-DOC               ecarh4c0.bc:/var/opt/ignite/depots/Rel_B.11.23/apps
  GnuPG.GNUPG-LIB               ecarh4c0.bc:/var/opt/ignite/depots/Rel_B.11.23/apps
  GnuPG.GNUPG-MAN               ecarh4c0.bc:/var/opt/ignite/depots/Rel_B.11.23/apps
  GnuPG.GNUPG-RUN               ecarh4c0.bc:/var/opt/ignite/depots/Rel_B.11.23/apps
  GnuPG.GNUPG-SHA               ecarh4c0.bc:/var/opt/ignite/depots/Rel_B.11.23/apps
  GnuPG.GNUPG-SRC               ecarh4c0.bc:/var/opt/ignite/depots/Rel_B.11.23/apps

In target server, first check for the package:

ec5ahp03:/root# swlist -l product | grep -i gnu
  GNUbase               B.11.23.20.12  GNU Software support
  Gettext               0.10.39.9      GNU gettext NLS library
  Less                  B.11.23.20.12  GNU Less (385)

Then install it from the remote source:
//imp to specify the "pkg name" else whole pkg from the remote soruce dir will be installed which could
even initiate a reboot sometimes. eg swinstall -s
 

ecarh4c0.bc:/var/opt/ignite/depots/Rel_B.11.23/apps

ec5ahp03:/root# swinstall -s ecarh4c0.bc:/var/opt/ignite/depots/Rel_B.11.23/apps GnuPG  

=======  08/10/10 17:15:45 METDST  BEGIN swinstall SESSION
         (non-interactive) (jobid=ec5ahp03-0284)

       * Session started for user "root@ec5ahp03".
       * Beginning Selection
       * Target connection succeeded for "ec5ahp03:/".
       * Source connection succeeded for
         "ecarh4c0.bc:/var/opt/ignite/depots/Rel_B.11.23/apps".
       * Source:
         ecarh4c0.bc:/var/opt/ignite/depots/Rel_B.11.23/apps
       * Targets:                ec5ahp03:/
       * Software selections:
           + security,r=A.11.00-007,a=HP-UX_B.11.23_IA/PA,v=HP
             GnuPG.GNUPG-DOC,r=A.11.00-1.4.7.001,a=HP-UX_B.11.23_IA/PA,v=HP,fr=A.11.00-1.4.7.001,fa=HP-UX_B.11.23_IA/PA
             GnuPG.GNUPG-LIB,r=A.11.00-1.4.7.001,a=HP-UX_B.11.23_IA/PA,v=HP,fr=A.11.00-1.4.7.001,fa=HP-UX_B.11.23_IA
             GnuPG.GNUPG-MAN,r=A.11.00-1.4.7.001,a=HP-UX_B.11.23_IA/PA,v=HP,fr=A.11.00-1.4.7.001,fa=HP-UX_B.11.23_IA/PA
             GnuPG.GNUPG-RUN,r=A.11.00-1.4.7.001,a=HP-UX_B.11.23_IA/PA,v=HP,fr=A.11.00-1.4.7.001,fa=HP-UX_B.11.23_IA
             GnuPG.GNUPG-SHA,r=A.11.00-1.4.7.001,a=HP-UX_B.11.23_IA/PA,v=HP,fr=A.11.00-1.4.7.001,fa=HP-UX_B.11.23_IA/PA
             GnuPG.GNUPG-SRC,r=A.11.00-1.4.7.001,a=HP-UX_B.11.23_IA/PA,v=HP,fr=A.11.00-1.4.7.001,fa=HP-UX_B.11.23_IA/PA
       * A "+" indicates an automatic selection due to dependency or
         the automatic selection of a patch or reference bundle.
       * Selection succeeded.


       * Beginning Analysis and Execution
       * Session selections have been saved in the file
         "/root/.sw/sessions/swinstall.last".
       * The analysis phase succeeded for "ec5ahp03:/".
       * The execution phase succeeded for "ec5ahp03:/".
       * Analysis and Execution succeeded.


NOTE:    More information may be found in the agent logfile using the
         command "swjob -a log ec5ahp03-0284 @ ec5ahp03:/".

=======  08/10/10 17:16:33 METDST  END swinstall SESSION
         (non-interactive) (jobid=ec5ahp03-0284)

Confirm the installation:

ec5ahp03:/root# swlist -l product | grep -i gnu
  GNUbase               B.11.23.20.12  GNU Software support
  Gettext               0.10.39.9      GNU gettext NLS library
  GnuPG                 A.11.00-1.4.7.001 Tool for secure communication and data storage      //our pkg
  Less                  B.11.23.20.12  GNU Less (385)

ec5ahp03:/root#

No comments:

Post a Comment