Get Directory Size and Quota Size
Novell Cool Solutions: Cool Tool
Reader Rating
from 6 ratings
In Brief
Perl-Script to Generate CSV-file Report with dir_name;dir_size;dir_quota information.
Vitals
- Product Categories:
- eDirectory
- NetWare 6.5
- Functional Categories:
- Inventory
- Secure Identity
- Statistics
| Posted: | 22 Aug 2005 |
| File Size: | 3KB |
| License: | Free |
| Download: | /coolsolutions/tools/downloads/ds3.zip |
| Publisher: | Koltogyan Sergey Rubenovich |
Disclaimer
Please read the note from our friends in legal before using this file.
Details
What it does:
Example, you have:
VOL1:wrk with sub dirs:
VOL1:wrk\dir1
VOL1:wrk\dir2
.......
VOL1:wrk\dirN
- 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:
- 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:
- 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:
- Run script from NW console as:
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
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
.....
Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com
Reader Comments
- That one made my boss happy! And me too -less work!
- Hmm where is: $log_dir="SYSDATA:results\\chkdrsz";
- You missing some steps in your config. I'm getting voldata: error?