開始在測試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查看更新後受權信息已生效:
如上爲整個排錯操做過程,但願能夠幫到你們,若有不足請留言指出,感謝支持。
歡迎關注微信公衆號:小溫研習社