Here’s some disastrous notes I used as I was trying to fix the Network Discovery Internal MP.
SITUATION:
Unable to create network device discoveries or modify a current network device discovery.
High Level notes of what ended up working, more detail below:
1. Backup the MP’s
2. Delete the Overrides MP you may have created
3. Delete the Network Discovery Internal MP (Microsoft.SystemCenter.NetworkDiscovery.Internal)
a. This MP contains all the Run As and secure references as well as all devices to be discovered
4. Reimport from the install Media
5. Errors gone and Discovery rules can now be created without bombing out on when I clicked Discovery Wizard for Network Devices J
Additional Notes detail below:
1. Deleted Custom Network Device Monitoring MP
2. Attempt to delete network devices
Note: The following information was gathered when the operation was attempted. The information may appear cryptic but provides context for the error. The application will continue to run.
—
System.InvalidCastException: Specified cast is not valid.
at Microsoft.EnterpriseManagement.Common.Internal.ServiceProxy.HandleFault(String methodName, Message message)
at Microsoft.EnterpriseManagement.Common.Internal.NetworkDiscoveryServiceProxy.GetNetworkDiscoveries(String languageCodes)
at Microsoft.EnterpriseManagement.NetworkDiscoveryManagement.GetNetworkDiscoveries()
at Microsoft.EnterpriseManagement.NetworkDiscoveryManagement.DeleteNetworkDevices(List1 devices)
at Microsoft.EnterpriseManagement.NetworkDiscoveryManagement.DeleteNetworkDevice(ICollection1 devices)
at Microsoft.EnterpriseManagement.Mom.Internal.UI.Console.ConsoleJobExceptionHandler.ExecuteJob(IComponent component, EventHandler`1 job, Object sender, ConsoleJobEventArgs args)
—
3. Investigate all components of Network Device Monitoring in the MP, starting with the next step.
4. Delete Run As account Custom Lync SCOM Network Community String
5. Delete Profile Custom Lync SCOM Network Community String
6. Open Profile and delete the Run As Accounts (should be done first in order to not receive above error)
a. Still unable to delete account
7. Stop all SCOM Services
8. Stop MSSQL Services
9. Backup DBs User\System (mdf, ldf files)
10. Delete Resource Pools
11. Wireless Access Points and Lync Servers Network Switch Resource pool
12. Export MP ‘Microsoft.SystemCenter.NetworkDiscovery.Internal.xml’
13. Find this area and remove the secure reference (if it exists) in order to delete the MP
<TypeDefinitions>
<SecureReferences>
<SecureReference ID="RunAsProfile_ed7b5768_181b_4508_844c_1fb3a3b4f664" Accessibility="Internal" />
</SecureReferences>
</TypeDefinitions>
14. Save the XML
15. Delete ‘Microsoft.SystemCenter.NetworkDiscovery.Internal.xml’
16. Ensure that the Run as profile is removed
18. Reimport the Microsoft.SystemCenter.NetworkDiscovery.Internal from the install media
19. Try to recreate your Network Discoveries, and it should work now!
DO NOT REIMPORT THE OLD FILE: If you Reimport the old MP file, you may see the following error
Error received:
Network Discovery Internal could not be imported.
If any management packs in the Import list are dependent on this management pack, the installation of the dependent management packs will fail.
Verification failed with 3 errors:
——————————————————-
Error 1:
Found error in 1|Microsoft.SystemCenter.NetworkDiscovery.Internal|1.0.0.0|discovery1c01e017.c7c8.4e09.b38d.615bdff11f25/DS|| with message:
The configuration specified for Module DS is not valid.
: Cannot find specified ManagementPackSecureReference RunAsProfile_ed7b5768_181b_4508_844c_1fb3a3b4f664 in expression: $RunAs[Name="RunAsProfile_ed7b5768_181b_4508_844c_1fb3a3b4f664"]/CommunityString$
Cannot find ManagementPackElement [Type=ManagementPackSecureReference, ID=RunAsProfile_ed7b5768_181b_4508_844c_1fb3a3b4f664] in management pack ManagementPack:[Name=Microsoft.SystemCenter.NetworkDiscovery.Internal, KeyToken=, Version=7.0.8560.0].
——————————————————-
Error 2:
Found error in 1|Microsoft.SystemCenter.NetworkDiscovery.Internal|1.0.0.0|discoveryfab1a2c6.f9d2.4021.bc9e.53f27bbff394/DS|| with message:
The configuration specified for Module DS is not valid.
: Cannot find specified ManagementPackSecureReference RunAsProfile_ed7b5768_181b_4508_844c_1fb3a3b4f664 in expression: $RunAs[Name="RunAsProfile_ed7b5768_181b_4508_844c_1fb3a3b4f664"]/CommunityString$
Cannot find ManagementPackElement [Type=ManagementPackSecureReference, ID=RunAsProfile_ed7b5768_181b_4508_844c_1fb3a3b4f664] in management pack ManagementPack:[Name=Microsoft.SystemCenter.NetworkDiscovery.Internal, KeyToken=, Version=7.0.8560.0].
——————————————————-
Error 3:
Found error in 1|Microsoft.SystemCenter.NetworkDiscovery.Internal|1.0.0.0|DisplayString,ElementReference=606820b1-a407-59c5-0123-64618b79f157,LanguageID=ENU|| with message:
Element Info with Identity DisplayString,ElementReference=606820b1-a407-59c5-0123-64618b79f157,LanguageID=ENU refers to an invalid element RunAsProfile_ed7b5768_181b_4508_844c_1fb3a3b4f664.
——————————————————-