Tool

skoltogyan's picture
tool
Reads:

5112

Score:
0
0
 
Comments:

0

Get Directory Size and Quota Size

Author Info

22 August 2005 - 2:43am
Submitted by: skoltogyan

license: 
Free

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
    .....
AllegatoDimensione
ds3.zip2.34 KB




User Comments

© 2013 Novell