您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 质量控制/管理 > 资深工艺师-MSIT222
MOM2005SDK入门SteveHarrell资深工艺师微软资讯组微软公司议程简介挑战面解决方针仔细审视MOM2005SDK问题与答复微软资讯组–平台资讯组提供支援,管理和监视微软平台技术管理大约3000台全球数据中心的生产服务器企业之挑战MOM2005不了解资讯支援团队模式科技归属权服务器归属权需求支援不同模式的资讯支援团队特定報警(Alerts)被送到特定的资讯支援团队管理之挑战挑战支援大数量的服务器管理及抄作事项繁多监控服务器之数量的多变性监控服务器之事项的多类性需求管理自动化简化管理资源资讯监控层次面微软资讯组监控方针ThirdPartyMPISVMPITDevelopedMPHardwareMPWindowsServerMPSecurityMPApplicationServerMPSQLServerMPIISMPApplicationApplicationApplicationApplicationApplicationApplicationApplicationApplicationApplication合适的支援团队平台和应用软件基础设施人事部门销售部门财务部门解决方针MOM2005SDK协调CMDB和MOMDB的监控数据NotificationWorkflowv2SolutionAccelerator环境結構概要微软资讯–平台资讯组MOM2005结构微软资讯部之MOM2005监控系统结构原设定值之MOM2005监控系统结构支援不同模式的资讯团队DBNW单一模式的资讯团队DBDWReportingAgentsMOMDBCMDBSDKServerChangeDataConsolesAlertsDistrib.ListsSDK-CMDB综合化DBMOMSDKDBCMDBDBNWAlertsServerOwnerServerComputerGroupsConsoleScopesAlertDetailSubscriptionCriteriaAlertDetailOpsTeamNotificationWorkflowDBMOMDBCMDBServers5001,5002,0003,0004,000MonthlyServerCost$146$49$36$24$18AnnualServerCost$1,752$588$432$288$216TotalCostfor4000ServerCoverage$7,008,000$2,352,000$1,728,000$1,152,000$864,000ConsolidationBenefit0$4,656,000$5,280,000$5,856,000$6,144,00005001,0001,5002,0002,5003,0003,5004,0004,50012345ServersAnnualServerCost$0$1,000,000$2,000,000$3,000,000$4,000,000$5,000,000$6,000,000$7,000,000$8,000,00012345TotalCostfor4000ServerCoverageConsolidationBenefit归属总成本费用综合形式对比–综合形式对比部门形式MOM2005SDK下载网址需要装置MOM2005于发展的机器上在VSproject加上Microsoft.Mom.Sdk.dll作为参考指标演示範例接上MOMInstance製造执行范围製造计算机组連結计算机组和执行范围連結服务器和计算机组加服务器加用户于执行范围将服务器安置于预留维修期SDKInActionAdministrationObjectBaseObjectforworkingwithMOM2005//GetreferencetoourAdminobjectAdministrationmomAdmin=Administration.GetAdministrationObject();管理计算机组//GetthecollectionofallComputerGroupsComputerGroupsCollectioncgs=momAdmin.GetComputerGroups();//Addthegroup,returningtheGuidGuidgroupGuid=momAdmin.InsertComputerGroup(grpName,Computersownedby+grpName);//GetareferencetothenewlycreatedGroupComputerGroupcgProp=momAdmin.GetComputerGroup(groupGuid);管理执行范围//GetareferencetotheManagementServerManagementServerms=momAdmin.GetManagementServerObject();//GetthecollectionofallConsoleScopesConsoleScopesCollectioncsc=ms.GetConsoleScopes();//CreateaConsoleScopeobjectConsoleScopecs=newConsoleScope(grpName+Scope,Consolefor+grpName,false);//AddtheConsoleScopetotheManagementServerms.InsertConsoleScope(cs);//AssociatetheComputerGrouptotheScopecs.AddComputerGroup(compGroup);管理服务器//CreateQuery–InSQL,Select*fromComputerComputerQuerycompQuery=momAdmin.GetComputerQueryObject();//GetQueryExpression–InSQLequivalenttoWHEREclauseComputerQueryExpressionqryExp=newComputerQueryExpression();//Basically,buildingtheSQLWhereclause:Name=ComputerName//LeftExpressionisthecolumntosearchqryExp.LeftExpression=newComputerColumnNameExpression(ComputerColumnNameExpression.ColumnName.Name);//RightExpressionisthevalueofinterestqryExp.RightExpression=newValueExpression(computerName);//ExpressionOperatoristhematchcriteria,inthiscaseEqualsqryExp.ExpressionOperator=ComputerQueryExpression.ExpressionOperatorType.Equals;//RunthequeryreturningaComputersCollection–InSQL,EXECComputersCollectionmyComp=compQuery.GetComputers(qryExp);管理服务器继续//AddComputer:NoteDomainisrequiredms.InstallAgent(computerName,domain);//CauseAgenttoscancomputerms.PerformScan();//AssociateComputerwithGroupcg.AddComputerToIncludeList(computerName.ToUpper(),domain.ToUpper());//Applythechange,i.e.Commitcg.Update();管理用户执行范围OnlyUseraccountsallowed,nogroupsOneScopeperUserlimitAccountmustbememberofMOMUsersgroup//AddindividualusertoConsoleScopescope.AddUser(currentUser,currentDom);服务器维修期//GetaComputerMaintenanceobjectComputerMaintenancecompMaint=momAdmin.GetComputerMaintenanceObject();//ApplyMaintenanceModetospecifiedcomputercompMaint.SetMaintenanceMode(comp,EndTime,reason);演示範例接上MOMInstance製造执行范围製造计算机组連結计算机组和执行范围連結服务器和计算机组加服务器加用户于执行范围将服务器安置于预留维修期问题与答复sharrell@microsoft.com将提供演示範例和原始代码(MonConfig)Resources:HowMicrosoftDoesITResourcesfromMicrosoftITMicrosoftIT|ShowcaseContentontheWeb—TechNet
本文标题:资深工艺师-MSIT222
链接地址:https://www.777doc.com/doc-1302100 .html