Huawei OceanStor Storage Systems (REST)


Huawei OceanStor storage systems are discovered via the embedded OceanStor DeviceManager RESTful APIs. As part of routine discovery, when a Huawei OceanStor storage system is encountered, BMC Discovery creates a storage device node and triggers the pattern. The pattern continues the discovery using further REST API requests. Once discovered, the storage entities are modeled in BMC Discovery.

Supported platform

  • Huawei OceanStor systems V3 and higher

Prerequisites

  • BMC Discovery v12.0 and higher.
  • A Huawei OceanStor user account with REST API access with at least read-only privilege.
  • Port 8088 added to the list of HTTPS ports under “Administration → Discovery Configuration.

Procedure

Initial setup

  1. Go to “Manage → Credentials”,
  2. Add new credentials of type “Huawei OceanStor REST API
  3. Provide the user account with REST API access
  4. Add port 8088 
  5. Click Apply.

Test credentials

To prevent discovery issues due to invalid credentials, it is recommended to test your credentials before running a scan:

  1. Run the command below to get the Huawei OceanStor SystemID. Replace <user> and <pass> with Huawei OceanStor username and password

    curl -i -k --data " {\"username\":\"<user>\",\"<password\":\"pass>\",\"scope\":\"0\"}

    " -c cookies.txt -X POST "https://<IP>:8088/deviceManager/rest/xxxxx/sessions" 

    (scope = 0 if local user, scope=1 if ldap user)

  2. Go to “Manage → Credentials
  3. Click the "Action → Test" menu next to the credentials entry
  4. In the Test URL field, type https://<IP> or <HOSTNAME>:<PORT>/deviceManager/rest/<SystemID>/system/. Port is 8088 by default
  5. Click Test

If your test is successful, scan the IP Address of the Huawei OceanStor storage system.

Discovered Storage Information

Vendor Specific Information

No known vendor-specific information.

Limitations

No known limitations.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

BMC Discovery content reference