VMware Cloud Community
pspacek
Contributor
Contributor
Jump to solution

DRS vMotion Threshold

I am attempting to write a powercli script that will return the current set value of the DRS migration threshold.

I will use this value to validate against a configuration baseline document.

I have found scripts to change the threshold slider, but I just want to return the current threshold (ie: level 1, Level 2...) not change it.

Any help would be great

Thanks

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
jburen
Expert
Expert
Jump to solution

(get-cluster | get-view).configuration.drsconfig.vmotionrate

If I remember correctly the rate starts with 1 as the most aggressive (so the slider to the far right)

---------------------------------------------------------------------------------------------------------

Was it helpful? Let us know by completing this short survey here.

Consider giving Kudos if you think my response helped you in any way.

View solution in original post

0 Kudos
2 Replies
jburen
Expert
Expert
Jump to solution

(get-cluster | get-view).configuration.drsconfig.vmotionrate

If I remember correctly the rate starts with 1 as the most aggressive (so the slider to the far right)

---------------------------------------------------------------------------------------------------------

Was it helpful? Let us know by completing this short survey here.

Consider giving Kudos if you think my response helped you in any way.
0 Kudos
NathanosBlightc
Commander
Commander
Jump to solution

Please look at the following link. I Think it can help you to write an useful powercli script to for purpose:

https://vmscribble.com/powercli/change-drs-migration-threshold-script/

Please mark my comment as the Correct Answer if this solution resolved your problem
0 Kudos