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

This document is applicable to OceanStor 18500 V3 and 18800 V3. Based on the CLI provided by DeviceManager, 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 { 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.

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.

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.

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.

Level

Administrator

Usage Guidelines

None

Example

  • Query the CIFS share service before the modification.
    admin:/>show service cifs 
    Running Status : Start 
    Security Model : All Attestation 
    Guest Enabled : No 
    Anonymous Enabled : No 
    Signing Required : No 
    Signing Enabled : No 
    Oplock Enabled : Yes 
    Oplock Timeout(s) : 35 
    Notify Enabled : Yes 
    Durable Handle Enabled : Yes  
    Durable Handle Timeout(s) : 60 
    ABSE Enabled : No 
    SMB1 Enabled : Yes             
    SMB2 Enabled : Yes 
    Default Dir Mode : 755 
    Default File Mode : 744 
    Global Namespace Capacity : 256.000TB 
    Global Namespace Forward Enabled : No 
    SMB2 Enabled for DC Connections : Yes 
    LeaseV2 Enabled : Yes 
    Smb1 Enabled for Linux : Yes 
    Domain Name Configurable Enable: Yes 
    Administrators Privilege : Admin
  • Modify the CIFS share service.
    admin:/>change service cifs oplock_timeout=50 
    Command executed successfully.
  • Query the CIFS share service after the modification.
    admin:/>show service cifs 
    Running Status : Start 
    Security Model : All Attestation 
    Guest Enabled : No 
    Anonymous Enabled : No 
    Signing Required : No 
    Signing Enabled : No 
    Oplock Enabled : Yes 
    Oplock Timeout(s) : 50 
    Notify Enabled : Yes 
    Durable Handle Enabled : Yes  
    Durable Handle Timeout(s) : 60 
    ABSE Enabled : No 
    SMB1 Enabled : Yes 
    SMB2 Enabled : Yes 
    Default Dir Mode : 755 
    Default File Mode : 744 
    Global Namespace Capacity : 256.000TB 
    Global Namespace Forward Enabled : No 
    SMB2 Enabled for DC Connections : Yes 
    LeaseV2 Enabled : Yes 
    Smb1 Enabled for Linux : Yes 
    Domain Name Configurable Enable: Yes 
    Administrators Privilege : Admin
  • Disable the SMB1 function.
    admin:/>change service cifs smb1_enable=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.
  • Enable the global namespace forward function.
    admin:/>change service cifs global_namespace_forward_enabled=yes 
    WARNING:You are about to enable the global namespace forward function. This operation will cause the DNS load balancing function to fail. 
    Suggestion: Before performing this operation, you are advised to disable the DNS load balancing function. 
    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 LeaseV2.
    admin:/>change service cifs leasev2_enable=yes 
    WARNING: You are about to enable the version 2 of the lease function. Enabling the lease function may cause interruption of the SMB3 failover service. 
    Suggestion: Confirm that you need to enable the version 2 of the lease function. 
    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 the SMB1 protocol for Linux operating systems.
    admin:/>change service cifs smb1_enabled_for_linux=yes 
    WARNING: You are about to enable the SMB1 protocol for Linux operating systems. This operation will allow incompatible clients to access the NAS server through the SMB1 protocol. As a result, exceptions may occur. 
    Suggestion: Confirm that you need to enable the SMB1 protocol for Linux operating systems. 
    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.

System Response

None

Translation
Download
Updated: 2019-07-12

Document ID: EDOC1000138390

Views: 238545

Downloads: 150

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