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

vserver cifs session file close

Contributors
Suggest changes

Close an open CIFS file

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

Description

The vserver cifs session file close command closes the specified open CIFS file.

Parameters

-node {<nodename>|local} - Node

If you specify this parameter, the command will close all the opened CIFS files on the specified node.

-vserver <vserver name> - Vserver

If you specify this parameter, the command will close all the opened CIFS files on the specified CIFS-enabled Vserver.

-file-id <integer> - File ID

If you specify this parameter, the command will close the opened CIFS file that matches the specified file ID.

[-connection-id <integer>] - Connection ID

If you specify this parameter, the command will close all the opened CIFS files connected on the specified connection ID.

[-session-id <integer>] - Session ID

If you specify this parameter, the command will close all the opened CIFS files connected on the specified session ID.

Examples

The following example closes all the opened CIFS files that are connected to the data LIFs of Vserver vs1 on the node node1:

cluster1::> vserver cifs session file close -node node1 -vserver vs1
5 entries were acted on.

The following example closes all the opened CIFS files on all the nodes with the file-id 1:

cluster1::> vserver cifs session file close -node * -file-id 1
2 entries were acted on.