<?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: Scripting Junkies. Need help with a script. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-junkies-need-help-with-a-script/m-p/5100044#M444008</link>
    <description>If you are interested in an audit of your cluster consider CCMON. This will entail an end-to-end discovery and resulting report for you of any areas of weakness in the cluster configuration. CCmon runs as a background process that continuously checks thousands of data points for configuration differences. When changes occur, it automatically triggers alarms. In addition, it generates scheduled HTML or ASCII reports that give you advance warning of possible failures - without the need for switchover testing. &lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 28 Mar 2008 02:06:19 GMT</pubDate>
    <dc:creator>Deborah Williams</dc:creator>
    <dc:date>2008-03-28T02:06:19Z</dc:date>
    <item>
      <title>Scripting Junkies. Need help with a script.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-junkies-need-help-with-a-script/m-p/5100039#M444003</link>
      <description>My requirement if to parse the /etc/lvmtab and come up with following.&lt;BR /&gt;vg and number of disks for that vg&lt;BR /&gt;&lt;BR /&gt;strings /etc/lvmtab|grep '\/dev'&lt;BR /&gt;gives following&lt;BR /&gt;&lt;BR /&gt;vg_cl_PCM01_redo2&lt;BR /&gt;/dev/dsk/c1t1d1&lt;BR /&gt;/dev/dsk/c2t2d2&lt;BR /&gt;vg_cl_PCM01_sys&lt;BR /&gt;/dev/dsk/c1t3t4&lt;BR /&gt;&lt;BR /&gt;It should give me as follows.&lt;BR /&gt;vg_cl_PCM01_redo2 2 pvs&lt;BR /&gt;vg_cl_PCM01_sys   1 pvs&lt;BR /&gt;</description>
      <pubDate>Thu, 27 Mar 2008 11:29:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-junkies-need-help-with-a-script/m-p/5100039#M444003</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2008-03-27T11:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting Junkies. Need help with a script.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-junkies-need-help-with-a-script/m-p/5100040#M444004</link>
      <description>I am NO kind of 'scripter'...but here's a couple a short something that might help you get started:&lt;BR /&gt;&lt;BR /&gt;for a in `strings /etc/lvmtab | grep -v "/dev/dsk/"`&lt;BR /&gt;  do&lt;BR /&gt;  echo $a "\c" &amp;gt;&amp;gt; lvm-task.file&lt;BR /&gt;  vgdisplay -v $a | grep "Cur PV" | awk '{print $3}' &amp;gt;&amp;gt;  lvm-task.file&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;Like I said...nothing fancy !&lt;BR /&gt;&lt;BR /&gt;Rgrds,&lt;BR /&gt;Rita</description>
      <pubDate>Thu, 27 Mar 2008 11:42:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-junkies-need-help-with-a-script/m-p/5100040#M444004</guid>
      <dc:creator>Rita C Workman</dc:creator>
      <dc:date>2008-03-27T11:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting Junkies. Need help with a script.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-junkies-need-help-with-a-script/m-p/5100041#M444005</link>
      <description>The problem is alternate paths.  To include them is easy, all on one line:&lt;BR /&gt;&lt;BR /&gt;strings lvmtab | awk '/vg/{d=$1}{V[d]++}END{for(f in V)print f,(V[f]-1), "pvs"}'&lt;BR /&gt;&lt;BR /&gt;To remove the Alternate Link means taking more of a detailed approach.&lt;BR /&gt;&lt;BR /&gt;Why do you want to look at lvmtab, not just use vgdisplay -v ?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 27 Mar 2008 11:57:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-junkies-need-help-with-a-script/m-p/5100041#M444005</guid>
      <dc:creator>Steve Lewis</dc:creator>
      <dc:date>2008-03-27T11:57:28Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting Junkies. Need help with a script.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-junkies-need-help-with-a-script/m-p/5100042#M444006</link>
      <description>I dont want to do vgdisplay. I just want the pv count vgwise from lvmtab. I need to match it with alternate node vgs.&lt;BR /&gt;&lt;BR /&gt;vgs being used are in vcs and mcsg environment. the purpose is check if no. of pvs under a vg on primary node and secondary node is matching or not.&lt;BR /&gt;&lt;BR /&gt;Many times sysadmins forget to import the vgs on alternate node for a vg under mcsg package and failovers run into the problem...</description>
      <pubDate>Thu, 27 Mar 2008 12:03:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-junkies-need-help-with-a-script/m-p/5100042#M444006</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2008-03-27T12:03:16Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting Junkies. Need help with a script.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-junkies-need-help-with-a-script/m-p/5100043#M444007</link>
      <description>OK...so your looking at trying to do some sort of "audit" on SG.  &lt;BR /&gt;&lt;BR /&gt;Well, this will tell you if you have the same amount disks - but that's it.  What about a new lvol.  You may have a match on disk amt, but your failover could still cripple.  So, I'm guessing your going to add something to compare the mapfiles between SG related nodes too.&lt;BR /&gt;&lt;BR /&gt;This may be a side-bar suggestion, but making a form to confirm certain tasks are done &amp;amp; ck'd off helps.  As does a naming standard for new mapfiles with the date created included it in.  &lt;BR /&gt;&lt;BR /&gt;Another quick auditing check is to compare the date of the primary nodes vg.map&lt;MMDDYY&gt; with that of the failover node(s) vg.map&lt;MMDDYY&gt; to the vg.conf file on the failover nodes.  &lt;BR /&gt;I just sit on my primary node, check the dates on the latest mapfile on primary node and then just run a remsh to check all failover nodes&lt;BR /&gt; remsh &lt;NODE2&gt; -n ll /etc/lvmconf/vg2.mapddmm&lt;BR /&gt;&lt;BR /&gt;    and then  &lt;BR /&gt; remsh &lt;NODE2&gt; -n ll /etc/lvmconf/vg2.conf  Do the dates prove latest mapfile was applied?  Are the dates current with the primary node?&lt;BR /&gt;&lt;BR /&gt;Just a thought,&lt;BR /&gt;Rgrds,&lt;BR /&gt;Rita&lt;BR /&gt;&lt;BR /&gt;&lt;/NODE2&gt;&lt;/NODE2&gt;&lt;/MMDDYY&gt;&lt;/MMDDYY&gt;</description>
      <pubDate>Thu, 27 Mar 2008 12:29:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-junkies-need-help-with-a-script/m-p/5100043#M444007</guid>
      <dc:creator>Rita C Workman</dc:creator>
      <dc:date>2008-03-27T12:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting Junkies. Need help with a script.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-junkies-need-help-with-a-script/m-p/5100044#M444008</link>
      <description>If you are interested in an audit of your cluster consider CCMON. This will entail an end-to-end discovery and resulting report for you of any areas of weakness in the cluster configuration. CCmon runs as a background process that continuously checks thousands of data points for configuration differences. When changes occur, it automatically triggers alarms. In addition, it generates scheduled HTML or ASCII reports that give you advance warning of possible failures - without the need for switchover testing. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 28 Mar 2008 02:06:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-junkies-need-help-with-a-script/m-p/5100044#M444008</guid>
      <dc:creator>Deborah Williams</dc:creator>
      <dc:date>2008-03-28T02:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting Junkies. Need help with a script.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-junkies-need-help-with-a-script/m-p/5100045#M444009</link>
      <description>ccmon would address only mcsg. we have vcs too. steve's script looks just fine.</description>
      <pubDate>Fri, 28 Mar 2008 07:27:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-junkies-need-help-with-a-script/m-p/5100045#M444009</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2008-03-28T07:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting Junkies. Need help with a script.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-junkies-need-help-with-a-script/m-p/5100046#M444010</link>
      <description>Resolved. Steve's script was used!!</description>
      <pubDate>Thu, 10 Jul 2008 06:55:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-junkies-need-help-with-a-script/m-p/5100046#M444010</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2008-07-10T06:55:51Z</dc:date>
    </item>
  </channel>
</rss>

