vmware/pyvmomi-community-samples

Getting VSAN diskgroup uuid

開放

#657 建立於 2020年10月27日

 (0 則留言) (0 個反應) (0 位負責人)Python (914 個分叉)batch import
help wanted

倉庫指標

星標
 (972 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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 )

貢獻者指南