SCOM 2012 OnCommand Plugin - Change Location of OCPMDB without SCVMM

[ Edited ]



We do not use SCVMM and I am trying to update the location of the OCPM DB for the OnCommand plugin for SCOM 2012 R2. 


All of the docs point to the plugin for SCVMM to change the location.


Isn't there a way via powershell or some other way besides SCVMM to change the location of the db?


Thank you!


Re: SCOM 2012 OnCommand Plugin - Change Location of OCPMDB without SCVMM

I'd add to this as well. I have no idea how to update this, as we are not using and are not installed for the VMM MP portion, but we are getting the following error:


The PowerShell script failed with below exception

System.Management.Automation.MethodInvocationException: Exception calling "InvokeMethod" with "6" argument(s): "Execution of OC.Cluster.OM.Server.Monitoring.StorageMonitoring.InsertLunPerformanceStatistics method resulted in exception being thrown. System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Exception: OCPMDB connection information not found!
at OC.Cluster.OM.Library.Performance.PerfStoreDB.GetDBConnection()
at OC.Cluster.OM.Library.Performance.ActivePerformanceSampleDAL..ctor()
at OC.Cluster.OM.Server.Monitoring.StorageMonitoring.insertLunLatency(ClusterDataVserver dataVserver, NcController vserverConnection)
at OC.Cluster.OM.Server.Monitoring.StorageMonitoring.InsertLunPerformanceStatistics(String dataVserverUuid)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at OC.Cluster.OM.AppDomainInvoker.AppDomainInvoker.InvokeMethod(Assembly assembly, String typeName, Object[] constructorParameters, String methodName, Object[] parameters)
at OC.Cluster.OM.AppDomainInvoker.AppDomainInvoker.AppDomainCallback()"At line:64 char:5
+ $result = [OC.Cluster.OM.AppDomainInvoker.AppDomainInvoker]::InvokeMethod($a ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
at System.Management.Automation.ExceptionHandlingOps.ConvertToMethodInvocationException(Exception exception, Type typeToThrow, String methodName, Int32 numArgs, MemberInfo memberInfo)
at CallSite.Target(Closure , CallSite , RuntimeType , AppDomain , String , String , Array , String , Array )
at System.Dynamic.UpdateDelegates.UpdateAndExecute7[T0,T1,T2,T3,T4,T5,T6,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6)
at System.Management.Automation.Interpreter.DynamicInstruction`8.Run(InterpretedFrame frame)
at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)

Script Name: Monitoring.ps1

One or more workflows were affected by this.

Workflow name: DataONTAP.Cluster.Monitoring.InsertLunPerformanceStatistics.Rule

Instance name: Storage virtual machine hpsf001.

Instance ID: {C1197F31-255A-049C-356F-6E220735E913}

Management group: <REDACTED>-SCOM