<?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 Error handling in shellscript in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/error-handling-in-shellscript/m-p/4593643#M375183</link>
    <description>I have written shell script to find out pairsuspends in our environment.But when i run the script iam getting an  error for the Pair which are not active.Below are the error am getting&lt;BR /&gt;pairvolchk -g up1012 -I11&lt;BR /&gt;pairvolchk : execution error.&lt;BR /&gt;pairvolchk: [EX_ENQCTG] Unmatched CTGID within the group&lt;BR /&gt;Refer to the command log(/HORCM/log11/horcc_fauna.log) for details&lt;BR /&gt;&lt;BR /&gt;How could i avoid those errors while running script.Below are the ouput while running the script&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;./checkpair.sh 11&lt;BR /&gt;pairvolchk : execution error.&lt;BR /&gt;pairvolchk: [EX_ENLDEV] No such LDEV within the RAID&lt;BR /&gt;Refer to the command log(/HORCM/log11/horcc_fauna.log) for details.&lt;BR /&gt;pairvolchk : execution error.&lt;BR /&gt;pairvolchk: [EX_ENLDEV] No such LDEV within the RAID&lt;BR /&gt;Refer to the command log(/HORCM/log11/horcc_fauna.log) for details.&lt;BR /&gt;pairvolchk : execution error.&lt;BR /&gt;pairvolchk: [EX_ENLDEV] No such LDEV within the RAID&lt;BR /&gt;Refer to the command log(/HORCM/log11/horcc_fauna.log) for details.&lt;BR /&gt;&lt;BR /&gt;pairvolchk : execution error.&lt;BR /&gt;pairvolchk: [EX_ENLDEV] No such LDEV within the RAID&lt;BR /&gt;Refer to the command log(/HORCM/log11/horcc_fauna.log) for details.&lt;BR /&gt;pairvolchk : execution error.&lt;BR /&gt;pairvolchk: [EX_ENQCTG] Unmatched CTGID within the group&lt;BR /&gt;Refer to the command log(/HORCM/log11/horcc_fauna.log) for details.&lt;BR /&gt;pairvolchk : execution error.&lt;BR /&gt;pairvolchk: [EX_ENQCTG] Unmatched CTGID within the group&lt;BR /&gt;Refer to the command log(/HORCM/log11/horcc_fauna.log) for details.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 03 Mar 2010 01:33:12 GMT</pubDate>
    <dc:creator>mxbala</dc:creator>
    <dc:date>2010-03-03T01:33:12Z</dc:date>
    <item>
      <title>Error handling in shellscript</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-handling-in-shellscript/m-p/4593643#M375183</link>
      <description>I have written shell script to find out pairsuspends in our environment.But when i run the script iam getting an  error for the Pair which are not active.Below are the error am getting&lt;BR /&gt;pairvolchk -g up1012 -I11&lt;BR /&gt;pairvolchk : execution error.&lt;BR /&gt;pairvolchk: [EX_ENQCTG] Unmatched CTGID within the group&lt;BR /&gt;Refer to the command log(/HORCM/log11/horcc_fauna.log) for details&lt;BR /&gt;&lt;BR /&gt;How could i avoid those errors while running script.Below are the ouput while running the script&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;./checkpair.sh 11&lt;BR /&gt;pairvolchk : execution error.&lt;BR /&gt;pairvolchk: [EX_ENLDEV] No such LDEV within the RAID&lt;BR /&gt;Refer to the command log(/HORCM/log11/horcc_fauna.log) for details.&lt;BR /&gt;pairvolchk : execution error.&lt;BR /&gt;pairvolchk: [EX_ENLDEV] No such LDEV within the RAID&lt;BR /&gt;Refer to the command log(/HORCM/log11/horcc_fauna.log) for details.&lt;BR /&gt;pairvolchk : execution error.&lt;BR /&gt;pairvolchk: [EX_ENLDEV] No such LDEV within the RAID&lt;BR /&gt;Refer to the command log(/HORCM/log11/horcc_fauna.log) for details.&lt;BR /&gt;&lt;BR /&gt;pairvolchk : execution error.&lt;BR /&gt;pairvolchk: [EX_ENLDEV] No such LDEV within the RAID&lt;BR /&gt;Refer to the command log(/HORCM/log11/horcc_fauna.log) for details.&lt;BR /&gt;pairvolchk : execution error.&lt;BR /&gt;pairvolchk: [EX_ENQCTG] Unmatched CTGID within the group&lt;BR /&gt;Refer to the command log(/HORCM/log11/horcc_fauna.log) for details.&lt;BR /&gt;pairvolchk : execution error.&lt;BR /&gt;pairvolchk: [EX_ENQCTG] Unmatched CTGID within the group&lt;BR /&gt;Refer to the command log(/HORCM/log11/horcc_fauna.log) for details.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 03 Mar 2010 01:33:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-handling-in-shellscript/m-p/4593643#M375183</guid>
      <dc:creator>mxbala</dc:creator>
      <dc:date>2010-03-03T01:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: Error handling in shellscript</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-handling-in-shellscript/m-p/4593644#M375184</link>
      <description>Hi,&lt;BR /&gt;You can redirect your error &lt;BR /&gt;./my_script &amp;gt; file        &amp;lt;-- Redirect standard output&lt;BR /&gt;./my_script 2&amp;gt; file      &amp;lt;-- Redirect error output&lt;BR /&gt;./my_script &amp;amp;&amp;gt; file     &amp;lt;-- Redirect all output&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;see the examples&lt;BR /&gt;Ex: ./my_script &amp;amp;&amp;gt; capture.txt&lt;BR /&gt;&lt;BR /&gt;for more details see the below link&lt;BR /&gt;&lt;A href="http://www.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html#tag_02_07" target="_blank"&gt;http://www.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html#tag_02_07&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Suraj&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 03 Mar 2010 01:45:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-handling-in-shellscript/m-p/4593644#M375184</guid>
      <dc:creator>Suraj K Sankari</dc:creator>
      <dc:date>2010-03-03T01:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: Error handling in shellscript</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-handling-in-shellscript/m-p/4593645#M375185</link>
      <description>Suraj&lt;BR /&gt;&lt;BR /&gt;Thanks for the response.i have redirecting some of the outputs to the file.Below are the details&lt;BR /&gt;cat /etc/horcm$1.conf | grep -i flo |grep -v ^# |awk '{print $1}'&amp;gt; ${LogDir}/horcm$1.out&lt;BR /&gt;for i in `cat $LogDir/horcm$1.out`&lt;BR /&gt;do&lt;BR /&gt;echo $i  `pairvolchk -g $i -I$1` &amp;gt;&amp;gt; /tmp/offshore/out/$1.out&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 03 Mar 2010 01:51:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-handling-in-shellscript/m-p/4593645#M375185</guid>
      <dc:creator>mxbala</dc:creator>
      <dc:date>2010-03-03T01:51:58Z</dc:date>
    </item>
  </channel>
</rss>

