<?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: To fing harddisk size in GB in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/to-fing-harddisk-size-in-gb/m-p/4158840#M599705</link>
    <description>HI,&lt;BR /&gt;&lt;BR /&gt;The df -k command shows the harddisk capacity in kb not in GB&lt;BR /&gt;</description>
    <pubDate>Tue, 11 Mar 2008 03:15:41 GMT</pubDate>
    <dc:creator>Logesh_1</dc:creator>
    <dc:date>2008-03-11T03:15:41Z</dc:date>
    <item>
      <title>To fing harddisk size in GB</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/to-fing-harddisk-size-in-gb/m-p/4158835#M599700</link>
      <description>Hi.,&lt;BR /&gt;&lt;BR /&gt;Please tell me the command to find the hardisk space in GB(GIGA BYTE)in hpux&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Logesh.S</description>
      <pubDate>Tue, 11 Mar 2008 02:34:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/to-fing-harddisk-size-in-gb/m-p/4158835#M599700</guid>
      <dc:creator>Logesh_1</dc:creator>
      <dc:date>2008-03-11T02:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: To fing harddisk size in GB</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/to-fing-harddisk-size-in-gb/m-p/4158836#M599701</link>
      <description>The easiest way is to do a 'diskinfo' on the /dev/rdsk/c?t?d? device file.  That will give you the disk size and from there you can calculate the GB size of the disk.&lt;BR /&gt;&lt;BR /&gt; # diskinfo /dev/rdsk/c8t0d2&lt;BR /&gt;SCSI describe of /dev/rdsk/c8t0d2:&lt;BR /&gt;             vendor: HP      &lt;BR /&gt;         product id: A6218A          &lt;BR /&gt;               type: direct access&lt;BR /&gt;               size: 37748736 Kbytes&lt;BR /&gt;   bytes per sector: 512&lt;BR /&gt;&lt;BR /&gt;From here you can get the size in GB by dividing the size by 1,048,576.&lt;BR /&gt;&lt;BR /&gt;37,748,736 KB / 1,048,576 = 36 GB</description>
      <pubDate>Tue, 11 Mar 2008 02:46:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/to-fing-harddisk-size-in-gb/m-p/4158836#M599701</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2008-03-11T02:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: To fing harddisk size in GB</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/to-fing-harddisk-size-in-gb/m-p/4158837#M599702</link>
      <description>echo "selclass qualifier disk;info;wait;infolog" | cstm&lt;BR /&gt;&lt;BR /&gt;-or-&lt;BR /&gt;&lt;BR /&gt;Patrick's works just as well.</description>
      <pubDate>Tue, 11 Mar 2008 02:53:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/to-fing-harddisk-size-in-gb/m-p/4158837#M599702</guid>
      <dc:creator>Michael Steele_2</dc:creator>
      <dc:date>2008-03-11T02:53:48Z</dc:date>
    </item>
    <item>
      <title>Re: To fing harddisk size in GB</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/to-fing-harddisk-size-in-gb/m-p/4158838#M599703</link>
      <description>Thanks for the quick reply,instaed of this command any other command is there to find out the harddisk space in GB</description>
      <pubDate>Tue, 11 Mar 2008 02:55:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/to-fing-harddisk-size-in-gb/m-p/4158838#M599703</guid>
      <dc:creator>Logesh_1</dc:creator>
      <dc:date>2008-03-11T02:55:21Z</dc:date>
    </item>
    <item>
      <title>Re: To fing harddisk size in GB</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/to-fing-harddisk-size-in-gb/m-p/4158839#M599704</link>
      <description>"man df"?  I assume that you can get from KB&lt;BR /&gt;("df -k") to GB.</description>
      <pubDate>Tue, 11 Mar 2008 03:09:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/to-fing-harddisk-size-in-gb/m-p/4158839#M599704</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2008-03-11T03:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: To fing harddisk size in GB</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/to-fing-harddisk-size-in-gb/m-p/4158840#M599705</link>
      <description>HI,&lt;BR /&gt;&lt;BR /&gt;The df -k command shows the harddisk capacity in kb not in GB&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Mar 2008 03:15:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/to-fing-harddisk-size-in-gb/m-p/4158840#M599705</guid>
      <dc:creator>Logesh_1</dc:creator>
      <dc:date>2008-03-11T03:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: To fing harddisk size in GB</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/to-fing-harddisk-size-in-gb/m-p/4158841#M599706</link>
      <description>Hi Logesh ,&lt;BR /&gt;   To get the disk size in GB use the command:&lt;BR /&gt;diskinfo /dev/rdsk/c2t0d0s2 |grep size: &amp;gt; /tmp/sad;A=$(cat /tmp/sad  |grep size: | awk '/ / {print $2}');Z=1024;(( B = A / Z ));(( C = B / Z ));echo "$C GB"&lt;BR /&gt;   -where /dev/rdsk/c2t0d0s2 is the device file of the disk. You can use it as a script.&lt;BR /&gt;     Regards,&lt;BR /&gt;     Davis Paul.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Mar 2008 08:44:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/to-fing-harddisk-size-in-gb/m-p/4158841#M599706</guid>
      <dc:creator>Davis Paul</dc:creator>
      <dc:date>2008-03-11T08:44:04Z</dc:date>
    </item>
    <item>
      <title>Re: To fing harddisk size in GB</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/to-fing-harddisk-size-in-gb/m-p/4158842#M599707</link>
      <description>Logesh, &lt;BR /&gt;Where you looking for a truncated integer result or a fractional result?&lt;BR /&gt;How do you see your 'harddisk'?&lt;BR /&gt;df?&lt;BR /&gt;pvdisplay?&lt;BR /&gt;diskinfo?&lt;BR /&gt;What works for you?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Steve&amp;gt;&amp;gt; "man df"? I assume that you can get from KB&lt;BR /&gt;("df -k") to GB. &lt;BR /&gt;&lt;BR /&gt;I don't think Logesh can. That's the problem.&lt;BR /&gt;Also, df can do the nastly line split making scripts trickier.&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &lt;BR /&gt;&lt;BR /&gt;diskinfo /dev/rdsk/c2t0d0s2 |grep size: &amp;gt; /tmp/sad;A=$(cat /tmp/sad |grep size: | awk '/ / {print $2}');Z=1024;(( B = A / Z ));(( C = B / Z ));echo "$C GB"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;10 points for entertainment!&lt;BR /&gt;0 points for efficiency&lt;BR /&gt;&lt;BR /&gt;untested (as I have no privs here...)&lt;BR /&gt;&lt;BR /&gt;# let size_in_gb=$(diskinfo -b)/1024/1024&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&amp;gt;&amp;gt; cat /tmp/sad |grep size: | awk '/ / {print $2}'&lt;BR /&gt;&lt;BR /&gt;awk is happy to read the file (or pipe) itself&lt;BR /&gt;awk is made to grep itself&lt;BR /&gt;&lt;BR /&gt;awk '/size/{ print $2}' /tmp/sad &lt;BR /&gt;&lt;BR /&gt;and why use an intermediate file, or that redundant grep?&lt;BR /&gt;&lt;BR /&gt;A=$(diskinfo /dev/rdsk/c2t0d0s2 |awk '/size/{ print $2}');Z=1024;(( B = A / Z ));(( C = B / Z ));echo "$C GB"&lt;BR /&gt;&lt;BR /&gt;The Z intermediete only obfuscates.&lt;BR /&gt;&lt;BR /&gt;But in the end... Just ask diskinfo for the size alone!&lt;BR /&gt;&lt;BR /&gt;hein.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Mar 2008 11:19:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/to-fing-harddisk-size-in-gb/m-p/4158842#M599707</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2008-03-11T11:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: To fing harddisk size in GB</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/to-fing-harddisk-size-in-gb/m-p/4158843#M599708</link>
      <description>Hi Logesh,&lt;BR /&gt;please read:&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1155229&amp;amp;admit=-682735245+1187939432880+28353475" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1155229&amp;amp;admit=-682735245+1187939432880+28353475&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Art</description>
      <pubDate>Wed, 12 Mar 2008 07:46:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/to-fing-harddisk-size-in-gb/m-p/4158843#M599708</guid>
      <dc:creator>Arturo Galbiati</dc:creator>
      <dc:date>2008-03-12T07:46:10Z</dc:date>
    </item>
  </channel>
</rss>

