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 2800 V5 V500R007

This document is applicable to OceanStor 2800 V5. 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 service cifs

change service cifs

Function

The change service cifs command is used to modify the settings of the CIFS share service.

Format

change service cifs { short_name_enabled=? | continuous_querydir_enable=? | mac_transcoding_enable=? | notify_response_qps=? | symlink_enabled=? | iotrace_enable=? } *

change service cifs { status=? | security_model=? | guest_enabled=? | anonymous_enabled=? | signing_required_enabled=? | signing_enabled=? | oplock_enabled=? | oplock_timeout=? | notify_enabled=? | durable_handle_enabled=? | durable_handle_timeout=? | abse_enabled=? | smb1_enable=? | smb2_enable=? | global_namespace_capacity=? | global_namespace_forward_enabled=? | smb2_enabled_for_dc_connections=? | leasev2_enable=? | smb1_enabled_for_linux=? | max_sessions_displays=? | max_open_files_display=? | domainname_configurable_enable=? | administrators_privilege=? | default_dir_mode=? | default_file_mode=? } *

Parameters

Parameter

Description

Value

status=?

Running status of the CIFS share service.

The value can be "stop" or "start", where:

  • "stop": The CIFS share service stops.
  • "start": The CIFS share service starts.

security_model=?

Authentication mode.

The value can be "local_attestation", "domain_attestation", or "all_attestation", where:

  • "local_attestation": indicates local authentication.
  • "domain_attestation": indicates domain authentication.
  • "all_attestation": indicates local authentication and domain authentication.

guest_enabled=?

Whether guest access is allowed.

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

  • "yes": Guest access is allowed.
  • "no": Guest access is forbidden.

anonymous_enabled=?

Whether anonymous access is allowed.

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

  • "yes": Anonymous access is allowed.
  • "no": Anonymous access is forbidden.

signing_required_enabled=?

Whether the CIFS client must support the signature.

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

  • "yes": The signature must be supported.
  • "no": The signature cannot be supported.

signing_enabled=?

Whether to enable the signature for the CIFS protocol.

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

  • "yes": The signature is enabled.
  • "no": The signature is disabled.

oplock_enabled=?

Whether to enable opportunistic locking (oplock) (after a protocol is locked, the file system does not require a lock).

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

  • "yes": Oplock is enabled.
  • "no": Oplock is disabled.

oplock_timeout=?

Timeout period of oplock.

The value ranges from 5 to 60.

notify_enabled=?

Whether to enable Notify.

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

  • "yes": Notify is enabled.
  • "no": Notify is disabled.

durable_handle_enabled=?

Whether to enable Durable Handle.

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

  • "yes": The Durable Handle is enabled.
  • "no": The Durable Handle is disabled.

durable_handle_timeout=?

Timeout period of durable handles.

The value ranges from 60 to 960.

abse_enabled=?

Whether access based on share enumeration is allowed.

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

  • "yes": Access based on share enumeration is allowed.
  • "no": Access based on share enumeration is forbidden.

smb1_enable=?

Whether to enable SMB1.

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

  • "yes": SMB1 is enabled.
  • "no": SMB1 is disabled.

smb2_enable=?

Whether to enable SMB2.

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

  • "yes": SMB2 is enabled.
  • "no": SMB2 is disabled.

mac_transcoding_enable=?

Whether to enable the character conversion for the Mac operating system. This parameter can only be executed in developer mode.

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

  • "yes": enables the character conversion for the Mac operating system.
  • "no": disables the character conversion for the Mac operating system.

short_name_enabled=?

Whether the short name is enabled. This command can only be executed in developer mode. For details about how to log in to the developer mode, see Advanced O&M Command Reference.

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

  • "yes": The short name is enabled.
  • "no": The short name is disabled.

continuous_querydir_enable=?

Whether to enable the continuous directory query. This parameter can only be executed in developer mode.

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

  • "yes": enables the continuous directory query.
  • "no": disables the continuous directory query.

notify_response_qps=?

Response speed of the Notify packet in the CIFS. This parameter can only be executed in developer mode.

The value ranges from 0 to 250. 0 indicates the flow control function is disabled, and the response speed is not controlled. Other numbers indicate that the flow control function is enabled.

default_dir_mode=?

Default mode of the new directory when no ACL is inherited.

The value ranges from 000 to 777.

default_file_mode=?

Default mode of the new file when no ACL is inherited.

The value ranges from 000 to 777.

global_namespace_capacity=?

Global namespace capacity.

  • The value is in the format of "capacity value + unit of capacity". The unit can be MB, GB or TB.
  • The value ranges from 1 MB to 16,384 TB.

global_namespace_forward_enabled=?

Whether to enable global namespace forward.

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

  • "yes": The global namespace forward function is enabled.
  • "no": The global namespace forward function is disabled.

smb2_enabled_for_dc_connections=?

Whether connecting domain controller over SMB2 is enabled.

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

  • "yes": connecting domain controller over SMB2 is enabled.
  • "no": connecting domain controller over SMB2 is disabled.

leasev2_enable=?

Whether to enable LeaseV2.

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

  • "yes": LeaseV2 is enabled.
  • "no": LeaseV2 is disabled.

smb1_enabled_for_linux=?

Whether to enable SMB1 for Linux operating systems.

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

  • "yes": SMB1 for Linux is enabled.
  • "no": SMB1 for Linux is disabled.

max_sessions_displays=?

Maximum number of returned sessions queried through MMC.

The value ranges from 0 to 4294967295.

max_open_files_display=?

Maximum number of returned open files queried through MMC.

The value ranges from 0 to 4294967295.

symlink_enabled=?

Whether the symlink function is enabled.

The value is "yes" or "no", where: 1"yes": enables the symlink_enable function.

  • "no": disables the symlink_enable function.

domainname_configurable_enable=?

Whether to enable the function of using a system name as a resource user's domain name.

The value is "yes" or "no", where: 1"yes": enables the domainname_configurable_enable function.

  • "no": disables the domainname_configurable_enable function.

iotrace_enable=?

Whether to enable or disable the CIFS I/O trace function.

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

  • "yes": enables the CIFS I/O trace function.
  • "no": disables the CIFS I/O trace function.

administrators_privilege=?

Privilege configuration of the Administrators group.

The value can be "admin", "default_group", or "owner", where:

  • "admin": The members in the Administrators group have privileges as administrators.
  • "default_group": The members in the Administrators group do not have any privileges.
  • "owner": The members in the Administrators group have the privileges of querying and setting the file or directory access control list (ACL), and modifying the file or directory owner.

Views

Developer view, vstore developer view

Usage Guidelines

None

Example

  • Disable the short name function.
    developer:/>change service cifs short_name_enabled=no 
    DANGER: You are about to disable the CIFS short name function for a device. After this operation, the CIFS share files provided by the device cannot be accessed. 
    Suggestion: Before performing this operation, ensure that the CIFS short name function is no longer needed. 
    Have you read warning message carefully?(y/n)y 
    Are you sure you really want to perform the operation?(y/n)y 
    Command executed successfully.
  • Enable or disable the CIFS I/O trace function in the vStore developer view.
    developer@vstore1:/>change service cifs iotrace_enable=yes 
    WARNING: You are about to enable the CIFS I/O trace function. This operation may degrade the CIFS service performance. 
    Suggestion: Confirm that you want to perform this operation based on the service type. 
    Have you read warning message carefully?(y/n)y 
    Are you sure you really want to perform the operation?(y/n)y 
    Command executed successfully.
  • Disable the SMB1 and short name functions.
    developer:/>change service cifs smb1_enable=no short_name_enabled=no 
    WARNING: You are about to disable the CIFS SMB1/SMB2 service. This operation causes the CIFS SMB1/SMB2 sharing service provided by the storage device unavailable. 
    Suggestion: Before performing this operation, ensure that the CIFS SMB1/SMB2 sharing service is no longer needed. 
    Have you read warning message carefully?(y/n)y 
    Are you sure you really want to perform the operation?(y/n)y 
    Command executed successfully.
  • Disable the character conversion for the Mac operating system.
    developer:/>change service cifs mac_transcoding_enable=no 
    Command executed successfully. 
  • Enable the continuous directory query.
    developer:/>change service cifs continuous_querydir_enable=yes 
    Command executed successfully.
  • Set the response speed of the Notify packet.
    developer:/>change service cifs notify_response_qps=0 
    Command executed successfully.
  • Enable the symlink function.
    developer:/>change service cifs symlink_enabled=yes 
    Command executed successfully.  

System Response

None

Translation
Download
Updated: 2019-07-11

Document ID: EDOC1000181575

Views: 662342

Downloads: 30

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