Cool Solutions

Utility to Get Directory Quotas Assigned to a Directory



By:

September 4, 2009 1:43 pm

Reads:4,882

Comments:0

Score:Unrated

License:
Free

Download directoryQuota.pl

Prerequisites

  1. Perl must be installed and running on the Linux server where this utility will be used.
  2. NSS must be installed to get the VFS support.

    (The SDK for this API set can be downloaded from http://developer.novell.com/wiki/index.php/Virtual_File_Services_for_NetWare.)

This tool is used to get the directory quotas assigned to a directory.

It uses Virtual File Services to get the directory quotas.

How to use the utility:

From a terminal prompt type:

perl directoryQuota.pl <enter>

Following menu will be displayed:

  1. To get directory quota
  2. Exit

A sample output on selecting 1 would be:

Select Action: 1
Enter directory Name(with fully qualified path) to find directory quota: /media/nss/VOL1/test

---------------------------------------------------------
quota Amount(in KB)       : 300
used Amount(in KB)        : 0

If quota not assigned to a directory.

Select Action: 1
Enter directory Name(with fully qualified path) to find directory quota: /media/nss/VOL1/testdir

------------------------------------------------------------
       quota not assigned
------------------------------------------------------------

0 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 5 (0 votes, average: 0.00 out of 5)
You need to be a registered member to rate this post.
Loading ... Loading ...


Categories: Uncategorized

Disclaimer: This content is not supported by Novell. 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 it thoroughly before using it in a production environment.

Comment

RSS