Tool

jmortenson's picture
tool
Reads:

5286

Score:
3.5
3.5
2
 
Comments:

0

quota-list script for OES Linux NSS volumes

Author Info

7 December 2011 - 12:09pm
Submitted by: jmortenson

(View Disclaimer)

license: 
Free

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:

  1. Extract the quota-list.tgz file with "tar xzvf quota-list.tgz"
  2. Then make quota-list.sh executable "chmod +x quota-list.sh".
  3. Execute the quota-list.sh script as the "root" user and supply the volume name and column sort order.

Example output:

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
AttachmentSize
quota-list.tgz1.77 KB

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.




User Comments

© 2013 Novell