Download VMware Scripting API User`s Manual
Transcript
Table of Contents Introduction ___________________________________________________7 Introducing the VMware Scripting APIs _______________________________8 Supported Products ____________________________________________8 Intended Audience ____________________________________________9 Getting Support from VMware ___________________________________9 Using the VMware Scripting APIs ___________________________________10 Installing the VMware Scripting API _________________________________11 GSX Server __________________________________________________11 ESX Server __________________________________________________11 Installing the VMware Scripting API on a Windows Machine ____________11 Installing VmPerl Scripting API on a Linux Machine ___________________12 Using VmCOM ________________________________________________ 15 VmCOM Objects _____________________________________________16 VmConnectParams ______________________________________________17 VmServerCtl ___________________________________________________18 Property ____________________________________________________18 Methods ____________________________________________________18 VmCollection __________________________________________________20 VmCtl ________________________________________________________21 Properties ___________________________________________________21 Methods ____________________________________________________23 VmQuestion ___________________________________________________28 Symbolic Constant Enumerations __________________________________29 VmExecutionState ____________________________________________29 VmPowerOpMode ____________________________________________29 VmProdInfoType _____________________________________________30 VmProduct __________________________________________________31 VmPlatform _________________________________________________31 Using VmCOM to Pass User-Defined Information Between a Running Guest Operating System and a Script _____________________________________32 GuestInfo Variables ___________________________________________32 Sending Information Set in a VmCOM Script to the Guest Operating System _ 33 3