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
- Go to “Manage → Credentials”,
- Add new credentials of type “Huawei OceanStor REST API”
- Provide the user account with REST API access
- Add port 8088
- Click Apply.
Test credentials
To prevent discovery issues due to invalid credentials, it is recommended to test your credentials before running a scan:
- 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) - Go to “Manage → Credentials”
- Click the "Action → Test" menu next to the credentials entry
- In the Test URL field, type https://<IP> or <HOSTNAME>:<PORT>/deviceManager/rest/<SystemID>/system/. Port is 8088 by default
- 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.