Operating System - HP-UX
1827159 Members
1933 Online
109716 Solutions
New Discussion

Home Directory Usage Report For All the Users

 
Sai.Prashant_1
New Member

Home Directory Usage Report For All the Users

Hello,
I was asked to generate the report for the Multiple User Home Directory(/export/home/username)in the Following Format.
UserHomeDirPath, TotalSpaceAllocatedForFS, UsedSpace, FreeSpace, %SpaceUsed in descending order.
Please help me out, its urgent.

Thanks,
Sai
3 REPLIES 3
Pete Randall
Outstanding Contributor

Re: Home Directory Usage Report For All the Users

In it's simplest form, a "du -sk /home/* |sort -n" will give you the usage figures. If you want to calculate percentages, then you're going to need to do some scripting.


Pete

Pete
Geoff Wild
Honored Contributor

Re: Home Directory Usage Report For All the Users

You could turn quotas on:

touch /home/quotas

edquota user1
edquota user2
.
.
edquota lastuser

quotaon /home

Then:

repquota /home


Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Sai.Prashant_1
New Member

Re: Home Directory Usage Report For All the Users

but we don't have quotas on this server