VMware Cloud Community
snyderr
Contributor
Contributor

Storage path validation

Within Orchestrator is there a way to develop a method to check the storage paths for the hosts. Basically we are trying to create a workflow to go out and verify the storage paths before and after SAN maintenance and report back per host.

0 Kudos
2 Replies
admin
Immortal
Immortal

Hi,

There's no direct method to retrieve the storage paths for a host in Orchestrator. However, in order to retrieve the storage paths for a given host, you can refer to the datastore.summary.url property of the HostSystem, which would provide the url of the datastore on the Host. The datastore property retrieves all the available datastores on a given Host.

Also, you might also refer to the HostStorageDeviceInfo property in a HostSystem,HostSystem.config.storagedevice, which has property ScsiLun to retrieve all the available luns on th datastore.

As mentioned, there's no direct method for the same and you would have to drill down to the required properties as per your case through scripting.

Hope this helps.

0 Kudos
miladmeh8
Hot Shot
Hot Shot

Hi

Check it out

for each (var path in host.configManager.storageSystem.multipathStateInfo.path){
if (path.pathState != "active"){
System.log("Path name is : " + path.name)
System.error("Path state is : " + path.pathState);
}

}

https://www.vmehrabi.com/2019/10/16/how-to-write-a-workflow-to-check-all-esxi-storage-paths/

0 Kudos