21.9 Viewing Compression Statistics with the NDIR Command

The NDIR (ndir) command allows you to view file attributes and compression information for all files in a volume or directory. You can use NDIR for NSS volumes when NCP Server is running on the server. NDIR is an MS-DOS command that you run from a Windows desktop where you have mapped a drive letter to the network volume (or directory in a volume) that you want to manage.

Two useful statistics that NDIR provides are Space Used By Compressed Files and Space Used If Files Were Not Compressed. Subtracting one value from the other indicates how much space you need if all files are decompressed.

The following is an example report:

M:\>ndir /comp /vol

Statistics for fixed volume SRV1:

Space statistics are in KB (1024 bytes).

Total volume space: 979,628,112 100.00%

Space used by 131,072,000 entries: 223,924,804 22.86%

Deleted space not yet purgeable: 0 0.00%

------------- --------

Space remaining on volume: 755,703,308 77.14%

Space available to <username>: 755,703,308 77.14%

Maximum directory entries: 2,147,483,647

Available directory entries: 2,016,411,647 93.90%

Space used if files were not compressed: 0

Space used by compressed files: 0

-------------

Space saved by compressing files: 0 0.00%

Uncompressed space used: 223,924,804

Name spaces loaded: Long

To generate a report on compression statistics for the volume:

Make sure that NCP Server is configured and running on the server.

The NDIR command requires the NCP protocol.

On your Windows desktop, open Explorer, then click Tools > Map Network Drive to map a drive letter to the NSS volume (or directory) you want to manage.

On your Windows desktop, click Start > Run to open an MS-DOS command window.

Navigate to the mapped drive using the Change Directory (cd) command. For example, if the mapped drive letter is N:, enter