{"id":387,"date":"2015-07-23T18:50:52","date_gmt":"2015-07-23T23:50:52","guid":{"rendered":"http:\/\/www.hpux.ws\/?p=387"},"modified":"2015-07-23T18:50:52","modified_gmt":"2015-07-23T23:50:52","slug":"hp-ux-patch-depot-tutorial","status":"publish","type":"post","link":"https:\/\/www.hpux.ws\/?p=387","title":{"rendered":"HP-UX patch depot tutorial"},"content":{"rendered":"<p>Patch Depot tutorial<\/p>\n<p>So you downloaded your QPK after doing swainv analysis of what patches your HP-UX server fleet needs. You have a bundle, but you do not want the default name bundle. No problem use the create script to customize:<\/p>\n<p>The following command sets the bundle name (-b ) and the tilte of the bundle ( -t )<br \/>\n.\/create_depot_hpux.11.31 -b 201510HPUXPATCHMYCOMPANY -t MYCOMPANYFALL2015<br \/>\n\u2026 some output\t<\/p>\n<p>A directory depot is created<br \/>\ncd depot<\/p>\n<p>Check the bundle list. The names should be meaningful<br \/>\nswlist \u2013l bundle \u2013s $PWD<br \/>\n# Initializing&#8230;<br \/>\n# Contacting target &#8220;myhost&#8221;&#8230;<br \/>\n#<br \/>\n# Target:  myhost:\/Depots\/tmp\/depot<br \/>\n#<\/p>\n<p>  201510HPUXPATCHMYCOMPANY         B.2015.07.23   MYCOMPANYFALL2015<br \/>\n  QPKAPPS                       B.11.31.1503.411a Applications Patches for HP-UX 11i v3, March 2015<br \/>\n  QPKBASE                       B.11.31.1503.411a Base Quality Pack Bundle for HP-UX 11i v3, March 2015<\/p>\n<p>Next step copy them to a single install point:<br \/>\nswcopy -x enforce_dependencies=FALSE  -x reinstall=TRUE  -x write_remote_files=TRUE  -d -s $PWD \\* @ \/Depots\/B.11.31\/2015FY_second<\/p>\n<p>\u2026 some output deleted \u2026<\/p>\n<p>             PHSS_43882.HVSD-KRN,r=1.0,a=HP-UX_B.11.31_IA,v=HP,fr=1.0,fa=HP-UX_B.11.31_IA<br \/>\n             PHSS_43883.HSSN-KRN,r=1.0,a=HP-UX_B.11.31_IA,v=HP,fr=1.0,fa=HP-UX_B.11.31_IA<br \/>\n             PHSS_43884.IGSSN-KRN,r=1.0,a=HP-UX_B.11.31_IA,v=HP,fr=1.0,fa=HP-UX_B.11.31_IA<br \/>\n             PHSS_43886.GVSD-KRN,r=1.0,a=HP-UX_B.11.31_IA,v=HP,fr=1.0,fa=HP-UX_B.11.31_IA<br \/>\n       * Selection succeeded.<\/p>\n<p>       * Beginning Analysis and Execution<br \/>\n       * Session selections have been saved in the file<br \/>\n         &#8220;\/root\/.sw\/sessions\/swcopy.last&#8221;.<br \/>\nWARNING: &#8220;myhost:\/Depots\/B.11.31\/2015FY_second&#8221;:  The software<br \/>\n         dependencies for 4 products or filesets cannot be resolved.<br \/>\n       * The execution phase succeeded for<br \/>\n         &#8220;myhost:\/Depots\/B.11.31\/2015FY_second&#8221;.<br \/>\n       * Analysis and Execution succeeded.<\/p>\n<p>NOTE:    More information may be found in the agent logfile using the<br \/>\n         command &#8220;swjob -a log myhost-2347 @<br \/>\n         myhost:\/Depots\/B.11.31\/2015FY_second&#8221;.<\/p>\n<p>=======  07\/23\/15 14:49:03 PDT  END swcopy SESSION (non-interactive)<br \/>\n         (jobid=myhost-2347)<\/p>\n<p>Next check the destination depot<br \/>\nswlist \u2013l depot \u2013s \/Depots\/B.11.31\/2015FY_second<\/p>\n<p># Initializing&#8230;<br \/>\n# Contacting target &#8220;myhost&#8221;&#8230;<br \/>\n#<br \/>\n# Target:  myhost:\/Depots\/B.11.31\/2015FY_second<br \/>\n#<\/p>\n<p>  201510HPUXPATCHMYCOMPANY         B.2015.07.23   MYCOMPANYFALL2015<br \/>\n  QPKAPPS                       B.11.31.1503.411a Applications Patches for HP-UX 11i v3, March 2015<br \/>\n  QPKBASE                       B.11.31.1503.411a Base Quality Pack Bundle for HP-UX 11i v3, March 2015<\/p>\n<p>Then a problem comes up and you need to add a new patch to your already build depot, say PHSS_44116.depot a fix to issues starting hpvm guests.<br \/>\nswcopy -d -s $PWD\/PHSS_44116.depot \\* @ \/Depots\/B.11.31\/2015FY_second<\/p>\n<p>=======  07\/23\/15 14:58:12 PDT  BEGIN swcopy SESSION (non-interactive)<br \/>\n         (jobid=myhost-2348)<\/p>\n<p>       * Session started for user &#8220;root@myhost&#8221;.<\/p>\n<p>       * Beginning Selection<br \/>\n       * Target connection succeeded for<br \/>\n         &#8220;myhost:\/Depots\/B.11.31\/2015FY_second&#8221;.<br \/>\n       * Source:                 \/Depots\/B.11.31\/PHSS_44116.depot<br \/>\n       * Targets:                myhost:\/Depots\/B.11.31\/2015FY_second<br \/>\n       * Software selections:<br \/>\n             PHSS_44116.HPVM-CORE,r=1.0,a=HP-UX_B.11.31_IA,v=HP,fr=1.0,fa=HP-UX_B.11.31_IA<br \/>\n             PHSS_44116.VIRT-PROVIDER,r=1.0,a=HP-UX_B.11.31_IA,v=HP,fr=1.0,fa=HP-UX_B.11.31_IA<br \/>\n       * Selection succeeded.<\/p>\n<p>       * Beginning Analysis and Execution<br \/>\n       * Session selections have been saved in the file<br \/>\n         &#8220;\/root\/.sw\/sessions\/swcopy.last&#8221;.<br \/>\n       * The analysis phase succeeded for<br \/>\n         &#8220;myhost:\/Depots\/B.11.31\/2015FY_second&#8221;.<br \/>\n       * The execution phase succeeded for<br \/>\n         &#8220;myhost:\/Depots\/B.11.31\/2015FY_second&#8221;.<br \/>\n       * Analysis and Execution succeeded.<\/p>\n<p>NOTE:    More information may be found in the agent logfile using the<br \/>\n         command &#8220;swjob -a log myhost-2348 @<br \/>\n         myhost:\/Depots\/B.11.31\/2015FY_second&#8221;.<\/p>\n<p>=======  07\/23\/15 14:58:14 PDT  END swcopy SESSION (non-interactive)<br \/>\n         (jobid=myhost-2348)<\/p>\n<p>This method can be used to deliver any software built in depot format.<br \/>\nLet\u2019s check the patch became a part of the depot:<br \/>\nmyhost:root > swlist -s \/Depots\/B.11.31\/2015FY_second<br \/>\n# Initializing&#8230;<br \/>\n# Contacting target &#8220;myhost&#8221;&#8230;<br \/>\n#<br \/>\n# Target:  myhost:\/Depots\/B.11.31\/2015FY_second<br \/>\n#<\/p>\n<p>#<br \/>\n# Bundle(s):<br \/>\n#<\/p>\n<p>  201510HPUXPATCHMYCOMPANY                 B.2015.07.23   MYCOMPANYFALL2015<br \/>\n  QPKAPPS                               B.11.31.1503.411a Applications Patches for HP-UX 11i v3, March 2015<br \/>\n  QPKBASE                               B.11.31.1503.411a Base Quality Pack Bundle for HP-UX 11i v3, March 2015<br \/>\n#<br \/>\n# Product(s) not contained in a Bundle:<br \/>\n#<\/p>\n<p>  PHSS_44116                            1.0            HPVM B.06.30 CORE PATCH<br \/>\nmyhost:root ><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Patch Depot tutorial So you downloaded your QPK after doing swainv analysis of what patches your HP-UX server fleet needs. You have a bundle, but you do not want the default name bundle. No problem use the create script to customize: The following command sets the bundle name (-b ) and the tilte of the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"_kadence_starter_templates_imported_post":false,"footnotes":""},"categories":[28,47,10,8],"tags":[145,18,135,30],"class_list":["post-387","post","type-post","status-publish","format-standard","hentry","category-capacity-planning","category-hpvm","category-patch","category-sysadmin","tag-capacity-planning","tag-hp-ux","tag-hpux-patching-tutorial","tag-ignite-ux"],"_links":{"self":[{"href":"https:\/\/www.hpux.ws\/index.php?rest_route=\/wp\/v2\/posts\/387"}],"collection":[{"href":"https:\/\/www.hpux.ws\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hpux.ws\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hpux.ws\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hpux.ws\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=387"}],"version-history":[{"count":1,"href":"https:\/\/www.hpux.ws\/index.php?rest_route=\/wp\/v2\/posts\/387\/revisions"}],"predecessor-version":[{"id":388,"href":"https:\/\/www.hpux.ws\/index.php?rest_route=\/wp\/v2\/posts\/387\/revisions\/388"}],"wp:attachment":[{"href":"https:\/\/www.hpux.ws\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=387"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hpux.ws\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=387"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hpux.ws\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=387"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}