6.0

Table Of Contents
VMware, Inc. 41
Chapter 5 Running DCLI Commands
Running DCLI Commands
YoucandisplayhelpinformationforDCLIcommands,andrunthecommandsfromasystemwherevCLIis
installed,fromthevCenterServerApplianceshell,orfromavCenterServeronWindowscommandprompt.
Displaying Help Information for DCLI Commands
Youcandisplayhelpforeachnamespaceandcommandbyusingthe--helpcommandlineoption.Because
theavailablecommandsdependentirelyontheservicesthatareavailableinthevCenterenvironmentthatyou
aretargeting,youmustincludetheserverforaccuratehelpinformation.Helpreturnsthefollowing
informationfor
acommand:
Eachinputoption
Whethertheoptionisrequired
Inputtype
formatter Outputformatter,oneofthefollowing:
simple
table
xml
json
html
csv
Defaultistableforlistsof
structuresandsimplefor
allotheroutput.
loglevel Theloglevel,oneofdebug,info,warning,orerror. info
username Ifyourunfromthelocalshell,mostDCLIcommandsdonot
requiretheusername.IfyouarerunningvCLIcommands,theuser
youspecify
mustbeabletoauthenticatetothevCenterServer
system.
Theuseryouspecifymusthavetheprivilegestoperformthetask,
asspecifiedthroughvCenterServerroles.
Youarepromptedforthepassword.Thepasswordisnotechoedto
screen.
credstore-file Pathtothecredentialstorefiletousefor
credentialstoreoperations
orforreadinglogincredentials.
Usethisoptiononlyifthedefaultcredentialstorefilenamedoes
notworkinyourenvironment.
Bydefault,thecredentialstorefileisinthe
.dcli\.dcli_credstoredirectoryinsidethehomedirectory.
$HOME/.dcli/.dcli_cr
edstore
credstore-add Addslogincredentialsenteredforacommandto
theDCLI
credentialstorefile.
ThisoptionstorestheserverIPaddress,sessionmanager,
usernameandpasswordforthecommandbeingexecuted.Ifan
entryalreadyexists,thecommandupdatestheentry.
dclidirectoryinsidethe
homedirectory.
$HOME/dcli
credstore-remove RemovesanentryfromtheDCLIcredentialstorefile.
Thisoptionremoves
theentryforaspecifiedserverIPaddressand
usernameifonlyonesessionmanagerispresentforatargetserver
anduser.
Inrarecases,informationaboutmultiplesessionmanagerentries
ispresent.Youhavetoprovidethesessionmanagerwiththe
session-manager option.
credstore-list Listsallentriesstoredinthe
DCLIcredentialstorefile.Eachentry
includestheserverIPaddress,sessionmanager,andusername.
session-manager Usethisoptionifyouusethecredstore-removeoptionthesame
usernameandpasswordarestoredthroughmultiplesession
managers.Notusuallyrequired.
Table 5-1. DCLI Options
Option Description Default