Re: bdf ouput in GB (4468 Views)
Posts: 40
Registered: ‎10-19-2010
Message 1 of 4 (4,468 Views)
Accepted Solution

bdf ouput in GB


How to display bdf output in GB on HP-UX systems ?
Honored Contributor
Posts: 14,448
Registered: ‎05-29-2000
Message 2 of 4 (4,468 Views)

Re: bdf ouput in GB

bdf hasn't been enhanced for readability for a couple of decades. The attached script (bdfmegs) has the ability to display in gigabytes (-g). However, it will show GB and even TB values when run as bdfmegs. There are lots of very useful options to select mountpoints by volume group, sum total all the columns, even show the VxFS version as well as LVM version. Here's the option summary:

Usage: bdfmegs [ -cghlNPpqstuVv ] [ ]
-c # = Sort on column #
-d = Toggle divisor (1000 or 1024, current=1000)
-e = enhancement for percentage and errors
d=dim h=halfbright i=inverse u=underline b=blink
-g = show gigabytes, otherwise megabytes
-h = Usage (return code=0, Usage to stdout)
-l = local (no NFS)
-M = skip (grep -v) mountpoints
-N = skip one or more volume groups
Repeat -N or use commas: -N vg10,vg24
-p ## = highlight % -ge ##
-P ## = show only % -ge ##
-q = suppress header line and no char enhancements
-s = summarize total, used and available
-t = specifc filesystem: (hfs vxfs nfs cdfs cifs autofs DevFS)
-u = usage (return code=0, Usage to stdout)
-v = verbose (FStype, FSversion, largefiles, VGversion)
(version info needs read permission for mountpoint)
-V = select one or more volume groups
Repeat -V or use commas: -V vg00,vg01

File(s) or dirpath(s) may be specified to reduce the output of bdfmegs:

bdfmegs -vg /usr/contrib/bin /var/tmp

If bdfmegs is run as bdfgigs (ie, a link), then -g is default.
(bdfmegs ver 5.8_Jul2010)
Occasional Visitor
Posts: 1
Registered: ‎12-13-2012
Message 3 of 4 (3,850 Views)

Re: bdf ouput in GB

When i execute this scripts it is giving the output fine... May i know how to invoke this script with all other options as you said, bdfmegs [ -cghlNPpqstuVv ]

Occasional Contributor
Posts: 5
Registered: ‎07-08-2013
Message 4 of 4 (3,077 Views)

Re: bdf ouput in GB

Thanks a lot Bill,


This is exactly what i was looking for.




Sandeep Bodkhe

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.