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).
Deploying an OS Using Smart Provisioning

Deploying an OS Using Smart Provisioning

  1. Query the supported OS types and versions.

    [root@localhost bin]# ./urest -H 10.10.10.10 -U ****** -P ****** getspcfg -T SPCfg -F /home/**.json -I 1
    
    Success: successfully completed request
    

  2. Query Smart Provisioning information.

    [root@localhost bin] ./urest -H 10.10.10.10 -U ****** -P ****** getspinfo
    SysRestartDelaySeconds : 30
    SPStartEnabled : False
    [Version]
    OSVersion : 1.01
    APPVersion : 1.01
    DataVersion : 1.01

    If the information cannot be obtained and a message similar to "Failure: resource was not found" is displayed, rectify the fault by referring to Error Message "Failure: resource was not found." Is Displayed When a User Attempts to Obtain the Smart Provisioning Information or Upgrade Smart Provisioning.

  3. Deliver the configuration.

    1. Prepare the configuration file os.json. The template is as follows:

      { "InstallMode":"Recommended", "OsType":"CentOS7U3", "CDKey":"", "RootPwd":"xxxxxx", "HostName":"Huawei", "Autopart":true, "Language":"en-US", "Timezone":"Eastern Standard Time", "Keyboard":"0x00000409", "Position":{"DiskName":"/dev/sdb"}, "CheckFirmware":false, "Partition":[], "Software":[] }

    2. Run the following command to deliver the configuration:
      [root@localhost bin]# ./urest -H 10.10.10.10 -U ****** -P ****** addspcfg -T SPOSInstallPara -F /home/SPOSInstallPara.json
      Success: successfully completed request

  4. Set the enabling status of Smart Provisioning.

    [root@localhost bin]# ./urest -H 10.10.10.10 -U ****** -P ****** setspinfo -S True
    Success: successfully completed request

  5. Connect to virtual media.

    [root@localhost bin]# ./urest -H 10.10.10.10 -U ****** -P ****** connectvmm -T Connect –i nfs://172.26.200.11/data/CentOS-7.3-x86_64-DVD-1611.iso
    Success: successfully completed request

  6. Restart the OS.

    [root@localhost bin]#./urest -H 10.10.10.10 -U ****** -P ****** syspowerctrl –T ForceRestart
    Success: successfully completed request

  7. Query configuration results.

    [root@localhost bin]# ./urest -H 10.10.10.10 -U ****** -P ****** getspresult 
    Success: successfully completed 

Translation
Download
Updated: 2020-02-13

Document ID: EDOC1000176182

Views: 122420

Downloads: 591

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Share
Previous Next