- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- bdfmegs ver 5.3
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
Forums
Discussions
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
09-07-2009 12:41 PM
09-07-2009 12:41 PM
Here's the -h (help) option:
Usage: bdfmegs [ -cdghlNPpqstuVv ] [
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)
-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.3_Sep2009)
Bill Hassell, sysadmin
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2009 06:30 PM
09-07-2009 06:30 PM
Re: bdfmegs ver 5.3
i had downloaded it and will try with one of my test unix system.
i think in this update -V option is very usefull,
thanks again.. :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2009 11:57 PM
09-07-2009 11:57 PM
Re: bdfmegs ver 5.3
This is not only a good tool, but a good example of shell programming as well.
Rgds,
Art
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2009 11:59 PM
09-07-2009 11:59 PM
Re: bdfmegs ver 5.3
Thanks for this intersting tool.
Jorge
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2009 12:58 AM
09-08-2009 12:58 AM
Re: bdfmegs ver 5.3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2009 01:19 AM
09-08-2009 01:19 AM
Re: bdfmegs ver 5.3
I tried -d switch, could you please look at the output in my 11i v1 HP-UX server:
# ./bdfmegs -vd /usr/contrib/bin /var/tmp
File-System Mbytes Used Avail %Used Type Vr Lrg Mounted on
/dev/vg00/lvol8 2048 1414 628 69% vxfs 4 yes /usr
/dev/vg00/lvol9 2048 833 1205 41% vxfs 4 yes /var
# ./bdfmegs -v /usr/contrib/bin /var/tmp
File-System Mbytes Used Avail %Used Type Vr Lrg Mounted on
/dev/vg00/lvol8 2097 1448 643 69% vxfs 4 yes /usr
/dev/vg00/lvol9 2097 853 1234 41% vxfs 4 yes /var
-different MB(s) ,so I admit that I could not quite catch the reason for this, can you explain why added this workaround ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2009 05:16 AM
09-08-2009 05:16 AM
Solution# ./bdfmegs -vd /usr/contrib/bin /var/tmp
File-System Mbytes Used Avail %Used Type Vr Lrg Mounted on
/dev/vg00/lvol8 2048 1414 628 69% vxfs 4 yes /usr
/dev/vg00/lvol9 2048 833 1205 41% vxfs 4 yes /var
# ./bdfmegs -v /usr/contrib/bin /var/tmp
File-System Mbytes Used Avail %Used Type Vr Lrg Mounted on
/dev/vg00/lvol8 2097 1448 643 69% vxfs 4 yes /usr
/dev/vg00/lvol9 2097 853 1234 41% vxfs 4 yes /var
*****************
In the first output, using the '-d' switch, it is forcing the use of 1024 as the divisor for figuring MB and GB. Your output shows the the LVOLs are '2048 MB' (2 GB) which is 2,097,152 KB / 1024.
The 2nd output is using 1000 as the divisor. Thus it is showing 2,097,152 / 1000 = 2,097 MB for your LVOLs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2009 05:51 AM
09-08-2009 05:51 AM
Re: bdfmegs ver 5.3
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2009 06:21 AM
09-08-2009 06:21 AM
Re: bdfmegs ver 5.3
No matter point I received.
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2009 08:58 AM
12-10-2009 08:58 AM
Re: bdfmegs ver 5.3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2009 09:22 AM
12-10-2009 09:22 AM
Re: bdfmegs ver 5.3
Thanks a lot for the script.
Have a great day everybody
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2009 04:56 PM
12-10-2009 04:56 PM
Re: bdfmegs ver 5.3
This will be a bit tricky. I can add an option that skips a pattern in the mount point or the source lvol but then it won't be shown at all. Snapshot volumes are not real filesystems but are actually a composite of the unchanged blocks in the original filesystem plus an image of the changed blocks. It only has meaning when it is mounted and will match the size of the snapped volume rather than the raw disk space.
I will enhance bdfmegs to identify snap volumes and figure out some way to represent usage. mount -p reports snapsize but this isn't relevant for filesystems that bdf is representing so I will probably exclude snaps in sum totals.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2009 09:50 PM
12-10-2009 09:50 PM
Re: bdfmegs ver 5.3
Really very nice work, appreciated your efforts.
Regards,
Asif Sharif
Asif Sharif
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2009 04:23 AM
12-11-2009 04:23 AM
Re: bdfmegs ver 5.3
I would be totally fine, if the snapshot volumes could be excluded from bdfmegs entirely. There is a great little program called snapbdf that I use to collect and capture the snapshot data for. Thank you you so much, i am amazed that you would edit your script for just one person! THANK YOU so MUCH!
Andy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2009 11:19 AM
12-11-2009 11:19 AM
Re: bdfmegs ver 5.3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2009 07:24 AM
12-17-2009 07:24 AM
Re: bdfmegs ver 5.3
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2010 12:32 AM
08-11-2010 12:32 AM
Re: bdfmegs ver 5.3
Iam very new to HP UX..
How do i install the attached script in HP UX.
Thanks