6.0

Table Of Contents
VMware, Inc. 51
A
WebServicesforManagement(WSManagement)providesacommonwayforsystemstoaccessandexchange
managementinformationacrosstheITinfrastructure.
ESX/ESXversion3.5andlatersupportsWSManagementbyimplementingoveradozenCIM(Common
InformationModel)profiles.CIMprofilesareasetofobjectorientedschemasdefinedby
theDTMF
(DistributedManagementTaskForce).CIMdefineshowmanagedelementsinanetworkedenvironmentare
representedasacommonsetofobjectsandrelationshipsthatuserscanview,share,andcontrol.Forexample,
systemmanagementclientapplicationsmightbeabletocheckthestatusofservercomponentssuchas
CPU,
fans,powersupplies,andso on.
TheWSManagementPerllibraryallowsyoutowritescriptsthatretrieveCIMdatafromtheESX/ESXihost
usingCIMOM,aservicethatprovidesstandardCIMmanagementfunctionsoveraWBEM(WebBased
EnterpriseManagement).WBEMisastandardprotocolforpassingCIMXMLmessages
overHTTP.
AlthoughyoucanusetheWSManagementlibrarywithotheravailableWSManagementenabledCIMOMs,
thisappendixlimitsdiscussiontousingthelibrarywiththeCIMOMavailableonESX/ESXiversion3.5and
laterandVirtualCenter2.5andlater.
Thisappendixincludesthesetopics:
“WebServicesforManagementOverview”onpage 51
“RequiredPerlModules”onpage 52
“SampleScripts”onpage 53
“SOAPMessageConstructionwithWSMan::WSBasic”onpage 53
“GenericCIMOperationswithWSMan::GenericOps”onpage 57
Web Services for Management Overview
TheSMASH(SystemsManagementArchitectureforServerHardware)initiativeisoneofseveralrelated
standardsinitiativesoftheDMTF.TheSMASHprofilesbuildonotherDMTFstandards,includingthe
CommonInformationModel(CIM),an objectorientedapproachtomodelingmanagedresourcesthroughout
thedistributedcomputingenvironment.CIMSchemasdefineclassesand
associationsamongtheclassesin
severalkeyareas.CIMSchemasbuildaroundacoreschema,includingdevices,applications,network,andthe
systemitself.ACIMobjectmanagerbrokersrequestsfordatafromanyofthemanagedelements.
ClientscanusetheCIMXMLprotocolforCIMOMaccess.Clientscanalsouse
WebServicesforManagement
(WSManagement),aSOAPbasedprotocolforaccessingCIMdata.ThePerllibrarydiscussedinthisappendix
isanimplementationofWSManagementclientartifacts(stubs,bindings)forconnectingtoa
WSManagementserverandobtainingCIMdata.
ForinformationaboutCIM,SMASH,andWSManagement,
visitthedmtf.orgWebsite.SeetheCIM
SMASH/ServerManagementAPIProgrammingGuideforinformationonCIM/SMASHandESX/ESXi.
Web Services for Management Perl
Library
A