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

Advanced O&M Command Reference

OceanStor 5000, 5000F, 6000, and 6000F V5 Series V500R007

This document is applicable to OceanStor 5110 V5, 5110F V5, 5300 V5, 5500 V5, 5600 V5, 5800 V5, 6800 V5, 5300F V5, 5500F V5, 5600F V5, 5800F V5, and 6800F V5. Based on the CLI, this document describes how to use various commands classified by functionsand how to set the CLI and manage the storage system through these commands.
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).
create share cifs

create share cifs

Function

The create share cifs command is used to create a CIFS share.

Format

create share cifs name=? local_path=? [ continue_available_enabled=? ] [ oplock_enabled=? ] [ notify_enabled=? ] [ file_system_id=? ] [ offline_file_mode=? ] [ smb2_ca_enable=? ] [ ip_control_enabled=? ] [ abe_enabled=? ] [ audit_items=? ] [ file_filter_enable=? ] [ apply_default_acl=? ] [ share_type=? ] [ show_previous_versions_enabled=? ] [ show_snapshot_enabled=? ] [ browse_enable=? ] [ readdir_timeout=? ]

Parameters

Parameter

Description

Value

name=?

CIFS share name.

The value consists of 1 to 80 characters excluding \"/\\[]:|<>+;,?*=.

local_path=?

Local path directory.

The value consists of 1 to 1023 characters.

oplock_enabled=?

Oplock switch. By using the oplock, a client can lock a file. A server can cancel the lock.

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

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

The default value is "yes".

notify_enabled=?

Notification switch.

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

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

The default value is "yes".

file_system_id=?

ID of the file system to which the CIFS share belongs.

The value is an integer between 0 and 65535. Run "show file_system general" to obtain the value.

continue_available_enabled=?

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.

The default value is "no".

smb2_ca_enabled=?

SMB2 failover switch of shares.

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

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

The default value is "yes".

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.

ip_control_enabled=?

IP address access control switch.

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

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

The default value is "no".

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.

share_type

Share type.

The value can be "normal" or "homedir", where:

  • "normal": normal share.
  • "homedir": homedir share.

The default value is "normal".

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.

The default value is "no".

abe_enabled=?

Switch of permission-based directory enumeration.

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

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

The default value is "no".

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.

readdir_timeout=?

Timeout duration of the readdir command when directories are enumerated. This parameter is only available in the developer view.

The value can be 1 to 120s and the default value is 55s.

Views

Developer view, vstore developer view

Usage Guidelines

Parameters "name" and "local_path" must be used at the same time.

Example

None

System Response

None

Translation
Download
Updated: 2019-07-11

Document ID: EDOC1000181619

Views: 590533

Downloads: 233

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