Get Directory Size and Quota Size

0 Likes

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)

  • This script tested only with NSS-volume

  • This script does not use UCS/UCX (maybe this is good. I use VFS for get directory quota.)

  • 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

  • create directory:

    sys:\etc\chkdrsz

  • create file:

    sys:\etc\chkdrsz\chkdrsz.cfg

  • Choose a directory where the file of the report will be created.
    example, this will be directory:

    vol2:\logresults\chkdrsz


  • configure chkdrsz.cfg file, as example:

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


  • Run script from NW console as:


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

.....

Labels:

Collateral
Comment List
Anonymous
Related Discussions
Recommended