2014년 2월 28일 금요일

hp 원격 depot 설치 (배포 push)

우선 depot을 만들어 두고
root@vm180   [/kjbdepot]
# swcopy -s /labs/depots/PHSS_01111.depot PHSS_01111 @ /kjbdepot

=======  02/28/14 16:28:39 KST  BEGIN swcopy SESSION (non-interactive)
         (jobid=vm180-0002)

       * Session started for user "root@vm180".
       
       * Beginning Selection
       * Target connection succeeded for "vm180:/kjbdepot".
       * Source:                 /labs/depots/PHSS_01111.depot
       * Targets:                vm180:/kjbdepot
       * Software selections:
             PHSS_01111.ECHOAPP-MISC-DOC,r=1.0,a=HP-UX_B.11.00_32/64,v=ABC,fr=1.0,fa=HP-UX_B.11.00_32/64
             PHSS_01111.ECHOAPP-RUNTIME,r=1.0,a=HP-UX_B.11.00_32/64,v=ABC,fr=1.0,fa=HP-UX_B.11.00_32/64
       * Selection succeeded.
       
       
       * Beginning Analysis and Execution
       * Session selections have been saved in the file
         "/root/.sw/sessions/swcopy.last".
       * The analysis phase succeeded for "vm180:/kjbdepot".
       * The execution phase succeeded for "vm180:/kjbdepot".
       * Analysis and Execution succeeded.
       
       
NOTE:    More information may be found in the agent logfile using the
         command "swjob -a log vm180-0002 @ vm180:/kjbdepot".

=======  02/28/14 16:28:40 KST  END swcopy SESSION (non-interactive)
         (jobid=vm180-0002)


root@vm180   [/kjbdepot]
#  swlist -s vm180:/kjbdepot
# Initializing...
# Contacting target "vm180"...
#
# Target:  vm180:/kjbdepot
#

#
# No Bundle(s) on vm180:/kjbdepot
# Product(s):
#

  EchoApp       A.1.00         EchoApp Lab Exercise
  PHSS_01111    1.0            EchoApp picture needs work



키를 만들고
root@vm180   [/kjbdepot]
#  touch /var/adm/sw/.sdkey


클라이언트에서
root@vm185   [/root]
# /usr/lbin/sw/setaccess vm180
       * Setting SD host and root ACLs for root@vm180 ...
       * The host object ACL was replaced by root@vm185.  02/28/14
         16:37:44 KST
       * The root object ACL for path / was replaced by root@vm185.
         02/28/14 16:37:44 KST
       * The host SOC template ACL was replaced by root@vm185.
         02/28/14 16:37:45 KST
       * The host product template ACL was replaced by root@vm185.
         02/28/14 16:37:45 KST

root@vm185   [/root]
# swacl -l root
#
# swacl    Installed Software Access Control List
#
# For host:  vm185:/
#
# Date:  Fri Feb 28 16:37:50 2014
#

# Object Ownership:  User= root
#                    Group=sys
#                    Realm=vm185
#
# default_realm=vm185
object_owner:crwit
user:root@vm180:crwit
any_other:-r---

후에
서버에서
root@vm180   [/root]
# swinstall -s vm180:/kjbdepot PHSS_01111 @ vm185

=======  02/28/14 16:36:41 KST  BEGIN swinstall SESSION
         (non-interactive) (jobid=vm180-0003)

       * Session started for user "root@vm180".

       * Beginning Selection
       * Target connection succeeded for "vm185:/".
       * Source connection succeeded for "vm180:/kjbdepot".
       * Source:                 vm180:/kjbdepot
       * Targets:                vm185:/
       * Software selections:
             PHSS_01111.ECHOAPP-MISC-DOC,r=1.0,a=HP-UX_B.11.00_32/64,v=ABC,fr=1.0,fa=HP-UX_B.11.00_32/64
             PHSS_01111.ECHOAPP-RUNTIME,r=1.0,a=HP-UX_B.11.00_32/64,v=ABC,fr=1.0,fa=HP-UX_B.11.00_32/64
       * Selection succeeded.


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


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

=======  02/28/14 16:36:45 KST  END swinstall SESSION (non-interactive)
         (jobid=vm180-0003)

설치 완료

root@vm180   [/root]
# swlist PHSS_01111 @ vm185
# Initializing...
# Contacting target "vm185"...
#
# Target:  vm185:/
#

# PHSS_01111                    1.0            EchoApp picture needs work
  PHSS_01111.ECHOAPP-MISC-DOC   1.0            EchoApp.ECHOAPP-MISC-DOC
  PHSS_01111.ECHOAPP-RUNTIME    1.0            EchoApp.ECHOAPP-RUNTIME

root@vm185   [/root]
# /opt/echoapp/bin/echoapp

                             //|                              ,|
                           //,/                             -~ |
                         // / |                         _-~   /  ,
                       /'/ / /                       _-~   _/_-~ |
                      ( ( / /'                   _ -~     _-~ ,/'
                       \~\/'/|             __--~~__--\ _-~  _/,
               ,,)))))));, \/~-_     __--~~  --~~  __/~  _-~ /
            __))))))))))))));,>/\   /        __--~~  \-~~ _-~
           -\(((((''''(((((((( >~\/     --~~   __--~' _-~ ~|
  --==//////((''  .     `)))))), /     ___---~~  ~~\~~__--~
          ))| @    ;-.     (((((/           __--~~~'~~/
          ( `|    /  )      )))/      ~~~~~__\__---~~__--~~--_
             |   |   |       (/      ---~~~/__-----~~  ,;::'  \         ,
             o_);   ;        /      ----~~/           \,-~~~\  |       /|
                   ;        (      ---~~/         `:::|      |;|      < >
                  |   _      `----~~~~'      /      `:|       \;\_____//
            ______/\/~    |  SURPRISE!      /        /         ~------~
          /~;;.____/;;'  / PHSS_01111__----(   `;;;/
         / //  _;______;'------~~~~~    |;;/\    /
        //  | |                        /  |  \;;,\
       (<_  | ;                      /',/-----'  _>
        \_| ||_                     //~;~~~~~~~~~
            `\_|                   (,~~

확인



댓글 없음:

댓글 쓰기