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 18000 V3 Series V300R006

This document is applicable to OceanStor 18500 V3 and 18800 V3. 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).
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-12

Document ID: EDOC1000138389

Views: 500197

Downloads: 85

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