<?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 for disk space in GB in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/shell-script-for-disk-space-in-gb/m-p/3672765#M103306</link>
    <description>Dear Sirs,&lt;BR /&gt;&lt;BR /&gt;I need a shell script to find total disk space available, used and and free in terms of GB. &lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Shiv</description>
    <pubDate>Wed, 16 Nov 2005 08:51:42 GMT</pubDate>
    <dc:creator>Shivkumar</dc:creator>
    <dc:date>2005-11-16T08:51:42Z</dc:date>
    <item>
      <title>shell script for disk space in GB</title>
      <link>https://community.hpe.com/t5/operating-system-linux/shell-script-for-disk-space-in-gb/m-p/3672765#M103306</link>
      <description>Dear Sirs,&lt;BR /&gt;&lt;BR /&gt;I need a shell script to find total disk space available, used and and free in terms of GB. &lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Shiv</description>
      <pubDate>Wed, 16 Nov 2005 08:51:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/shell-script-for-disk-space-in-gb/m-p/3672765#M103306</guid>
      <dc:creator>Shivkumar</dc:creator>
      <dc:date>2005-11-16T08:51:42Z</dc:date>
    </item>
    <item>
      <title>Re: shell script for disk space in GB</title>
      <link>https://community.hpe.com/t5/operating-system-linux/shell-script-for-disk-space-in-gb/m-p/3672766#M103307</link>
      <description>MB&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/ksh&lt;BR /&gt;&lt;BR /&gt;echo "Filesystem          Mbytes       used      avail %used Mounted on"&lt;BR /&gt;&lt;BR /&gt;bdf $1 | grep -v Filesystem | awk '{ printf("%s %10d %10d %10d %4s  %s\n",$1,$2/&lt;BR /&gt;1024,$3/1024,$4/1024,$5,$6)}'&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;for GB&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/ksh&lt;BR /&gt;&lt;BR /&gt;echo "Filesystem          Gbytes       used      avail %used Mounted on"&lt;BR /&gt;&lt;BR /&gt;bdf $1 | grep -v Filesystem | awk '{ printf("%s %10d %10d %10d %4s  %s\n",$1,$2/&lt;BR /&gt;1024,$3/1024,$4/1024/1024,$5,$6)}'&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 16 Nov 2005 08:59:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/shell-script-for-disk-space-in-gb/m-p/3672766#M103307</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2005-11-16T08:59:47Z</dc:date>
    </item>
    <item>
      <title>Re: shell script for disk space in GB</title>
      <link>https://community.hpe.com/t5/operating-system-linux/shell-script-for-disk-space-in-gb/m-p/3672767#M103308</link>
      <description>typo&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/ksh&lt;BR /&gt;&lt;BR /&gt;echo "Filesystem          Gbytes       used      avail %used Mounted on"&lt;BR /&gt;&lt;BR /&gt;bdf $1 | grep -v Filesystem | awk '{ printf("%s %10d %10d %10d %4s  %s\n",$1,$2/&lt;BR /&gt;1024/1024,$3/1024,$4/1024/1024,$5,$6)}'&lt;BR /&gt;</description>
      <pubDate>Wed, 16 Nov 2005 09:01:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/shell-script-for-disk-space-in-gb/m-p/3672767#M103308</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2005-11-16T09:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: shell script for disk space in GB</title>
      <link>https://community.hpe.com/t5/operating-system-linux/shell-script-for-disk-space-in-gb/m-p/3672768#M103309</link>
      <description>Hi Shiv:&lt;BR /&gt;&lt;BR /&gt;With all due respect, you would learn a great deal more by posting *what* you have tried to create and then asking for help where you are stuck.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 16 Nov 2005 09:01:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/shell-script-for-disk-space-in-gb/m-p/3672768#M103309</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2005-11-16T09:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: shell script for disk space in GB</title>
      <link>https://community.hpe.com/t5/operating-system-linux/shell-script-for-disk-space-in-gb/m-p/3672769#M103310</link>
      <description>Shiv,&lt;BR /&gt;&lt;BR /&gt;I got this from Patrick Wallek (attached).&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Wed, 16 Nov 2005 09:04:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/shell-script-for-disk-space-in-gb/m-p/3672769#M103310</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2005-11-16T09:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: shell script for disk space in GB</title>
      <link>https://community.hpe.com/t5/operating-system-linux/shell-script-for-disk-space-in-gb/m-p/3672770#M103311</link>
      <description>You should also check the di tool available at Merjin's software archieve:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://mirrors.develooper.com/hpux/downloads.html" target="_blank"&gt;http://mirrors.develooper.com/hpux/downloads.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;di -d G &lt;BR /&gt;&lt;BR /&gt;will give you filesystem information in GBs.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Filesystem         Mount               Gigs     Used    Avail %used fs Type&lt;BR /&gt;&lt;BR /&gt;hth</description>
      <pubDate>Wed, 16 Nov 2005 09:07:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/shell-script-for-disk-space-in-gb/m-p/3672770#M103311</guid>
      <dc:creator>Orhan Biyiklioglu</dc:creator>
      <dc:date>2005-11-16T09:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: shell script for disk space in GB</title>
      <link>https://community.hpe.com/t5/operating-system-linux/shell-script-for-disk-space-in-gb/m-p/3672771#M103312</link>
      <description>Is it possible to print the summary of total available,used and free in GB ?</description>
      <pubDate>Wed, 16 Nov 2005 19:55:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/shell-script-for-disk-space-in-gb/m-p/3672771#M103312</guid>
      <dc:creator>Shivkumar</dc:creator>
      <dc:date>2005-11-16T19:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: shell script for disk space in GB</title>
      <link>https://community.hpe.com/t5/operating-system-linux/shell-script-for-disk-space-in-gb/m-p/3672772#M103313</link>
      <description>Hi Shiv:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;bdf | awk '!/Filesystem/ {&lt;BR /&gt;s2+=$2;s3+=$3;s4+=$4;&lt;BR /&gt;printf("%-18s %10d %10d %10d %4s %s\n",&lt;BR /&gt;$1,$2/1024/1024,$3/1024/1024,$4/1024/1024,$5,$6)}&lt;BR /&gt;END{printf "%-18s %10d %10d %10d\n","TOTAL",&lt;BR /&gt;s2/1024/1024,s3/1024/1024,s4/1024/1024}'&lt;BR /&gt;&lt;BR /&gt;...while not formatted to be pretty, I think this gives you want you want.  Columns do not quite add up due to rounding.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 16 Nov 2005 20:33:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/shell-script-for-disk-space-in-gb/m-p/3672772#M103313</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2005-11-16T20:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: shell script for disk space in GB</title>
      <link>https://community.hpe.com/t5/operating-system-linux/shell-script-for-disk-space-in-gb/m-p/3672773#M103314</link>
      <description>Hi (again) Shiv:&lt;BR /&gt;&lt;BR /&gt;I should have said (of course) that "Columns do not quite add up due to integer truncation."&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;</description>
      <pubDate>Wed, 16 Nov 2005 20:58:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/shell-script-for-disk-space-in-gb/m-p/3672773#M103314</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2005-11-16T20:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: shell script for disk space in GB</title>
      <link>https://community.hpe.com/t5/operating-system-linux/shell-script-for-disk-space-in-gb/m-p/3672774#M103315</link>
      <description>Hi Shiv:&lt;BR /&gt;&lt;BR /&gt;This last hack does a better job of formatting the output and replaces the printf() integers with rounded reals (via "%10.2f").  You will find that the columnar totals are much closer to their expected values.&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;bdf | awk '&lt;BR /&gt;BEGIN{printf "%-16s %10s %10s %10s %5s  %s\n",&lt;BR /&gt;"Filesystem","GB","Used","Avail","Used","Mounted_On"};&lt;BR /&gt;!/Filesystem/ {&lt;BR /&gt;s2+=$2;s3+=$3;s4+=$4;&lt;BR /&gt;printf("%-16s %10.2f %10.2f %10.2f %5s  %s\n",&lt;BR /&gt;$1,$2/1024/1024,$3/1024/1024,$4/1024/1024,$5,$6)}&lt;BR /&gt;END{printf "%-16s %10.2f %10.2f %10.2f\n","TOTAL",&lt;BR /&gt;s2/1024/1024,s3/1024/1024,s4/1024/1024}'&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 16 Nov 2005 21:53:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/shell-script-for-disk-space-in-gb/m-p/3672774#M103315</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2005-11-16T21:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: shell script for disk space in GB</title>
      <link>https://community.hpe.com/t5/operating-system-linux/shell-script-for-disk-space-in-gb/m-p/3672775#M103316</link>
      <description>Use this:&lt;BR /&gt;&lt;BR /&gt;# bdf | awk 'BEGIN{ print "Filesystem         GBytes   Used    avail   %used Mounted on"}{ if ($0 ~! /Filesystem/) { printf "%s   %6.5f  %6.5f %6.5f   %3s %s\n",$1,$2/1024/1024,$3/1024/1024,$4/1024/1024,$5,$6;}}'&lt;BR /&gt;&lt;BR /&gt;hth.</description>
      <pubDate>Thu, 17 Nov 2005 01:06:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/shell-script-for-disk-space-in-gb/m-p/3672775#M103316</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-11-17T01:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: shell script for disk space in GB</title>
      <link>https://community.hpe.com/t5/operating-system-linux/shell-script-for-disk-space-in-gb/m-p/3672776#M103317</link>
      <description>Thanks everyone for helping me!!&lt;BR /&gt;&lt;BR /&gt;I have checked that both disks are available on the servers. Attached disks and SAN disk.&lt;BR /&gt;&lt;BR /&gt;How to find out how much SAN disk is used, free ?&lt;BR /&gt;&lt;BR /&gt;I mean i want separation of usage of SAN and attached disks both ?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Shiv&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 17 Nov 2005 12:38:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/shell-script-for-disk-space-in-gb/m-p/3672776#M103317</guid>
      <dc:creator>Shivkumar</dc:creator>
      <dc:date>2005-11-17T12:38:59Z</dc:date>
    </item>
    <item>
      <title>Re: shell script for disk space in GB</title>
      <link>https://community.hpe.com/t5/operating-system-linux/shell-script-for-disk-space-in-gb/m-p/3672777#M103318</link>
      <description>Shivkumar,&lt;BR /&gt;&lt;BR /&gt;Depends on what you are looking for and from what perspective. Disk space available per LV, per VG. You might also have disks available on your system that have not been pvcreated but are available. Can you be more specific?</description>
      <pubDate>Thu, 17 Nov 2005 15:00:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/shell-script-for-disk-space-in-gb/m-p/3672777#M103318</guid>
      <dc:creator>Onyedika Onwudiwe</dc:creator>
      <dc:date>2005-11-17T15:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: shell script for disk space in GB</title>
      <link>https://community.hpe.com/t5/operating-system-linux/shell-script-for-disk-space-in-gb/m-p/3672778#M103319</link>
      <description>How to find out disks/disk space available on the systems that have not been pvcreated but are available ?</description>
      <pubDate>Sun, 01 Jan 2006 21:13:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/shell-script-for-disk-space-in-gb/m-p/3672778#M103319</guid>
      <dc:creator>Shivkumar</dc:creator>
      <dc:date>2006-01-01T21:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: shell script for disk space in GB</title>
      <link>https://community.hpe.com/t5/operating-system-linux/shell-script-for-disk-space-in-gb/m-p/3672779#M103320</link>
      <description>Hi SHiv:&lt;BR /&gt;&lt;BR /&gt;# diskinfo /dev/rdsk/cXtYdZ&lt;BR /&gt;&lt;BR /&gt;...will return the size of a disk.  Note the use of the raw (character) device -- 'rdsk'.&lt;BR /&gt;&lt;BR /&gt;See the manpages for more information, too.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Sun, 01 Jan 2006 21:22:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/shell-script-for-disk-space-in-gb/m-p/3672779#M103320</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-01-01T21:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: shell script for disk space in GB</title>
      <link>https://community.hpe.com/t5/operating-system-linux/shell-script-for-disk-space-in-gb/m-p/3672780#M103321</link>
      <description>Hi Shiv, &lt;BR /&gt;&lt;BR /&gt;You can use the attached script finding out un-used disks,&lt;BR /&gt;&lt;BR /&gt;Note : It works when you have Solution Enabler installed on your server. &lt;BR /&gt;&lt;BR /&gt;-Arun</description>
      <pubDate>Sun, 01 Jan 2006 22:31:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/shell-script-for-disk-space-in-gb/m-p/3672780#M103321</guid>
      <dc:creator>Arunvijai_4</dc:creator>
      <dc:date>2006-01-01T22:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: shell script for disk space in GB</title>
      <link>https://community.hpe.com/t5/operating-system-linux/shell-script-for-disk-space-in-gb/m-p/3672781#M103322</link>
      <description>What is solution enabler ? how to find out whether Solution Enabler is availaber on my servers ?</description>
      <pubDate>Sun, 01 Jan 2006 22:36:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/shell-script-for-disk-space-in-gb/m-p/3672781#M103322</guid>
      <dc:creator>Shivkumar</dc:creator>
      <dc:date>2006-01-01T22:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: shell script for disk space in GB</title>
      <link>https://community.hpe.com/t5/operating-system-linux/shell-script-for-disk-space-in-gb/m-p/3672782#M103323</link>
      <description>The syminq program is part of the EMC disk utilities package for newer disk arrays. Since EMC disk arrays are very expensive, you would definitely know if you have this package of tools.&lt;BR /&gt; &lt;BR /&gt;As far as locating disks on your system which are not used, that is, not part of any disk volume group, you can run SAM and in the disks section, start creating a new volume group. The first step in SAM will show you potential disks you can use for a new volume or to extend an existing volume.</description>
      <pubDate>Sun, 01 Jan 2006 23:14:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/shell-script-for-disk-space-in-gb/m-p/3672782#M103323</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2006-01-01T23:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: shell script for disk space in GB</title>
      <link>https://community.hpe.com/t5/operating-system-linux/shell-script-for-disk-space-in-gb/m-p/3672783#M103324</link>
      <description>Here is the script for disk space in GB.&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/ksh&lt;BR /&gt;&lt;BR /&gt;echo "Filesystem Gbytes used avail %used Mounted on"&lt;BR /&gt;&lt;BR /&gt;bdf $1 | grep -v Filesystem | awk '{ printf("%s %10d %10d %10d %4s %s\n",$1,$2/1024/1024,$3/1024/1024,$4/1024/1024,$5,$6)}'&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;And you can find the script for used and available space for disks as ana attachment. It gives you detailed information about PVs,VGs and LVs. you only have to add your mail address to script.</description>
      <pubDate>Mon, 02 Jan 2006 01:13:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/shell-script-for-disk-space-in-gb/m-p/3672783#M103324</guid>
      <dc:creator>Onur Karakan</dc:creator>
      <dc:date>2006-01-02T01:13:34Z</dc:date>
    </item>
  </channel>
</rss>

