Showing results for 
Search instead for 
Do you mean 

bdf ouput in GB

SOLVED
Go to Solution
Advisor

bdf ouput in GB

Hello,

How to display bdf output in GB on HP-UX systems ?
Thanks,
Manoj
1 ACCEPTED SOLUTION
Highlighted
Honored Contributor Honored Contributor

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 ] [ ]
where:
-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)
4 REPLIES
Highlighted
Honored Contributor Honored Contributor

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 ] [ ]
where:
-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

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

Re: bdf ouput in GB

Thanks a lot Bill,

 

This is exactly what i was looking for.

 

Regards,

 

Sandeep Bodkhe

Occasional Visitor

Re: bdf ouput in GB

very helpful, I wonder why HP does not include this script in the OS packages,

Many thanks,