<?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: cstm scripting like ftp scripting... in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cstm-scripting-like-ftp-scripting/m-p/2594775#M883945</link>
    <description>mmm, it seems that my shell goes somewhere!! after the cstm thus, the first part works in both of your examples... but the second part doesn't.. I put huge sleeps in the script and it made no difference.. in fact the sleep is ignored and just about everything after the first section.&lt;BR /&gt;&lt;BR /&gt;Did you actually try it?&lt;BR /&gt;I'm sure you'll see the same...&lt;BR /&gt;&lt;BR /&gt;Here's one of your example  scripts run with an set -x.&lt;BR /&gt;(I'm seeing the same on both examples)&lt;BR /&gt;&lt;BR /&gt;cat /tmp/out| grep CPU | awk '{ print  }' &amp;gt; /tmp/cpu_id&lt;BR /&gt;echo 'cstm &amp;lt;&amp;lt; EOCSTM' &amp;gt; /tmp/cpu_id.out&lt;BR /&gt;for i in + cat /tmp/cpu_id&lt;BR /&gt;+ cat /tmp/cpu_id&lt;BR /&gt;cat: Cannot open /tmp/cpu_id: No such file or directory&lt;BR /&gt;&lt;BR /&gt;do&lt;BR /&gt;echo sel dev  &amp;gt;&amp;gt; /tmp/cpu_id.out&lt;BR /&gt;echo infolog &amp;gt;&amp;gt; /tmp/cpu_id.out&lt;BR /&gt;echo done &amp;gt;&amp;gt; /tmp/cpu_id.out&lt;BR /&gt;done&lt;BR /&gt;echo EOCSTM &amp;gt;&amp;gt; /tmp/cpu_id.out&lt;BR /&gt;chmod 755 /tmp/cpu_id.out&lt;BR /&gt;/tmp/cpu_id.out&lt;BR /&gt;</description>
    <pubDate>Mon, 15 Oct 2001 09:53:54 GMT</pubDate>
    <dc:creator>Bill McNAMARA_1</dc:creator>
    <dc:date>2001-10-15T09:53:54Z</dc:date>
    <item>
      <title>cstm scripting like ftp scripting...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cstm-scripting-like-ftp-scripting/m-p/2594771#M883941</link>
      <description>Hi, I've got a program that does something like cstm diagnostics on specific hardware.&lt;BR /&gt;&lt;BR /&gt;I'd like to add some standard commands to a script and output the result to file.&lt;BR /&gt;&lt;BR /&gt;in ftp we'd have&lt;BR /&gt;ftp $HOST &amp;lt;&amp;lt; EOFTP&lt;BR /&gt; ls&lt;BR /&gt; bin&lt;BR /&gt; prompt&lt;BR /&gt; mget *&lt;BR /&gt; bye&lt;BR /&gt;EOFTP&lt;BR /&gt;&lt;BR /&gt;now I'd like to run a script&lt;BR /&gt;that'd in the case of cstm as an example run&lt;BR /&gt;cstm &amp;lt;&amp;lt; EOCSTM &amp;gt; /tmp/out&lt;BR /&gt; map&lt;BR /&gt;&lt;BR /&gt;cat /tmp/out| grep CPU | awk '{ print $1 }' &amp;gt; /tmp/cpu_id&lt;BR /&gt;&lt;BR /&gt;for i in $(cat /tmp/cpu_id)&lt;BR /&gt;do&lt;BR /&gt; sel $i&lt;BR /&gt; info&lt;BR /&gt;done&lt;BR /&gt;EOCSTM&lt;BR /&gt;&lt;BR /&gt;Now, the thing I'm having the problem with is adding script analysis to the application command.  It seems to think that the commands are invalid, even though they work on standard input.  Some of the commands work, those without the variable substitution.&lt;BR /&gt;&lt;BR /&gt;An similar example would be like doing an ftp but say ftp'ing iles in binary or ascii let's say depending on their extension..&lt;BR /&gt;&lt;BR /&gt;Any ideas?&lt;BR /&gt;&lt;BR /&gt;Later,&lt;BR /&gt;Bill</description>
      <pubDate>Mon, 15 Oct 2001 08:59:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cstm-scripting-like-ftp-scripting/m-p/2594771#M883941</guid>
      <dc:creator>Bill McNAMARA_1</dc:creator>
      <dc:date>2001-10-15T08:59:24Z</dc:date>
    </item>
    <item>
      <title>Re: cstm scripting like ftp scripting...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cstm-scripting-like-ftp-scripting/m-p/2594772#M883942</link>
      <description>Bill,&lt;BR /&gt;&lt;BR /&gt;See if this works.&lt;BR /&gt;&lt;BR /&gt;cstm &amp;lt;&amp;lt; EOF &amp;gt; /tmp/out1$$                                             &lt;BR /&gt;map                                                    &lt;BR /&gt;quit                                                                  &lt;BR /&gt;OK                                                                    &lt;BR /&gt;EOF                                                                   &lt;BR /&gt;for i in `cat /tmp/out1$$|grep CPU |awk '{print $1}'`                 &lt;BR /&gt;do                                                                    &lt;BR /&gt;echo $i                                                               &lt;BR /&gt;cstm &amp;lt;&amp;lt; EOF &amp;gt;&amp;gt; /tmp/out2$$                                             &lt;BR /&gt;sel device $i                                                         &lt;BR /&gt;infolog                                                               &lt;BR /&gt;quit                                                                  &lt;BR /&gt;OK                                                                    &lt;BR /&gt;EOF                                            &lt;BR /&gt;cat /tmp/out2$$&lt;BR /&gt;&lt;BR /&gt;rm /tmp/out1$$ /tmp/out2$$                                                                                              &lt;BR /&gt;done                                                                                                                 &lt;BR /&gt;-Sri</description>
      <pubDate>Mon, 15 Oct 2001 09:19:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cstm-scripting-like-ftp-scripting/m-p/2594772#M883942</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2001-10-15T09:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: cstm scripting like ftp scripting...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cstm-scripting-like-ftp-scripting/m-p/2594773#M883943</link>
      <description>Hi (again) Bill,&lt;BR /&gt;&lt;BR /&gt;Small modification in the above. I am a bad cleaner. &lt;BR /&gt;&lt;BR /&gt;....&lt;BR /&gt;infolog&lt;BR /&gt;quit&lt;BR /&gt;OK&lt;BR /&gt;EOF&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;cat /tmp/out2$$&lt;BR /&gt;rm /tmp/out1$$ /tmp/out2$$&lt;BR /&gt;&lt;BR /&gt;---End of the Script---&lt;BR /&gt;&lt;BR /&gt;You can use /tmp/out2$$ if you want somewhere.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Mon, 15 Oct 2001 09:26:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cstm-scripting-like-ftp-scripting/m-p/2594773#M883943</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2001-10-15T09:26:37Z</dc:date>
    </item>
    <item>
      <title>Re: cstm scripting like ftp scripting...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cstm-scripting-like-ftp-scripting/m-p/2594774#M883944</link>
      <description>Hi Bill,&lt;BR /&gt;&lt;BR /&gt;You'll have to do it in 2 stages, e.g.&lt;BR /&gt;&lt;BR /&gt;========================================&lt;BR /&gt;cstm &amp;lt;&amp;lt; EOCSTM &amp;gt; /tmp/out&lt;BR /&gt;map&lt;BR /&gt;EOCSTM&lt;BR /&gt;&lt;BR /&gt;cat /tmp/out| grep CPU | awk '{ print $1 }' &amp;gt; /tmp/cpu_id&lt;BR /&gt;echo 'cstm &amp;lt;&amp;lt; EOCSTM' &amp;gt; /tmp/cpu_id.out&lt;BR /&gt;for i in $(cat /tmp/cpu_id)&lt;BR /&gt;do&lt;BR /&gt;echo sel dev $i &amp;gt;&amp;gt; /tmp/cpu_id.out&lt;BR /&gt;echo infolog &amp;gt;&amp;gt; /tmp/cpu_id.out&lt;BR /&gt;echo done &amp;gt;&amp;gt; /tmp/cpu_id.out&lt;BR /&gt;done&lt;BR /&gt;echo EOCSTM &amp;gt;&amp;gt; /tmp/cpu_id.out&lt;BR /&gt;chmod 755 /tmp/cpu_id.out&lt;BR /&gt;/tmp/cpu_id.out&lt;BR /&gt;&lt;BR /&gt;==========================================&lt;BR /&gt;&lt;BR /&gt;Rgds, Robin.</description>
      <pubDate>Mon, 15 Oct 2001 09:29:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cstm-scripting-like-ftp-scripting/m-p/2594774#M883944</guid>
      <dc:creator>Robin Wakefield</dc:creator>
      <dc:date>2001-10-15T09:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: cstm scripting like ftp scripting...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cstm-scripting-like-ftp-scripting/m-p/2594775#M883945</link>
      <description>mmm, it seems that my shell goes somewhere!! after the cstm thus, the first part works in both of your examples... but the second part doesn't.. I put huge sleeps in the script and it made no difference.. in fact the sleep is ignored and just about everything after the first section.&lt;BR /&gt;&lt;BR /&gt;Did you actually try it?&lt;BR /&gt;I'm sure you'll see the same...&lt;BR /&gt;&lt;BR /&gt;Here's one of your example  scripts run with an set -x.&lt;BR /&gt;(I'm seeing the same on both examples)&lt;BR /&gt;&lt;BR /&gt;cat /tmp/out| grep CPU | awk '{ print  }' &amp;gt; /tmp/cpu_id&lt;BR /&gt;echo 'cstm &amp;lt;&amp;lt; EOCSTM' &amp;gt; /tmp/cpu_id.out&lt;BR /&gt;for i in + cat /tmp/cpu_id&lt;BR /&gt;+ cat /tmp/cpu_id&lt;BR /&gt;cat: Cannot open /tmp/cpu_id: No such file or directory&lt;BR /&gt;&lt;BR /&gt;do&lt;BR /&gt;echo sel dev  &amp;gt;&amp;gt; /tmp/cpu_id.out&lt;BR /&gt;echo infolog &amp;gt;&amp;gt; /tmp/cpu_id.out&lt;BR /&gt;echo done &amp;gt;&amp;gt; /tmp/cpu_id.out&lt;BR /&gt;done&lt;BR /&gt;echo EOCSTM &amp;gt;&amp;gt; /tmp/cpu_id.out&lt;BR /&gt;chmod 755 /tmp/cpu_id.out&lt;BR /&gt;/tmp/cpu_id.out&lt;BR /&gt;</description>
      <pubDate>Mon, 15 Oct 2001 09:53:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cstm-scripting-like-ftp-scripting/m-p/2594775#M883945</guid>
      <dc:creator>Bill McNAMARA_1</dc:creator>
      <dc:date>2001-10-15T09:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: cstm scripting like ftp scripting...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cstm-scripting-like-ftp-scripting/m-p/2594776#M883946</link>
      <description>Hey Bill,&lt;BR /&gt;&lt;BR /&gt;not sure on which release you are, my cstm does not have a "sel" command, but here goes (untested though!):&lt;BR /&gt;&lt;BR /&gt;echo map\\nexit | cstm | grep CPU | awk '{ print "sel " $1 "\ninfo" }' &amp;amp;&amp;amp; echo exit | cstm&lt;BR /&gt;&lt;BR /&gt;This should do it, but I recommend to test &lt;BR /&gt;first:&lt;BR /&gt;&lt;BR /&gt;echo map\\nexit | cstm | grep CPU&lt;BR /&gt;&lt;BR /&gt;and&lt;BR /&gt;&lt;BR /&gt;echo map\\nexit | cstm | grep CPU | awk '{ print "sel " $1 "\ninfo" }' &amp;amp;&amp;amp; echo exit &lt;BR /&gt;&lt;BR /&gt;Which output should look like the cstm-commandfile you like to have. Check out, if you really want to leave cstm with exit (the one I have did not know "done")&lt;BR /&gt;&lt;BR /&gt;Hope this helps&lt;BR /&gt;Volker</description>
      <pubDate>Mon, 15 Oct 2001 11:17:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cstm-scripting-like-ftp-scripting/m-p/2594776#M883946</guid>
      <dc:creator>Volker Borowski</dc:creator>
      <dc:date>2001-10-15T11:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: cstm scripting like ftp scripting...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cstm-scripting-like-ftp-scripting/m-p/2594777#M883947</link>
      <description>The commands between "cstm &amp;lt;&amp;lt; EOCSTM &amp;gt; /tmp/out" and "EOCSTM" must be cstm commands. Now you have both cstm and UNIX/shell commands. Of course cstm does not understand the UNIX/shell commands.&lt;BR /&gt;&lt;BR /&gt;I think you will need two cstm runs in your script, one to get the /tmp/out file and another to run the cstm commands you extracted from the /tmp/out file. The latter part can be probably be done with something like:&lt;BR /&gt;&lt;BR /&gt;{&lt;BR /&gt;   ...&lt;BR /&gt;   echo $cstm_command1&lt;BR /&gt;   ...&lt;BR /&gt;   echo $cstm_command2&lt;BR /&gt;   ...&lt;BR /&gt;   echo done&lt;BR /&gt;} cstm&lt;BR /&gt;&lt;BR /&gt;The "..." parts can be any shell commands/construct, including loops, etc., as long as the result get into the $cstm_command parameters.&lt;BR /&gt;&lt;BR /&gt;All of this assumes that cstm has no problem with timing issues when reading from a non-interactive input. If it has, you will need something like the public domain 'expect' command as well.&lt;BR /&gt;&lt;BR /&gt;I hope this helps. &lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;</description>
      <pubDate>Mon, 15 Oct 2001 11:30:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cstm-scripting-like-ftp-scripting/m-p/2594777#M883947</guid>
      <dc:creator>Frank Slootweg</dc:creator>
      <dc:date>2001-10-15T11:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: cstm scripting like ftp scripting...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cstm-scripting-like-ftp-scripting/m-p/2594778#M883948</link>
      <description>I don't know why my script is not working for you. It's working here. I don't know what version of cstm you have. &lt;BR /&gt;&lt;BR /&gt;The first part is only to map. So, it works.&lt;BR /&gt;&lt;BR /&gt;The second part is tricky as it calls sel and infolog. So dependending on the version of cstm you have, you may need to replace the corresponding commands.&lt;BR /&gt;&lt;BR /&gt;As long as we don't include normal shell commands within the markers of cstm, it should work.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Mon, 15 Oct 2001 12:21:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cstm-scripting-like-ftp-scripting/m-p/2594778#M883948</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2001-10-15T12:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: cstm scripting like ftp scripting...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cstm-scripting-like-ftp-scripting/m-p/2594779#M883949</link>
      <description>Hi Bill,&lt;BR /&gt;&lt;BR /&gt;Is /tmp/out being created?&lt;BR /&gt;&lt;BR /&gt;How about /tmp/cpu_id (are you missing the $1 in the awk print statement?).&lt;BR /&gt;&lt;BR /&gt;Rgds, Robin.</description>
      <pubDate>Mon, 15 Oct 2001 12:29:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cstm-scripting-like-ftp-scripting/m-p/2594779#M883949</guid>
      <dc:creator>Robin Wakefield</dc:creator>
      <dc:date>2001-10-15T12:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: cstm scripting like ftp scripting...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cstm-scripting-like-ftp-scripting/m-p/2594780#M883950</link>
      <description>Hi Bill,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Have you already tried this?&lt;BR /&gt;&lt;BR /&gt;echo 'selclass qualifier cpu;info;wait;infolog' | cstm &amp;gt; cstm.out&lt;BR /&gt;&lt;BR /&gt;It gets the information for all the CPUs&lt;BR /&gt;&lt;BR /&gt;I generally have aliases for this in .kshrc/.profile&lt;BR /&gt;&lt;BR /&gt;cpucstm="echo 'selclass qualifier cpu;info;wait;infolog' | cstm "&lt;BR /&gt;memcstm="echo 'selclass qualifier memory;info;wait;infolog' | cstm "&lt;BR /&gt;&lt;BR /&gt;All you need to get the information for CPU's in a log is&lt;BR /&gt;cpucstm &amp;gt; /tmp/cpucstm.out&lt;BR /&gt;for memory&lt;BR /&gt;memcstm &amp;gt; /tmp/memcstm.out&lt;BR /&gt;&lt;BR /&gt;This works for STM versions as old as A.21.05&lt;BR /&gt;&lt;BR /&gt;-HTH&lt;BR /&gt;Ramesh</description>
      <pubDate>Mon, 15 Oct 2001 12:48:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cstm-scripting-like-ftp-scripting/m-p/2594780#M883950</guid>
      <dc:creator>linuxfan</dc:creator>
      <dc:date>2001-10-15T12:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: cstm scripting like ftp scripting...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cstm-scripting-like-ftp-scripting/m-p/2594781#M883951</link>
      <description>in fact cstm is used as an example of the problem I'm seeing with another program.. although I am doing the test with cstm..&lt;BR /&gt;&lt;BR /&gt;se sel class is no good.&lt;BR /&gt;&lt;BR /&gt;cstm works normally, it's just the script that doesn't as shown above..&lt;BR /&gt;&lt;BR /&gt;The $0 wasn't missing in the script.&lt;BR /&gt;&lt;BR /&gt;I'll try again and post the script and output up.&lt;BR /&gt;&lt;BR /&gt;Bill</description>
      <pubDate>Mon, 15 Oct 2001 13:53:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cstm-scripting-like-ftp-scripting/m-p/2594781#M883951</guid>
      <dc:creator>Bill McNAMARA_1</dc:creator>
      <dc:date>2001-10-15T13:53:47Z</dc:date>
    </item>
    <item>
      <title>Re: cstm scripting like ftp scripting...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cstm-scripting-like-ftp-scripting/m-p/2594782#M883952</link>
      <description>#!/usr/bin/ksh&lt;BR /&gt;&lt;BR /&gt;set -x&lt;BR /&gt;&lt;BR /&gt;cstm &amp;lt;&amp;lt; EOCSTM &amp;gt; /tmp/out&lt;BR /&gt;map&lt;BR /&gt;quit&lt;BR /&gt;OK&lt;BR /&gt;EOCSTM&lt;BR /&gt;&lt;BR /&gt;cat /tmp/out&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;cat /tmp/out| grep CPU | awk '{ print $1 }' &amp;gt; /tmp/cpu_id&lt;BR /&gt;echo 'cstm &amp;lt;&amp;lt; EOCSTM' &amp;gt; /tmp/cpu_id.out&lt;BR /&gt;&lt;BR /&gt;for i in $(cat /tmp/cpu_id)&lt;BR /&gt;do&lt;BR /&gt; echo sel dev $i &amp;gt;&amp;gt; /tmp/cpu_id.out&lt;BR /&gt; echo infolog &amp;gt;&amp;gt; /tmp/cpu_id.out&lt;BR /&gt; echo done &amp;gt;&amp;gt; /tmp/cpu_id.out&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;echo EOCSTM &amp;gt;&amp;gt; /tmp/cpu_id.out&lt;BR /&gt;chmod 755 /tmp/cpu_id.out&lt;BR /&gt;/tmp/cpu_id.out&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;--&lt;BR /&gt;Execution:&lt;BR /&gt;# /tmp/scr1.ksh&lt;BR /&gt;+ cstm&lt;BR /&gt;+ 0&amp;lt;&amp;lt;&lt;BR /&gt;map&lt;BR /&gt;quit&lt;BR /&gt;OK&lt;BR /&gt;EOCSTM&lt;BR /&gt;&lt;BR /&gt;cat /tmp/out&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;cat /tmp/out| grep CPU | awk '{ print  }' &amp;gt; /tmp/cpu_id&lt;BR /&gt;echo 'cstm &amp;lt;&amp;lt; EOCSTM' &amp;gt; /tmp/cpu_id.out&lt;BR /&gt;&lt;BR /&gt;for i in + cat /tmp/cpu_id&lt;BR /&gt;+ cat /tmp/cpu_id&lt;BR /&gt;cat: Cannot open /tmp/cpu_id: No such file or directory&lt;BR /&gt;&lt;BR /&gt;do&lt;BR /&gt; echo sel dev  &amp;gt;&amp;gt; /tmp/cpu_id.out&lt;BR /&gt; echo infolog &amp;gt;&amp;gt; /tmp/cpu_id.out&lt;BR /&gt; echo done &amp;gt;&amp;gt; /tmp/cpu_id.out&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;echo EOCSTM &amp;gt;&amp;gt; /tmp/cpu_id.out&lt;BR /&gt;chmod 755 /tmp/cpu_id.out&lt;BR /&gt;/tmp/cpu_id.out&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;1&amp;gt; /tmp/out&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;---&lt;BR /&gt;&lt;BR /&gt;cat /tmp/out&lt;BR /&gt;&lt;BR /&gt;Version A.22.00&lt;BR /&gt;&lt;BR /&gt;Product Number B4708AA&lt;BR /&gt;&lt;BR /&gt;(C) Copyright Hewlett Packard Co. 1995-1998&lt;BR /&gt;All Rights Reserved&lt;BR /&gt;&lt;BR /&gt;Use of this program is subject to the licensing restrictions described&lt;BR /&gt;in "Help--&amp;gt;On Version".  HP shall not be liable for any damages resulting&lt;BR /&gt;from misuse or unauthorized use of this program.&lt;BR /&gt;&lt;BR /&gt;cstm&amp;gt;map&lt;BR /&gt;                              kibo.grenoble.hp.com&lt;BR /&gt;&lt;BR /&gt;  Dev                                                 Last        Last Op&lt;BR /&gt;  Num  Path                 Product                   Active Tool Status&lt;BR /&gt;  ===  ==================== ========================= =========== =============&lt;BR /&gt;    1  system               system ()                 Information Successful&lt;BR /&gt;    2  0                    Bus Adapter (582)         Information Successful&lt;BR /&gt;    3  0/0                  PCI Bus Adapter (782)     Information Successful&lt;BR /&gt;    4  0/0/0/0              Core PCI 100BT Interface  Information Successful&lt;BR /&gt;    5  0/0/1/0              PCI SCSI Interface (10000 Information Successful&lt;BR /&gt;    6  0/0/1/1              PCI SCSI Interface (10000 Information Successful&lt;BR /&gt;    7  0/0/1/1.15.0         SCSI Disk (SEAGATEST39102 Information Successful&lt;BR /&gt;    8  0/0/2/0              PCI SCSI Interface (10000 Information Successful&lt;BR /&gt;    9  0/0/2/1              PCI SCSI Interface (10000 Information Successful&lt;BR /&gt;   10  0/0/2/1.15.0         SCSI Disk (SEAGATEST39204 Information Successful&lt;BR /&gt;   11  0/0/4/0              RS-232 Interface (103c104 Information Successful&lt;BR /&gt;   12  0/0/5/0              RS-232 Interface (103c104 Information Successful&lt;BR /&gt;   13  0/2                  PCI Bus Adapter (782)     Information Successful&lt;BR /&gt;   14  0/2/0/0              PCI Bus Adapter (10110026 Information Successful&lt;BR /&gt;   15  0/2/0/0/4/0          PCI 4 Port 100BT LAN (101 Information Successful&lt;BR /&gt;   16  0/2/0/0/5/0          PCI 4 Port 100BT LAN (101 Information Successful&lt;BR /&gt;   17  0/2/0/0/6/0          PCI 4 Port 100BT LAN (101 Information Successful&lt;BR /&gt;   18  0/2/0/0/7/0          PCI 4 Port 100BT LAN (101 Information Successful&lt;BR /&gt;   19  0/4                  PCI Bus Adapter (782)     Information Successful&lt;BR /&gt;   20  0/4/0/0              Unknown ()&lt;BR /&gt;   21  0/6                  PCI Bus Adapter (782)     Information Successful&lt;BR /&gt;   22  0/6/0/0              PCI WAN Performance Inter Information Successful&lt;BR /&gt;   23  8                    MEMORY (9b)               Information Successful&lt;BR /&gt;   24  160                  CPU (5d5)                 Information Successful&lt;BR /&gt;   25  162                  CPU (5d5)                 Information Successful&lt;BR /&gt;cstm&amp;gt;quit&lt;BR /&gt;-- Exit the Support Tool Manager --&lt;BR /&gt;Are you sure you want to exit the Support Tool Manager?&lt;BR /&gt;Enter Cancel, Help, or OK: [OK] OK&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 15 Oct 2001 13:58:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cstm-scripting-like-ftp-scripting/m-p/2594782#M883952</guid>
      <dc:creator>Bill McNAMARA_1</dc:creator>
      <dc:date>2001-10-15T13:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: cstm scripting like ftp scripting...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cstm-scripting-like-ftp-scripting/m-p/2594783#M883953</link>
      <description>Frank your suggestion was close, but when generating the commands sel device $i&lt;BR /&gt;the next command must follow within the same cstm session: info or else it won't work.&lt;BR /&gt;&lt;BR /&gt;Bill</description>
      <pubDate>Mon, 15 Oct 2001 14:13:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cstm-scripting-like-ftp-scripting/m-p/2594783#M883953</guid>
      <dc:creator>Bill McNAMARA_1</dc:creator>
      <dc:date>2001-10-15T14:13:03Z</dc:date>
    </item>
    <item>
      <title>Re: cstm scripting like ftp scripting...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cstm-scripting-like-ftp-scripting/m-p/2594784#M883954</link>
      <description>Bill,&lt;BR /&gt;&lt;BR /&gt;It's surprizing to see why it's not working for you. Can you try this with sh -x and see? Believe me. This works superbly on my system. Only thing is that you need to replace sel device with the one that is applicable to you. Try cstm manually to get the output and incorporate those commands.&lt;BR /&gt;&lt;BR /&gt;//start&lt;BR /&gt;&lt;BR /&gt;cstm &amp;lt;&amp;lt; EOF &amp;gt; /tmp/out1$$ &lt;BR /&gt;map &lt;BR /&gt;quit &lt;BR /&gt;OK &lt;BR /&gt;EOF &lt;BR /&gt;for i in `cat /tmp/out1$$|grep CPU |awk '{print $1}'` &lt;BR /&gt;do &lt;BR /&gt;echo $i &lt;BR /&gt;cstm &amp;lt;&amp;lt; EOF &amp;gt;&amp;gt; /tmp/out2$$ &lt;BR /&gt;sel device $i       &amp;lt;== I think here it is sel $i&lt;BR /&gt;infolog             &amp;lt;&amp;lt;== info??&lt;BR /&gt;quit &lt;BR /&gt;OK &lt;BR /&gt;EOF &lt;BR /&gt;done &lt;BR /&gt;&lt;BR /&gt;cat /tmp/out2$$ &lt;BR /&gt;rm /tmp/out1$$ /tmp/out2$$ &lt;BR /&gt;&lt;BR /&gt;//END&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Mon, 15 Oct 2001 14:15:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cstm-scripting-like-ftp-scripting/m-p/2594784#M883954</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2001-10-15T14:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: cstm scripting like ftp scripting...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cstm-scripting-like-ftp-scripting/m-p/2594785#M883955</link>
      <description>Hi Bill,&lt;BR /&gt;&lt;BR /&gt;You've got a trailing space after the closing &lt;BR /&gt;EOCSTM.  Take it out, and it'll work!!&lt;BR /&gt;&lt;BR /&gt;Rgds, Robin.</description>
      <pubDate>Mon, 15 Oct 2001 14:19:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cstm-scripting-like-ftp-scripting/m-p/2594785#M883955</guid>
      <dc:creator>Robin Wakefield</dc:creator>
      <dc:date>2001-10-15T14:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: cstm scripting like ftp scripting...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cstm-scripting-like-ftp-scripting/m-p/2594786#M883956</link>
      <description>Nice one!&lt;BR /&gt;&lt;BR /&gt;You gotta watch out for copy paste jobs on the forums.!!!&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Bill</description>
      <pubDate>Mon, 15 Oct 2001 14:22:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cstm-scripting-like-ftp-scripting/m-p/2594786#M883956</guid>
      <dc:creator>Bill McNAMARA_1</dc:creator>
      <dc:date>2001-10-15T14:22:08Z</dc:date>
    </item>
  </channel>
</rss>

