How to set the rule of affinity of vm-to-host using PowerCLI 5.1

Hi all

I want to set the affinity of the vm-to-host using CLI power.

Can what cmdlet I use?

I use power 5.1 Rease1 CLI.

Thank you

You can disable a rule of VM-to-Host like this

$rulename = "Rulename" $cluster = Get-Cluster MyCluster$esx = Get-VMHost -Location $cluster $rule = Get-DrsRule -Cluster $cluster -VMHost $esx | where {$_.Name -eq $rulename}

$spec = New-Object VMware.Vim.ClusterConfigSpec
$ruleSpec = New-Object VMware.Vim.ClusterRuleSpec $ruleSpec.Info = $rule.ExtensionData$ruleSpec.Info.Enabled = $false$ruleSpec.Operation = "edit"

$spec.rulesSpec += $ruleSpec
$cluster.ExtensionData.ReconfigureCluster($spec,$true)

Tags: VMware

Similar Questions

  • How to set the rules of campaign for SFDC response

    Hello

    using E10, could someone explain what to do the last two columns in the default rules for campaign response

    average dialog when you use SFDC your CRM Sales?

    If I check the box "Salesforce replied" example for both outgoing emails sent AND response form submit,.

    What is the implication of this? Is there an involvement with Eloqua, SFDC, or both? What happens if I leave the box unchecked?

    And activity which answer should I check the radio 'Salesforce default' button?

    topliner_def_camp_ruleQ.png

    Couldn't really find any explanation to this form of documentation available...

    WBR,

    -tatu

    In fact, I found a bit of an answer to my own question of the SFDC UI, where you camodest the associated campaign of the advanced settings.

    He said

    On this page, set up the governing statutes of campaign members of campaign who has responded or not to trace:

    • Enter the articles desired as "Participant" or "sent".
    • Set a default value for the list of choices.
    • For the statuses you want to count in the field of responses #, mark responded. Warning: Edit this box has broad effects. When you change, these fields Member change accordingly: responded, last Date answered and dern.

    So I quess the Salesforce replied box the picture is exactly the same as in the INTERFACE of SF. The same applies by default.

    Detective Conan!

  • How to set the condition of rule to check the Primary Key, Foreign Key and Unique

    I use Oracle 10.2
    Could someone tell me please how to set the rule condition to check the primary key, foreign key constraint of uniqueness?

    Hello

    Primary key, unique constraints and foreign key are better applied using the native functionality of database constraint. If you like the rules to check if a key exists at the time of the evaluation, you can use a function defined by the user in a rule condition and this function can ask to turn the table keys.

    Hope this helps,
    -Aravind.

  • How to set the focus to textfield

    Hello everyone.

    Need advice on how to set the focus to textfield. I tried t use setfocus, however does not

    Thank you!

    textField.requestFocus ();

  • Microsoft Paint - how to change the rule in inches and centimeters

    How to change the rule in inches, centimeters, etc.. ?

    While in the paint, select the arrow down in the blue box in the upper left of the window.

    Select Properties

    Set the unit of inches, etc.

  • How to define the rules of navigation in faces - config.xml dynamically?

    In jdev 12.1.2 I am studying and performing the adf faces demo (12.1.2 version).

    I am trying to implement the function of navigation like this:

    1. in the navigation tree in the left panel of the accordion will show the features of an application which is read from database tables;

    2. When you click on a node in the navigation tree, a corresponding function/page will be launched in the Panel to the right of the home page;

    3. the navigation tree nodes display names and information pages target will be resident in the database tables and will be read in my case, the control of data bindings.

    and now I know, the click action was executed in this file in the demo: componentGallerySideBarTree.jsff:

    ->action = "#{stamp.actionOutcome}"

    < af:tree id = "tree" value = "#{attrs.menuModel}" var = "stamp" = "single" rowSelection fetchSize = "200" "

    Summary = "#{uploading." Summary}"disclosedRowKeys =" #{attrs.menuModel.foldersTreeState} "autoHeightRows = '0'"

    displayRow selectedRowKeys = "#{attrs.menuModel.selectionState}" = "selected" "

    contentDelivery = 'immediate' emptyText = "there are no demos for this category.

    styleClass = "AFStretchWidth" >

    < f: facet name = "nodeStamp" >

    < af:panelGroupLayout id = "nodePgl" >

    < af:image source = "#{stamp.ico}" styleClass = "GalleryIcon" shortDesc = "Image of a tree node" "

    ID = "nodeImg" / >

    < af:switcher facetName = "#{stamp.children == null?' leaves ': 'notLeaf'}" id = "nodeSw" > "

    < f: facet = "journal batch name" >

    < af:link id = text = "#{stamp.label"leafLink"} '"

    shortDesc = "#{stamp.label} #{stamp.deprecated eq 'real'?" (not recommended) " :"} »

    action = "#{stamp.actionOutcome}"

    inlineStyle = "#{stamp.deprecated eq 'true'?-style: italic; color: gray':"} ' "

    selected = "true" >

    < af:target execute="@this"/ >

    < / af:link >

    < / f: facet >

    < f: facet name = "notLeaf" >

    < af:outputText id = value = "#{stamp.label"notLeafText"} ' shortDesc =" #{stamp.label} "/ >"

    < / f: facet >

    < / af:switcher >

    < / af:panelGroupLayout >

    < / f: facet >

    < / af:tree >

    and the value of actionOutcome was entered in this file DemoConfusedComponentsMenuModel.java:

    (for the case of the confused component navagation tree folder)

    private TreeModel _initConfusedComponents()

    {

    Confused components

    The list < DemoItemNode > confusedComponentsNodes = new ArrayList < DemoItemNode >)

    {

    {

    ..

    Add (new DemoItemNode ("Tabs", "/ confusedComponents/tabs.jspx","/adfdt/panelTabbed.png","confused.tabs"));

    Add (new DemoItemNode ("iterators","/ confusedComponents/iterators.jspx","/adfdt/iterator.png","confused.iterators" ""));

    }

    };

    DemoItemNode confusedComponentsGroup = new DemoItemNode ("Often confused", "/ images/folder.png", confusedComponentsNodes);

    List ConfusedComponentsList = new ArrayList();
    confusedComponentsList.add (confusedComponentsGroup);

    TreeModel confusedComponents = new ChildPropertyTreeModel (confusedComponentsList, _CHILDREN);
    Return confusedComponents;
    }

    In addition, there are elements in faces-config .xml to define the rules of navigation for the actions 'by clicking on the tree node.

    <>navigation-case

    < from outcome >confused.iterators< / de-results >

    < to view - id > /confusedComponents/iterators.jspx< / to-view-id >

    <!-< redirect / >->

    < / navigation-case >

    So, I can add a new entry in the navigation tree, like this:

    1. in DemoConfusedComponentsMenuModel.javaof the file: Add

    Add (new DemoItemNode ("Iterators", "/confusedComponents/cms.jspx","/ adfdt/iterator.png","confused.cms" ""));

    2. in the file faces - config.xml, add:

    <>navigation-case

    < from outcome >confused.cms< / de-results >

    < to view - id > /confusedComponents/cms.jspx< / to-view-id >

    <!-< redirect / >->

    < / navigation-case >

    and it works!- I have successfully added a new node in the navigation tree, called a new page created by myself cms.jspx.

    If I implement them using database tables (links datacontrols EO/VO),.

    I think I can put action = "#{stamp.actionOutcome}" by links.

    But how can I pay the entry in the faces-config file. XML? -That is to say:

    How to define the rules of navigation in faces - config.xml dynamically?

    Thanks in advance!

    ADF 12 c comes with support for JSF 2.0, you can use the implicit navigation feature.

    In short: you don't need to add case action property, any set of navigation in the name of the page (and include the path if necessary).

    In your case, the name of the action will be: ' / confusedComponents/cms.jspx ' and of course, you can link the action property of method that returns this string.

    If you want to add by the case of navigation program, try ConfigurableNavigationHandler.

    For example:

    Manager of ConfigurableNavigationHandler = (ConfigurableNavigationHandler) FacesContext.getCurrentInstance () .getApplication () .getNavigationHandler ();

    handler.getNavigationCases () .put (...);

    Dario

  • How to set the font size of the title to different screens in fluid layout?

    Build a fluid layout (Responsive Web design), and could I please know how to set the font size of title (h1, h2, h3 etc.) and other mobile police, tab size and wallpapers?

    I use no px values.  I generally use the % font size in the selector body inside my queries.  Adjust the dimensions accordingly.

    / Special rules for mobile phones. */

    @media only screen and (max-width: 481px) {}

    Body {size are: 85 %}}

    }

    / Special rules for tablets * /.

    @media only screen and (min-width: 482px) {}

    Body {make-size: 100% ;}}

    }

    / * Special rules that apply to workstations * /.

    @media only screen and (min-width: 1050px) {}

    Body {make-size: 135% ;}}

    }

    Nancy O.

  • How to set the number of e-mail messages that are stored on my iPhone

    How to set the number of e-mail messages that are stored on my iPhone – so when I don't have a network connection I can see a 'large' number of messages in my Inbox etc.

    This is series is not defined in the world

    You must go to settings-> mail, contacts, and calendars and check the settings of your e-mail provider offers in this area

  • How to set the time that my screen stays on?

    How to set the time that my screen lights up.  I have an iPod Touch 6?

    Settings > general > auto-lock

  • How to set the default android home page.

    How to set the home page in the latest browser of firefox for android?

    Hello:

    Unfortunately you can not remove the top sites home page but you can pin a site, remove a site from unpin it and change the url of a pinned site.

    Please read this article for instructions.

    I hope this helps!

  • How to set the time between slides in a slideshow (iPhoto, el capitan)

    How to set the time to say - 5 seconds or 20 seconds - between slide show photos in iPhoto. I use el capitan.

    See the Settings button at the bottom right of the toolbar (at the bottom of the slide show). Click on it and you have a small window with two tabes, refers to all the slides, the other to the selected slide. You can make your choice

  • Satellite C660 - how to set the focus of the webcam?

    Hello

    Just bought this laptop, the built-in webcam looks very blurry when I use Skype. Does anyone know how to set the focus to the subject?

    See you soon
    Jules

    Hello

    to be honest, I have no idea on your model of lap... Try to update driver webcamd and play with Skype video settings.

  • How to set the date and time on my HP Officejet pro 8600 more?

    How to set the date and time on my HP officejet pro 8600 more?  It just on a printed journal Jan-oo-oo fax shows 00:00 AM.  There are no instructions on how to change this.  I need proof that I sent a fax to a certain date and time.  Help, please.  Thank you

    Hello

    Below are the steps to set the Date and time for your device:

    1. On the Control Panel, press the right arrow key ( ), press Setup ( ).

  • How to set the output meter channel to generate a signal pulse using DAQ6008

    Hello there I am generating a pulse signal of 100 Hz and a duty of 20% of the 6008 data acquisition cycle using visual studio 2013. I have code that needs to generate this but I'm not sure on how to set the channel output meter. When I run this NI MMAX and my vb error code indicates that the physical channel is not supported. I am a user of data acquisition were first and would appreciate any help offered.

    If you look at the USB-6008/6009 User Guide and specifications, you will see that the counter in these devices cannot rely as edges of entry. It cannot generate a pulse.

    Lynn

  • How to set the position and size of the façade using the FPRunTimePosRunCustom method in a c# application?

    How to set the position and size of the façade using the FPRunTimePosRunCustom method in a c# application?

    I found a solution! -Set the size and position of the façade with the help of the

    File > VI properties > window running Position (in category list) > custom (in position of menu drop-down).

    then just accept the current position and size (leave the boxes checked) or set values you want directly (uncheck the boxes and fill in the numbers), or physically position and size the façade and use, the "set to current location" button and press "set size" current All that is easier for you.

    OK so it does not make use of the method VI Methods (Active X) FPRunTimePosRunCustom ([Position], [Size]) but if labview want to make him difficult to use then other means must be found.

Maybe you are looking for

  • Need some guide to the Qosmio F50-108

    Hello I was wondering if I can get a guide how on my qosmio F50-108... my fan makes a big noise really.I want to check what is going on... my warranty has expired 4 months ago... So can I get a guide please?

  • at the level of the ILO AND by comparison

    Hello I discovered one - I think - strange behavior of my ICB 8.5.1 compiler and I wanted to ask your comments about it. Try this in the interactive execution window (it will result in a popup go as expected): #includepublic static unsigned short = 0

  • Cannot find the repair status. called 4 x 30 minutes notebook received 4 days ago pending. no update

    I sent my laptop brand new in Texas for a repair. Confirmation email said that received. I called 4 x and waiting up to 30 minutes before giving up. Online status says that received 4 days ago. I just want to know if and when it will ever be repaired

  • Restrict access of a user AD to a specific folder on the network

    I have a Windows 2008 R2 and Windows 7 users. I have a group in my ad called "Finance". I have a folder on the server C:\fileserver\department\finance\ All users in the group above are mapped to the C:\fileserver\department\finance\ In the C:\fileser

  • Notification after the connection

    HelloVersion of the apex 4.2 theme 21I use the notification plugin to display a welcome message on my Home Page 1 page.I only want to show this message once, directly after login. If they move away from the home pageand yet, it should not display.I t