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
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.
<ManagementPack ContentReadable=“true“ xmlns:xsd=“http://www.w3.org/2001/XMLSchema“ xmlns:xsl=“http://www.w3.org/1999/XSL/Transform“>