1851243 Members
2926 Online
104057 Solutions
New Discussion

Re: dfspace for HP?

 
SOLVED
Go to solution
Vincent Battipaglia
New Member

dfspace for HP?

Does anyone have a dfspace command that will work on HPUX 11.0. I am used to viewing the disk usage output in MB format instead of KB format on Sun and NCR Unix servers and can't find a similar command on HP Unix.

Would prefer this view:

/ : Disk space: 3918.72 MB of 5042.63 MB available (77.71%)

instead of this view:

Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 102400 37460 60887 38% /
5 REPLIES 5
T G Manikandan
Honored Contributor

Re: dfspace for HP?

#bdf
Pete Randall
Outstanding Contributor
Solution

Re: dfspace for HP?

I'm attaching the bdfmegs script that I originally got from Bill Hassell. You can alias this to the bdf command in your profile if you so desire.


Pete


Pete
Vincent Battipaglia
New Member

Re: dfspace for HP?

The output from a bdf lists the disk usage by KB. I'm looking for something that will list in in MB.
T G Manikandan
Honored Contributor

Re: dfspace for HP?

Pete script should have a full 10 point

#bdf|grep -v File|awk -F " " '{print $3/1024,$6}'
Steven E. Protter
Exalted Contributor

Re: dfspace for HP?

If you want it in megabytes, here is mbdf, which is based on bdf.


SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com