Capture the HPE Smart Array configuration in the HPE Proliant (Gen8 - Gen10) into the JSON file trough ilorest api
Steps are shown as below:
- login to jump hosts, which able to connect to all the ILO in all sites
- download the files, make sure git already installed
$ git clone https://github.com/hendraw4n/ilorest.git
$ cd ilorest
- put all the ILO IP Address, ILO Username as well as the Password in the ilolist.txt file, format shown as below
<ILO IP>,<ILO Username>,<ILO Password>
- execute the required files and generate the script to be executed
$ chmod 755 ilorest* smartarray*
$ ./smartarray_generate_ilo_creds.sh
- execute the script to generate the JSON files
$ ./smartarray_check_script.sh
- you can find all the JSON output in the current directory with serial number of the server as the name of the file
*** Server Info: ***
SerialNumber : SGHXXXXXXX
iLO HostName : ILOSGHXXXXXXX
ServerModel : Synergy 480 Gen9
*** smartarray config save in SGHXXXXXXX.json ***
Logging session out.
*** Server Info: ***
SerialNumber : SGHDDDDDDD
iLO HostName : ILOSGHDDDDDDD
ServerModel : ProLiant DL380 Gen10
*** smartarray config save in SGHDDDDDDD.json ***
Logging session out.
*** Server Info: ***
SerialNumber : SGHCCCCCCC
iLO HostName : ILOSGHCCCCCCC
ServerModel : ProLiant BL460c Gen8
*** smartarray config save in SGHCCCCCCC.json ***
Logging session out.
*** Server Info: ***
SerialNumber : SGHBBBBBBB
iLO HostName : ILOSGHBBBBBBB
ServerModel : ProLiant BL660c Gen9
*** smartarray config save in SGHBBBBBBB.json ***
Logging session out.
if facing an issue, can install the ilorest trough the following link
https://support.hpe.com/hpesc/public/swd/detail?swItemId=MTX_07ec09e5e97a4c468a99d928ff