This script will provide the user quota information from an OES Linux NSS volume.
It will create four files for processing and four output files that contain the quota information.
Default output is in megabytes and can be changed by modifying the SIZE variable.
Columns are in this order: USEDSPACE QUOTAAMOUNT PERCENT NAME
Steps to use:
- Extract the quota-list.tgz file with "tar xzvf quota-list.tgz"
- Then make quota-list.sh executable "chmod +x quota-list.sh".
- Execute the quota-list.sh script as the "root" user and supply the volume name and column sort order.
SERVER:/path # ./quota-list.sh
Enter the volume name name in all CAPS
Enter the column to sort by
Quota summary without modification has been sent to /tmp/UserInfo-VOL1-111201-summary-original
Quota summary of all users has been sent to /tmp/UserInfo-VOL1-111201-summary
Quota summary of only assigned users has been sent to /tmp/UserInfo-VOL1-111201-summary-assigned-quotas
Quota summary of only assigned users and no unknown (deleted) users /tmp/UserInfo-VOL1-111201-summary-assigned-quotas-no-unknown-users
Unknown (deleted) users are taking 128
Disclaimer: As with everything else at Cool Solutions, this content is definitely not supported by Novell (so don't even think of calling Support if you try something and it blows up).
It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test, test, test before you do anything drastic with it.