No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Command Reference 10

OceanStor 5300 V3, 5500 V3, 5600 V3, 5800 V3, and 6800 V3 Storage System V300R003

"Based on the CLI, this document describes how to use various commands classified by functions and how to set the CLI and manage the storage system through these commands. The document that you browse online matches the latest C version of the product. Click Download to download documents of other C versions."
Rate and give feedback :
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
change share cifs

change share cifs

Function

The change share cifs command is used to modify CIFS share configurations.

Format

change share cifs share_id=? { oplock_enabled=? | continue_available_enabled=? | notify_enabled=? | offline_file_mode=? | smb2_ca_enabled=? | ip_control_enabled=? | file_filter_enable=? | apply_default_acl=? } *

Parameters

Parameter

Description

Value

share_id=? Share ID.

The value is an integer ranging from 0 to 18,446,744,073,709,551,615.

oplock_enabled=? Switch of opportunistic locking. By using opportunistic locking, a client can lock a file. A server can cancel the locking.

The value can be "yes" or "no", where

  • "yes" : The Notify function will be enabled.
  • "no" : The Notify function will be disabled.
notify_enabled=? Switch of the Notify function.

The value can be "yes" or "no", where

  • "yes" : The Notify function will be enabled.
  • "no" : The Notify function will be disabled.
continue_available_enabled=? Switch of the continue_available function.

The value can be "yes" or "no", where:

  • "yes": The continue_available function will be enabled.
  • "no": The continue_available function will not be enabled.
The default value is "yes".
smb2_ca_enabled=? Switch of the SMB2 failover function.

The value can be "yes" or "no", where:

  • yes: The smb2_ca_enable function will be enabled.
  • no: The smb2_ca_enable function will not be enabled.
ip_control_enabled=? Switch of the IP address access control.

The value can be "yes" or "no", where:

  • yes: The IP address access control function will be enabled.
  • "no": The IP address access control function will be disabled.
offline_file_mode=? Offline cache mode.

The value can be "none", "manual", "documents", or "programs", where:

  • "none": disabled.
  • "manual"": manual mode.
  • "documents": documents mode.
  • "programs": programs mode.
file_filter_enable=? Switch of filtering file name extensions.

The value can be "yes" or "no", where:

  • "yes": The file name extension filtering function will be enabled.
  • "no": The file name extension filtering function will not be enabled.
apply_default_acl=? Application of the default ACL switch in the shared root directory.

The value can be "yes" or "no", where:

  • "yes": The default ACL function will be enabled.
  • "no": The default ACL function will not be enabled.
The default value is "yes".

Level

Administrator

Usage Guidelines

None

Example

  • Enable the opportunistic locking function.

    admin:/>change share cifs share_id=8 oplock_enabled=yes 
    Command executed successfully.
  • Enable the Notify function.

    admin:/>change share cifs share_id=8 notify_enabled=yes
    Command executed successfully.
  • Enable the continue available function.

    admin:/>change share cifs share_id=8 continue_available_enabled=yes
    Command executed successfully.
  • Enable the IP address access control function.

    admin:/>change share cifs share_id=8 ip_control_enabled=yes
    Command executed successfully.
  • Set the offline mode to manual.

    admin:/>change share cifs share_id=8 offline_file_mode=manual
    Command executed successfully.
  • Enable the SMB2 failover function.

    admin:/>change share cifs share_id=8 smb2_ca_enabled=yes
    Command executed successfully.
  • Turn on the default ACL switch in the shared root directory.

    admin:/>change share cifs share_id=8 apply_default_acl=yes
    Command executed successfully.
  • Query the modification results.

    admin:/>show share cifs share_id=8
     
    Share ID : 8
    Name : cifs0
    File System ID : 0
    Description :
    Local Path : /fs001/
    Oplock Enabled : Enable
    Notify Enabled : Enable
    Continue Available Enabled : Disable
    Offline File Mode : manual
    Smb2_ca_enabled : Enable
    IP Access Control : Enable
    File Extension Filter : Disable
    Apply Default ACL : Enable

System Response

None

Translation
Download
Updated: 2019-04-04

Document ID: EDOC1000084195

Views: 272458

Downloads: 1556

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next