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

OceanStor 18000 and 18000F V5 Series V500R007

This document is applicable to OceanStor 18500 V5, 18800 V5, 18500F V5, and 18800F V5. Based on the CLI provided by the DeviceManager, this document describes how to use variouscommands classified by functions and how to set the CLI and manage the storage system throughthese 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=? | abe_enabled=? | audit_items=? | file_filter_enable=? | apply_default_acl=? | show_previous_versions_enabled=? | show_snapshot_enabled=? | browse_enabled=? | readdir_timeout=? } *

Parameters

Parameter

Description

Value

share_id=?

Indicates the share ID.

The value is an integer ranging from 0 to 18446744073709551615.

oplock_enabled=?

Indicates the switch of the 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": enables the oplock function.
  • "no": disables the oplock function.

notify_enabled=?

Indicates the switch of the notify function.

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

  • "yes": enables the notify function.
  • "no": disables the notify function.

continue_available_enabled=?

Indicates the switch of the continue available function.

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

  • "yes": enables the continue available function.
  • "no": disables the continue available function.

abe_enabled=?

Indicates the switch of the permission-based directory enumeration.

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

  • "yes": enables the ABE function.
  • "no": disables the ABE function.

smb2_ca_enabled=?

Indicates the switch of the SMB2 failover.

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

  • "yes": enables the smb2 continue available function.
  • "no": disables the smb2 continue available function.

ip_control_enabled=?

Indicates the switch of the IP access control.

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

  • "yes": enables the IP access control function.
  • "no": disables the IP access control function.

offline_file_mode=?

Offline cache mode.

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

  • "none": indicates the none mode.
  • "manual": indicates the manual mode.
  • "documents": indicates the documents mode.
  • "programs": indicates the programs mode.

audit_items=?

Audit log option.

The parameter value contains at least one of the following values: "all", "none", "open", "create", "read", "write", "close", "delete", "rename", "get_security", "set_security", "get_attr", "set_attr", "get_xattr", and "set_xattr", where:

  • "all": includes all audit log options from "open" to "set_xattr".
  • "none": excludes all audit log options.
  • "open": opens a file.
  • "create": creates a file.
  • "read": reads a file.
  • "write": writes a file.
  • "close": closes a file.
  • "delete": deletes a file.
  • "rename": renames a file.
  • "get_security": obtains security attributes of a file.
  • "set_security": sets security attributes of a file.
  • "get_attr": obtains file attributes.
  • "set_attr": sets file attributes.
  • "get_xattr": obtains extended attributes of a file.
  • "set_xattr": sets extended attributes of a file.

If the parameter value is "all" or "none", no other values can be set.

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".

show_previous_versions_enabled=?

Whether the function of showing previous versions is enabled.

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

  • "yes": The function of showing previous versions is enabled.
  • "no": The function of showing previous versions is disabled.

The default value is "yes".

show_snapshot_enabled=?

Whether the function of showing the .snapshot folder is enabled.

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

  • "yes": The function of showing the .snapshot folder is enabled.
  • "no": The function of showing the .snapshot folder is disabled.

The default value is "yes".

browse_enabled=?

Allows windows clients to browse the share.

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

  • "yes": enables the browse_enable function.
  • "no": disables the browse_enable function.

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 permission-based directory enumeration function.
    admin:/>change share cifs share_id=8 abe_enabled=yes 
    Command executed successfully.
  • Enable the IP 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.
  • Modify the audit items of the share.
    admin:/>change share cifs share_id=8 audit_items=rename 
    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.
  • Enable the function of showing previous versions.
    admin:/>change share cifs share_id=8 show_previous_versions_enabled=yes 
    Command executed successfully.
  • Enable the function of showing the .snapshot folder.
    admin:/>change share cifs share_id=8 show_snapshot_enabled=yes 
    Command executed successfully.
  • Enable Windows clients to browse the share.
    admin:/>change share cifs share_id=8 browse_enabled=yes 
    Command executed successfully.
  • View 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 
    ABE Enabled : Enable 
    Audit Items : Open,Read 
    File Extension Filter : Disable 
    Apply Default ACL : Enable 
    Show Previous Versions Enabled : Enable 
    Show Snapshot Enabled          : Enable 
    Browse Enabled : Enable 

System Response

None

Translation
Download
Updated: 2019-07-11

Document ID: EDOC1000181601

Views: 316780

Downloads: 39

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