- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- bdfmegs 5.5 available
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-17-2009 07:57 AM
тАО12-17-2009 07:57 AM
1. -M
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
-N
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
-u = usage (return code=0, Usage to stdout)
-v = verbose (type, version, largefiles)
(version info read permission for mountpoint)
-V
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-17-2009 08:02 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-17-2009 08:05 AM
тАО12-17-2009 08:05 AM
Re: bdfmegs 5.5 available
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-18-2009 12:44 AM
тАО12-18-2009 12:44 AM
Re: bdfmegs 5.5 available
good improvements. Thx a lot for keep this alive!
Rgds,
Art
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-21-2009 12:06 AM
тАО12-21-2009 12:06 AM
Re: bdfmegs 5.5 available
it is working good in Hp-UX 11iv1 environment, bdfgigs seems good option.
nice work
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-18-2010 09:44 AM
тАО02-18-2010 09:44 AM
Re: bdfmegs 5.5 available
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-08-2010 10:58 AM
тАО03-08-2010 10:58 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-08-2010 08:54 PM
тАО03-08-2010 08:54 PM
Re: bdfmegs 5.5 available
Thanks again, I will get the new one.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2010 12:38 AM
тАО08-11-2010 12:38 AM
Re: bdfmegs 5.5 available
How do i use this script in HP UX,
as a root user?
could you please let me know the procedure.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2010 01:38 AM
тАО08-11-2010 01:38 AM
Re: bdfmegs 5.5 available
>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 "./".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2010 01:43 AM
тАО08-11-2010 01:43 AM
Re: bdfmegs 5.5 available
it's allways alised into our .profile
keep on the good work
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2010 02:47 AM
тАО08-11-2010 02:47 AM
Re: bdfmegs 5.5 available
Getting below error:
-rwxr-xr-x 1 payt nextst 25526 Aug 11 11:05 bdfmegs
dogmatix:/home$ ./bdfmegs -g
interpreter "/usr/bin/sh" not found
ksh: ./bdfmegs: not found
dogmatix:/home$ uname -a
HP-UX dogmatix B.11.23 U ia64 1990836496 unlimited-user license
dogmatix:/home$
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2010 03:45 AM
тАО08-11-2010 03:45 AM
Re: bdfmegs 5.5 available
If you use vi to look at the file, I think you'll find ^M at the end of every line. This is caused by transferring a file from your PC to the HP-UX system (actually, any Unix flavor) using ftp in BINARY mode. Transfer the file again using ASCII and it will work OK. This is a very common mistake using ftp between very different operating systems.
You can also see the error suing cat -v:
cat -v bdfmegs
You can also fix the problem using dos2ux:
dos2ux bdfmegs > bdfmegs1
mv bdfmegs1 bdfmegs
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2010 04:37 AM
тАО08-11-2010 04:37 AM
Re: bdfmegs 5.5 available
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2010 12:59 PM
тАО08-11-2010 12:59 PM
Re: bdfmegs 5.5 available
Congrats again for the new version of bdfmegs (5.5).
Working fine for me, however one quick question, when I am not using the -g flag, I am expecting all in MB (Megabyte ) output, however g still comming in the output.
-g = show gigabytes, otherwise megabytes.
#----------------------------------
$ ./bdfmegs
File-System Mbytes Used Avail %Used Mounted on
/dev/vx/dsk/rootdg/rootvol 1327 400 919 30% /
/dev/vx/dsk/rootdg/standvol 295 93 172 35% /stand
/dev/vx/dsk/dg01/work2 104.9g 11.3g 92.8g 11% /work2
/dev/vx/dsk/dg01/work1 104.9g 3577 100.5g 3% /work1
/dev/vx/dsk/rootdg/varvol 6291 4942 1338 79% /var
/dev/vx/dsk/rootdg/usrvol 6291 2010 4247 32% /usr
/dev/vx/dsk/rootdg/usersvol 2097 271 1811 13% /users
/dev/vx/dsk/rootdg/tmpvol 2097 17 2063 1% /tmp
/dev/vx/dsk/dg01/tarback 3080 35 2854 1% /tarback
/dev/vx/dsk/rootdg/optvol 6291 3431 2837 55% /opt
/dev/vx/dsk/dg01/optoracle 52.4g 9592 42.5g 18% /opt/oracle
thanks n Regards,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2010 01:04 PM
тАО08-11-2010 01:04 PM
Re: bdfmegs 5.5 available
The text not displaying good in the forum reply space, so attached in the output.
Regards, Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2010 01:55 PM
тАО08-11-2010 01:55 PM
Re: bdfmegs 5.5 available
Yes. Because disk lvols can be a few MB or several TB, I reduced the available column widths to make things easier to read. The g shows GB, t shows TB. Rerun with -g to see the numbers in GB.
And be sure to read the announcement of bdfmegs 5.8 posted today.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2010 02:01 PM
тАО08-11-2010 02:01 PM
Re: bdfmegs 5.5 available
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1443143
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2010 06:58 PM
тАО08-11-2010 06:58 PM
Re: bdfmegs 5.5 available
Great work!!
Today i have installed this script initially on our TEST server and checked, it was working fine and later i have installed on production machines.
Thank you for posting.