1833760 Members
2302 Online
110063 Solutions
New Discussion

bdfmegs

 
SOLVED
Go to solution
Marylou Kohlmeier
Frequent Advisor

bdfmegs

I would like to use "bdfmegs" so I copied the script from the link below.

http://hpunix-administrator.blogspot.com/2008/08/script-to-know-file-system-size-in-gb.html

When I tried to use it, I have this error.
root:/usr/bin #bdfmegs
bdfmegs[88]: Syntax error at line 97 : `)' is not expected.

Any help will be appreciated.

thank you,
Marylou
11 REPLIES 11
Pete Randall
Outstanding Contributor
Solution

Re: bdfmegs

Download the enhanced version from the author himself:

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1048509


Pete

Pete
Marylou Kohlmeier
Frequent Advisor

Re: bdfmegs

Thank you. It worked.
Marylou Kohlmeier
Frequent Advisor

Re: bdfmegs

Using bdfmegs:
/dev/vg06/Fata 854e+06 955 982311 0% /fata

Please let me know why the number is:
854e+06 for this filesystem using bdfmegs

Using bdf:
/dev/vg06/Fata 1073709056 978087 1005886481 0% /fata

for bdf- I have this number:1005886481

Marylou
Patrick Wallek
Honored Contributor

Re: bdfmegs

Hmmm... It appears that is a 1 TB file system. Perhaps the script can't handle the math for a value that large.
Marylou Kohlmeier
Frequent Advisor

Re: bdfmegs

Thank you. I think you are correct
Bill Hassell
Honored Contributor

Re: bdfmegs

> 854e+06 for this filesystem using bdfmegs

Use the command:

bdfmegs -g

Or even better, do this in the directory where bdfmegs is stored:

ln -s bdfmegs bdfgigs

Now for huge filesystems (multi-terabyte), just use the command:

bdfgigs

I think I will enhance bdfmegs to detect potential overflow. Watch for a new version in the next couple of weeks.


Bill Hassell, sysadmin
Marylou Kohlmeier
Frequent Advisor

Re: bdfmegs

Hi,
I followed your suggestion but still getting the same results. Thank you anyway.

root:/ #bdfgigs
/dev/vg06/Fata 854e+06 955 982311 0% /fata

Marylou
Pete Randall
Outstanding Contributor

Re: bdfmegs

Wouldn't an alias work better?

alias bdfgigs="bdfmegs -g"


Pete

Pete
Bill Hassell
Honored Contributor

Re: bdfmegs

> I followed your suggestion but still getting the same results.

Your copy of bdfmegs is old. Attached is the latest version. Run bdfmegs -h to see all the options like sum total and the percentage selector.

An alias works just as well. I added the code for bdfgigs so that casual users did not have to know anything about aliases.


Bill Hassell, sysadmin
Pete Randall
Outstanding Contributor

Re: bdfmegs

Of course! I should have known Bill would think of everything.

;^)


Pete

Pete
Marylou Kohlmeier
Frequent Advisor

Re: bdfmegs

Thank you everyone, particular Bill Hassell, for all your help. It's working fine now, after I copied the latest version as Bill suggested.

have a nice week,
Marylou