次の方法で共有


OpsMgr 2007: Converted MP sometimes may break console connectivity

Recently i had seen this happening a lot with the converted MP,where someone would import the converted MP and the console connectivity would break with the below error.

 =======================================
The client has been disconnected from the server.
Please call ManagementGroup.Reconnect() to reestablish the connection.
The communication object, System.ServiceModel.Channels.ServiceChannel, cannot be used for communication because it is in the Faulted state.

=======================================

There could be a number of reason why we would see this, but this what i saw in few on them
We ran the MPVerify tool to check the Management Pack
----------------------
MPVerify.exe /I <MP LOCATIONs> <CONVERTEDMP.XML>
----------------------

C:\Program Files\System Center Operations Manager 2007>
MPVerify.exe /I "c:\Program Files\System Center Operations Manager 2007" c:\ConvertedMP.xml
==========================================================
Loading management pack file: c:\ConvertedMP.xml
Running verification tests for MP: ConvertedMP
: Verification failed with [1] errors:
-------------------------------------------------------
Error 1:
: Failed to verify View with ID: ConvertedMP_Events
Failed to verify reference to View Type: Microsoft.SystemCenter.EventViewTypeSchema Validation Failed.The 'After' element is invalid - The value '02/23/06 00:40:49' is invalid according to its datatype 'https://www.w3.org/2001/XMLSchema:dateTime' - The string '02/23/06 00:40:49' is not a valid XsdDateTime value.The string '02/23/06 00:40:49' is not a valid XsdDateTime value.
-------------------------------------------------------
Failed to verify View with ID: ConvertedMP_EventsFailed to verify reference to View Type: Microsoft.SystemCenter.EventViewTypeSchema Validation Failed.The 'After' element is invalid - The value '02/23/06 00:40:49' is invalid according to its datatype 'https://www.w3.org/2001/XMLSchema:dateTime' - The string '02/23/06 00:40:49' is not a valid XsdDateTime value.The string '02/23/06 00:40:49' is not a valid XsdDateTime value.
==========================================================

Basically SCOM uses XMLSchema standards as listed below
https://www.w3.org/TR/xmlschema-2/\#dateTime
3.2.7.1 Lexical representation
The ·lexical space· of dateTime consists of finite-length sequences of characters of the form: '-'? yyyy '-' mm '-' dd 'T' hh ':' mm ':' ss ('.' s+)? (zzzzzz)?, where
For example, 2002-10-10T12:00:00-05:00 (noon on 10 October 2002, Central Daylight Savings Time as well as Eastern Standard Time in the U.S.) is 2002-10-10T17:00:00Z, five hours later than 2002-10-10T12:00:00Z.

So we had to manually edit the XML File and convert the date time to XML:DateTime format

Below is mentioned details
======================
problem section of mp
======================
<PublisherName>Backup Exec</PublisherName>
- <TimeGenerated>
- <Range>
<After>02/23/06 00:40:49</After>
<Before></Before>
</Range>
</TimeGenerated>

======================
Update section of mp
======================
- <TimeGenerated>
- <Range>
<After>2006-02-23T00:40:49.296Z</After>
</Range>
</Criteria>

Once these changes were made using Notepad we were able to successfully import the Management Pack without any issues. So apparently when we used the MOM MP Convert we were unable to change the date format, this seems to be the root cause.

Jeevan Bisht | Manageability Technical Lead