Skip to main content
A newer release of this product is available.

vserver cifs branchcache hash-create

Contributors
Suggest changes

Force CIFS BranchCache hash generation for the specified path or file

Availability: This command is available to cluster and Vserver administrators at the admin privilege level.

Description

The vserver cifs branchcache hash-create command causes the BranchCache service to compute hashes for a single file, for a directory, or for all the files in a directory structure if you specify the -recurse option.

Parameters

-vserver <vserver name> - Vserver

This parameter specifies the CIFS-enabled Vserver on which the hash is computed.

-path <text> - Path of File or Directory to Hash

This parameter specifies the path of the directory or file for which hashes are to be computed. If a file is specified, the hashes are computed on the whole file. If a directory is specified, hashes are computed on all files within the directory.

-recurse {true|false} - Process All Files in the Directory Recursively

If this option is set to true and the -path parameter specifies a directory, hashes are computed recursively for all directories in the path.

Examples

The following example creates hashes for the file "report.doc":

cluster1::> vserver cifs branchcache hash-create -vserver vs1 -path /repository/report.doc -recurse false

The following example creates hashes for all the files in the directory "repository":

cluster1::> vserver cifs branchcache hash-create -vserver vs1 -path /repository -recurse false

The following example recursively creates hashes for all the files and directories inside the directory "documents":

cluster1::> vserver cifs branchcache hash-create -vserver vs1 -path /documents -recurse true