计算机本科毕设的外文翻译.docx

上传人:b****7 文档编号:11518518 上传时间:2023-03-02 格式:DOCX 页数:18 大小:29.41KB
下载 相关 举报
计算机本科毕设的外文翻译.docx_第1页
第1页 / 共18页
计算机本科毕设的外文翻译.docx_第2页
第2页 / 共18页
计算机本科毕设的外文翻译.docx_第3页
第3页 / 共18页
计算机本科毕设的外文翻译.docx_第4页
第4页 / 共18页
计算机本科毕设的外文翻译.docx_第5页
第5页 / 共18页
点击查看更多>>
下载资源
资源描述

计算机本科毕设的外文翻译.docx

《计算机本科毕设的外文翻译.docx》由会员分享,可在线阅读,更多相关《计算机本科毕设的外文翻译.docx(18页珍藏版)》请在冰豆网上搜索。

计算机本科毕设的外文翻译.docx

计算机本科毕设的外文翻译

附录

原文:

WindowsManagementInstrumentation

WindowsManagementInstrumentation(WMI)(orWindowsManagementInterface)isasetofextensionstotheWindowsDriverModelthatprovidesanoperatingsysteminterfacethroughwhichinstrumentedcomponentsprovideinformationandnotification.WMIisMicrosoft'simplementationoftheWeb-BasedEnterpriseManagement(WBEM)andCommonInformationModel(CIM)standardsfromtheDistributedManagementTaskForce(DMTF).

WMIallowsscriptinglanguageslikeVBScriptorWindowsPowerShelltomanageMicrosoftWindowspersonalcomputersandservers,bothlocallyandremotely.WMIispreinstalledinWindows2000andnewerOSs.ItisavailableasadownloadforWindowsNT,Windows95andWindows98.

1PurposeofWMI

ThepurposeofWMIistodefineanon-proprietarysetofenvironment-independentspecificationswhichallowmanagementinformationtobesharedbetweenmanagementapplications.WMIprescribesenterprisemanagementstandardsandrelatedtechnologiesthatworkwithexistingmanagementstandards,suchasDesktopManagementInterface(DMI)andSNMP.WMIcomplementstheseotherstandardsbyprovidingauniformmodel.Thismodelrepresentsthemanagedenvironmentthroughwhichmanagementdatafromanysourcecanbeaccessedinacommonway.

2Overview

Inordertounifythemanagementtechniquesforthesakeofsimplicity,theDMTFdefinedCIMtorepresentreal-worldmanageableentitiesinaunifiedway.TheCIMobjectmodelisanobjectdatabasemodelusingtermsandsemanticsthatareuniquetoallconstructorsandsoftwaredevelopers.ThisobjectmodelisimplementedinadatabasecalledtheCIMrepository.

BasedontheCIMmodel,WMIincludesreal-worldmanageablecomponents,availablefromtheDMTFstandardswithsomespecificextensionsthatrepresentthevariousWindowscomponents.Moreover,WMIexposesacollectionof

COM-scriptableobjectsthatallowvariousapplicationstotakeadvantageofthemanagementinformation.

Aspartoftheinstallationprocess,mostoftheMicrosoftapplicationsavailabletoday(e.g.SQLServer,ExchangeServer,MicrosoftOffice,InternetExplorer,HostIntegrationServer,AutomatedDeploymentServices)extendthestandardCIMobjectmodeltoaddtherepresentationoftheirmanageableentitiesintheCIMrepository.ThisrepresentationiscalledaWMIclass,anditexposesinformationthroughpropertiesandallowstheexecutionofsomeactionsviamethods.Theaccesstothemanageableentitiesismadeviaasoftwarecomponent,calleda“provider”whichissimplyaDLLimplementingaCOMobjectwritteninC/C++.Becauseaproviderisdesignedtoaccesssomespecificmanagementinformation,theCIMrepositoryisalsologicallydividedintoseveralareascallednamespaces.Eachnamespacecontainsasetofproviderswiththeirrelatedclassesspecifictoamanagementarea(i.e.RootDirectoryDAPforActiveDirectory,RootSNMPforSNMPinformationorRootMicrosoftIISv2forInternetInformationServicesinformation).

TolocatethehugeamountofmanagementinformationavailablefromtheCIMrepository,WMIcomeswithaSQL-likelanguagecalledtheWMIQueryLanguage(WQL).

3Developmentprocess

BecauseWMIabstractsthemanageableentitieswithCIMandacollectionofproviders,thedevelopmentofaproviderimpliesseveralsteps.Themajorstepscanbesummarizedasfollows:

Step1–Createthemanageableentitymodel

Defineamodel

Implementthemodel

Step2–CreatetheWMIProvider

Determinestheprovidertypetoimplement

Determinesthehostingmodeloftheprovider

CreatetheprovidertemplatewiththeATLwizard

Implementthecodelogicintheprovider

RegistertheproviderwithWMIandthesystem

Step3–Testtheprovider

Step4–Createconsumersamplecode

4ImportanceofWMIproviders

SincethereleaseofthefirstWMIimplementationduringtheWindowsNT4.0SP4era(asanout-of-banddownload),MicrosofthasconsistentlyaddedWMIproviderstoWindows.UnderWindowsNT4.0,Microsofthadroughly15WMIprovidersavailableonceWMIwasinstalled.WhenWindows2000wasreleased,therewere29WMIprovidersaspartoftheoperatingsysteminstallation.WiththereleaseofWindowsServer2003,Microsoftincludedintheplatformmorethan80WMIproviders.WindowsVistaincludes13newWMIproviders,[5]takingthenumberclosetoaround100inall,andWindowsServer2008includessomemoreincludingprovidersforIIS7,PowerShellandvirtualization.ThishasbeenasignformanycustomersthatWMIbecameatMicrosoft,the“ubiquitous”managementlayerofWindows,evenifthiscommitmenthasneverbeenexplicitfromMicrosoft..

Duringtheselastyears,duetoaconstantincreasingexposureofmanagementdatathroughWMIinWindows,moreandmorepeopleintheITsystemsmanagementfieldstartedtodevelopscriptsandautomationproceduresbasedonWMI.Beyondthescriptingneeds,mostleadingmanagementsoftwareintheworld,suchasMOM,SMS,ADS,HPOpenViewforWindows(HPOV),BMCSoftwareorCA,Inc.areWMI-enabledandcapabletoconsumeandprovideWMIinformationthroughvariousUserInterfaces.Thisenablesadministratorsandoperators,notcapableofscriptingorprogrammingontopofWMI,toenjoythebenefitsofWMIwithoutevenlearningaboutit.However,iftheywantto,becauseWMIisscriptable,itgivesthemtheopportunitytoconsumeWMIinformationfromscriptsorfromanyEnterpriseManagementsoftwarethatisWMI-aware.

5Features

ForsomeonewillingtodeveloponeormanyWMIproviders,WMIoffersmanyfeaturesoutofthebox.Herearethemostimportantadvantages:

(1)Automationinterfaces:

BecauseWMIcomeswithasetofautomationinterfacesreadytouse,allmanagementfeaturessupportedbyaWMIprovideranditssetofclassesgetthescriptingsupportforfreeout-of-thebox.BeyondtheWMIclassdesignandtheproviderdevelopment,theMicrosoftdevelopmentandtestteamsarenotrequiredtocreate,validateandtestascriptingmodelasitisalreadyavailablefromWMI.

(2).NETManagementinterfaces:

BecausetheSystem.Managementnamespace[6]reliesontheexistingCOM/DCOMplumbing,thecreatedWMIprovideranditssetofWMIclassesbecomesautomaticallyavailabletoall.NETapplicationsindependentlyofthelanguageused(e.g.C#,VB.NET).BeyondtheWMIclassdesignandtheproviderdevelopment,likeforscripting,theMicrosoftdevelopmentandtestteamsarenotrequiredtocreate,validateandtestnewassembliestosupportanewnamespaceinthe.NETFrameworkasthissupportisalreadyavailablefromWMIforfree.

(3)C/C++COM/DCOMprogramminginterfaces:

LikemostcomponentsinWindows,COM/DCOMprogrammerscanleveragethefeaturesoftheprovidertheydevelopattheCOM/DCOMinterfaceslevel.Likeinpreviousenvironments(scriptingand.NETFramework),aCOM/DCOMconsumerjustneedstointeractwiththestandardsetofWMICOMinterfacestoleveragetheWMIprovidercapabilitiesanditssetofsupportedWMIclasses.TomakeallmanagementinformationavailablefromthenativeAPIs,theWMIproviderdeveloperjustneedstointeractwithasetofpre-definedWMICOMinterfaces.ThiswillmakethemanagementinformationavailableattheWMICOMlevelautomatically.Moreover,thescriptingCOMinterfaceobjectmodelisverysimilartotheCOM/DCOMinterfaceobjectmodel,whichmakesiteasyfordeveloperstobefamiliarwiththescriptingexperience.

(4)RemotingcapabilitiesoverDCOMandSOAP:

MorethansimplyofferinglocalCOMcapabilities,asmanagementisallaboutremoting,WMIofferstheDCOMtransport.Inaddition,SOAPtransportwillbeavailableinWindowsServer2003R2throughtheWS-ManagementinitiativeleadbyMicrosoft,Intel,SunMicrosystemsandDell.ThisinitiativeallowstorunanyscriptsremotelyortoconsumeWMIdatathroughaspecificsetofinterfaceshandlingSOAPrequests/responses.TheadvantagefortheWMIproviderdeveloperisthatwhenheexposesallhisfeaturesthroughWMI,WindowsRemoteManagement/WS-Managementcaninturnconsumethatinformationaswell(embeddedobjectsinWMIinstancesarenotsupportedinWindowsServer2003R2.ItishoweveratargetforVista).AllthelayeringtoWS-ManagementandthemappingoftheCIMdatamodeltoSOAPcomesforfreeoutoftheWMI/WS-Managementsolution.IntheeventDCOMmustbeused,implementingDCOMrequiresthepresenceofaproxyDLLdeployedoneachclientmachine.AsWMIisavailableintheWindowsoperatingsystemsinceWindows2000,theseissuesareeliminated.

(5)SupportforQueries:

WMIofferssupportforWQLqueriesoutofthebox.Thismeansthatifaproviderisnotdesignedtosupportqueries,WMIsupportsitbyusinganenumerationtechniqueoutoftheprovider.

(6)Eventingcapabilities:

WMIoffersthecapabilitytonotifyasubscriberforanyeventitisinterestedin.WMIusestheWMIQueryLanguage(WQL)tosubmitWQLeventqueriesanddefinesthetypeofeventstobereturned.Theeventingmechanism,withallrelatedcallbacks,ispartoftheWMICOM/DCOMandautomationinterfaces.AnyonewritingaWMIprovidercanhavethebenefitofthisfunctionalityatnocostforhiscustomers.ItwillbeuptotheconsumertodecidehowitwantstoconsumethemanagementinformationexposedbytheWMIprovideranditsrelatedsetofWMIclasses.

(7)Codetemplategenerator:

TospeeduptheprocessofwritingaWMIproviderincludingallCOM/DCOMinterfacesandrelateddefinitions,theWMIteamdevelopedtheWMIATLWizardtogeneratethecodetemplateimplementingaprovider.ThecodegeneratedisbasedontheWMIclassmodelinitiallydesignedbythedeveloper.TheWMIproviderdeveloperwillbeabletointerfacethepre-definedCOM/DCOMinterfacesfortheWMIproviderwithitssetofnativeAPIsretrievingthemanagementinformationtoexpose

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > PPT模板 > 其它模板

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1