SMB configuration overview with the CLI

Contributors

This content describes how to use ONTAP 9 CLI commands to configure SMB client access to files contained in a new volume or qtree in a new or existing SVM. It includes examples and advanced configuration options.

Note

SMB (Server Message Block) refers to modern dialects of the Common Internet File System (CIFS) protocol. You will still see CIFS in the ONTAP command-line interface (CLI) and in OnCommand management tools.

You should use this content if you want to configure SMB access to a volume or qtree in the following way:

  • You want to use SMB version 2 or later.

  • You want to serve SMB clients only, not NFS clients (not a multiprotocol configuration).

  • NTFS file permissions will be used to secure the new volume.

  • You have cluster administrator privileges, not SVM administrator privileges.

    Cluster administrator privileges are required to create SVMs and LIFs. SVM administrator privileges are sufficient for other SMB configuration tasks.

  • You want to use the CLI, not ONTAP System Manager or an automated scripting tool.

  • You want to use best practices, not explore every available option.

    Details about command syntax are available from CLI help and ONTAP man pages.

  • You do not want to read a lot of conceptual background.

    Additional information about ONTAP technology and interaction with external services is available in the ONTAP Reference Library and in Technical Reports (TRs).

If you want details about the range of ONTAP SMB protocol capabilities, you should use the SMB reference material:

Other ways to do this in ONTAP

To perform these tasks with…​ See this content…​

System Manager next generation (ONTAP 9.7 and later)

Provision NAS storage for Windows servers using SMB

System Manager Classic (ONTAP 9.7 and earlier

SMB configuration overview