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

This document is applicable to OceanStor 18500 V3 and 18800 V3. Based on the CLI, this document describes how to use various commands classified by functionsand 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).
CLI Views, Permissions, and Modes

CLI Views, Permissions, and Modes

Command-line interface (CLI) views include the developer view, diagnostic view, engineer view, and user view. Users in different views have different operation permissions.

CLI Views and Permissions

The different permissions and levels confine the execution of commands on the CLI. CLI views include:

  • Developer view

    Users who use the developer view are developer users. Built in a storage system, a developer user has the highest permission. You cannot change or add a developer user. The developer view is used to troubleshoot storage system faults.

  • Diagnostic view

    Users who use the diagnostic view are diagnostic users. A diagnostic user is built in a storage system and cannot be changed or added. The diagnostic view is used to troubleshoot storage system faults.

  • Engineer view

    Users who use the engineer view are engineer users. An engineer user is built in a storage system and cannot be changed or added. The engineer view is used for the routine maintenance and management of a storage system.

  • User view

    Users who use the user view are common users. These users are grouped into three levels: the super administrator, administrator, and guest. The super administrator, administrator, and guest are allowed to execute different levels of commands. Only the super administrator is built in a storage system and can be changed or added. The user view is used by common users to create daily services.

The login methods for different user roles vary:

  • Developer user

    Log in to a storage system as the super administrator and run change user_mode current_mode user_mode=developer.

    admin:/>change user_mode current_mode user_mode=developer 
    DANGER: You are about to switch to the developer view. Commands in this view must be run under the guidance of R&D engineers. You can choose whether to run this command. If you run this command to switch to the developer view, it means that you know risks of running commands in the developer view. Device vendors are not responsible for any loss or damage caused to the user or others by running commands in the developer view. 
    1. Running the command in the developer view may cause system reset, restart, offline, service interruption, data loss, and data inconsistency. 
    2. Running the command in the developer view may cause the performance to decrease. 
    3. Running the command in the developer view to delete or remove configurations may have impact on the service and data. 
    4. Running the command in the developer view may cause system alarms. 
    Suggestion: Run this command under the guidance of R&D engineers. 
    Have you read danger alert message carefully?(y/n)y 
     
    Are you sure you really want to perform the operation?(y/n)y 
    developer:/>  \\ Login succeeds.     
  • Diagnostic user
    1. Connect to the remote desktop of the SVP.
    2. Log in to the SVP as user maintainer. The default password is Maintainer@svp.
    3. Run PuTTY.
    4. Enter 172.16.192.200 or 172.16.193.200 to go to the CLI.
    5. Log in to the storage system as the super administrator.
    6. Log in to the storage system as a developer view.
    7. Run debug to go to the diagnose mode.
      developer:/>debug  \\ Run debug. 
      admin:/diagnose>  \\ Login succeeds.
  • Engineer user

    Log in to a storage system as the super administrator and run change user_mode current_mode user_mode=engineer.

    admin:/>change user_mode current_mode user_mode=engineer 
    engineer:/>  \\ Login succeeds.     
  • Super administrator, administrator, and guest

    The login methods for these user roles are the same. For details on the login method, see section Logging In to the Storage System.

Modes

  • Minisystem mode

    When a storage system fails to be started up or continuously resets, the storage system directly goes to a special mode, the minisystem mode. The minisystem mode is used for IP address change and environment recovery if system startup fails or an IP address is lost.

    NOTE:
    • If you log in to the CLI in minisystem mode using some other tools, pressing the Backspace key to delete the command does not work and garbled characters will be displayed. You are advised to use PuTTY to log in to the storage system. If you log in to the storage system using PuTTY, you can use the Backspace key or Ctrl+Backspace to delete the command. If you log in to the storage system using Xshell, you can use Ctrl+Backspace to delete the command.
    • In minisystem mode, the Tab key cannot be used to associate commands. If you press the Backspace key or Ctrl+Backspace after pressing the Tab key, the command output typesetting may be in disorder.
    • Manually entering the minisystem mode:
    • Log in to the CLI using the IP address of a controller management network port and run minisystem in the developer view.

      developer:/>minisystem Storage: minisystem> \\ Login succeeds.

    • Log in to the CLI using the IP address of a controller management network port, enter the upgrade mode, and run minisystem.

      System is upgrading upgrade:/>minisystem Storage: minisystem> \\ Login succeeded

    • When the storage system is powered on, System is not ready, Please wait(Ctrl+c to exit or Input minisystem to minisystem mode). is displayed on the CLI. Run the minisystem command to enter the minisystem mode.

      Authorized users only. All activities may be monitored and reported. WARNING! The remote SSH server rejected X11 forwarding request. WARNING: You have accessed the system. You are required to have a personal authorisation from the system administrator before you use this computer. Unauthorised access to or misuse of this system is prohibited. System is not ready, Please wait(Ctrl+c to exit or Input minisystem to minisystem mode).\minisystem

  • Serial port mode

    The serial port mode allows users to log in to a storage system using serial ports.

    For storage system security, change the password upon your first login and periodically change your password in the future.

    • The accounts for logging in to the serial port mode of a controller enclosure are:
      • admin: This account is the same as that of the storage system administrator. The default password is Admin@storage. If the password or user name of the storage system administrator has been changed, use the new password or user name. This account is used to log in to the OS subsystem.
      • _super_admin: The default password is Admin@revive. You can run chgsuperpasswd to change the password. This account is used to log in to the OS subsystem and initialize the password of admin in case that the admin user should forget its password. You can run initpasswd to initialize the password. The timeout logout mechanism is unavailable in current mode. If you will not perform any operation during a period of time, run the exit command to exit the mode to ensure system security.

        After changing the password of user _super_admin, you must remember the new password. If not, you cannot perform any operations that require this user right. To retrieve the new password, you need to return the storage device to the factory for handling.

      • administrator (applicable for 3 U or 6 U controller enclosure): You can only use the serial port to access the BMC, the password is Huawei12#$ (the default password) or your new password. You can run password to change the password. When the system is in a hibernation state, perform the following operations to go to the BMC subsystem.
        1. Use serial cables to connect the PC to the serial ports on the management board of the controller enclosure.
        2. Log in to the System Management Module subsystem as user administrator.
    • The user name and password for logging in to the serial port mode of disk enclosures and 2 U controller enclosures are the same as those of the super administrator of the storage system. You can run switch 0 to log in to the serial port mode 2 U controller enclosures.

    If you have not performed any operation within a period of time, the CLI automatically logs you out. To enter the CLI mode again, you must enter the password.

Translation
Download
Updated: 2019-07-12

Document ID: EDOC1000138389

Views: 487031

Downloads: 85

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