Affinity rules and maintenance mode

I have a VM with a VM to Host mandatory "must" affinity rule that it must run on one and only one ESXi 5.5 server.
I go to try to put that ESXi host in maintenance mode.
If I power the VM with the affinity rule off, but leave it registered to the same ESXi 5.5 host, will I then be able to put the ESXi host in maintenance mode?
Or do I actually have to move the powered off VM to another host and register it there for the ESXi host to be allowed to enter maintenance mode?
Thanks!

TheVMinator wrote:
If I power the VM with the affinity rule off, but leave it registered to the same ESXi 5.5 host, will I then be able to put the ESXi host in maintenance mode?
If VMs those are involved in "VM-HOst affinity must rule" are Powerd OFF, host will be allowed to put into maintenance mode. Host will be put into maintenance mode & powered OFF VMs involved in Rule will not be evacuated . However, Powered off and Powered ON VMs those are NOT involved in rule will be evacuated by DRS automatically. This is by design.

Similar Messages

  • "Cluster maintenance mode" script to keep cluster names in MM when nodes are placed in MM

    Hello All,
    Thanks in advance,
    is there any script to keep the cluster names in Maintenance Mode when nodes are placed in Maintenance Mode
    Best Regards...
    Nikhil GS  

    You can refer below link
    http://blogs.msdn.com/b/mariussutara/archive/2008/09/05/cluster-and-maintenance-mode.aspx
    Please remember, if you see a post that helped you please click "Vote As Helpful" and if it answered your question, please click "Mark As Answer"
    Mai Ali | My blog: Technical | Twitter:
    Mai Ali

  • Scheduling Operations Manager Maintenance mode?

    I'm trying to schedule Stephan Stranger's SCOM Maintenance mode script.  The issue is that I don't see a good way to pass the parameters the scripts
    is looking for via the Scheduled Task.
    Is there a good way to pass the scripts needed parameters like group name and maintenance mode duration?  Maybe I need to write a batch file and call the .ps1 and arguments from the .BAT - I've been playing with the .BAT for over an hour and can't that
    to work either.
    Currently when I create a scheduled task with these settings:
    Program/script:
    C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
    Add Aurguments (optional): 
    -noexit C:\Scripts\MaintMode\Start-SCOMMaintenanceModeForGroups.ps1 "TestingDSRGroup" -endtime 5 -reason "unplannedother" -comment "Testing DSR Group" -Verbose
    It seems to just run in the background with out popping up a powershell window and will eventually end with a (0x1) Last Run Result.
    Here is the syntax that works great from with in powershell with Stephan's script but I can't seem to work from a scheduled task:
    C:\Scripts\MaintMode\Start-SCOMMaintenanceModeForGroups.ps1 "Testing DSR Group" -endtime 5 -reason "unplannedother" -comment "Testing DSR Group" -Verbose
    Any assistance appreciated.

    Hi,
    An easy way around this is to use the -File parameter. Write up a quick oneliner that calls your script and save it as a .ps1 file. As soon as you have a working caller script, you can use -File C:\path\to\script.ps1 as the arguments and the scheduler will
    just run your script instead of trying to specify all of your parameters directly.
    Don't retire TechNet! -
    (Don't give up yet - 12,830+ strong and growing)
    Thanks Mike.  That did the trick.  I tried the -FILE argument previously with no luck, I should have mentioned that in my original post.  
    Once I created a .PS1 with the arguments I needed and then called that with the scheduled task it went off with out a hitch.  Thanks a milion.  I never would have thought of that.

  • SCCM 2012 Software Update Management for Windows Servers and how to automatic set SCOM maintenance mode?

    Hi,
    We planning to go one level higher to automat and have more dynamic Software Update Management for Windows Servers. We have SCCM 2012 R2, SCOM 2012 R2 and SCO 2012 R2.
    Our plan is to pur server in an AD-Group to get Update Schedule, from the servers will be importet to an Collection for Automatic Update and reboot. If I understand Everything right SCOM can't read AD-Group and put then in an Schedule maintenance mode. SCOM
    can read reg value as exempel.
    IS there any smar way to make the SCOM Maintenance Mode Schedule dynamic?
    I found this
    http://www.scom2k7.com/scom-2012-maintenance-mode-scheduler/?
    /SaiTech

    You could use Orchestrator to put the servers from a specific collection, or AD group, in maintenance mode in SCOM. For an example see:
    http://www.systemcentercentral.com/orchestrator-how-to-scom-maintenance-mode-for-windows-computers-in-an-sccm-collection/
    My Blog: http://www.petervanderwoude.nl/
    Follow me on twitter: pvanderwoude

  • SCOM 2012 - Use Powershell to put specific server and contained objects into Maintenance Mode

    I am still trying to develop what I thought was going to be an easy script, to put a specific server and all it's contained objects into maintenance mode in SCOM 2012.   Not a group, but just one specific server and all it's stuff.
    My script to START maintenance mode has two parameters:
    1.  The FQDN.  So for example: server1.contoso.com
    2.  The amount of minutes to put into maintenance mode
    Then it does the following to START maintenance mode:
    Import-Module OperationsManager
    $Instance = Get-SCOMClassInstance -Name $FQDN
    If ($Instance)
    $newEnd = ((Get-Date).AddMinutes($minutes))
    Start-SCOMMaintenanceMode -Instance $Instance -end $newEnd -Reason "PlannedOther" -Comment "Comments here"
    This seems to work from what I can tell.  I know that when you schedule maintenance mode manually in SCOM, there is an option to apply to "Selected objects and all their contained objects".  I do not know if that is occurring based on
    my code above.   But I think that is what I want to happen.   I just want all monitoring and alerting for the specified server to stop.   So if you think I need to change the above code so that it gets all the "contained
    objects" please let me know.
    The second part, which I know for a fact isn't fully working, is intended to stop maintenance mode for a server.
    My script to STOP maintenance mode has only one parameter:
    1.  The FQDN.  So for example: server1.contoso.com
    Then it does the following to STOP maintenance mode:
    Import-Module OperationsManager
    $Instance = Get-SCOMClassInstance -Name $FQDN
    If ($Instance)
    $MMEntry = Get-SCOMMaintenanceMode -Instance $Instance
    If ($MMentry)
    #basically sends an end time of 1 minute from when the script is run
    $newEnd = ((Get-Date).AddMinutes(1))
    Set-SCOMMaintenanceMode -MaintenanceModeEntry $MMEntry -EndTime $NewEnd -Comment "Removing from Maintenance Mode"
    This part does seem to work partially.   It does remove the server from maintenance mode.  However, I suspect that it's not removing all the "contained objects" from maintenance mode because when I run the script to stop maintenance
    mode on a server, the little maintenance mode icon in SCOM does go away but the overall light for the server stays set to "Not Monitored".   It never turns back to the green checkbox and says "Healthy".   When I start
    and stop maintenance mode manually I can see that the green Healthy checkbox comes back.  But when I try to run my above code to do it via script, it stays at "Not Monitored" instead.
    Can someone help me out here?  Looking for answers to two questions:
    1.  Does my Start maintenance mode code look ok? Will that put a server and all it's contained objects into maintenance mode?
    2.  What do I need to hadd to my Stop maintenance mode code, so that it correctly stops maintenance mode on the server and all its objects and everything starts to be monitored again?
    Thanks in advance!  Please let me know if you need any more information in order to be able to help me!

    Hello, thanks for your response.  Unfortunately, it does not appear that the link you provided works.
    As far as not including "selected objects and all their contained objects" I am wondering if there is a way for me to tell for sure. One thing I found was that if I run this script and put the server into maintenance mode, then I go into
    SCOM and click on Edit Maintenance Mode for that server, it shows me the details.   It has some comment, and my selected reason, based on the code I posted above.   It also DOES have "selected objects and all their contained objects"
    selected at top.  So it seems to me like it is working correctly, and does contain all the objects.   If you think that 'Edit' screen would be inaccurate for some reason, please let me know.  Or if you know of a way for me to check and
    confirm, please let me know that as well.
    As for REMOVING it from maintenance mode, I did eventually find a line of code that I think works.  Here's what my code looks like now:
    Import-Module OperationsManager
    $Instance = Get-SCOMClassInstance -Name $FQDN
    If ($Instance)
    $MMEntry = Get-SCOMMaintenanceMode -Instance $Instance If ($MMentry)
    $Instance.StopMaintenanceMode([DateTime]::Now.ToUniversalTime(),[Microsoft.EnterpriseManagement.Common.TraversalDepth]::Recursive);
    When I use the above code to STOP maintenance mode, the green checkmark does reappear for the server, and everything seems to be being monitored again.   Unlike before, where the maintenance mode icon would go away, but it would never change back
    to saying 'Monitored' again.  So I think that changing that one line to stop maintenance mode seems to have done the trick.
    So I guess my last concern now is just putting in maintenance mode initially, as I was talking about above.  If you still think the 'Edit Maintenance Mode' screen is not a good indicator of what my code does, please let me know.

  • Optimize Hosts and Start Maintenance Mode Not working with warning (23756)

    I have  a new 2012 Hyper-V3 cluster, with SCVMM 2012 SP1.
    Putting a Server into maintenance mode used to work, it would live migrate all the virtual servers off the host and pause in the cluster.
    Also the new Optimise Host Feature also used to work.
    Now all I get is this :-
    Warning (23756)
    Changes have been made which should be verified by running placement again.
    Recommended Action
    Use the Refresh Preview action to run placement again.
    you can manually live migrate all the VM's of the host then put it into maintenance mode and all works fine !.
    I do not understand what this "use the Refresh Preview Action" is. I cannot find any reference to this anywhere.
    hope someone can help
    many thanks
    Mark Green

    Hi Mark
    Firstly, the error text for this event is wrong, which is why it has a confusing recommended action. This error indicates that while planning an evacuation, something unexpected occurred when reading the underlying hosts and VMs.  It may be something
    transient, in which case you can attempt to manually the VMs off the host, and then see if this error resolves itself.
    If there is something more fundamentally wrong, you can find what the underlying error is by collecting traces. Search the traces for the error text, and you should see the underlying problem embedded in the trace right next to this error.
    Details of how to collect traces: http://blogs.technet.com/b/chengw/archive/2008/05/08/how-to-collect-scvmm.traces.aspx
    Apologies, this error is very confusing and does indicate an unanticipated problem in our product. We are working to improve this experience in future versions.
    I hope this helps!
    Cheers, Hilton

  • CSCul17511 - Maintenance mode broken on Web and40;6.3 and 7.x

    We upgraded an MX200 yesterday to 7.0.1.  As soon as the Cico Touch was used the device immediately went back into maintenance mode.  Therefore it appears that this issue has not been corrected in 7.0.0

    It may be best to open a TAC case at this point.  This may be a new, unrelated issue.

  • Maintenance Mode Questions

    Hi All,
    I have SCOM 2012 SP1 CU5 and have few questions on Maintenance Mode (MM).
    1) I put my 800 agents in MM for 300 minutes and they get into "Not Monitored" state. When I pull all these 800 agents out of MM together they remain in "Not Monitored" state for about 2 to 3 hours. They get into healthy state slowly
    during these 3 hours. Is this expected? Shouldn't they all get healthy quickly? Is the number of agents slows the process and so they take time to get into Healthy State?
    2) When I pull my agents out of MM and after they get healthy, I get flood of alerts for them like Health service heartbeat failure, failed to connect to computer., low free disk space, etc. Why is this so  as they were in MM and not healthy?
    3) When the servers come out of MM, will all the workflows (rules and monitors) run again and generate alerts? even if their alerts (previously created) are already Active in SCOM ?
    4) While rebooting the SCOM servers during maintenance activity, what should be the sequence among Management Servers, DB server, DW Server, Reporting Server, Gateway Servers, Web console servers ?
    Thanks, S K Agrawal

    1) For agent "not monitor" after MM, Try to restarting the System Center Management Health service on the agent-managed computer
    2) For What to do for a not monitored state, you can refer below link
    http://technet.microsoft.com/en-us/library/hh212723.aspx
    3) Yes, after server come out from maintenance mode, it will generate alerts and work normal.
    4) Sequence will be DB server, DW Server, Management server, Reporting server, Gateway server, web console Server.
    Also you can refer below link for more info.
    http://support.microsoft.com/kb/2704170/en-us
    http://support.microsoft.com/kb/942866/en-us
    Please remember, if you see a post that helped you please click "Vote As Helpful" and if it answered your question, please click "Mark As Answer"
    Mai Ali | My blog: Technical | Twitter:
    Mai Ali

  • Maintenance Mode

    Okay so I tested the page in IE and it seems to work fine, but when I view it in Chrome I get told the page had too many redirects and nothing loads, I have not tried it in Firefox.
    So if you try going to http://mckennastudios.com it should bring you to a maintenance.html page.
    Here is what I added to my .htaccess file:
    Options +FollowSymlinks
    RewriteEngine on
    RewriteCond %{REQUEST_URI} !/maintenance.html$
    RewriteRule $ /maintenance.html [R=302,L]
    If there's a better way that's just as easy to enable/disable maintenance mode for a website please let me know.

    Sorry to bump in. But, a 301 redirect would've worked for you - but is very bad practice. You've clearly mentioned you're redirecting users to this page only for 'maintenance'. 301 is used for a 'permanent redirect' - meaning your search engine indexes will go for a toss. Read this: http://support.google.com/webmasters/bin/answer.py?hl=en&answer=93633
    307 (temporary redirect) is the right way to do it as it tells the client to remember this redirect is only temporary and prompts the client to visit the requested URL the next time - meaning the 2nd time your user enters the 'root' or 'request URL' of your domain name, the client will not be redirected to /maintenance.html, but will look for /index.html or the originally requested URL.
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_URI} !^/maintenance\.html$
    RewriteRule ^(.*)$ http://mckennastudios.com/maintenance.html [R=307,L]
    Your original code should work. Where in .htaccess did you put this code? Do you have other lines in .htaccess file? Maybe a possible conflict of rules?
    -ST

  • Found all the Servers that were restart without the maintenance mode were actived ?

    Hi all
    I was wondering if I can find a query about this request:
    - Found all the Servers that were restart without the maintenance mode were actived ?
    It's to make a Report To include in Reporting Services.
    sorry for my English :)
    Thank you very much and have a good day

    Hi, first if the maintenance mode is activated no events are collected, then, as example, in default rules you can see the following
    Collection Rule for Windows Restarted Events that collects eventid=6005
    with eventsourcename=eventlog from System
    log which is enabled by default.
    http://www.microsoft.com/technet/support/ee/transform.aspx?ProdName=Windows+Operating+System&ProdVer=5.2&EvtID=6005&EvtSrc=EventLog&LCID=1033
    So you can check Data warehouse DB for presence such event
    select ComputerName, DateTime from Event.vEvent ev
    inner join Event.vEventDetail evd on ev.eventoriginid = evd.eventoriginid
    inner join Event.vEventParameter evp on ev.eventoriginid = evp.eventoriginid
    inner join vEventLoggingComputer elc on elc.eventloggingcomputerrowid = ev.loggingcomputerrowid
    where eventdisplaynumber = '6005' Order by ComputerName, Datetime
    http://blogs.technet.com/b/kevinholman/archive/2007/10/18/useful-operations-manager-2007-sql-queries.aspx
    So if you see this event it means the server was restarted and the maintenance mode was not activated.
    Also keep in mind that there can be other event ids when computer is restarted, as example see the rule
    Collection Rule for Windows Restart Events (restarted from bugcheck)

  • Jabber 10.5 for Windows + App Dial Rules + Phone Control Mode

    I am using all 10.5. 
    I have Jabber for Windows integrated with Outlook.  I have Application Dial Rules set up to handle converting numbers to what I need by stripping, adding 9s, adding 1s, etc.  It all works great when I'm using Jabber as a soft phone. 
    My problem is that almost nobody in the company has a PC camera/mic/speakers.  So all of the Jabber clients will be in phone control mode.  Because the call originates from the phone and not from an application, the Application Dial Rules get bypassed.  I understand why this is happening but I'm hoping there is a way around it.  Is there some setting that tells CUCM to notice that there was a CTI call to the phone from an application requesting that it make the call or something like that where CUCM realizes that the request "initially" came from a Jabber client?
    OR is there some way for me to put in route patterns similar to the App Dial Rules but specify that those patterns are only available when the number is sent enblock so they don't mess with regular dialing? 

    Why dont you apply called party transformation rules and modify the called number as per your need.

  • Looking for a Powershell Script which can put the scom servers in maintenance mode

    Looking for a Powershell Script which can put the scom servers in maintenance mode so that SCOM should not send an alert during planned task.
    Rahul

    1. Provide list of servers line-by-line in C:\ServerList.txt, make sure you provide limited no. of servers, do not exceed 20 - 25 per batch
    2. Save the script with suitable name (test.ps1)
    3. Open PowerShell cmd prompt
    4. Script accepts 3 params - TimeInMinutes, Reason and Comment
    **** Please note, this script will work for SCOM 2012 R2
    param([int32]$TimeMin, [string]$Reason, [string]$Comment)
    try
    $api = new-object -comObject 'MOM.ScriptAPI'
    Import-Module operationsmanager
    New-SCOMManagementGroupConnection
    $Servers = Get-Content "C:\ServerList.txt"
    $Time = (Get-Date).Addminutes($TimeMin)
    Foreach ($Server in $Servers)
    #Get Computer instance
    $ComputerClass = Get-SCOMClass -Name Microsoft.Windows.Computer
    $ComputerClassInstance = Get-SCOMClassInstance  -Class $ComputerClass | Where {$_.DisplayName -eq $Server}
    If ($ComputerClassInstance -ne $Null)
    $HealthServiceWatcherClass = Get-SCOMClass -name:Microsoft.SystemCenter.HealthServiceWatcher
    #Get Health Service Watcher Class instance of the server
    $HSWClass = Get-SCOMClass -Name Microsoft.SystemCenter.HealthServiceWatcher
    $HSWClassIns = Get-SCOMClassInstance  -Class $HSWClass | Where {$_.DisplayName -eq $Server}
    #Starting the maintenance mode
    Start-SCOMMaintenanceMode -Instance $HSWClassIns -EndTime $Time -Reason $Reason -Comment $Comment
    Start-SCOMMaintenanceMode -Instance $ComputerClassInstance -EndTime $Time  -Reason $Reason -Comment $Comment
    Write-Host "Health Service Watcher and Agent server "$Server " kept in maintenance mode"  -foregroundcolor "green"
    $api.LogScriptEvent('MaintenanceModeScript.ps1', 200, 0, "$Server kept in maintenance mode for $TimeMin minutes")
    Else
    Write-Host $Server" not found " -foregroundcolor "red"
    $api.LogScriptEvent('MaintenanceModeScript.ps1', 201, 1, "$Server could not be found in domain")
    Catch [system.exception]
    $api.LogScriptEvent('MaintenanceModeScript.ps1', 201, 1, $_.Exception.Message)
    Faizan

  • 5508-HA standby in Maintenance mode

    My standby controller is in maintenance mode. Other post say to simply reboot the standby but I'm worried about doing this during business hours. Say I did reboot it during business hours, would it affect the active controller? All redundancy links are connected.
    (Cisco Controller) >show redundancy sum
     Redundancy Mode = SSO ENABLED
         Local State = MAINTENANCE
          Peer State = UNKNOWN - Communication Down
                Unit = Secondary - HA SKU
             Unit ID = 00:06:F6:DC:17:00
    Redundancy State = Non Redundant
        Mobility MAC = 68:EF:BD:8E:61:E0
    Maintenance Mode = Enabled
    Maintenance cause= Negotiation Timeout

    No it won't affect the active controller:
    While booting, the WLCs will negotiate the HA role as per the configuration done. Once the role is determined, the configuration is synced from the Active WLC to the Standby WLC via the Redundant Port. Initially WLC is configured, as Secondary will report XML mismatch and will download the configuration from Active and reboot again. During the next reboot after role determination, it will validate the configuration again, report no XML mismatch, and process further in order to establish itself as the Standby WLC
    http://www.cisco.com/c/en/us/td/docs/wireless/controller/technotes/7-5/High_Availability_DG.pdf
    https://supportforums.cisco.com/discussion/11758901/ask-expert-high-availability-wireless-lan-controller-wlc

  • Warning: The system has not been taken off maintenance mode completely

    After I enabled Maintenance mode using adadmin, I ran Compile Flexfields. Then I disabled Maintenance mode. But, on the 11i login page, I keep getting a warning message:
    Warning
    The system has not been taken off maintenance mode completely. Please contact your System Administrator.
    I am sure I disabled the Maintenance mode in adadmin. Why I still get the warning? How to fix it? Thanks a lot.

    Thanks a lot. That is the fix.
    One more question. After I ran "Compile Flexfields", I got
    Number of successful descriptive flex compilations : 7520
    Number of failed descriptive flex compilations : 1
    How can I find the failed description flex? The log does not give info on this. And, how to fix it?
    Thanks a lot for your help.

  • Unable to open the PM order in change and display mode

    Dear All,
    Am facing some issue that am unable to open the Maintenance Order in Change and Display mode.
    Can you provide the solution.

    Hi Thirupathi,
    Can you send us a screenshot or the error message information ?
    If it is due to status missing (SAP note available for the same)
    Regards
    Terence

Maybe you are looking for