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 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 service cifs_config

change service cifs_config

Function

The change service cifs_config command is used to change the shared configuration of a CIFS protocol.

Format

change service cifs_config { communication_thread_number=? | work_thread_number=? | max_block_size=? | { permit_listen_ip=? | deny_listen_ip=? } | { permit_client=? | deny_client=? | communication_thread_priority=? } | support_smb3_protocol=? | open_percent=? | slow_io_percent=? } *

Parameters

Parameter

Description

Value

communication_thread_number=?

Number of CIFS-based communication threads.

The value must be an integer from 1 to 128.

work_thread_number=?

Number of CIFS-based working threads.

The value must be an integer from 1 to 128.

max_block_size=?

MTU of CIFS.

The value must be an integer from 65,536 to 1,048,576.

permit_listen_ip=?

Whitelist of CIFS listening IP addresses.

A maximum of 31 IP addresses can be entered. Separate IP addresses with a comma (,). Enter an asterisk (*) to add all IP addresses to the white list.

deny_listen_ip=?

Blacklist of CIFS listening IP addresses.

A maximum of 31 IP addresses can be entered. Separate IP addresses with a comma (,). Enter an asterisk (*) to add all IP addresses to the blacklist.

permit_client=?

Whitelist of CIFS clients.

Enter an asterisk to add all clients to the white list.

deny_client=?

Blacklist of CIFS clients.

A maximum of 31 IP addresses can be entered. Separate IP addresses with a comas (,).

communication_thread_priority=?

Priority of CIFS communication threads.

The value can be "highest", "high", "middle", or "normal".

support_smb3_protocol=?

Switch of the SMB3 protocol.

The value can be "yes" or "no".

open_percent=?

Percentage of the maximum times that a file can be opened.

The value must be an integer from 1 to 100.

slow_io_percent=?

Percentage of slow I/O requests.

The value must be an integer from 1 to 100.

Level

Administrator

Usage Guidelines

  • deny_listen_ip and permit_listen_ip are mutually exclusive.
  • permit_client and deny_client are mutually exclusive.

Example

  • View the CIFS public configuration before configuration modification.
    admin:/>show service cifs_config 
    Communication Thread Number : 12 
    Work Thread Number            : 12       
    Max Block Size(byte)          : 131072 
    Listen IP                     : permit *  
    Client List                   : permit *  
    Communication Thread Priority : normal 
    Support SMB3 Protocol         : yes 
    Open Percent(%)               : 50 
    Slow I/O Percent(%)           : 50
  • Change the maximum number of working threads supported by shares.
    admin:/>change service cifs_config work_thread_number=4 
    Command executed successfully
  • Change the MTU.
    admin:/>change service cifs_config max_block_size=130048 
    Command executed successfully
  • Modify the blacklist of listening IP addresses.
    admin:/>change service cifs_config deny_listen_ip=192.168.1.1 
    Command executed successfully.
  • Modify the blacklist of client IP addresses.
    admin:/>change service cifs_config deny_client=192.168.1.1 
    Command executed successfully
  • Change the number of CIFS-based communication threads.
    admin:/>change service cifs_config communication_thread_number=6 
    Command executed successfully
  • Change the priority of the CIFS communication threads.
    admin:/>change service cifs_config communication_thread_priority=high 
    Command executed successfully.
  • Change the status of SMB3 protocol switch.
    admin:/>change service cifs_config support_smb3_protocol=yes 
    Command executed successfully.
  • Change the percentage of the maximum times that a file can be opened.
    admin:/>change service cifs_config open_percent=60 
    Command executed successfully.
  • Change the percentage of slow I/O requests.
    admin:/>change service cifs_config slow_io_percent=60 
    Command executed successfully.
  • View the CIFS public configuration after configuration modification.
    admin:/>show service cifs_config 
    Communication Thread Number : 6 
    Work Thread Number            : 4 
    Max Block Size(byte)          : 130048 
    Listen IP                     : deny 192.168.1.1 
    Client List                   : deny 192.168.1.1 
    Communication Thread Priority : high 
    Support SMB3 Protocol      : yes 
    Open Percent(%)               : 60 
    Slow I/O Percent(%)           : 50

System Response

None

Translation
Download
Updated: 2019-07-12

Document ID: EDOC1000138390

Views: 228320

Downloads: 150

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