<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: script help - identify boot drives in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-identify-boot-drives/m-p/5026323#M429738</link>
    <description>Not at a system right now, but I seem to recall that if you actually specify the root VG, it doesn't add all the stuff about inactive links etc:&lt;BR /&gt;&lt;BR /&gt;lvlnboot -v /dev/vg00&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Duncan</description>
    <pubDate>Fri, 02 Feb 2007 11:58:07 GMT</pubDate>
    <dc:creator>Duncan Edmonstone</dc:creator>
    <dc:date>2007-02-02T11:58:07Z</dc:date>
    <item>
      <title>script help - identify boot drives</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-identify-boot-drives/m-p/5026320#M429735</link>
      <description>Hi all:&lt;BR /&gt;&lt;BR /&gt;Working with 11.11 &amp;amp; 11.23&lt;BR /&gt;Using lvlnboot -v to get the boot drive(s).&lt;BR /&gt;If the output is short and simple I can get them no problem. But if the output contains lots of lines with ALT LINKS or inactive VGs then it does not work so well.&lt;BR /&gt;&lt;BR /&gt;Example short output. I can use the following command;&lt;BR /&gt;lvlnboot -v | awk 'BEGIN {RS = "^Boot:" ; FS = "\n"} {print $5 $6}' | awk '{print $4 "\n" $5}'&lt;BR /&gt;&lt;BR /&gt;If the output varies then this doesn't work. How to make it so regardless of the output it will work?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# lvlnboot -v&lt;BR /&gt;Boot Definitions for Volume Group /dev/vg00:&lt;BR /&gt;Physical Volumes belonging in Root Volume Group:&lt;BR /&gt;        /dev/dsk/c2t1d0 (0/1/1/0.1.0) -- Boot Disk&lt;BR /&gt;        /dev/dsk/c3t0d0 (0/1/1/1.0.0) -- Boot Disk&lt;BR /&gt;Boot: lvol1     on:     /dev/dsk/c2t1d0&lt;BR /&gt;                        /dev/dsk/c3t0d0&lt;BR /&gt;Root: lvol3     on:     /dev/dsk/c2t1d0&lt;BR /&gt;                        /dev/dsk/c3t0d0&lt;BR /&gt;Swap: lvol2     on:     /dev/dsk/c2t1d0&lt;BR /&gt;                        /dev/dsk/c3t0d0&lt;BR /&gt;Dump: lvol2     on:     /dev/dsk/c2t1d0, 0&lt;BR /&gt;</description>
      <pubDate>Fri, 02 Feb 2007 11:26:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-identify-boot-drives/m-p/5026320#M429735</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2007-02-02T11:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: script help - identify boot drives</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-identify-boot-drives/m-p/5026321#M429736</link>
      <description>Hi Rick:&lt;BR /&gt;&lt;BR /&gt;Try:&lt;BR /&gt;&lt;BR /&gt;# lvlnboot -v|awk '/\/dev/ &amp;amp;&amp;amp; /Boot Disk/ {print $1}' &lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Fri, 02 Feb 2007 11:41:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-identify-boot-drives/m-p/5026321#M429736</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2007-02-02T11:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: script help - identify boot drives</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-identify-boot-drives/m-p/5026322#M429737</link>
      <description>It all depends on what you're collecting the data for, but you may want to expand James' suggestion to also print the hw_path. &lt;BR /&gt;&lt;BR /&gt;# lvlnboot -v|awk '/\/dev/ &amp;amp;&amp;amp; /Boot Disk/ {print $1, $2}' &lt;BR /&gt;&lt;BR /&gt;/dev/dsk/c2t1d0 (0/1/1/0.1.0)&lt;BR /&gt;/dev/dsk/c3t0d0 (0/1/1/1.0.0) &lt;BR /&gt;&lt;BR /&gt;If you find yourself sitting at the bch deciding which path you want to boot, c2t1d0 may not help.&lt;BR /&gt;&lt;BR /&gt;-denver</description>
      <pubDate>Fri, 02 Feb 2007 11:48:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-identify-boot-drives/m-p/5026322#M429737</guid>
      <dc:creator>Denver Osborn</dc:creator>
      <dc:date>2007-02-02T11:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: script help - identify boot drives</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-identify-boot-drives/m-p/5026323#M429738</link>
      <description>Not at a system right now, but I seem to recall that if you actually specify the root VG, it doesn't add all the stuff about inactive links etc:&lt;BR /&gt;&lt;BR /&gt;lvlnboot -v /dev/vg00&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Duncan</description>
      <pubDate>Fri, 02 Feb 2007 11:58:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-identify-boot-drives/m-p/5026323#M429738</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2007-02-02T11:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: script help - identify boot drives</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-identify-boot-drives/m-p/5026324#M429739</link>
      <description>Hey guys - Many thanks!&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 02 Feb 2007 12:29:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-identify-boot-drives/m-p/5026324#M429739</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2007-02-02T12:29:16Z</dc:date>
    </item>
  </channel>
</rss>

