Community maintenance is complete. Thank you for your patience!

Active IQ Unified Manager Discussions

Error while removing NetApp Cluster from SCOM: Failed to init event log OnCommand with event

vijuranade

Hi, 

 

I am getting below error when I try to remove NetApp Cluster from SCOM. Is there any fix available for this?

 

************** Exception Text **************
OC.Cluster.OM.Library.EventLog.EventLogInitException: Failed to init event log OnCommand with event source Clustered Data ONTAP MP. ---> System.Security.SecurityException: Requested registry access is not allowed.
at System.ThrowHelper.ThrowSecurityException(ExceptionResource resource)
at Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable)
at System.Diagnostics.EventLogInternal.GetLogRegKey(String currentMachineName, Boolean writable)
at System.Diagnostics.EventLogInternal.set_MaximumKilobytes(Int64 value)
at OC.Cluster.OM.Library.EventLog.Events.GetEventLog(String eventSource)
--- End of inner exception stack trace ---
at OC.Cluster.OM.Library.EventLog.Events.GetEventLog(String eventSource)
at OC.Cluster.OM.Management.Vserver.RemoveVserverDialog..ctor(Collection`1 removeVserverNameList, Collection`1 removeVserverUuidList, ManagementGroup managementGroup, Collection`1 updateList)
at OC.Cluster.OM.Management.Vserver.VserverManagerDialog.RemoveStorageSystemInList()
at OC.Cluster.OM.Management.Vserver.VserverManagerDialog.buttonRemove_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1087.0 built by: NETFXREL4STAGE
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
OC.Cluster.OM.Management.Vserver
Assembly Version: 4.1.1.0
Win32 Version: 4.1.1.0
CodeBase: file:///C:/Program%20Files/NetApp/OnCommand/MS_Plugin/OC.Cluster.OM.Management.Vserver.exe
----------------------------------------
OC.Cluster.OM.Library
Assembly Version: 4.1.1.0
Win32 Version: 4.1.1.0
CodeBase: file:///C:/Program%20Files/NetApp/OnCommand/MS_Plugin/OC.Cluster.OM.Library.DLL
----------------------------------------
OC.Common.LibShared
Assembly Version: 4.1.1.0
Win32 Version: 4.1.1.0
CodeBase: file:///C:/Program%20Files/NetApp/OnCommand/MS_Plugin/OC.Common.LibShared.DLL
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1087.0 built by: NETFXREL4STAGE
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1099.0 built by: NETFXREL4STAGE
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1087.0 built by: NETFXREL4STAGE
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
Microsoft.EnterpriseManagement.OperationsManager
Assembly Version: 7.0.5000.0
Win32 Version: 7.1.10226.0
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.EnterpriseManagement.OperationsManager/7.0.5000.0__31bf3856ad364e35/Microsoft.EnterpriseManagement.OperationsManager.dll
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1099.0 built by: NETFXREL4STAGE
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
Microsoft.EnterpriseManagement.Core
Assembly Version: 7.0.5000.0
Win32 Version: 7.5.3070.0
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.EnterpriseManagement.Core/7.0.5000.0__31bf3856ad364e35/Microsoft.EnterpriseManagement.Core.dll
----------------------------------------
log4net
Assembly Version: 1.2.11.0
Win32 Version: 1.2.11.0
CodeBase: file:///C:/Program%20Files/NetApp/OnCommand/MS_Plugin/log4net.DLL
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1087.0 built by: NETFXREL4STAGE
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1087.0 built by: NETFXREL4STAGE
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
OC.Common.Library
Assembly Version: 4.1.1.0
Win32 Version: 4.1.1.0
CodeBase: file:///C:/Program%20Files/NetApp/OnCommand/MS_Plugin/OC.Common.Library.DLL
----------------------------------------
OC.Common.Error
Assembly Version: 4.1.1.0
Win32 Version: 4.1.1.0
CodeBase: file:///C:/Program%20Files/NetApp/OnCommand/MS_Plugin/OC.Common.Error.DLL
----------------------------------------
System.ServiceProcess
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1087.0 built by: NETFXREL4STAGE
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.ServiceProcess/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.ServiceProcess.dll
----------------------------------------
System.ServiceModel
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1087.0 built by: NETFXREL4STAGE
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.ServiceModel/v4.0_4.0.0.0__b77a5c561934e089/System.ServiceModel.dll
----------------------------------------
SMDiagnostics
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1087.0 built by: NETFXREL4STAGE
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/SMDiagnostics/v4.0_4.0.0.0__b77a5c561934e089/SMDiagnostics.dll
----------------------------------------
System.IdentityModel
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1087.0 built by: NETFXREL4STAGE
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.IdentityModel/v4.0_4.0.0.0__b77a5c561934e089/System.IdentityModel.dll
----------------------------------------
System.ServiceModel.Internals
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1087.0 built by: NETFXREL4STAGE
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.ServiceModel.Internals/v4.0_4.0.0.0__31bf3856ad364e35/System.ServiceModel.Internals.dll
----------------------------------------
System.Runtime.Serialization
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1087.0 built by: NETFXREL4STAGE
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Serialization/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Serialization.dll
----------------------------------------
System.Transactions
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1087.0 built by: NETFXREL4STAGE
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_64/System.Transactions/v4.0_4.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
System.EnterpriseServices
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_64/System.EnterpriseServices/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------
System.Data
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1087.0 built by: NETFXREL4STAGE
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_64/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
Microsoft.EnterpriseManagement.Runtime
Assembly Version: 7.0.5000.0
Win32 Version: 7.1.10226.0
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.EnterpriseManagement.Runtime/7.0.5000.0__31bf3856ad364e35/Microsoft.EnterpriseManagement.Runtime.dll
----------------------------------------
OC.Common.Constant
Assembly Version: 4.1.1.0
Win32 Version: 4.1.1.0
CodeBase: file:///C:/Program%20Files/NetApp/OnCommand/MS_Plugin/OC.Common.Constant.DLL
----------------------------------------
OC.Common.UserControl
Assembly Version: 4.1.1.0
Win32 Version: 4.1.1.0
CodeBase: file:///C:/Program%20Files/NetApp/OnCommand/MS_Plugin/OC.Common.UserControl.DLL
----------------------------------------
OC.Common.Branding
Assembly Version: 4.1.1.0
Win32 Version: 4.1.1.0
CodeBase: file:///C:/Program%20Files/NetApp/OnCommand/MS_Plugin/OC.Common.Branding.DLL
----------------------------------------
OC.Common.ClusterLibrary
Assembly Version: 4.1.1.0
Win32 Version: 4.1.1.0
CodeBase: file:///C:/Program%20Files/NetApp/OnCommand/MS_Plugin/OC.Common.ClusterLibrary.DLL
----------------------------------------
OC.Common.OntapiC
Assembly Version: 4.1.1.0
Win32 Version: 4.1.1.0
CodeBase: file:///C:/Program%20Files/NetApp/OnCommand/MS_Plugin/OC.Common.OntapiC.DLL
----------------------------------------
Microsoft.GeneratedCode
Assembly Version: 1.0.0.0
Win32 Version: 4.6.1087.0 built by: NETFXREL4STAGE
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Microsoft.GeneratedCode
Assembly Version: 1.0.0.0
Win32 Version: 4.6.1087.0 built by: NETFXREL4STAGE
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

1 ACCEPTED SOLUTION

mbeattie

Hi,

 

Im making an assumption here but based on the message in the log "Requested registry access is not allowed." is it possible you did not invoke this process from an elevated command prompt (as administrator)???

 

/Matt

If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.

View solution in original post

3 REPLIES 3

mbeattie

Hi,

 

Im making an assumption here but based on the message in the log "Requested registry access is not allowed." is it possible you did not invoke this process from an elevated command prompt (as administrator)???

 

/Matt

If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.

View solution in original post

vijuranade

Yes it was previlege issue. I tried with Local administrator of SCOM server and I was able to remove cluster from SCOM. 

Thanks for Help..!!


@mbeattie wrote:

Hi,

 

Im making an assumption here but based on the message in the log "Requested registry access is not allowed." is it possible you did not invoke this process from an elevated command prompt (as administrator)???

 

/Matt


 

RinkuG

Hi All,

 

I am getting same errror. I am the administrator on SCOM server but still we are getting same issue. Do we have any specfic registry where this access need to granted?

Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner
Public