cluster close-protocol-handle

Prev Next

This command closes open file handles. To list open file handles, run cluster list-open-protocol-handles.

Usage

cluster close-protocol-handle --file-path PATH
                              --session-id ID
                              --session-handle-unique-id ID
                             [--share SHARE]
                             [--cluster-id ID]
                             [--tenant-name TENANT]

Required Parameters

--file-path PATH

Specify the file path.

For SMB views, specify the path within the share specified in --share.

--session-id ID

Specify the session ID.

To learn the session ID, run the cluster list-open-protocol-handles command.

--session-handle-unique-id ID

Specify the unique ID of the session handle you want to close.

To learn the session ID, run the cluster list-open-protocol-handles command and check the unique_id field.

Options

--share SHARE

For SMB views, specify the share name.

--cluster-id ID

Specify the cluster ID.

You can verify the cluster ID by running cluster list.

Default: 1.

--tenant-name TENANT

Specify the name of the tenant where the file resides.

If this option is not specified, the default tenant is used.

Example

vcli: admin> cluster close-protocol-handle --file-path test.txt --share test2 --session-id 0x1c00200000002 --session-handle-unique-id 0x1c0020000000b
Filehandle was closed successfully