Products
Applications
Support
Company
How To Buy
Skip to main content (Press Enter).
Sign in
Skip auxiliary navigation (Press Enter).
Register
Skip main navigation (Press Enter).
Toggle navigation
Home
Communities
All Communities
Enterprise Software
Mainframe Software
Symantec Enterprise
VMware {code}
Blogs
All Blogs
Enterprise Software
Mainframe Software
Symantec Enterprise
Events
VMware Explore Las Vegas 2025
All Events
Enterprise Software
Mainframe Software
Symantec Enterprise
Water Cooler
Betas
Flings
Education
Groups
Enterprise Software
Mainframe Software
Symantec Enterprise
Members
Sample Exchange
View Only
Community Home
Threads
58
Library
2K
Blogs
0
Events
0
Members
470
Back to Library
How to get DRS Rules associated with each VM in the DRS cluster
0
Recommend
Dec 06, 2015 01:17 PM
Vikas Shitole
//:: # Author: Vikas Shitoleff//:: # Author: Vikas Shitole
//:: # Website: www.vThinkBeyondVM.com
//:: # Product/Feature: vCenter Server/DRS
//:: # Description: Script to find all the rules associated with all the VMs in the DRS cluster
//::# Reference: http://vthinkbeyondvm.com/how-to-get-all-drs-rules-associated-with-each-vm-in-a-drs-cluster-using-api-interesting-api-in-vsphere-6-0/
//:# How to run this sample: http://vthinkbeyondvm.com/getting-started-with-yavi-java-opensource-java-sdk-for-vmware-vsphere-step-by-step-guide-for-beginners/
//:: # Author: Vikas Shitole
//:: # Product/Feature: vCenter Server/DRS
//:: # Description: Script to find all the rules associated with all the VMs in the DRS cluster
//::# Reference: http://vthinkbeyondvm.com/how-to-get-all-drs-rules-associated-with-each-vm-in-a-drs-cluster-using-api-interesting-api-in-vsphere-6-0/
//:# How to run this sample: http://vthinkbeyondvm.com/getting-started-with-yavi-java-opensource-java-sdk-for-vmware-vsphere-step-by-step-guide-for-beginners/
//:: # Website: www.vThinkBeyondVM.com
//:: # Product/Feature: vCenter Server/DRS
//:: # Description: Script to find all the rules associated with all the VMs in the DRS cluster
//::# Reference: http://vthinkbeyondvm.com/how-to-get-all-drs-rules-associated-with-each-vm-in-a-drs-cluster-using-api-interesting-api-in-vsphere-6-0/
//:# How to run this sample: http://vthinkbeyondvm.com/getting-started-with-yavi-java-opensource-java-sdk-for-vmware-vsphere-step-by-step-guide-for-beginners/
#MIT
#vSpherejavasdk
#vThinkBeyondVM.com
#vSphereManagementSDK
#drs
#Java
Statistics
0 Favorited
0 Views
1 Files
0 Shares
1 Downloads
Attachment(s)
FindRulesForVMsInCluster.java
2 KB
1 version
Uploaded - Apr 09, 2024
Download
Download Document
Please accept the terms of the copyright associated with this attachment before downloading it. Click the link below to read the terms.
Accept
Tags and Keywords
Comments
Vikas Shitole
Jul 16, 2016 10:39 AM
Hi Bro, findRulesForVM() method is available only on vSphere 6.0 (not on any release prior to 6.0), hence above sample may not work for you. There is a way to achieve the same on SDK 5 as well but it is little tricky. I will come back with another sample and share with you.
jairojunoth
Apr 14, 2016 11:24 PM
Hey Bro, How can I get the rules with SDK 5? the method findRulesForVM() in the class VimPortType has 2 parameters... I'm new on all this thing
Related Entries and Links
No Related Resource entered.
Copyright 2024. All rights reserved.
Powered by Higher Logic