Integrating VMM and OpsMgr Maintenance Mode
Published Feb 14 2019 09:25 PM 360 Views
First published on TECHNET on Jun 08, 2009

As part of VMM 2008 R2 we have added a new feature called maintenance mode.  This feature enables users to easily evacuate the VMs from a host in order to perform host maintenance (for more information on VMM's maintenance mode check out Cheng's blog post here ).  Since the introduction of this feature we have gotten several questions/comments about integrating this new VMM feature with maintenance mode in System Center Operations Manager.   Well check out the attached MP.  This MP will monitor the VMM server and track when hosts are put into maintenance mode and then call into Operations Manager and put the respective host object into maintenance mode and vice versa, watch for hosts being removed from maintenance mode in VMM and then taking the respective host object in OpsMgr out of maintenance mode.





For those of you familiar with management packs, you can see with a pretty simple and straight forward MP you can easily tie together the states of your hosts.  While the MP has not been extensively tested it should give you a good idea on how to accomplish the task at hand.





Hope you find this helpful





Alan Goodman



Senior Program Manager



System Center Virtual Machine Manager

Installation Note: This management pack is intended for use with Operations Manager 2007 or Operations Manager 2007 R2 with Virtual Machine Manager 2008 R2, and requires at least the beta version or later or the VMM 2008 R2 management pack.  Copy the text in the box below into a text file and save it as MaintenanceModeSample.xml and import it into OpsMgr .

Management Pack:

<ManagementPack ContentReadable="true" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<Manifest>

<Identity>

<ID>MaintenanceModeSample</ID>

<Version>1.0.0.18</Version>

</Identity>

<Name>MaintenanceMode.Sample</Name>

<References>

<Reference Alias="SCDW">

<ID>Microsoft.SystemCenter.DataWarehouse.Library</ID>

<Version>6.1.7043.0</Version>

<PublicKeyToken>31bf3856ad364e35</PublicKeyToken>

</Reference>

<Reference Alias="SystemCenter">

<ID>Microsoft.SystemCenter.Library</ID>

<Version>6.1.7043.0</Version>

<PublicKeyToken>31bf3856ad364e35</PublicKeyToken>

</Reference>

<Reference Alias="VMM">

<ID>Microsoft.SystemCenter.VirtualMachineManager.2008.R2</ID>

<Version>2.0.4056.0</Version>

<PublicKeyToken>31bf3856ad364e35</PublicKeyToken>

</Reference>

<Reference Alias="WL">

<ID>Microsoft.Windows.Library</ID>

<Version>6.1.7043.0</Version>

<PublicKeyToken>

Version history
Last update:
‎Mar 11 2019 08:12 AM
Updated by: