vmware/pyvmomi-community-samples

Getting VSAN diskgroup uuid

Open

#657 aberto em 27 de out. de 2020

Ver no GitHub
 (0 comments) (0 reactions) (0 assignees)Python (914 forks)batch import
help wanted

Métricas do repositório

Stars
 (972 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

I am working on getting vsan performance information and I can query disk-group info for all disk groups. It returns perf data by uuid. However, the configuration data does not have this uuid anywhere. I am unable to match up performance data to the appropriate disk mapping object.

disk_groups = host.config.vsanHostConfig.storageInfo.diskMapping

vs

endTime = datetime.utcnow() startTime = endTime + timedelta(minutes=-10) query_spec = vim.cluster.VsanPerfQuerySpec( entityRefId='disk-group:*', labels=['iopsRcRead'], startTime=startTime, endTime=endTime ) perf_result = vsan_perfManager_query_object.QueryVsanPerf( querySpecs=[query_spec], cluster=cluster )

Guia do colaborador