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).
Creating a Diagnosis Configuration Resource of the Smart Provisioning Service

Creating a Diagnosis Configuration Resource of the Smart Provisioning Service

Function

Create a diagnosis configuration resource of the Smart Provisioning service.

Format

./urest -H HOST -p PORT -U USERNAME P PASSWORD addspdiagnose -D {CPU, Memory, Disk} -M {Quick, Full} -T timevalue F File

Parameters

Parameter

Description

Value

HOST

IPv4 or IPv6 address or domain name of the server iBMC. 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.

If the actual port number is not 443, enter the actual port number.

USERNAME

iBMC administrator user name. It is a mandatory parameter.

-

PASSWORD

iBMC administrator password. It is a mandatory parameter.

-

{CPU, Memory, Disk}

Device type. It is an optional parameter.

  • CPU
  • Memory
  • Disk

{Quick, Full}

Diagnosis type. It is an optional parameter.

  • Quick
  • Full

timevalue

Diagnosis duration. It is an optional parameter.

This parameter is required only when the CPU is diagnosed. The unit is minute. The default value is 5 minutes. The value is an integer ranging from 1 to 10000.

File

Diagnosis configuration file. It is an optional parameter and mutually exclusive with other parameters.

  • The format is directory/file name. The path can be an absolute path or a relative path.
  • The diagnosis configuration file must be prepared in advance. The file must be a .json file or a file in the same format as a .json file (the file content is contained in {}).
  • 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 is supported only when the BIOS version of the FusionServer V5 server or TaiShan 200 server is later than 0.39 and the Smart Provisioning version is 115 or later.

Example

Obtain help information.

[root@localhost bin]# ./urest -H 10.10.10.10 -U ***** -P ***** addspdiagnose -h
usage: urest addspdiagnose [-h] [-D {CPU,Memory,Disk}] [-M {Quick,Full}]
                           [-T DURATIONMINUTES] [-F FILE]
 
optional arguments:
  -h, --help            show this help message and exit
  -D {CPU,Memory,Disk}  device type
  -M {Quick,Full}       diagnostic mode
  -T DURATIONMINUTES    diagnosis duration. This parameter needs to be added
                        only when the CPU is diagnosed. The unit is minute.
                        The default value is 5 minutes. The value ranges from
                        1 to 10000.
  -F FILE               local path is used to create a diagnostic
                        configuration.

Create a diagnosis configuration of the Smart Provisioning service.

[root@localhost bin]# ./urest -H 10.10.10.10 -U ***** -P ***** addspdiagnose -D CPU -M Quick -T 10
Success: successfully completed request[root@localhost bin]# ./urest -H 10.10.10.10 -U ***** -P ***** addspdiagnose -F D:\file\diagnose.json
Success: successfully completed request.
 
diagnose.json:
{  
    "Diagnose": 
    [ 
    { 
        "DeviceType":"CPU",
        "Mode":"Quick", 
        "DurationMinutes":100 
    },
    { 
        "DeviceType":"Memory",
        "Mode":"Quick", 
        "DurationMinutes":100 
    },
{ 
        "DeviceType":"Disk",
        "Mode":"Quick", 
        "DurationMinutes":100 
    } 
    ]  
}

For details about how to deploy an OS using Smart Provisioning, see Implementing Resource Attributes Using Smart Provisioning.

Translation
Download
Updated: 2020-02-13

Document ID: EDOC1000176182

Views: 120392

Downloads: 587

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Share
Previous Next