cancel
Showing results for 
Search instead for 
Did you mean: 

bdfmegs 5.5 available

 
SOLVED
Go to solution
Honored Contributor

bdfmegs 5.5 available

The latest version of bdfmegs is now available (attached). Three changes have been made:

1. -M will skip mountpoints as in: bdfmegs -M /mnt2. The pattern is anchored internally to the end of the line as: /mnt2$

2. Added selection of bdf -s (when available) to speed up the output.

3. Added snap volume detection. When a snap volume is found, the size is the lvol size, the Used amount is from mount -p, and Avail and %Used are not applicable. For -s (sum total), snap volumes are not counted.

Here is the online help: bdfmegs -h

Usage: bdfmegs [ -cghlNPpqstuVv ] [ ]
where:
-c # = Sort on column #
-d = Toggle divisor (1000 or 1024, current=1000)
-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 (type, version, largefiles)
(version info 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.5_Dec2009)


Bill Hassell, sysadmin
18 REPLIES 18
Esteemed Contributor
Solution

Re: bdfmegs 5.5 available

Thanks a lot for the update Mr. Hassell.


Have a nice day.
Knowledge is power.
Honored Contributor

Re: bdfmegs 5.5 available

Not sure what happened -- here's the attachment again.


Bill Hassell, sysadmin
Esteemed Contributor

Re: bdfmegs 5.5 available

Hello Bill,
good improvements. Thx a lot for keep this alive!
Rgds,
Art
Honored Contributor

Re: bdfmegs 5.5 available

Hi,

it is working good in Hp-UX 11iv1 environment, bdfgigs seems good option.

nice work
Regards.
Frequent Advisor

Re: bdfmegs 5.5 available

Thanks for publishing this !
Trusted Contributor

Re: bdfmegs 5.5 available


Bill,

you are wonderful, dont know how i can express my gratitude.

this script made my life easy :)


Cheers,

Vijeesh CTK
Trusted Contributor

Re: bdfmegs 5.5 available

I have been using your bdfmegs and I really love it.

Thanks again, I will get the new one.
New Member

Re: bdfmegs 5.5 available

Hi,

How do i use this script in HP UX,

as a root user?

could you please let me know the procedure.

Thanks
Acclaimed Contributor

Re: bdfmegs 5.5 available

>uppu: How do I use this script in HP-UX?
>as a root user?
>could you please let me know the procedure.

root not needed.
Download the script as bdfmegs. Make it executable:
chmod a+x bdfmegs

Then execute it: ./bdfmegs options ...

If you put this in a location that's in your $PATH, you don't need that "./".