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 VOL1 Enter the column to sort by 1=USED 2=QUOTA 3=PERCENT 2 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