开始在测试System Center 2012 Operations Manager(如下简称为SCOM)一直使用的是评估版本,一直忘了输入密钥,周六的时候忽然收到评估过时通知邮件,同时OpsMgr控制台没法链接。本文将引导您完成如何激活它的步骤。服务器
若是尝试打开OpsMgr控制台,报警及报错以下:微信
Log信息以下:session
日期: 2016/12/26 9:07:22 应用程序: Operations Manager 应用程序版本: 7.1.10226.0 严重性: 错误 消息: 未能链接到服务器"BJ-SCOM**.****" Microsoft.EnterpriseManagement.Common.UnknownServiceException: 服务引起未知异常。有关详细信息,请参阅内部异常。 ---> System.ServiceModel.FaultException`1[System.UnauthorizedAccessException]: The creator of this fault did not specify a Reason. Server stack trace: 在 System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc) 在 System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout) 在 System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation) 在 System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message) Exception rethrown at [0]: 在 System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) 在 System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) 在 Microsoft.EnterpriseManagement.Common.Internal.IDispatcherService.Connect(SdkClientConnectionOptions connectionOptions) 在 Microsoft.EnterpriseManagement.Common.Internal.SdkDataLayerProxyCore.Initialize(EnterpriseManagementConnectionSettings connectionSettings, SdkChannelObject`1 channelObjectDispatcherService) 在 Microsoft.EnterpriseManagement.Common.Internal.SdkDataLayerProxyCore.CreateEndpoint[T](EnterpriseManagementConnectionSettings connectionSettings, SdkChannelObject`1 channelObjectDispatcherService) --- 内部异常堆栈跟踪的结尾 --- 在 Microsoft.EnterpriseManagement.Common.Internal.ExceptionHandlers.HandleChannelExceptions(Exception ex) 在 Microsoft.EnterpriseManagement.Common.Internal.SdkDataLayerProxyCore.CreateEndpoint[T](EnterpriseManagementConnectionSettings connectionSettings, SdkChannelObject`1 channelObjectDispatcherService) 在 Microsoft.EnterpriseManagement.Common.Internal.SdkDataLayerProxyCore.ConstructEnterpriseManagementGroupInternal[T,P](EnterpriseManagementConnectionSettings connectionSettings, ClientDataAccessCore clientCallback) 在 Microsoft.EnterpriseManagement.Common.Internal.SdkDataLayerProxyCore.RetrieveEnterpriseManagementGroupInternal[T,P](EnterpriseManagementConnectionSettings connectionSettings, ClientDataAccessCore callbackDispatcherService) 在 Microsoft.EnterpriseManagement.Common.Internal.SdkDataLayerProxyCore.Connect[T,P](EnterpriseManagementConnectionSettings connectionSettings, ClientDataAccessCore callbackDispatcherService) 在 Microsoft.EnterpriseManagement.ManagementGroup.InternalInitialize(EnterpriseManagementConnectionSettings connectionSettings, ManagementGroupInternal internals) 在 Microsoft.EnterpriseManagement.Mom.Internal.UI.Common.ManagementGroupSessionManager.Connect(String server) 在 Microsoft.EnterpriseManagement.Monitoring.Console.Internal.ConsoleWindowBase.TryConnectToManagementGroupJob(Object sender, ConsoleJobEventArgs args) System.ServiceModel.FaultException`1[System.UnauthorizedAccessException]: The creator of this fault did not specify a Reason. (错误详细信息等于 System.UnauthorizedAccessException: You have exceeded the evaluation period of this product. Please upgrade to the retail version to continue using the product. For information on purchasing the retail version of this product, go to http://go.microsoft.com/fwlink/?LinkID=74446. at Microsoft.EnterpriseManagement.ServiceDataLayer.SessionManagerService.CheckLicence() at Microsoft.EnterpriseManagement.ServiceDataLayer.SessionManagerService.Connect(SdkClientConnectionOptions options) at Microsoft.EnterpriseManagement.ServiceDataLayer.BasicDispatcherService.Connect(SdkClientConnectionOptions connectionOptions))。
错误代码:You have exceeded the evaluation period of this product. Please upgradeto the retail version to continue using the product.app
此时咱们观察SCOM日志,明显会发现大量26319ID日志:ide
具体信息以下: 日志名称: Operations Manager 来源: OpsMgr SDK Service 日期: 2016/12/25 16:51:52 事件 ID: 26319 任务类别: 无 级别: 错误 关键字: 经典 用户: 暂缺 计算机: BJ-SCO**.***** 描述: An exception was thrown while processing Connect for session ID uuid:e0c27c04-c2f3-4b0f-80b7-642e38f964b1;id=1592. Exception message: The creator of this fault did not specify a Reason. Full Exception: System.ServiceModel.FaultException`1[System.UnauthorizedAccessException]: The creator of this fault did not specify a Reason. (Fault Detail is equal to System.UnauthorizedAccessException: You have exceeded the evaluation period of this product. Please upgrade to the retail version to continue using the product. For information on purchasing the retail version of this product, go to http://go.microsoft.com/fwlink/?LinkID=74446. at Microsoft.EnterpriseManagement.ServiceDataLayer.SessionManagerService.CheckLicence() at Microsoft.EnterpriseManagement.ServiceDataLayer.SessionManagerService.Connect(SdkClientConnectionOptions options) at Microsoft.EnterpriseManagement.ServiceDataLayer.BasicDispatcherService.Connect(SdkClientConnectionOptions connectionOptions)). 事件 Xml: <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event"> <System> <Provider Name="OpsMgr SDK Service" /> <EventID Qualifiers="49152">26319</EventID> <Level>2</Level> <Task>0</Task> <Keywords>0x80000000000000</Keywords> <TimeCreated SystemTime="2016-12-25T08:51:52.000000000Z" /> <EventRecordID>674535</EventRecordID> <Channel>Operations Manager</Channel> <Computer>BJ-SCOM**.***** </Computer> <Security /> </System> <EventData> <Data>Connect</Data> <Data>uuid:e0c27c04-c2f3-4b0f-80b7-642e38f964b1;id=1592</Data> <Data>The creator of this fault did not specify a Reason.</Data> <Data>System.ServiceModel.FaultException`1[System.UnauthorizedAccessException]: The creator of this fault did not specify a Reason. (Fault Detail is equal to System.UnauthorizedAccessException: You have exceeded the evaluation period of this product. Please upgrade to the retail version to continue using the product. For information on purchasing the retail version of this product, go to http://go.microsoft.com/fwlink/?LinkID=74446. at Microsoft.EnterpriseManagement.ServiceDataLayer.SessionManagerService.CheckLicence() at Microsoft.EnterpriseManagement.ServiceDataLayer.SessionManagerService.Connect(SdkClientConnectionOptions options) at Microsoft.EnterpriseManagement.ServiceDataLayer.BasicDispatcherService.Connect(SdkClientConnectionOptions connectionOptions)).</Data> </EventData> </Event>
报错代码:You have exceeded the evaluation period of this product. Please upgrade to the retail version to continue using the product.测试
显然OpsMgr控制台没有打开的主要缘由是由于咱们已经超过System Center 2012 Operations Manager的评估期。ui
知道问题根源后咱们就能够对症下药了,按照常规思路咱们只须要经过Operations Manager Shell命令行录入产品密钥便可,操做方法以下:this
1.以管理员身份运行Operations Manager Shell模块lua
2.输入一下命令加载 OperationsManager 模块:spa
Import-Module OperationsManager
3.而后输入新建SCOM管理组链接命令:
New-SCOMManagementGroupConnection
然而咱们会遇到如下报错:
PS C:\Windows\system32> New-SCOMManagementGroupConnection New-SCOMManagementGroupConnection : The service threw an unknown exception. See inner exception for details. 所在位置 行:1 字符: 1 + New-SCOMManagementGroupConnection + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (Microsoft.Syste...nnectionCom mand:NewSCManagementGroupConnectionCommand) [New-SCManagementGroupConnecti on],UnknownServiceException + FullyQualifiedErrorId : ExecutionError,Microsoft.SystemCenter.Core.Comma nds.NewSCManagementGroupConnectionCommand
此错误显示意义基本上是由于评估期已过时,所以咱们将没法链接到管理组。
4.按照提醒咱们须要将SCOM系统时间更改成咱们仍处于评估期的日期(往前修改半月或一月都可,若是是虚拟机请临时关闭宿主机上"集成服务--时间同步"选项)。
5.重启System Center Data Access Service (System Center数据访问服务)服务:
6.从新执行New-SCOMManagementGroupConnection并运行如下命令查看评估到期时间(如执行依旧报错,请确保系统时间已更改并重复以上5步骤):
Get-SCOMManagementGroup | ft skuforlicense,version,timeofexpiration -a
7.经过Set-SCOMLicense命令输入产品密钥并确认:
Set-SCOMLicense ProductId "*********************"
8.重启System Center Data Access Service (System Center数据访问服务),此时控制台就能够打开了,以下:
执行Get-SCOMManagementGroup | ft skuforlicense,version,timeofexpiration -a查看更新后受权信息已生效:
如上为整个排错操做过程,但愿能够帮到你们,若有不足请留言指出,感谢支持。
欢迎关注微信公众号:小温研习社