1745819 Members
4447 Online
108722 Solutions
New Discussion

Re: bdf ouput in GB

 
SOLVED
Go to solution
Manoj1
Advisor

bdf ouput in GB

Hello,

How to display bdf output in GB on HP-UX systems ?
Thanks,
Manoj
4 REPLIES 4
Bill Hassell
Honored Contributor
Solution

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)


Bill Hassell, sysadmin
msatheesh09
New Member

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 ]

Sandeepbodkhe1
Occasional Contributor

Re: bdf ouput in GB

Thanks a lot Bill,

 

This is exactly what i was looking for.

 

Regards,

 

Sandeep Bodkhe

isofol
New Member

Re: bdf ouput in GB

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

Many thanks,