VMAX Storage Discovery via Powermax REST API

codycotulla
Tera Guru

Hi,

I am working to get data about a VMAX storage array into the CMDB. We don't have a CIM or SMI-S server available, so I am using the PowerMax REST API to gather the information.

 

I am able to get the data from the array, but I am struggling to map the data into the CMDB.

For example in volume JSON below from VMAX what values should map to the name field in the cmdb_ci_storage_volume table. Would it be the wwn?

 

"volumeDetails": {
"volumeId": "00001",
"type": "TDEV",
"emulation": "FBA",
"ssid": "FFFFFFFF",
"allocated_percent": 0,
"cap_gb": 0.01,
"cap_mb": 6,
"cap_cyl": 3,
"status": "Write Disabled",
"reserved": false,
"pinned": false,
"wwn": "60000970000197500352533030303031",
"encapsulated": false,
"num_of_storage_groups": 0,
"num_of_front_end_paths": 1,
"symmetrixPortKey": [
{ "directorId": "FA-1D", "portId": "4" }
],
"snapvx_source": false,
"snapvx_target": false,
"has_effective_wwn": false,
"effective_wwn": "60000970000197500352533030303031",
"oracle_instance_name": "",
"mobility_id_enabled": false
}
1 ACCEPTED SOLUTION

codycotulla
Tera Guru

Here is what I ended up mapping the values too. Maybe it will help someone.
The referenced storage server and storage pool are not in the JSON listed in the original post.

  cmdb_ci_storage_volume = {
    "name": "naa.60000970000197500352533030303031",
    "volume_id": "60000970000197500352533030303031",
    "storage_type": "TDEV",
    "size": "6.0",
    "lun": "60000970000197500352533030303031",
    "provided_by": {
      "display_value": "<arrayId>:<storageResourcePoolId>",
      "class": "cmdb_ci_storage_pool"
    },
    "computer": {
      "display_value": "VMAX_<arrayId>",
      "class": "cmdb_ci_storage_server"
    }
  }

 

View solution in original post

2 REPLIES 2

codycotulla
Tera Guru

Here is what I ended up mapping the values too. Maybe it will help someone.
The referenced storage server and storage pool are not in the JSON listed in the original post.

  cmdb_ci_storage_volume = {
    "name": "naa.60000970000197500352533030303031",
    "volume_id": "60000970000197500352533030303031",
    "storage_type": "TDEV",
    "size": "6.0",
    "lun": "60000970000197500352533030303031",
    "provided_by": {
      "display_value": "<arrayId>:<storageResourcePoolId>",
      "class": "cmdb_ci_storage_pool"
    },
    "computer": {
      "display_value": "VMAX_<arrayId>",
      "class": "cmdb_ci_storage_server"
    }
  }

 

Hi @codycotulla  that's great , Can you post the stepwise approach to configure this discovery if its possible.

Thanks!!