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

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

rst_svc_ctl.sh

Function

The rst_svc_ctl.sh command is used to configure and control the REST service.

Format

rst_svc_ctl.sh host -a xxx

rst_svc_ctl.sh host -r xxx

rst_svc_ctl.sh host -d

rst_svc_ctl.sh host -h

rst_svc_ctl.sh host -c

rst_svc_ctl.sh -h

rst_svc_ctl.sh options -r

rst_svc_ctl.sh options -d

rst_svc_ctl.sh options -h

rst_svc_ctl.sh nosniff -a

rst_svc_ctl.sh nosniff -r

rst_svc_ctl.sh nosniff -h

Parameters

Parameter

Description

Value

type

Configures the REST service type.

The following types are supported:

host and options.

-h

Queries help information.

-

host -a [ip_addr | domain_nm]

Adds the host IP address or the domain name to the white list.

Valid IPv4 address, IPv6 address, or domain name.

host -r [ip_addr | domain_nm]

Removes the host IP address or the domain name from the white list.

Valid IPv4 address, IPv6 address, or domain name.

host -d

Queries the current white list.

-

host -c

Clears the host white list and disables the host white list function.

-

options -r

Restores OPTIONS and POST options from the apache server.

-

options -d

Deletes OPTIONS and POST options from the apache server.

-

nosniff -a

Adds nosniff to the Apache server configuration.

-

nosniff -r

Removes nosniff from the Apache server configuration.

-

Modes

Minisystem mode

Usage Guidelines

This command is used to configure and control the REST service. Use this command under the guidance of technical support engineers.

Example

  • Query help information.
    Storage: minisystem> rst_svc_ctl.sh -h 
    rst_svc_ctl.sh  obj [-h] | [-d] | [-ar ip_addr] : manage apache white ip list. 
     obj: host,options,nosniff 
     -h,                    show help info. 
     -a host,               add ip_addr or host_name into apache white ip list. 
                               under nosniff subtype, add nosniff into the apache configuration. 
     -r host,               under host subtype, remove ip_addr or host_name from apache white ip list. 
                               under options subtype, restore the OPTIONS and POST option of the apache server. 
                               under nosniff subtype, removes nosniff from the apache configuration. 
     -d,                    under host subtype, display current ip list. 
                               under options subtype , delete OPTIONS and POST option of the apache server. 
     -c,                 clear host white list and disable this function.
  • Add nosniff to the Apache server configuration.
    Storage: minisystem> rst_svc_ctl.sh nosniff -a 
    DANGER: You are about to configure the nosniff options of the Apache server. After the configuration, you will disable the MIME sniffing function of the web browser. This operation will restart DeviceManager and disconnect all existing connections. 
    Suggestion: 1.Confirm that you want to configure the nosniff options of the Apache server.2. Ensure that no connection is set up, or the disconnection does not affect services. 
    Have you read danger alert message carefully?(y/n) 
    y 
    Are you sure you really want to perform the operation?(y/n) 
    y 
    add nosniff success.
  • Remove nosniff from the Apache server configuration.
    Storage: minisystem> rst_svc_ctl.sh nosniff -r 
    DANGER: You are about to delete the nosniff options of the Apache server. After the deletion, it will restore the MIME sniffing service of the web browser. This operation will restart DeviceManager and disconnect all existing connections. 
    Suggestion: 1.Confirm that you want to delete the nosniff options of the Apache server.2. Ensure that no connection is set up, or the disconnection does not affect services. 
    Have you read danger alert message carefully?(y/n) 
    y 
    Are you sure you really want to perform the operation?(y/n) 
    y 
    remove nosniff success.
  • Add the host IP address or domain name into the white list.
    Storage: minisystem> rst_svc_ctl.sh host -a 192.168.18.18 
    DANGER: You are about to add an IP address or domain name to the apache host whitelist. If you add the IP address or domain name for the first time, the whitelist function will be enabled. After the IP address or domain name is added, only the IP addresses or domain names in the list can be accessed. This operation will restart the DeviceManager, and the existing connections will be disconnected. 
    Suggestion: 1. Confirm that you want to enable the apache host whitelist function. 2. Ensure that no connection is set up, or the disconnection does not affect services. 3. Ensure that the added IP address or domain name is correct and accessible. 
    Have you read danger alert message carefully?(y/n) 
    y 
    Are you sure you really want to perform the operation?(y/n) 
    y 
    add host address success.
  • Remove the host IP address or domain name from the white list.
    Storage: minisystem> rst_svc_ctl.sh host -r 192.168.18.18 
    DANGER: You are about to delete the IP address or domain name from the apache host whitelist. The deleted IP address or domain name will be inaccessible. After the last record in the whitelist is deleted, the whitelist function will be disabled and all IP addresses and domain names can be accessed. This operation will restart the DeviceManager and all existing connections will be disconnected. 
    Suggestion: 1. Ensure that the deleted IP address or domain name is inaccessible. 2. If the last whitelist record is deleted, ensure that disabling the apache whitelist function does not affect services. 3. Ensure that no connection is set up, or the disconnection does not affect services. 
    Have you read danger alert message carefully?(y/n) 
    y 
    Are you sure you really want to perform the operation?(y/n) 
    y 
    remove host address success.
  • Query the current white list.
    Storage: minisystem> rst_svc_ctl.sh host -d 
    192.168.6.112 1 
    192.168.6.112:8088 1 
    10.10.12.12 1 
    10.10.12.12:8088 1 
    10.10.12.14 1 
    10.10.12.14:8088 1 
    www.baidu.com 1 
    www.baidu.com:8088 1
  • Clear the host white list and disable the host white list function.
    Storage: minisystem> rst_svc_ctl.sh host -c 
    clear host address and disable white list function success.
  • Restore OPTIONS and POST options from the apache server.
     Storage: minisystem> rst_svc_ctl.sh options -r 
    DANGER: You are about to restore the OPTIONS and POST options of the Apache server. This operation will restart DeviceManager and disconnect all existing connections. 
    Suggestion: Ensure that no connection is set up, or the disconnection does not affect services. 
    Have you read danger alert message carefully?(y/n) 
    y 
    Are you sure you really want to perform the operation?(y/n) 
    y 
    recover options success.
  • Delete OPTIONS and POST options from the apache server.
    Storage: minisystem> rst_svc_ctl.sh options -d 
    DANGER: You are about to delete the OPTIONS and POST options of the Apache server. After the deletion, you cannot use POST and OPTIONS to access the static files of the REST service. This operation will restart DeviceManager and disconnect all existing connections. 
    Suggestion: 1.Confirm that you want to delete the OPTIONS and POST options of the Apache server.2. Ensure that no connection is set up, or the disconnection does not affect services. 
    Have you read danger alert message carefully?(y/n) 
    y 
    Are you sure you really want to perform the operation?(y/n) 
    y 
    delete options success.

System Response

None

Translation
Download
Updated: 2019-07-11

Document ID: EDOC1000181602

Views: 628121

Downloads: 55

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