I just try management pack development code using scom SDK in http://msdn.microsoft.com/en-us/library/hh329038.aspx.
But this code is for scom 2007, I am trying scom 2012 sp1. I get stuck in the following code:
m_mpStore = new ManagementPackFileStore();
m_mpStore.AddDirectory(@"C:\Program Files\System Center 2012\Operations Manager\");
Version version = new Version(1, 0);
m_mp = new ManagementPack("BuildFromScratchManagementPack", "Build From Scratch Management Pack Friendly Name", version, m_mpStore);
m_libraryMp = new ManagementPack(@"C:\Program Files\System Center Operations Manager 2007\System.Library.mp", m_mpStore);
m_windowsLibraryMp = new ManagementPack(@"C:\Program Files\System Center Operations Manager 2007\Microsoft.SystemCenter.Library.mp", m_mpStore);
m_healthLibraryMp = new ManagementPack(@"C:\Program Files\System Center Operations Manager 2007\System.Health.Library.mp", m_mpStore);
I just can't find any management pack under scom 2012 install location, so I can't instantiate ManagementPackFileStore and the three management packs this example references.
Can anybody help that let the example code in http://msdn.microsoft.com/en-us/library/hh329038.aspx work for scom 2012 sp1?
Thanks in advance.
Jackson