<?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: Saving Sam's list in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/saving-sam-s-list/m-p/4476721#M361978</link>
    <description>Hi MSwift,&lt;BR /&gt;&lt;BR /&gt;Yes. There is a option. Once you get into the desired section of SAM goto File -&amp;gt; Print -&amp;gt; selcet as File -&amp;gt;give the filename to save(Ex:/tmp/lvnames.txt &lt;BR /&gt;&lt;BR /&gt;Content will be saved in the above file. You can view all the lvnames</description>
    <pubDate>Tue, 11 Aug 2009 17:46:06 GMT</pubDate>
    <dc:creator>Ganesan R</dc:creator>
    <dc:date>2009-08-11T17:46:06Z</dc:date>
    <item>
      <title>Saving Sam's list</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/saving-sam-s-list/m-p/4476717#M361974</link>
      <description>Anyone know how to save the contents of SAM into a file? For ex. when you go into disks and filesystems&amp;gt; logical volumes (there are say 50 of them , you wont be able to see them all in a single screen. how do i get all this list into a file or a single snaphot in the format that is shown in SAM?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Mike</description>
      <pubDate>Mon, 10 Aug 2009 20:00:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/saving-sam-s-list/m-p/4476717#M361974</guid>
      <dc:creator>MSwift</dc:creator>
      <dc:date>2009-08-10T20:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: Saving Sam's list</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/saving-sam-s-list/m-p/4476718#M361975</link>
      <description>Hi,&lt;BR /&gt;Run the following command.&lt;BR /&gt;#script /tmp/temp2.txt&lt;BR /&gt;&lt;BR /&gt;then you run command, you will get all in this file when you will ..&lt;BR /&gt;&lt;BR /&gt;#exit&lt;BR /&gt;&lt;BR /&gt;Check file /tmp/temp2.txt, everything you will find in this file.&lt;BR /&gt;&lt;BR /&gt;Try this may be you will get solution.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Gokul Chandola</description>
      <pubDate>Tue, 11 Aug 2009 04:18:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/saving-sam-s-list/m-p/4476718#M361975</guid>
      <dc:creator>Gokul Chandola</dc:creator>
      <dc:date>2009-08-11T04:18:43Z</dc:date>
    </item>
    <item>
      <title>Re: Saving Sam's list</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/saving-sam-s-list/m-p/4476719#M361976</link>
      <description>script is a solution all right but with formatted outputs like that of SAM, it is a bit of a hassle to get *usable* text out of it.&lt;BR /&gt;&lt;BR /&gt;better way to do this is:&lt;BR /&gt;&lt;BR /&gt;after you list the contents of your disks and what not, go to options menu and select View SAM Log. In this list, the lines starting with * or ---- are informational lines. Commands start with / followed by a path to the command running. Look at the last few commands and figure out which one is giving you the output you are looking at. As a root user, execute this command and redirect the output to a file. Now you have a clean (formatting free) version of the SAM output in the file you redirected the output to.&lt;BR /&gt;&lt;BR /&gt;Hope this helps</description>
      <pubDate>Tue, 11 Aug 2009 17:30:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/saving-sam-s-list/m-p/4476719#M361976</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2009-08-11T17:30:53Z</dc:date>
    </item>
    <item>
      <title>Re: Saving Sam's list</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/saving-sam-s-list/m-p/4476720#M361977</link>
      <description>&lt;!--!*#--&gt;If you're only after a listing of PVs or Disks in SAM, then you don't even need SAM for that. The following will list all disks seen:&lt;BR /&gt;&lt;BR /&gt;---cut here---&lt;BR /&gt;#/bin/ksh&lt;BR /&gt;cat &amp;lt;&lt;BR /&gt;Disk Summary for `hostname`&lt;BR /&gt;version 1.0&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;HP-UX Disk Device         Vendor       Type                 Size(Kb)&lt;BR /&gt;--------------------------------------------------------------------&lt;BR /&gt;HEAD&lt;BR /&gt;ioscan -kfnC disk|awk 'NR&amp;gt;2 {print $NF}'|grep -iv SUBSYSTEM|grep rdsk|while read&lt;BR /&gt; disk;do&lt;BR /&gt;diskinfo $disk&amp;gt;/tmp/diskinfo.$$ 2&amp;gt;/dev/null&lt;BR /&gt;  [ $? -eq 1 ] &amp;amp;&amp;amp; continue&lt;BR /&gt;  vendor=`cat /tmp/diskinfo.$$|grep vendor:|awk -F: '{print $NF}'`&lt;BR /&gt;  type=`cat /tmp/diskinfo.$$|grep id:|awk -F: '{print $NF}'`&lt;BR /&gt;  size=`cat /tmp/diskinfo.$$|grep size:|awk  '{print $2}'`&lt;BR /&gt;  [ $size -eq 0 ] &amp;amp;&amp;amp; continue&lt;BR /&gt;  printf "%-22s   %-12s %-20s %9d\n" $disk  "$vendor"  "$type"  $size&lt;BR /&gt;done&lt;BR /&gt;[ -f /tmp/diskinfo.$$ ] &amp;amp;&amp;amp; rm /tmp/diskinfo.$$&lt;BR /&gt;&lt;BR /&gt;--end cut--&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Aug 2009 17:42:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/saving-sam-s-list/m-p/4476720#M361977</guid>
      <dc:creator>Alzhy</dc:creator>
      <dc:date>2009-08-11T17:42:55Z</dc:date>
    </item>
    <item>
      <title>Re: Saving Sam's list</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/saving-sam-s-list/m-p/4476721#M361978</link>
      <description>Hi MSwift,&lt;BR /&gt;&lt;BR /&gt;Yes. There is a option. Once you get into the desired section of SAM goto File -&amp;gt; Print -&amp;gt; selcet as File -&amp;gt;give the filename to save(Ex:/tmp/lvnames.txt &lt;BR /&gt;&lt;BR /&gt;Content will be saved in the above file. You can view all the lvnames</description>
      <pubDate>Tue, 11 Aug 2009 17:46:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/saving-sam-s-list/m-p/4476721#M361978</guid>
      <dc:creator>Ganesan R</dc:creator>
      <dc:date>2009-08-11T17:46:06Z</dc:date>
    </item>
  </channel>
</rss>

