Novell Cool Solutions

Get Directory Size and Quota Size



By:

August 22, 2005 3:43 am

Reads:6,170

Comments:0

Score:Unrated

Print/PDF

License:
Free

Download ds3

What it does:
Example, you have:

VOL1:wrk with sub dirs:
VOL1:wrk\dir1
VOL1:wrk\dir2
…….
VOL1:wrk\dirN

This script can

  • check Directory Size for dir1, for dir2 ….for dirN
  • check DirSizeQuota
  • write all this in CSV-format
  • can work as script in schedule

Information about limitations:

  1. This script usees VFS (virtual file system). As a result – this script will work only with NetWare, where supported VFS. (NW6. NW6.5)
  2. This script tested only with NSS-volume
  3. This script does not use UCS/UCX (maybe this is good. I use VFS for get directory quota.)
  4. Problems in definition of a quota if the name of the catalogue at a level dir1.. dirN consists of Russian letters are possible.
    (If this is the case – write me.)

How to Step by Step:

  1. unpack ds3.zip to sys:\perl\scripts\ds.pl
  2. create directory:
    sys:\etc\chkdrsz
  3. create file:
    sys:\etc\chkdrsz\chkdrsz.cfg
  4. Choose a directory where the file of the report will be created.
    example, this will be directory:
    vol2:\logresults\chkdrsz
  5. configure chkdrsz.cfg file, as example:
  6. start
    vol1:\\dir1\\home
    user1@firma.com
    vol1:\\logresults\\chkdrsz\\home_

    end
    start
    vol1:\\dir2\deps
    user2@firma.com
    vol2:\\logresults\\chkdrsz\\deps_
    end

    where:
    vol1:\\dir1\\home – in this directory will check size all subdir
    user1@firma.com – this reserv record for future
    vol1:\\logresults\\chkdrsz\\home_ – This FileNAme in which will be create Report in CSV format.
    (Script rename this file to:
    vol1:\\logresults\\chkdrsz\\home_YYYYMMDDhhmmss.csv

  7. Run script from NW console as:
  8. perl sys:\perl\scripts\ds3.pl –noscreen –autodestroy

    After script is done you will have a result file, as this example:

    …..
    docum:\wrk\dep\avttrg;141317456;921600000
    docum:\wrk\dep\barter;246537847;409600000
    docum:\wrk\dep\buhglt;1016628618;1126400000
    docum:\wrk\dep\common;177276933;102400000
    docum:\wrk\dep\comptr;855913375;2048000000
    …..

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