6.0

Table Of Contents
VMware, Inc. 105
8
YoucanmanagevirtualmachineswiththevSphereWebClientorthevmware-cmdvCLIcommand.Using
vmware-cmdyoucanregisterandunregistervirtualmachines,retrievevirtualmachineinformation,manage
snapshots,turnthevirtualmachineonandoff,addandremovevirtualdevices,andpromptforuserinput.
Thechapterincludesthese
topics:
“vmwarecmdOverview”onpage 105
“ListingandRegisteringVirtualMachines”onpage 106
“RetrievingVirtualMachineAttributes”onpage 107
“ManagingVirtualMachineSnapshotswithvmwarecmd”onpage 108
“PoweringVirtualMachinesOnandOffonpage 109
“ConnectingandDisconnectingVirtualDevices”onpage 110
“WorkingwiththeAnswerVMAPI”onpage 111
“ForciblyStoppingVirtualMachineswithEXCLI”onpage 111
SomevirtualmachinemanagementutilityapplicationsareincludedinthevSphereSDKforPerl.
ThevSpherePowerCLIcmdlets,whichyoucaninstallforusewithMicrosoftPowerShell,managemany
aspectsofvirtualmachines.
vmware-cmd Overview
vmware-cmdwasincludedinearlierversionoftheESXServiceConsole.Avmware-cmdcommandhasbeen
availableinthevCLIpackagesinceESXiversion3.0.
Olderversionsofvmware-cmdsupportasetofconnectionoptionsandgeneraloptionsthatdifferfromthe
optionsinothervCLIcommands.Thevmware-cmdvCLIcommand
supportstheseoptions.ThevCLI
commandalsosupportsthestandardvCLI
--server,--username,--password,and--vihostoptions.
vmware-cmddoesnotsupportotherconnectionoptions.
Managing Virtual Machines
8
IMPORTANTvmware-cmdisnotavailableintheESXiShell.Runthevmware-cmdvCLIcommandinstead.
I
MPORTANTvmware-cmdisalegacytoolandsupportstheusageofVMFSpathsforvirtualmachine
configurationfiles.Asarule,usedatastorepathstoaccessvirtualmachineconfigurationfiles.