6.0

Table Of Contents
Getting Started with vSphere Command-Line Interfaces
12 VMware, Inc.
2Iftheuserisnotyetauthenticated,DCLIpromptsforapassword.
3Theuserspecifiesapassword.
4ThecommandconnectstothevCenterSingleSignOnserviceandcheckswhethertheuserspecifiedon
thecommandlineorinacertificatestorefilecanauthenticate.
5Iftheusercanauthenticate,DCLI
communicateswiththevCenterServerandexecutethevCloudSuite
SDKcommandthatcorrespondstotheDCLIcommand.DifferentvCenterServersystemssupport
differentservices.
6DCLIdisplaystheresultoranerrortotheuser.
YoucanrunDCLIcommandsasfollows.
vCLIpackage.InstallthevCLIpackageontheserverofyourchoice,ordeployavMAvirtualmachine.
YoucanthenrunDCLIcommandsagainstanendpoint.See“RunningDCLICommands”onpage 41.
vCenterServerappliance.RunDCLIcommandsfromthevCenterServerApplianceshell.See“Running
DCLICommandsonthevCenterServerAppliance”onpage 42.
vCenterServerWindowscommandprompt.InstallvCenterServeronasupportedWindowssystemand
runDCLIcommandsfromthecommandprompt.
DCLI Syntax
EachDCLIcommandusesthesamesyntax.
Thecommandnamecanbefollowedbyconnectionandformattingoptions,eachprecededbya+sign.You
alsospecifythenamespace,thecommand,andthecommandoptions.Namespacesarenested.
dcli +[DCLI options] <namespace> [<namespace> ...] <cmd> --[cmd option] [option value]
DCLIoptions.PredefinedoptionsforconnectioninformationincludingthevCloudSuiteSDKendpoint
andformattingoptions.Alwaysprecededbya+sign.
NotrequiredwhenyourunthecommandinthevCenterServerApplianceshellorfromthecommand
promptofavCenterServerWindowsinstallation.
namespace.GroupsDCLIcommands.NamespacescorrespondtothevCloudSuiteSDKnamespacesand
arenested.
command.Reportsonormodifiesstateonthesystem.
optionandvalue.Commandoptionandvaluepairs.
Example
$dcli +server <vcenter-IP> com vmware cis tagging tag list
vCLI Package Contents
vCLIisnotacommandsetbutapackageofseveralcommandsets.YouusuallyinstallvCLIonan
administrationserverandrunscriptsfromthereagainstotherhostsor,forDCLI,againstvCenterServer
systems.SomevCLIcommandscanalsoberunlocallyontheESXihostorthevCenter
Serversystem.
WhenyouinstallthevCLIpackage,thefollowingcommandsetsbecomeavailable.
DCLICommands.TheDCLIcommandsarenewinvSphere6.0,andareavailableformanagingvCenter
servicesthatarenewinvSphere6.0.ThesecommandsareavailableaspartofvCLI,fromthevCenter
ServerVirtualAppliance,andfromthecommandpromptofavCenterServerWindowsinstallation.
HostManagementCommands.Includesthefollowingcommandsets.
NOTETheorderinwhichDCLIoptionsareprovidedonthecommandlineisnotimportant.However,you
mustspecifyDCLIoptionswithaplus(+)andcommandspecificoptionswithaminus().