- List share properties
vserver cifs share properties add -vserver cifs -share-name data1 -share-properties
showsnapshot
attributecache
continuously-available
branchcache
access-based-enumeration
namespace-caching
encrypt-data
- Enable referrals
vserver cifs options modify -vserver cifs -is-referral-enabled true
- Limit maximum connections
vserver cifs share modify -vserver cifs -share-name data1 -max-connections0-per-share 2
- View sessions
vserver cifs session show
net connections active show -service cifs-*
- Enable signing and encryption
vserver cifs security modify -vserver cifs -is-signing-required true
vserver cifs share properties add -vserver cifs -share-name data1 -share-properties encrypt-data
- Enable .snapshot
volume modify -volume data1 -snapdir-access true
(SMB version requirements for CIFS
Clustered Data ONTAP supports ODX with SMB 3.0 and later.
SMB 3.0 must be enabled on the CIFS server before ODX can be enabled:
Enabling ODX also enables SMB 3.0, if it is not already enabled.
Disabling SMB 3.0 also disables ODX.)
(Volume requirements
Source volumes must be a minimum of 1.25 GB.
Deduplication must be enabled on volumes used with copy offload.
Compression must not be enabled on volumes used with copy offload.)
- Enable offload
vserver cifs options modify -vserver cifs -copy-offload-enabled true
- Access control
vserver cifs share access-control show -vserver cifs -share data1
vserver cifs share access-control modify -vserver cifs -share data1 -user-or-group everyone -permission Change
vserver cifs share access-control create -vserver cifs -share data1 -user-group peter -user-group-type unix-user -permission read
- Ldap
vserver service name-service ldap client create -client-config cifs_client -ad-domain netapp.local
- Enable ABE
vserver cifs share properties add -vserver cifs -share-name data1 -share-properties access-based-enumeration
- Homedirs
vserver cifs home-directory search
vserver cifs home-directory search-path add -vserver cifs -path /home
vserver cifs share create -vserver cifs -share-name %w -path %d/%w -share-properties homedirectory,oplocks,browsable