0

如何在 VMWARE PowerCLI 或 VMWARE SDK 中获取集群 ID?我需要列出集群并选择给定集群的 id?

Get-Datacenter 
or 
Get-Cluster   
4

2 回答 2

1

选项1

get-cluster | select ID

它将列出所有带有标题的集群的 ID

选项 2

(get-cluster).ID

它将列出所有没有标头的集群的 ID

选项 3

get-cluster MyCluster | select ID

它将列出集群 MyCluster 的 ID 和标题

选项 4

(get-cluster MyCluster ).ID

它将列出没有标题的集群 MyCluster 的 ID

只需运行所有这些以了解区别

于 2016-04-01T14:12:29.323 回答
0

在 PowerCLI 中,也许是这个?不确定这是否是您要查找的 ID。

Get-Cluster | Select ID
于 2016-03-28T14:49:29.757 回答