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).
Setting the BIOS

Setting the BIOS

Function

Set the BIOS.

BIOS setup resources indicate that the BIOS setup item has been delivered but does not take effect currently. The setting takes effect when the system restarts next time.

Format

./urest -H HOST -p PORT -U USERNAME -P PASSWORD --timeout=TIMEOUT setbios -A ATTRIBUTE -V VALUE -F FILE

Parameters

Parameter

Description

Value

HOST

iBMC IP address or domain name. It is a mandatory parameter. If an IPv6 address is used, the IPv6 address must be included in square brackets, such as [1001::1001].

-

PORT

Port number. The default value is 443. It is an optional parameter.

Enter the port number if the default value 443 is not used.

USERNAME

iBMC user name. It is a mandatory parameter.

-

PASSWORD

Password of the iBMC user. It is a mandatory parameter.

-

TIMEOUT

Timeout interval for accessing the iBMC Redfish interface. It is an optional parameter. The default value is 30 seconds.

The value ranges from 10 to 1000, and the unit is seconds.

ATTRIBUTE

BIOS configuration item name. It is an optional parameter. For details about BIOS parameters, see Querying BIOS Configuration Details.

You can use a command (-A or -V parameter) or configuration file (-F parameter) to set a single configuration item that has no dependency relationship. You must use a configuration file to set a configuration item that has a dependency relationship.

If the BIOS configuration item or configuration item value contains spaces, add three double quotation marks (""") on Windows, or add one double quotation mark (") on Linux.

VALUE

BIOS configuration item value. It is an optional parameter.

FILE

BIOS configuration file path. It is an optional parameter.

  • The value needs to be entered in Directory/File name format. The path can be an absolute path or relative path.
  • The BIOS configuration file needs to be prepared in advance. The file must be a .json file or a file of which the format is the same as that of a .json file (the file content is included in {}).
  • The configuration file content format is: "Configuration item":"Value", "Configuration item":"Value", ...; If the value of a configuration file is True, False, or a digit, the value does not need to be placed between quotation marks (").
  • The file path cannot contain spaces. If the path contains spaces:
    • On Windows, add three double quotation marks (""") before and after the path, for example, -F """D:\\test config\\config.json""".
    • On Linux, add a double quotation mark (") before and after the path, for example, -F "/home/test config/config.json".

Usage Guidelines

This function applies only to FusionServer V5 servers and TaiShan servers.

Example

Obtain help information.

[root@localhost bin]# ./urest -H 10.10.10.10 -U ****** -P ****** setbios -h 
usage: urest setbios [-h] [-A ATTRIBUTE] [-V VALUE] [-F FILE]
 
optional arguments:
  -h, --help    show this help message and exit
  -A ATTRIBUTE  attribute name
  -V VALUE      attribute value
  -F FILE       set the local BIOS configuration file in JSON format. The file
                contains the attributes to be configured, for example,
                {"attribute":"value", "attribute2":"value2" ...}
  1. Obtain the detailed attributes to be configured.
    [root@localhost bin]# ./urest -H 10.10.10.10 -U ****** -P ****** getbiosdetails –A PowerSaving
    --------------------------------------------------------------------------------
    --------------------
    Attribute                   : PowerSaving
    CurrentValue                : Disabled
    Value                       : ["Enabled", "Disabled"]
    DisplayName                 : DEMT
    HelpText                    : Dynamic Energy Management Technology
    --------------------------------------------------------------------------------
    --------------------
  1. Set the BIOS by referring to the BIOS attributes.
  • Run a command to set a single configuration item that has no dependency.
    [root@localhost bin]# ./urest -H 10.10.10.10 -U ****** -P ****** setbios -A CustomPowerPolicy -V Efficiency
    Success: successfully completed request
  • Use a json file to set the BIOS.
    [root@localhost bin]# ./urest -H 10.10.10.10 -U ****** -P ****** setbios -F home/test.json 
    Success: successfully completed request
  • Use the json file to set the configuration items that have dependencies.

    The bios json file is as follows:

    {
    "BootTypeOrder0": "HardDiskDrive",
    "BootTypeOrder1": "DVDROMDrive",
    "BootTypeOrder2": "PXE",
    "BootTypeOrder3": "Others"
    }
    [root@localhost bin]# ./urest -H 10.10.10.10 -U ****** -P ****** setbios -F home/bios.json
    Success: successfully completed request
Translation
Download
Updated: 2020-02-13

Document ID: EDOC1000176182

Views: 122088

Downloads: 591

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Share
Previous Next