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 and 18000F V5 Series V500R007

This document is applicable to OceanStor 18500 V5, 18800 V5, 18500F V5, and 18800F V5. 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 ftp

change service ftp

Function

The change service ftp command is used to modify the FTP configuration.

Format

change service ftp { anonymous_access_switch=? | anonymous_max_connection=? | client_max_connection=? | max_connections=? | onymous_max_connection=? | running_status=? | idle_time=? | anonymous_homedir=? | fxp_enabled=? | buffer_size=? | anonymous_upload=? | client_charset=? | umask=? | ftps_model=? | ftp_enabled=? | ssl_cipher_list=? | display_file_number=? | display_subdirectories_depth=? | client_compat_switch=? | max_connection_threshold=? } *

Parameters

Parameter

Description

Value

anonymous_access_switch=?

Anonymous user access switch.

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

  • "yes": allows anonymous users to access the FTP.
  • "no": forbids anonymous users to access the FTP.

anonymous_max_connection=?

Maximum number of connections of all anonymous users.

The value must be an integer from 1 to 128.

client_max_connection=?

Maximum number of connections of a single client.

The value is an integer from 1 to the maximum number of connections.

NOTE:

The maximum number of connections varies depending on the product model. For details, see section "Software Specifications" in the product description.

max_connections=?

Maximum number of connections.

The value is an integer from 1 to the maximum number of connections.

NOTE:

The maximum number of connections varies depending on the product model. For details, see section "Software Specifications" in the product description.

idle_time=?

Idle period of connections.

The value must be an integer from 1 to 1440.

onymous_max_connection=?

Maximum number of connections of each user.

The value is an integer from 1 to the maximum number of connections.

NOTE:

The maximum number of connections varies depending on the product model. For details, see section "Software Specifications" in the product description.

running_status=?

Running status of the FTP service.

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

  • "stop": stops the FTP service.
  • "running": starts the FTP service.

anonymous_homedir=?

Anonymous user working directory.

The value contains 1 to 1023 characters. The path consists of the file system name and the directory created by a user.

fxp_enabled=?

Status of the FXP function.

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

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

anonymous_upload=?

Upload permission switch for anonymous users.

The value can be "true" or "false", where:

  • "true": The upload function is allowed.
  • "false": The upload function is not allowed.

The default value is "true".

client_charset=?

Coded character set of a client. This parameter takes effect only after the service is restarted.

The value can be "utf-8" or "gbk", where:

  • "utf-8": The client uses the UTF-8 code format.
  • "gbk": The client uses the gbk code format.

The default value is "utf-8".

umask=?

Umask of files and directories. This configuration takes effect only after the service is restarted.

The umask format is 000:000. The part before the colon indicates the file umask, and the part behind the colon is the directory umask. Each part is an octal integer ranging from 000 to 777.

ftps_model=?

FTPS model.

The value can be "explicit" or "implicit", where:

  • "explicit": explicit FTPS mode.
  • "implicit": implicit FTPS mode.

ftp_enabled=?

FTP function switch in explicit FTPS mode.

The value is "yes" or "no", where:

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

support_mlsx=?

MLST, MLSD function switch.

The value is "yes" or "no", where:

  • "yes": enables the MLST, MLSD function.
  • "no": disables the MLST, MLSD function.

ssl_cipher_list=?

FTPS security suite.

The value can be any of "AES128-SHA256", "AES256-SHA256", "AES128-SHA",

"DHE-DSS-AES128-SHA", "AES256-SHA", "DHE-DSS-AES256-SHA" or their combination.

For example, the value can be "AES128-SHA256" or "AES128-SHA256,AES256-SHA256".

display_file_number=?

Maximum number of files that can be displayed.

The value must be an integer from 1 to 1000000.

display_subdirectories_depth=?

Maximum number of subdirectories that can be displayed.

The value ranges from 1 to 100.

client_compat_switch=?

Whether the function of compatibility with clients is enabled.

The value can be "on" or "off", where:

  • "on": The function of compatibility with clients is enabled.
  • "off": The function of compatibility with clients is disabled.

max_connection_threshold=?

Alarm threshold of the maximum number of connections.

The value must be an integer from 0 to 99, expressed in percentage. If the ratio of connection quantity to the maximum number of connections exceeds the value, an alarm is reported. When this parameter is set to 0, the alarm function is disabled.

Level

Administrator

Usage Guidelines

To obtain the file system name, run the "show file_system general" command.

Example

  • Show the FTP configuration.
    admin:/>show service ftp 
    Running Status : Stop 
    Anonymous Homedir : /fs0/anonymous 
    Max Connection : 100 
    Anonymous Access Switch : Off 
    Client Max Connection : 10 
    Onymous Max Connection : 10 
    Anonymous Max Connection : 100 
    Idle Time(minutes) : 10 
    FXP Enabled: No 
    Buffer Size(bytes) : 8192 
    Anonymous Upload : True 
    Client Charset : utf-8 
    Umask : 000:000 
    FTPS Model  : Explicit 
    FTP Enabled  : No 
    FTPS Enabled : Yes 
    Support MLSX : Yes 
    SSL Cipher List : AES128-SHA,DHE-RSA-AES128-SHA,DHE-DSS-AES128-SHA,DES-CBC3-SHA,DHE-RSA-DES-CBC3-SHA 
    Display Files Number : 10000 
    Display Subdirectories Depth: 5 
    Client Compat Switch : Off 
    Max Connection Threshold(%) : 0
  • Enable the FXP configuration.
    admin:/>change service ftp fxp_enabled=yes 
    WARNING:You are about to configure the FTP service. This operation may cause the following issues:  
    1. If the FTP service is enabled, this operation enables insecure FTP protocol for external access, which may cause user information to be intercepted and bring security risks to file data access.  
    2. If the FXP function is enabled, this operation enables direct data transmission between servers without the customer's intervention, which brings security risks.  
    3. If the FTP service is disabled, this operation makes the FTP service provided by the device unavailable. 
    4. Setting SSL Cipher List causes the service to restart automatically.  
    Suggestion:  
    Before performing any of these three operations, ensure that each of them is 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 implicit FTPS mode.
    admin:/> change service ftp ftps_model=implicit 
    WARNING: You are about to enable the implicit FTPS mode. This operation disables the plaintext FTP service and restarts services automatically.  
    Suggestion: Ensure that you want to perform the operation. 
    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 FTP function in the explicit FTPS mode.
    admin:/>change service ftp ftps_model=explicit ftp_enabled=yes 
    WARNING: You are about to enable the explicit FTPS mode and the plaintext FTP service (with potential security risks). This operation restarts services automatically.  
    Suggestion: Ensure that you want to perform the operation. 
    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.
  • Close the FTP service.
    admin:/>change service ftp running_status=stop 
    WARNING:You are about to configure the FTP service. This operation may cause the following issues:  
    1. If the FTP service is enabled, this operation enables insecure FTP protocol for external access, which may cause user information to be intercepted and bring security risks to file data access.  
    2. If the FXP function is enabled, this operation enables direct data transmission between servers without the customer's intervention, which brings security risks.  
    3. If the FTP service is disabled, this operation makes the FTP service provided by the device unavailable. 
    4. Setting SSL Cipher List causes the service to restart automatically.  
    Suggestion:  
    Before performing any of these three operations, ensure that each of them is 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.
  • Change the FTPS security suite.
    admin:/>change service ftp ssl_cipher_list=AES128-SHA256,AES256-SHA256,AES128-SHA 
    WARNING: You are about to configure the FTP service. This operation may cause the following issues:  
    1. If the FTP service is enabled, this operation enables insecure FTP protocol for external access, which may cause user information to be intercepted and bring security risks to file data access.  
    2. If the FXP function is enabled, this operation enables direct data transmission between servers without the customer's intervention, which brings security risks.  
    3. If the FTP service is disabled, this operation makes the FTP service provided by the device unavailable.  
    4. Setting SSL Cipher List causes the service to restart automatically. 
    Suggestion: Ensure that you want to enable the above operations. 
    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-09-02

Document ID: EDOC1000181601

Views: 319505

Downloads: 41

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