<?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 Shell script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/3280892#M180404</link>
    <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I am trying to write a fairly simple shell script &amp;amp; need some help(see below), instead of changing the script for every VA array I want a universal script so i don't have to change the alias every time. Also attached is a sample output of the command that gives the array alias.&lt;BR /&gt;&lt;BR /&gt;#script at the moment#&lt;BR /&gt;&lt;BR /&gt;mkdir /va || exit 1&lt;BR /&gt;armdowmload -I D imogenva74-1 &amp;gt; /va/armdownload_I.txt || exit 1&lt;BR /&gt;armdsp -d imogenva74-1 &amp;gt; /va/armdsp_d.txt || exit 1&lt;BR /&gt;armdiag -W imogenva74-1 &amp;gt; /va/armdiag_W.txt || exit 1&lt;BR /&gt;armdsp -c imogenva74-1 &amp;gt; /va/armdsp_c.txt || exit 1&lt;BR /&gt;armdsp -a imogenva74-1 &amp;gt; /va/armdsp_a.txt || exit 1&lt;BR /&gt;cd /va || exit 1&lt;BR /&gt;tar cvf /tmp/vainfo.tar . || exit 1&lt;BR /&gt;cd / || exit 1&lt;BR /&gt;rm -R /va&lt;BR /&gt;print THE OUTPUT IS IN /tmp/vainfo.tar PLEASE E-MAIL TO aidan.mcardle@hp.com || exit 1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;#armdsp -i&lt;BR /&gt;Product ID:        HP-A6189A&lt;BR /&gt;Device Type:     Virtual Disk Array&lt;BR /&gt;Alias:           imogenva74-1&lt;BR /&gt;World Wide Name: 50060b0000092940&lt;BR /&gt;Unique ID:       HPA6189A00SG141G0061&lt;BR /&gt;Serial Number:   00SG141G0061</description>
    <pubDate>Wed, 19 May 2004 08:16:00 GMT</pubDate>
    <dc:creator>AIMC</dc:creator>
    <dc:date>2004-05-19T08:16:00Z</dc:date>
    <item>
      <title>Shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/3280892#M180404</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I am trying to write a fairly simple shell script &amp;amp; need some help(see below), instead of changing the script for every VA array I want a universal script so i don't have to change the alias every time. Also attached is a sample output of the command that gives the array alias.&lt;BR /&gt;&lt;BR /&gt;#script at the moment#&lt;BR /&gt;&lt;BR /&gt;mkdir /va || exit 1&lt;BR /&gt;armdowmload -I D imogenva74-1 &amp;gt; /va/armdownload_I.txt || exit 1&lt;BR /&gt;armdsp -d imogenva74-1 &amp;gt; /va/armdsp_d.txt || exit 1&lt;BR /&gt;armdiag -W imogenva74-1 &amp;gt; /va/armdiag_W.txt || exit 1&lt;BR /&gt;armdsp -c imogenva74-1 &amp;gt; /va/armdsp_c.txt || exit 1&lt;BR /&gt;armdsp -a imogenva74-1 &amp;gt; /va/armdsp_a.txt || exit 1&lt;BR /&gt;cd /va || exit 1&lt;BR /&gt;tar cvf /tmp/vainfo.tar . || exit 1&lt;BR /&gt;cd / || exit 1&lt;BR /&gt;rm -R /va&lt;BR /&gt;print THE OUTPUT IS IN /tmp/vainfo.tar PLEASE E-MAIL TO aidan.mcardle@hp.com || exit 1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;#armdsp -i&lt;BR /&gt;Product ID:        HP-A6189A&lt;BR /&gt;Device Type:     Virtual Disk Array&lt;BR /&gt;Alias:           imogenva74-1&lt;BR /&gt;World Wide Name: 50060b0000092940&lt;BR /&gt;Unique ID:       HPA6189A00SG141G0061&lt;BR /&gt;Serial Number:   00SG141G0061</description>
      <pubDate>Wed, 19 May 2004 08:16:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/3280892#M180404</guid>
      <dc:creator>AIMC</dc:creator>
      <dc:date>2004-05-19T08:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/3280893#M180405</link>
      <description>#!/usr/bin/sh&lt;BR /&gt;&lt;BR /&gt;ALIAS=$(armdsp -i | grep Alias | awk '{print $2}')&lt;BR /&gt;&lt;BR /&gt;mkdir /va || exit 1&lt;BR /&gt;armdownload -l D ${ALIAS} &amp;gt; /va/armdownload_l.txt || exit1&lt;BR /&gt;&lt;BR /&gt;Just substitute ${ALIAS} anyplace the array name goes and you should be set.</description>
      <pubDate>Wed, 19 May 2004 08:23:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/3280893#M180405</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2004-05-19T08:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/3280894#M180406</link>
      <description>Thanks Patrick, I will try this.&lt;BR /&gt;&lt;BR /&gt;Aidan</description>
      <pubDate>Wed, 19 May 2004 08:38:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/3280894#M180406</guid>
      <dc:creator>AIMC</dc:creator>
      <dc:date>2004-05-19T08:38:34Z</dc:date>
    </item>
  </channel>
</rss>

