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

FusionServer Tools 2.0 uREST User Guide 16

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).
Using uREST tool

Using uREST tool

When performing operations on the server in out-of-band mode, you need to enter the server IP address, port number, and iBMC user name and password. When performing operations on the server in in-band mode, you can directly run subcommands. The following describes how to query the CSR file on Linux as an example:

  • The command for querying the CSR file in out-of-band mode is as follows:

    ./urest -H HOST -p PORT -U USERNAME -P PASSWORD getcsr

  • The command for querying the CSR file in in-band mode is as follows:

    ./urest getcsr

This document describes how to use uREST tool by using operations on the remote server on Linux.

  • You can add the --error-code command to commands to obtain the exit code (as shown in the following commands).
    [root@localhost bin]# ./urest -H 10.10.10.10 -U ****** -P ****** --error-code setpwd -P ****** -AP False
    Failure: some of the settings failed.possible causes include the following:
             a valid password cannot be limited history password
    
    [root@localhost bin]# echo %errorlevel%
    144
  • You do not need to add the --error-code command to obtain the exit command.
    • Universal interface
    • The interface used to create the diagnosis configuration for the SP service
    • The interface used to query the diagnosis configuration interface for the SP service
    • The interface used to collect iBMC SEL logs
    • The interface used to install the iBMC license
    • The interface used to querying iBMC license service information
    • The interface used to restore iBMC factory settings
    • The interface used to query session resource information
    • The interface used to delete a specified session
    • The interface used to clear the RAID configuration of a specified controller
  • You can add --timeout=TIMEOUT to commands to set the timeout interval for accessing the iBMC Redfish interface. The value ranges from 10 to 1000 seconds. The default value is 10 seconds. However, the following interfaces have specific default timeout intervals: The default timeout interval for uploading and downloading a file is 120 seconds. The default timeout interval for performing an upgrade is 30 seconds.

    If the default timeout interval of an interface is not 10 seconds, the default timeout interval is described separately in the corresponding section.

    [root@localhost bin]# ./urest -H 10.10.10.10 -U ******  -P ****** --timeout=20  gettime
    DateTime: 2018-12-18T21:35:43+00:00
  • When uREST is used on Linux, the iBMC password cannot contain the exclamation mark (!), or a number after the dollar sign ($). If the iBMC password contains the exclamation mark (!), add an escape character before using the password.
  • When uREST is used on Linux, only the root user is supported.
Translation
Download
Updated: 2020-02-13

Document ID: EDOC1000176182

Views: 120354

Downloads: 587

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Share
Previous Next