{"id":184,"date":"2011-04-06T14:34:31","date_gmt":"2011-04-06T19:34:31","guid":{"rendered":"http:\/\/www.hpux.ws\/?p=184"},"modified":"2011-04-06T14:58:51","modified_gmt":"2011-04-06T19:58:51","slug":"setboot-hardware-path-to-legacy-hardware-path-a-converter","status":"publish","type":"post","link":"https:\/\/www.hpux.ws\/?p=184","title":{"rendered":"setboot hardware path to legacy hardware path. A converter."},"content":{"rendered":"<p>HP-UX 11.23<\/p>\n<p>setboot provides output only including the hardware path (ioscan -H).<\/p>\n<p>When calculating DRD clone targets and such you need the regular legacy device path.<\/p>\n<p>Here is a converter, built with a little help from JRF on the ITRC forums.<\/p>\n<p>First get the setboot path. Might want to use the full path of the setboot command in practice.<\/p>\n<p><strong>pboot=$(setboot | grep ^Primary | awk &#8216;{ print $NF }&#8217;);<\/strong><br \/>\n<strong>aboot=$(setboot | grep ^Alternate |awk &#8216;{ print $NF}&#8217;);<br \/>\n<\/strong><\/p>\n<p><strong>abootdisk=$(ioscan -kfnCdisk | awk -v aboot=${aboot} &#8216;\/aboot\/ $0~aboot {getline;print aboot,$2}&#8217; | awk &#8216;{ print $2 }&#8217;);<\/strong><br \/>\n<strong><\/strong><\/p>\n<p><strong>pbootdisk=$(ioscan -kfnCdisk | awk -v aboot=${pboot} &#8216;\/pboot\/ $0~pboot {getline;print pboot,$2}&#8217; | awk &#8216;{ print $2 }&#8217;);<\/strong><\/p>\n<p>The slick part is getting the variable in and out of awk.<\/p>\n<p>Uses ioscan.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>HP-UX 11.23 setboot provides output only including the hardware path (ioscan -H). When calculating DRD clone targets and such you need the regular legacy device path. Here is a converter, built with a little help from JRF on the ITRC forums. First get the setboot path. Might want to use the full path 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":[7,39,8],"tags":[46,23,35,32],"class_list":["post-184","post","type-post","status-publish","format-standard","hentry","category-lvm","category-scripting","category-sysadmin","tag-fiber-channel-adaptor","tag-high-capacity-volume-group","tag-integrity","tag-system-migration"],"_links":{"self":[{"href":"https:\/\/www.hpux.ws\/index.php?rest_route=\/wp\/v2\/posts\/184"}],"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=184"}],"version-history":[{"count":7,"href":"https:\/\/www.hpux.ws\/index.php?rest_route=\/wp\/v2\/posts\/184\/revisions"}],"predecessor-version":[{"id":187,"href":"https:\/\/www.hpux.ws\/index.php?rest_route=\/wp\/v2\/posts\/184\/revisions\/187"}],"wp:attachment":[{"href":"https:\/\/www.hpux.ws\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=184"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hpux.ws\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=184"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hpux.ws\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=184"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}