VMware Cloud Community
cmjellis
Enthusiast
Enthusiast
Jump to solution

test cluster in powercli

Can the test cluster command in powercli adversely affect a VMware environment ?  Does it make changes to Hosts/Configuration ? I want to run Test cluster in VMware environment where it test configurations / parameters of VMware cluster but does not make changes to environment. Which test cluster commands are most commonly used?

1 Solution

Accepted Solutions
cmjellis
Enthusiast
Enthusiast
Jump to solution

Now I am confused I just ran get-cluster - this was my results - these variables are VMware variables

PowerCLI C:\> get-cluster

Name                           HAEnabled  HAFailover DrsEnabled DrsAutomationLevel
                                          Level
----                           ---------  ---------- ---------- ------------------
NCC 200 Cluster                True       1          False      FullyAutomated
CAL 200 Cluster                True       1          False      FullyAutomated
BRM 200 Cluster                True       1          False      FullyAutomated
DAR 200 Cluster                True       1          False      FullyAutomated
ALV 400 Cluster                True       1          True       PartiallyAutomated
ALV 800 Cluster                True       1          True       PartiallyAutomated
LNC 100 Cluster                True       1          True       Manual
LNC 700 Cluster                True       1          True       PartiallyAutomated

View solution in original post

13 Replies
LucD
Leadership
Leadership
Jump to solution

Are you referring to the the Test-VsanClusterHealth cmdlet?
Or a script/function from somewhere?


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
cmjellis
Enthusiast
Enthusiast
Jump to solution

The command is

PowerCLI C:\>     Test-Cluster

Does this command  restart nodes/ modifies configs ? I don't want values to be changed or nodes to be reconfigured by this cmdlet. (stepping cautiously)

I think the command is innocuous. any constructive advise appreciated !

0 Kudos
LucD
Leadership
Leadership
Jump to solution

That is a cmdlet from the FailoverClusters module.
That module is for MSFT MSCS clusters, not vSphere clusters I'm afraid.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
cmjellis
Enthusiast
Enthusiast
Jump to solution

Are you recommending

Test-VsanClusterHealth,  it is innocuous.?

0 Kudos
LucD
Leadership
Leadership
Jump to solution

No, that is definitely not doing the same thing as Test-Cluster is doing for FailoverClusters.

If you know what to test, you could write a script.

But there is no single cmdlet to test a vSphere cluster


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
cmjellis
Enthusiast
Enthusiast
Jump to solution

Is there a cmdlet to test high availability?

0 Kudos
LucD
Leadership
Leadership
Jump to solution

No, not that I know off.
What do you want to test in HA?
If you have an idea of what you want to test, you look for or write a script.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
cmjellis
Enthusiast
Enthusiast
Jump to solution

Now I am confused I just ran get-cluster - this was my results - these variables are VMware variables

PowerCLI C:\> get-cluster

Name                           HAEnabled  HAFailover DrsEnabled DrsAutomationLevel
                                          Level
----                           ---------  ---------- ---------- ------------------
NCC 200 Cluster                True       1          False      FullyAutomated
CAL 200 Cluster                True       1          False      FullyAutomated
BRM 200 Cluster                True       1          False      FullyAutomated
DAR 200 Cluster                True       1          False      FullyAutomated
ALV 400 Cluster                True       1          True       PartiallyAutomated
ALV 800 Cluster                True       1          True       PartiallyAutomated
LNC 100 Cluster                True       1          True       Manual
LNC 700 Cluster                True       1          True       PartiallyAutomated

cmjellis
Enthusiast
Enthusiast
Jump to solution

get-cluster is a VMware cmdlet

PowerCLI C:\> get-command get-cluster

CommandType     Name                                               Version    Source
-----------     ----                                               -------    ------
Cmdlet          Get-Cluster                                        5.5.0.0    VMware.VimAutomation.Core

0 Kudos
LucD
Leadership
Leadership
Jump to solution

That is correct, Get-Cluster is a PowerCLI cmdlet.
But you were talking about Test-Cluster


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
LucD
Leadership
Leadership
Jump to solution

Now I'm somewhat confused.


You start a thread on the Test-Cluster cmdlet, which I explained is not a PowerCLI cmdlet.

And then you mark your own answer about the PowerCLI Get-Cluster cmdlet as the Correct Answer.

What was the point of this thread?


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
cmjellis
Enthusiast
Enthusiast
Jump to solution

I confused the get-cluster with test-cluster thanks for your input

0 Kudos
jawadbutt
Contributor
Contributor
Jump to solution

Test-Cluster is a powershell command used for testing the Windows Failover Clusters.

Get-Cluster is PowerCLI command that lists the clusters in vCenter.

0 Kudos