Sie sind auf Seite 1von 27

Technical Note

Command-Line Installation and Upgrade of VMware vCenter ServerTM 5.1


vCenter Server 5.1 and 5.1 Update 1
Thistechnicalnotedescribeshowtoinstall,upgrade,anduninstallvCenterServerandrelatedcomponentsby usingtheWindowscommandlineinterface.Thecommandlineinstallationrequiresyoutologontothelocal machine. ThecommandlineinstallationprocessincludesdownloadingthevCenterServerinstaller,gatheringthe requireddata,andusingthecommandparametersandsamplesinthistechnicalnotetoinstalltheproducts accordingtoyourspecifications. IMPORTANTVMwaredoesnotsupportcommandlineinstallationandupgrademethodsforvCenterServer. However,iftheinstallationorupgradesucceeds,VMwaresupportstheinstalledorupgradedproduct.

vCenter Server 5.1 with vCenter Single Sign-On


vSphere5.1introducesthevCenterSingleSignOnserviceaspartofthevCenterServermanagement infrastructure.ThischangeaffectsvCenterServerinstallation,upgrading,andoperation.Aspartofthis change,vCenterInventoryServiceisnowinstalledseparatelyfromvCenterServer.Whenyouinstallor upgradevCenterServer5.1,youmustinstallvCenterSingleSignOnandinstallorupgradevCenterInventory Service,inthatorder,beforeyouinstallorupgradevCenterServer.Fordetailedinformationabouthow vCenterSingleSignOnaffectsvCenterServerinstallationandupgrades,seevSphereInstallationandSetupand vSphereUpgradeatthefollowingsite:http://www.vmware.com/support/pubs.

Preparing for the Installation


BeforeyouinstallvCenterServerandrelatedcomponents,reviewthefollowingsectionstounderstandthe installationprocessandoptions,andtoensurethatyouprepareyoursystem.

vCenter Server Installation Requirements


ForinformationaboutallvCenter Serverinstallationandupgraderequirements,seevSphereInstallationand SetupandvSphereUpgradeathttp://www.vmware.com/support/pubs.Thesepublicationsincludeinformation aboutthefollowingrequirementsforvCenterServerandrelatedcomponents.

Systemrequirements. Requiredports. Requiredinformationforinstallation.RecordthevaluesthatyouenterincaseyoumustreinstallvCenter Serverandwanttousethesamevalues.

VMware, Inc.

Command-Line Installation and Upgrade of VMware vCenter ServerTM 5.1

NOTEIfyouplantousetheMicrosoftSQLServer2008R2ExpressSP1databasethatisbundledwithvCenter Server,MicrosoftWindowsInstallerversion4.5(MSI4.5)isrequiredonyoursystem.MSI4.5isavailablefrom fromtheredistfolderinthevCenterServerinstallerISOfile.

Required Administrator Rights for Installation


InstallationofallvCenterServercomponentsrequiresAdministratorlevelprivilegesonthetargetmachine. WhenyourunthecommandtoinstallavCenterServercomponent,ifUserAccountControl(UAC)isenabled, andyouareloggedinwithAdministratorlevelprivileges,butyouarenottheAdministrator,UACmight displayadialogboxaskingyoutoconfirmthatyouwanttoruntheinstallationprogram. WhenyouinstallvCenter Server,theAdministratorusermustbeabletoensurethatvCenter Serverreceives LogonasaServicerights. To ensure that the administrator user that vCenter Server uses for startup has Logon as a Service rights 1 2 3 4 SelectControlPanel>AdministrativeTools. SelectLocalSecurityPolicy. SelectLocalPolicies>UserRightsAssignment DoubleclickLogonasaserviceintherightsidepaneandaddtheVPX_ACCOUNTusertothelist.

Installing in a Virtual Machine


YoucaninstallvCenter ServerinaMicrosoftWindowsvirtualmachinethatrunsonaVMwareESXihost. DeployingthevCenter Serversysteminthevirtualmachinehasseveraladvantages.

RatherthandedicatingaseparateservertothevCenter Serversystem,youcanplaceitinavirtual machinerunningonthesameESXihostwhereyourothervirtualmachinesrun. YoucanprovidehighavailabilityforthevCenter ServersystembyusingVMwareHighAvailability(HA). YoucanmigratethevirtualmachinecontainingthevCenter Serversystemfromonehosttoanother, enablingmaintenanceandotheractivities. YoucancreatesnapshotsofthevCenter Servervirtualmachineand usethemforbackups,archiving,and soon.

Installing in a Virtual Machine on a Standalone ESXi Host


Beforeyoubegin,installthevSphereClientonamachinethathasnetworkaccesstotheESXihost. To prepare for installing on a standalone server 1 2 UsingthevSphere Client,accessanESXihostdirectlytocreatethevirtualmachineforhosting vCenter Server. Inthevirtualmachine,installvCenter Server.

Installing over a Network


Ifyouareinstallingoveranetwork,runtheinstallerfromalocalmachine. To prepare for installing over a network 1 2 Placetheinstalleronanetworkdriveandcalltheinstallerfromalocalmachine. EntertheUniversalNamingConvention(UNC)addressintheformat\\servername\path.

VMware, Inc.

Command-Line Installation and Upgrade of VMware vCenter ServerTM 5.1

Installing with an Existing Database


IfyouareinstallingvCenterServerwithanexistingvCenterServerdatabase,preparefordatabaseaccess.The existingdatabasecanbeonthesamehostmachineasvCenterServeroronadifferenthostmachine.Youmust createtheDSNonthehostmachinewherevCenterServerisinstalled,andtheDSNmustpointtothehost machinewherethedatabaseresides. To prepare for installing with an existing database 1 2 3 Ensurethatthedatabasehostmachinebelongstothedomain. LogintothevCenterServerhostmachineasadomainuserwhobelongstothelocaladministratorgroup. CreatetheDSNwithintegratedOSauthenticationmode. TheDSNusermustbethesameasthelocaladministratorforvCenterServerserviceaccount.

SeethevSphereInstallationandSetupdocumentationformoreinformationaboutpreparingyourvCenter Serverdatabase.

Installing and Joining a Group Using Linked Mode


IfyouareinstallingavCenterServerthatyouwanttojointoaLinkedModegroup,ensurethatthereisanother version5.1.xvCenter Server,sothatyouhaveagroupofatleasttwoservers.Theremustbeatleasttwo vCenterServerinstallationstocreateagroup.vCenterServerdoesnotsupportLinkedModegroupsthat containbothversion5.1.xandearlierversionsofvCenterServers. To prepare for installing and joining a group using linked mode 1 2 InstallthefirstvCenterServerinstanceandspecifyVCS_GROUP_TYPE=Single. ForeachsubsequentvCenterServerinstallationthatyouwilladdtotheinitialgroup,specify VCS_GROUP_TYPE=GroupandprovidetheFQDNofthehostofthefirstinstallation.

Installing vCenter Server and Components Remotely


ToinstallvCenterServerremotely,installthevCentercomponentsseparately,inthisorder:vCenterSingle SignOn,vCenterInventoryService,vCenterServer,andProfileDrivenStorageService(SPS).Seethe examplesinRemoteInstallationExamplesonpage 17.

Remote and Scheduled Installations of vCenter Server and Components


IfyouareperformingaremoteorscheduledinstallationofvCenterServer,youmustinstallProfileDriven StorageService(SPS)separatelyfromvCenterServer.Installthecomponentsinthisorder:vCenterSingle SignOn,vCenterInventoryService,vCenterServer,andProfileDrivenStorageService(SPS).Seethe commandlineexamplesinRemoteInstallationExamplesonpage 17.

VMware, Inc.

Command-Line Installation and Upgrade of VMware vCenter ServerTM 5.1

vCenter Server Installation Commands


vCenter ServercommandlineinstallationusesMicrosoftWindowsInstaller(MSI)commandstructurewith parametersspecifictovCenterServerandrelatedcomponents.Youcanusethecommandlineinstallation optionstoinstallvCenterServercomponentsfromtheMSDOScommandpromptinWindowsorbywriting aWindowsbatchfile(.bat).

Microsoft Windows Installer Commands


ThevCenter ServerinstallationcommandsarebasedontheMicrosoftWindowsInstaller(MSI).

Someactionsduringinstallationrequireinteractiveresponsetoprompts.Onlypassiveinstallationusing themsiexeccommandoption/qrissupported.Thefullysilentoption(/qn)isnotsupported. Allparametersthatappearinthe/v"..."sectionmustuseabackslash(\)toescapethequotationmarks, forexample,SSO_ADMIN_PASSWORD=\"my password\".Ifaquoteisnotescaped,the/v"..."optionis terminated.Theclosingdoublequotein/v"..."shouldhaveatleastonespacebeforeit.Otherwise,the lastparameterinsidethisstringwillnotreceivethepropervalue. ForinformationaboutMSIcommandlineoptions,seetheMicrosoftDeveloperNetwork.

Aninstallationfromalocaldisk,usingMSIEXECcommandoptions,hasthefollowingformat:
start /wait path_to_installer.exe /w /L Language Code /v"/qr parameters "

path_to_installer.exeisthelocationoftheextractedfiles. installer.exeistheinstallerexecutableforthevCenterServercomponent,forexample VMware-vcserver.exe,VMware-SSO-Server.exe,VMware-inventory-service.exe,andsoforth.


Forexample,ifC:\temp\vCenter510\SetupFilesisthelocationoftheextractedfiles,usethefollowing commandformat: vCenter Serverinstaller:C:\temp\vCenter510\SetupFiles\vCenter-Server\VMware-vcserver.exe

parametersaretheoptionalparameterslistedinvCenterServerInstallerCommandParametersonpage 4.
Language Codeisthelanguagetobeusedduringtheinstallation.Thelanguagecodeusedintheexamplesis English,L1033.

vCenter Server Installer Command Parameters


Table 1,Table 2,Table 3,Table 4,Table 5,andTable 6listtheparametersthatyoumightneedtoprovideduring installationofvCenterSingleSignOn,vCenterInventoryService,vCenter Server,vSphere Client,vSphere WebClient,andProfileDrivenStorageService.Theinformationyouprovidedependsuponyourspecific installation.Forexample,youmustprovidedatabaseparametersifyouhaveanexistingdatabase,andyou mustprovideserverparametersifyouareaddingyourvCenter Servertoagroup. Followthesesyntaxandinstallationguidelines:

Youmustincludedoublequotationmarksforvaluesthatcontainspaces.Otherwise,theinstallationfails. Usingnull,asinparameter=,for\"\"isnotallowed.Forvaluesotherthannull,doublequotationmarks arenotrequired,forexampleFORMAT_DB = 1andFORMAT_DB = "1"areidentical. Commandoptionsarecasesensitive.Forexample,useBundled,notbundledorBUNDLED. Thecommandinstallationprocessisnotcompletelysilent.Promptscanoccur.Respondtotheprompts. Whenyouenterresponsestoprompts,orvaluestoparameters,thecontentoftheresponseorparameter isnotvalidated.Itisaccepted.Ensurethatthevaluesenteredasresponsestopromptsorvaluesfor parametersarecorrect.Otherwise,vCenter Serverwillnotstartupafterinstallation.

LinkedModeinstallationissupportedonlyifthevCenterServerstobejoinedareregisteredtothesameSingle SignOnserver.IfthevCenterServersarenotregisteredtothesameSingleSignOnserver,youcannotperform avCenter ServerLinkedModeinstallation.

VMware, Inc.

Command-Line Installation and Upgrade of VMware vCenter ServerTM 5.1

vCenter Single Sign-On Installation Command Parameters


Table 1. vCenter Single Sign-On Installation Command Parameters
Parameter MASTER_PASSWORD=password CONFIG_TYPE=[Setup|Join|Recover] Conditions NotrequiredifCONFIG_TYPE=JoinandJOIN_TYPE=HAor ifCONFIG_TYPE=Recover SetupcreatestheonlynodeinabasicvCenterSingle SignOninstallation,orthefirstnodeinahighavailability ormultisiteinstallation. JoincreatesanadditionalnodeforanexistingSingle SignOninstallation. RecoverrestoresaSingleSignOnconfigurationfroma backup. (IfCONFIG_TYPE=Setup) SETUP_TYPE=[Basic|Primary] BasiccreatestheonlynodeinabasicvCenterSingle SignOninstallation. Primarycreatesthefirstnodeinahighavailabilityor multisiteinstallation. (IfCONFIG_TYPE=Join) JOIN_TYPE=[HA|Multisite] HA(highavailability}isfordeploymentofaclusteroftwo ormorevCenterSingleSignOninstancesinhigh availabilitymode.Allinstancesusethesamedatabaseand pointtothesameidentitysources. MultisiteisforadeploymentwithvCenterSingleSignOn instancesingeographicallydisperseddatacenters.Ineach datacenter,youcaninstallSingleSignOninstandaloneor clusteredmode,pointingtotheidentitysourcesinthat location. (IfCONFIG_TYPE=Join) PRIMARY_NODE_FQDN=FQDN|IP] (IfCONFIG_TYPE=Join) PRIMARY_NODE_PORT=port (IfCONFIG_TYPE=Join) PRIMARY_NODE_PASSWORD=password (IfCONFIG_TYPE=Recover) OLD_NODE_PKG=path (IfCONFIG_TYPE=Recover) RECOVER_MASTER_PASSWORD=password SSO_DB_SERVER_TYPE=["Bundled"|"Custom"] FQDNorIPofprimarynode:forexample,10.20.100.102or abc.domain.com. PrimarynodeHTTPSport:forexample,7444. Primarynodemasterpasswordthatwasusedfor admin@SystemDomainaccount. Locationof.zipfileproducedbybackupofSingleSignOn. MasterpasswordofSingleSignOninstancethatwas backedup. NotrequiredifCONFIG_TYPE=JoinandJOIN_TYPE = HA orifCONFIG_TYPE = Recover BundledinstallsthebundledSingleSignOndatabase. UseCustomforanexistingsupportedSingleSignOn database. (IfSSO_DB_SERVER_TYPE="Custom) JDBC_DBTYPE = [Mssql|Oracle|DB2] (IfSSO_DB_SERVER_TYPE="Custom") JDBC_DBNAME=database_name (IfSSO_DB_SERVER_TYPE="Custom") JDBC_HOSTNAME_OR_IP=database_host_name_or_IP (IfSSO_DB_SERVER_TYPE="Custom") JDBC_HOST_PORT=port (IfSSO_DB_SERVER_TYPE="Custom") JDBC_USERNAME=user_name (IfSSO_DB_SERVER_TYPE="Custom") JDBC_PASSWORD=password (IfJDBC_DBTYPE=Oracle) Thecustomdatabasetype:MicrosoftSQL,Oracle,orIBM DB2. Thecustomdatabasename. Thecustomdatabaseserverhostname. Thecustomdatabaseserverport. Databaseusername(donotprovideifIS_JDBC_AUTH = 1 forMicrosoftSQL) Databaseuserpassword(donotprovideifIS_JDBC_AUTH = 1forMicrosoftSQL) UseonlyforOracledatabase.

ORACLE_SERVICE_OR_SID=SID or Service Name

VMware, Inc.

Command-Line Installation and Upgrade of VMware vCenter ServerTM 5.1

Table 1. vCenter Single Sign-On Installation Command Parameters (Continued)


Parameter (IfORACLE_SERVICE_OR_SIDvalueisOracleserviceID) IS_ORACLE_SID=1 (IfSSO_DB_SERVER_TYPE="Custom") SKIP_DB_USER_CREATION = 1 Usethisparameterifyouareusingacustomdatabase,and youwanttocreatevCenterServerdatabaseusers manually,ratherthanlettingtheinstallercreatethe databaseusers. Thisparameterisrequiredif SKIP_DB_USER_CREATION = 1. Thisparameterisrequiredif SKIP_DB_USER_CREATION = 1. TheRSA_DBApassword. TheRSA_DBAuserpassword. IPaddressorFQDNoftheSingleSignOnhostmachine. NotrequiredifCONFIG_TYPE=JoinandJOIN_TYPE=HAor ifCONFIG_TYPE=Recover UsethisparameteriftheSingleSignOnhostmachineisin adomain.RequiresparametersSSPI_USERNAME, SSPI_PASSWORD,andSSPI_DOMAIN (IfIS_SSPI_NETWORK_SERVICE_ACCOUNT=1 SSPI_USERNAME=user_name (IfIS_SSPI_NETWORK_SERVICE_ACCOUNT=1 SSPI_PASSWORD=password (IfIS_SSPI_NETWORK_SERVICE_ACCOUNT=1 SSPI_DOMAIN=domain_name SSO_HTTPS_PORT=port INSTALLDIR=install_location TheSSPIusername. TheSSPIpassword. TheSSPIdomainwheretheenteredSSPIuseraccountis present. Useonlyifyouwantadifferentportvaluethanthedefault 7444. Useonlyifyouwantadifferentinstallationdirectorythan thedefaultC:\ProgramFiles\VMware\Infrastructure\. Conditions UseonlyforOracledatabase.

(IfSKIP_DB_USER_CREATION=1) DBA_JDBC_USERNAME=DBA_user (IfSKIP_DB_USER_CREATION=1) DBA_JDBC_PASSWORD=password RSA_DBA_PASSWORD=password RSA_USER_PASSWORD=password COMPUTER_FQDN=IP_or_FQDN IS_SSPI_NETWORK_SERVICE_ACCOUNT=1

vCenter Inventory Service Installation Command Parameters


Table 2. vCenter Inventory Service Installation Command Parameters
Parameter INSTALLDIR=install_location HTTPS_PORT=port XDB_PORT=port FEDERATION_PORT=port QUERY_SERVICE_NUKE_DATABASE=1 SSO_ADMIN_USER=\"user_name\" SSO_ADMIN_PASSWORD=\"password\" 10443 10109 10111 1 None None Default Conditions Useonlyifyouwantadifferentinstallationdirectorythanthe defaultC:\ProgramFiles\VMware\Infrastructure\. InventoryServiceHTTPport. vCenterInventoryServiceservicemanagementport. vCenterInventoryServicelinkedmodecommunicationport. Setto1tocleartheexistingdatabaseforInventoryService UsernameforthevCenterSingleSignOnadministratoruser account. PasswordforthevCenterSingleSignOnadministratoruser account

VMware, Inc.

Command-Line Installation and Upgrade of VMware vCenter ServerTM 5.1

Table 2. vCenter Inventory Service Installation Command Parameters (Continued)


Parameter LS_URL=URL Default None Conditions LookupServiceURL. TheLookupServiceURLtakestheform https://SSO_host_FQDN_or_IP:7444/lookupservice/sdk,where 7444isthedefaultvCenterSingleSignOnHTTPSportnumber. IfyouenteradifferentportnumberwhenyouinstallvCenter SingleSignOn,usethatportnumber. TOMCAT_MAX_MEMORY_OPTION=[S|M|L ] None ChoicesrefertovCenterServerinventorysize.

S - Smallinventory(1100hostsor11000virtual machines) M - Mediuminventory(100400hostsor10004000virtual machines) L - Largeinventory(morethan400hostsor4000virtual machines)

ThisparameterdeterminesthemaximumJVMheapsettingsfor VMwareVirtualCenterManagementWebservices(Tomcat), InventoryService,andProfileDrivenStorageService.Youcan adjustthissettingafterinstallationifthenumberofhostsinyour environmentchanges.SeetherecommendationsinthevSphere InstallationandSetupdocumentation.

vCenter Server Installation Command Parameters


Table 3. vCenter Server Installation Command Parameters
Parameter LICENSEKEY=\"licensekey\" Default "" Conditions Ifyouomitthelicensekey,vCenter Serverwillbein evaluationmode,whichallowsyoutousethefullfeatureset. Afterinstallation,youcanconvertvCenter Servertolicensed modebyenteringthelicensekeyusingthevSphere Client. ConfiguresvCenter Servertouseanexistingdatabase instance. WhenusingBundled,youmustalsoincludeFORMAT_DB=1. WhenusingCustom,youmustalsoinclude DB_DSN=\"dns_name\",DB_PASSWORD=\"password\", andDB_USERNAME=\"username\".

DB_SERVER_TYPE=[Bundled|Custom]

Bundled

Thebundleddatabaseissuitablefordeploymentsof upto5hostsand50virtualmachines. IfyouareusinganexistingSQLServerdatabasethat usesWindowsNTauthentication,thespecified databaseuserandtheloggedinuseronthe vCenter Servermachinemustbethesame.

DB_DSN=\"name\"

"VMware VirtualCenter"

CustomizestheDSN. RequiredonlyifDB_SERVER_TYPE=Custom. Setto1ifintegratedsecurityisusedwithSQLServeror SQLServerExpressdatabase.Otherwise,thisparameter isnotpassed.

DB_DSN_WINDOWS_AUTH=1

VMware, Inc.

Command-Line Installation and Upgrade of VMware vCenter ServerTM 5.1

Table 3. vCenter Server Installation Command Parameters (Continued)


Parameter DB_USERNAME=\"name\" Default "" Conditions SetstheDSNaccountname. RequiredonlyifDB_SERVER_TYPE=Custom. TouseWindowsauthenticationforSQLServer,specify anaccountthatisanadministratoronthelocalmachine. Asabestpractice,typetheaccountnameas domain_name\user_name.

IfyourdatabaseisalocalSQLServerdatabaseusing WindowsNTauthentication,donotspecifytheuser nameandpassword. IfyouspecifyaremoteSQLServerdatabasethatuses WindowsNTauthentication,thespecifieddatabase userandtheloggedinuseronthevCenter Server machinemustbethesame.

DB_PASSWORD=\"password\"

""

SetstheDSNaccountpassword. RequiredonlyifDB_SERVER_TYPE=Custom.

IfyourdatabaseisalocalSQLServerdatabaseusing WindowsNTauthentication,donotspecifytheuser nameandpassword. IfyouspecifyaremoteSQLServerdatabasethatuses WindowsNTauthentication,thedatabaseuserand theloggedinuseronthevCenter Servermachine mustbethesame.

FORMAT_DB=1

None

Createsafreshdatabaseschema.Allexistingdataislost ifthedatabasealreadyexists. RequiredonlyifDB_SERVER_TYPE=Bundled,butcanbe usedwithDB_SERVER_TYPE=Customasameansto overwriteexistingdatabase.

CAUTIONUsingFORMAT_DB=1resultsinlossof data.Donotuseitifyouwanttopreservethe existingdataandthedatabaseschema.


JVM_MEMORY_OPTION=[S|M|L] S ChoicesrefertovCenterServerinventorysize.

S - Smallinventory(1100hostsor11000virtual machines) M - Mediuminventory(100400hostsor10004000 virtualmachines) L - Largeinventory(morethan400hostsor4000 virtualmachines)

ThisparameterdeterminesthemaximumJVMheap settingsforVMwareVirtualCenterManagement Webservices(Tomcat),InventoryService,and ProfileDrivenStorageService.Youcanadjustthissetting afterinstallationifthenumberofhostsinyour environmentchanges.Seetherecommendationsinthe vSphereInstallationandSetupdocumentation. SSO_ADMIN_USER=\"user_name\" SSO_ADMIN_PASSWORD=\"password\" LS_URL=URL None None None UsernameforthevCenterSingleSignOnadministrator useraccount. PasswordforthevCenterSingleSignOnadministrator useraccount LookupServiceURL. TheLookupServiceURLtakestheform https://SSO_host_FQDN_or_IP:7444/lookupservice/sdk, where7444isthedefaultvCenterSingleSignOnHTTPS portnumber.Ifyouenteradifferentportnumberwhen youinstallvCenterSingleSignOn,usethatportnumber.

VMware, Inc.

Command-Line Installation and Upgrade of VMware vCenter ServerTM 5.1

Table 3. vCenter Server Installation Command Parameters (Continued)


Parameter IS_URL=URL Default None Conditions InventoryServiceURL. TheIS_URLtakestheform https://IS_host_FQDN:10443/\,where10443isthe defaultvCenterInventoryServiceHTTPSportnumber.If youenteradifferentportnumberwhenyouinstall vCenterInventoryService,usethatportnumber. VC_ADMIN_USER=user_name VC_ADMIN_IS_GROUP_VPXD_TXT= [true|false] TheuserwhowilllogintovCenterServer. SettotrueifVC_ADMIN_USERisagroup.Otherwiseset tofalse.Forexample,ifthespecifiedVC_ADMIN_USER specifiedistheAdministratorsgroup,setthispropertyto true.IftheuserspecifiedistheAdministratoruser,set thispropertytofalse. System ThisparametercorrespondstotheUseSystemAccount checkboxinthevCenterServerServicedialogbox. SystemUsesystemaccount. 0Nonnullvalue,suchas0,behavesthesameas1. Whenvalueis1,donotincludetheparameters VPX_ACCOUNT_UPN=\"account_name@UNCname\", VPX_PASSWORD=\"password\", VPX_PASSWORD_VERIFY=\"password\",or VPX_ACCOUNT=\"UNCname\account_name\". ""Useaccountprovided. Whenvalueis"",youmustinclude VPX_ACCOUNT_UPN=\"account_name@UNCname\", VPX_PASSWORD=\"password\", VPX_PASSWORD_VERIFY=\"password\",and VPX_ACCOUNT=\"UNCname\account_name\". VPX_ACCOUNT_UPN TheUserPrincipalNameintheWindowsActive Directory,inanemailaddressformat,forexample. account_name@UNCname None UseraccounttorunVMwarevCenter Serverservice.

VPX_USES_SYSTEM_ACCOUNT=[""|1]

VPX_ACCOUNT=\"UNCname\ account_name\"

UNCnamecaneitherbethedomainnameorlocalhost name. account_namedefaultisthecurrentloggedin user.


TheadministratorusermusthaveLogonasaService right. RequiredonlyifVPX_USES_SYSTEM_ACCOUNT=""; ignoredif1.Example:\mydomain\john\

VPX_PASSWORD=\"password\"

None

Useraccountpassword. RequiredonlyifVPX_USES_SYSTEM_ACCOUNT=""; ignoredif1.

VPX_PASSWORD_VERIFY= \"password\"

None

Verifyuseraccountpassword. RequiredonlyifVPX_USES_SYSTEM_ACCOUNT=""; ignoredif1.

INSTALLDIR=\"installdir\"

None

Specifiesanalternateinstallationdirectory. Theinstallationpathcannothavecommas(,)orperiods(.). ToinstallvCenter ServeronadriveotherthanC:,verify thatthereisenoughspaceintheC: \WINDOWS\InstallerfoldertoinstalltheMicrosoft WindowsInstaller.msifile. IfyouuseanOracleDSN,thepathnamecannotcontain openingorclosingparentheses.

VC_JDBC_URL=URL

JDBCURLforthedatabase.Requiredifyouusean existingdatabase.

VMware, Inc.

Command-Line Installation and Upgrade of VMware vCenter ServerTM 5.1

Table 3. vCenter Server Installation Command Parameters (Continued)


Parameter VCS_GROUP_TYPE=[Single|Group] Default Single Conditions TypesofDirectoryServicesinstance. WhenusingGroup,youmustinclude VCS_ADAM_PRIMARY_PORT=\"port\" and VCS_ADAM_PRIMARY_SERVER=\"IP_address\". VCS_ADAM_PRIMARY_SERVER= \"IP_address\" "" IPaddressorfullyqualifiedDNSnameoftheremote vCenter Servertowhichyouwanttojointhis vCenter Serverinstance.Example: vcms-internal.eng.vmware.com. RequiredonlyifVCS_GROUP_TYPE=Group. VCS_ADAM_PRIMARY_PORT=port 389 LDAPportthattheremoteDirectoryServicesinstanceis listeningon. RequiredonlyifVCS_GROUP_TYPE=Group. VCS_ADAM_LDAP_PORT=port 389 LDAPportofDirectoryServiceswhereVMware VCMSDSlistens.VCS_ADAM_LDAP_PORTmusteitheruse thedefaultportnumberorresideintherange1025<= PORT<=65535 SSLportofDirectoryServiceswhereVMwareVCMSDS listens.VCS_ADAM_SSL_PORTmusteitherusethedefault portnumberorresideintherange1025<=PORT<=65535 vCenter ServerHTTPSport. vCenter ServerHTTPport. VMwarevCenterWebservicesHTTPport. VMwarevCenterWebservicesHTTPSport. WebServicesChangeServiceNotificationport vCenter ServerHeartbeatport. Setthisoptionto1ifyourvCenterServermanageshosts onwhichyouwillpoweronmorethan2000virtual machinessimultaneously.Thisoptionpreventsthepool ofavailableephemeralportsfrombeingexhausted.

VCS_ADAM_SSL_PORT=port

636

VCS_HTTPS_PORT=port VCS_HTTP_PORT=port TC_HTTP_PORT=port TC_HTTPS_PORT=port VCS_WSCNS_PORT=port VCS_HEARTBEAT_PORT=port VPX_BUMPUP_EPHEMERAL_PORT= [""|1]

443 80 8080 8443 60099 902 ""

vSphere Client Installation Parameters


Table 4. vSphere Client Installation Command Parameters for theVMware-viclient.exeCommand
Parameter INSTALLDIR=\"installdir\" Default None Conditions SpecifiesanalternateinstallationdirectoryandcreatesaVirtual Infrastructure Clientdirectory. Theinstallationpathcannothavecommas(,)orperiods(.). IfyouinstallvSphere ClientonadriveotherthanC:,verifythatthereis enoughspaceintheC: \WINDOWS\Installerfoldertoinstallthe MicrosoftWindowsInstaller.msifile.

vSphere Web Client Installation Parameters


Table 5. vSphere Web Client Installation Command Parameters for theVMware-WebClient.exeCommand
Parameter INSTALLDIR=\"installdir\" Default None Conditions Specifiesanalternateinstallationdirectoryandcreatesa vSphereWebClientdirectory. Theinstallationpathcannothavecommas(,)orperiods(.). IfyouinstallvSphereWebClientonadriveotherthanC:,verifythat thereisenoughspaceintheC: \WINDOWS\Installerfoldertoinstall theMicrosoftWindowsInstaller.msifile. HTTP_PORT=port_number 9090 vSphereWebClientHTTPport.

VMware, Inc.

10

Command-Line Installation and Upgrade of VMware vCenter ServerTM 5.1

Table 5. vSphere Web Client Installation Command Parameters for theVMware-WebClient.exeCommand


HTTPS_PORT=port_number SSO_ADMIN_USER=\"user_name\ " SSO_ADMIN_PASSWORD=\"passwo rd\" LS_URL=URL 9443 None None None vSphereWebClientHTTPSport UsernameforthevCenterSingleSignOnadministratoruseraccount. PasswordforthevCenterSingleSignOnadministratoruseraccount LookupServiceURL. TheLookupServiceURLtakestheform https://SSO_host_FQDN_or_IP:7444/lookupservice/sdk,where 7444isthedefaultvCenterSingleSignOnHTTPSportnumber.Ifyou enteradifferentportnumberwhenyouinstallvCenterSingleSignOn, usethatportnumber.

Profile-Driven Storage Service Installation Parameters


TheProfileDrivenStorageServiceinstallerislocatedatmedia\vCenter-Server\Profile-Driven StoragVMware vSphere Profile-Driven Storage.msi. Table 6. Profile-Driven Storage Service Installation Command Parameters
Parameter INSTALLDIR=\"installdir\" Default None Conditions Specifiesanalternateinstallationdirectory. Theinstallationpathcannothavecommas(,)orperiods(.). SPS_HTTP_PORT=port_number SPS_HTTPS_PORT=port_number COMPUTER_FQDN=FQDN TOMCAT_MAX_MEMORY_OPTION=[S |M|L] None 21200 21100 ProfileDrivenStorageServiceHTTPport. ProfileDrivenStorageServiceHTTPSport. ThefullyqualifieddomainnameoftheProfileDrivenStorageService hostmachine. ChoicesrefertovCenterServerinventorysize.

S - Smallinventory(1100hostsor11000virtualmachines) M - Mediuminventory(100400hostsor10004000virtual machines) L - Largeinventory(morethan400hostsor4000virtualmachines) ThisparameterdeterminesthemaximumJVMheapsettingsfor VMwareVirtualCenterManagementWebservices(Tomcat), InventoryService,andProfileDrivenStorageService.Youcan adjustthissettingafterinstallationifthenumberofhostsinyour environmentchanges.SeetherecommendationsinthevSphere InstallationandSetupdocumentation.

ARPSYSTEMCOMPONENT== [""|1] SKIPVCCHECK=1

Setvalueto1tohidetheinstallerfromtheAddorRemoveProgramslist inthecontrolpanel. RequiredtoinstallProfileDrivenStorageServiceseparately.Confirms presenceofvCenterServeronthesystem.

Performing a Command-Line Installation of vCenter Server and Components


ThissectiondescribeshowtoinstallvCenterSingleSignOn,vCenterInventoryService,vCenter Serverand thevSphere Clientfromthecommandline.YoumustinstallvCenterServerandrelatedcomponentsinthis order:vCenterSingleSignOn,vCenterInventoryService,vCenterServer,andProfileDrivenStorageService.

VMware, Inc.

11

Command-Line Installation and Upgrade of VMware vCenter ServerTM 5.1

Basic Procedure for Installing vCenter Server and Components from the Command Line
ThefollowingstepsoutlinethebasicprocedureforinstallingvCenterServerandcomponentsfromthe commandline.Thefollowingsectionsgivespecificcommandparametersandexamplesfortheinstallationof eachcomponent. 1 DownloadtheinstallerandanyadditionalmodulesforvCenter Server. a DownloadtheISOinstallerfileforvCenter ServerfromtheVMwareproductpageat http://www.vmware.com/products. TheinstallerISOfilenameisVMware-VIMSetup-all-5.1.0-yyyyyy.iso,whereyyyyyyisthe buildnumber. b 2 3 4 ExtractthefilesfromtheISOfile.

OpenaWindowscommandpromptonthevirtualmachineorserverthatyouaregoingtoinstall vCenter ServerorvSphere Clienton. Changedirectorytothelocationoftheinstallationexecutables. FromthecommandlineoftheserverorvirtualmachinewhereyouareinstallingthevCenter Server component,runtheappropriatecommandstring

Thecommandstringformatfromanetworklocationis:
start /wait installer.exe_file parameters

Thecommandstringformatfromalocaldiskis:
start /wait installer.exe file /LLanguage Code /v"/qr parameters"

vCenter Single Sign-On Local Installation Examples


Beforeyoubegin,reviewthesectionsMicrosoftWindowsInstallerCommandsonpage 4,vCenterServer InstallerCommandParametersonpage 4,andBasicProcedureforInstallingvCenterServerand ComponentsfromtheCommandLineonpage 12.SingleSignOninstallationcommandparametersare listedinTable 1. Theexamplesassumethatyouarerunningtheinstallationfromalocaldisk,notanetworklocation.See InstallingoveraNetworkonpage 2. Example 1. Local Installation with Basic Single Sign-On and Bundled Database.
start /wait VMware-SSO-Server.exe /L1033 /v"/qr MASTER_PASSWORD=Admin@12345 RSA_DBA_PASSWORD=Admin.67890 RSA_USER_PASSWORD=Admin.67890 CONFIG_TYPE=Setup SETUP_TYPE=Basic SSO_DB_SERVER_TYPE=Bundled COMPUTER_FQDN=hostname-domain.com SSO_HTTPS_PORT=7444 INSTALLDIR=\"C:\vCenter\" /L*v \"%TEMP%\vim-sso-msi.log\" "

Example 2. Local Installation with Basic Single Sign-On, Bundled Database, and SSPI Domain
start /wait VMware-SSO-Server.exe /L1033 /v"/qr MASTER_PASSWORD=Admin@12345 RSA_DBA_PASSWORD=Admin.67890 RSA_USER_PASSWORD=Admin.67890 CONFIG_TYPE=Setup SETUP_TYPE=Basic SSO_DB_SERVER_TYPE=Bundled COMPUTER_FQDN="hostname-domain.com"

VMware, Inc.

12

Command-Line Installation and Upgrade of VMware vCenter ServerTM 5.1

SSO_HTTPS_PORT=7444 INSTALLDIR=\"E:\vCenter\" /L*v \"%TEMP%\vim-sso-msi.log\" SSPI_USERNAME=administrator SSPI_DOMAIN=xyz.com SSPI_PASSWORD=Admin@12345 IS_SSPI_NETWORK_SERVICE_ACCOUNT=1" INSTALLDIR=\"C:\vCenter\" /L*v \"%TEMP%\vim-sso-msi.log\" "

vCenter Inventory Service Local Installation Example


Beforeyoubegin,reviewthesectionsMicrosoftWindowsInstallerCommandsonpage 4,vCenterServer InstallerCommandParametersonpage 4,andBasicProcedureforInstallingvCenterServerand ComponentsfromtheCommandLineonpage 12.vCenterInventoryServiceinstallationcommand parametersarelistedinTable 2. Example 3. Inventory Service Local Installation
start /wait "media\Inventory Service\VMware-inventory-service.exe" /S /v" INSTALLDIR=\"C:\Program Files\VMware\Infrastructure\" QUERY_SERVICE_NUKE_DATABASE=0 or 1 SSO_ADMIN_USER=\"admin@System-Domain\" SSO_ADMIN_PASSWORD=\"mypassword\" LS_URL=\"https://FQDN:7444/lookupservice/sdk\" HTTPS_PORT=10443 FEDERATION_PORT=10111 XDB_PORT=10109 TOMCAT_MAX_MEMORY_OPTION=S /qr"

vCenter Server Local Installation Examples


Beforeyoubegin,reviewthesectionsMicrosoftWindowsInstallerCommandsonpage 4,vCenterServer InstallerCommandParametersonpage 4,andBasicProcedureforInstallingvCenterServerand ComponentsfromtheCommandLineonpage 12.vCenterServerinstallationcommandparametersare listedinTable 3. Theexamplesassumethatyouarerunningtheinstallationfromalocaldisk,notanetworklocation.See InstallingoveraNetworkonpage 2. ForexamplesofvCenterServerremoteinstallationcommands,seeRemoteInstallationExampleson page 17. vCenter Server Typical Local Installation UsethedefaultsettingstoinstallvCenter Servertothedefaultlocationwiththebundleddatabase. Example 4. Typical Local Installation Use the Default Settings
start /wait media\vCenter-Server\VMware-vcserver.exe DB_SERVER_TYPE=Bundled FORMAT_DB=1 SSO_ADMIN_USER=\"admin@System-Domain\" SSO_ADMIN_PASSWORD=\"mypassword\" LS_URL=\"https://FQDN:7444/lookupservice/sdk\" IS_URL=\"https://FQDN:10443/\" VC_ADMIN_USER=Administrators /L*v \"%TEMP%\vmvcsvr.log\" " /w /L1033 /v"/qr

Ifthedatabaseisalreadyinstalled,FORMAT_DB=1commandparameterspecifiesreplacingtheexisting database.WhenDB_SERVER_TYPE=Bundledisused,FORMAT_DB=1mustalsobespecifiedasdescribedinthe Table 3conditionforDB_SERVER_TYPE.

VMware, Inc.

13

Command-Line Installation and Upgrade of VMware vCenter ServerTM 5.1

vCenter Server Custom Local Installation Example 5setsparametersforasinglevCenter Servercustominstallation. Example 5. Custom Local Installation Single vCenter Server Installation Parameters
start /wait media\vpx\VMware-vcserver.exe /w /L1033 /v"/qr LICENSEKEY=\"xxxxx-xxxxx-xxxxx-xxxxx-xxxxx\" SSO_ADMIN_USER=\"admin@System-Domain\" SSO_ADMIN_PASSWORD=\"mypassword\" LS_URL=\"https://FQDN:7444/lookupservice/sdk\" IS_URL=\"https://FQDN:10443/\" VC_ADMIN_USER=Administrators DB_SERVER_TYPE=Custom DB_DSN=\"VCCmdLineInstall-2\" DB_USERNAME=\"Administrator\" DB_PASSWORD=\"CENSORED\" VPX_USES_SYSTEM_ACCOUNT=\\ VPX_ACCOUNT=\"TEST\administrator\" VPX_PASSWORD=\"CENSORED\" VPX_PASSWORD_VERIFY=\"CENSORED\" INSTALLDIR=\"C:\VCServer\" VCS_GROUP_TYPE=Single VCS_HTTPS_PORT=443 VCS_HTTP_PORT=80 VCS_HEARTBEAT_PORT=902 TC_HTTP_PORT=8080 TC_HTTPS_PORT=8443 VCS_ADAM_LDAP_PORT=389 VCS_ADAM_SSL_PORT=902"

vCenter Server Local Installation over a Network Overanetwork,usethedefaultsettingstoinstallvCenterServertothedefaultlocationwiththebundleddatabase Example 6. Typical Local Installation from a Network
start /wait \\10.112.121.19\c\VMware-VIMSetup-5.1.0_150520\vCenter-Server\VMware-vcserver.exe /w /L1033 /v"/qr FORMAT_DB=1" SSO_ADMIN_USER=\"admin@System-Domain\" SSO_ADMIN_PASSWORD=\"mypassword\" LS_URL=\"https://FQDN:7444/lookupservice/sdk\" IS_URL=\"https://FQDN:10443/\" VC_ADMIN_USER=Administrators "

WhenDB_SERVER_TYPEisnotspecified,itsdefaultvalueisBundled,soFORMAT_DB=1mustbespecifiedas shownintheTable 3conditionforDB_SERVER_TYPE.

vCenter Server Local Installation with an Existing Database


Example 7setsthedefaultuserasthecustomdatabaseserveruser.Thedomainusersetsthedefaultuserfor vCenterServer,integratedOSauthentication,andremoteSQLServers.Thesamecommandstringworksfor localSQLServers. Example 7. Typical Local Installation with an Existing Database
start /wait media\vCenter-Server\VMware-vcserver.exe LICENSEKEY=\"xxxxx-xxxxx-xxxxx-xxxxx-xxxxx\" SSO_ADMIN_USER=\"admin@System-Domain\" SSO_ADMIN_PASSWORD=\"mypassword\" LS_URL=\"https://FQDN:7444/lookupservice/sdk\" IS_URL=\"https://FQDN:10443/\" VC_ADMIN_USER=Administrators DB_SERVER_TYPE=Custom DB_DSN=\"sql2005_NT_mli\" /w /L1033 /v"/qr

VMware, Inc.

14

Command-Line Installation and Upgrade of VMware vCenter ServerTM 5.1

DB_USERNAME=\"mli\" DB_PASSWORD=\"CENSORED\" VPX_USES_SYSTEM_ACCOUNT=\"\" VPX_ACCOUNT=\"PDPVC\mli\" VPX_PASSWORD=\"CENSORED\" VPX_PASSWORD_VERIFY=\"CENSORED\" "

IfyouareusingSQLauthenticationforODBCDSN,vCenter Servercanruneitherasalocalsystemaccount orasadomainuseraccount.

vCenter Server Custom Local Installation with Linked Mode


Example 8setsmultiplevCenter ServerinstallationparametersandjoinsagroupofvCenterServers.This LinkedModeexamplesdescribeshowtohavetheinstallationjointhegroupofanexistingprimary vCenter Server.Youcanspecifyeitheralocalsystemaccountoruserspecifiedaccount. Example 8. Custom Installation with Linked Mode
start /wait media\vCenter-Server\VMware-vcserver.exe LICENSEKEY=xxxxx-xxxxx-xxxxx-xxxxx-xxxxx SSO_ADMIN_USER=\"admin@System-Domain\" SSO_ADMIN_PASSWORD=\"mypassword\" LS_URL=\"https://FQDN:7444/lookupservice/sdk\" IS_URL=\"https://FQDN:10443/\" VC_ADMIN_USER=Administrators DB_SERVER_TYPE=Custom DB_DSN=\"VCCmdLineInstall-2\" DB_USERNAME=\"Administrator\" DB_PASSWORD=\"CENSORED\" VPX_USES_SYSTEM_ACCOUNT=\"\" VPX_ACCOUNT=\"TEST\administrator\" VPX_PASSWORD=\"CENSORED\" VPX_PASSWORD_VERIFY=\"CENSORED\" INSTALLDIR=\"C:\VCServer\" VCS_GROUP_TYPE=Group VCS_ADAM_PRIMARY_SERVER=\"FQDN\" VCS_ADAM_PRIMARY_PORT=389 VCS_HTTPS_PORT=443 VCS_HTTP_PORT=80 VCS_HEARTBEAT_PORT=902 TC_HTTP_PORT=8080 TC_HTTPS_PORT=8443 VCS_ADAM_LDAP_PORT=389 VCS_ADAM_SSL_PORT=636 " /w /L1033 /v"/qr

vCenter Server Local Installation with Linked Mode and Existing Database
Example 9installsvCenterServerwithanexistingdatabaseandkeepstheexistingdatabasedatawhilejoining theinstalledvCenterServertoaLinkedModegroupofvCenter Servers. NOTEForOracle10gandOracle11g,tocontinuetheinstallation,youmustrespondtotheconfirmation promptthatappears. Example 9. Install with Linked Mode and Existing Database
start /wait media\vCenter-Server\VMware-vcserver.exe LICENSEKEY=\"xxxxx-xxxxx-xxxxx-xxxxx-xxxxx\" SSO_ADMIN_USER=\"admin@System-Domain\" SSO_ADMIN_PASSWORD=\"mypassword\" LS_URL=\"https://FQDN:7444/lookupservice/sdk\" IS_URL=\"https://FQDN:10443/\" VC_ADMIN_USER=Administrators DB_SERVER_TYPE=Custom DB_DSN=\"VCCmdLineInstall-2\" /w /L1033 /v"/qr

VMware, Inc.

15

Command-Line Installation and Upgrade of VMware vCenter ServerTM 5.1

DB_USERNAME=\"Administrator\" DB_PASSWORD=\"CENSORED\" FORMAT_DB=0 VPX_USES_SYSTEM_ACCOUNT=\"\" VPX_ACCOUNT=\"TEST\administrator\" VPX_PASSWORD=\"CENSORED\" VPX_PASSWORD_VERIFY=\"CENSORED\" INSTALLDIR=\"C:\VCServer\" VCS_GROUP_TYPE=Group VCS_ADAM_PRIMARY_SERVER=\"FQDN\" VCS_ADAM_PRIMARY_PORT=389 VCS_HEARTBEAT_PORT=902 VCS_HTTPS_PORT=443 VCS_HTTP_PORT=80 TC_HTTP_PORT=8080 TC_HTTPS_PORT=8443 VCS_ADAM_LDAP_PORT=389 VCS_ADAM_SSL_PORT=636 "

vSphere Client Local Installation Examples


Beforeyoubegin,reviewthesectionsMicrosoftWindowsInstallerCommandsonpage 4,vCenterServer InstallerCommandParametersonpage 4,andBasicProcedureforInstallingvCenterServerand ComponentsfromtheCommandLineonpage 12.vSphereClientinstallationcommandparametersare listedinTable 4. Theexamplesassumethatyouarerunningtheinstallationfromalocaldisk,notanetworklocation. Example 10. Typical vSphere Client Installation
start /wait media\vSphere-Client\VMware-viclient.exe /w /L1033 /v"/qr "

Example 11. vSphere Client Installation with a Log File and a a Custom Installation Directory
start /wait media\vSphere-Client\VMware-viclient.exe INSTALLDIR=\"C:\VIClient\" /L*v \"%TEMP%\vmvcc.log\" " /w /L1033 /v"/qr

Example 12. vSphere Client Reinstallation


start /wait media\vSphere-Client\VMware-viclient.exe /L*v \"%TEMP%\vmvcc.log\" " /w /L1033 /v"/qr

vSphere Client 5.1.x Installation over Virtual Infrastructure Client


InstallingthevSphereClientoveranexistinginstallationoverwritestheoriginalinstallation.Youarenot promptedtoconfirmtheinstallation.YoucansafelyinstallthevSphere Clientoverthefollowingversionsof theVirtualInfrastructureClient(VI Client)orthevSphereClient:

VI Client2.0 VI Client2.0.1 VI Client2.0.1P1,P2 VI Client2.0.2 VI Client2.0.2U1,U2,U3,U4,U5 VI Client2.5 VI Client2.5U1,U2,U3,U4 vSphereClient4.0.x vSphereClient4.1.x vSphereClient5.0.x
16

VMware, Inc.

Command-Line Installation and Upgrade of VMware vCenter ServerTM 5.1

Example 13. vSphere Client 5.1 Installation over Virtual Infrastructure Client
start /wait media\vSphere-Client\VMware-viclient.exe " /w /L1033 /v"/qr /L*v \"%TEMP%\vmvcc.log\"

vSphere Web Client Local Installation Example


Beforeyoubegin,reviewthesectionsMicrosoftWindowsInstallerCommandsonpage 4,vCenterServer InstallerCommandParametersonpage 4,andBasicProcedureforInstallingvCenterServerand ComponentsfromtheCommandLineonpage 12.vSphereWebClientinstallationcommandparametersare listedinTable 5. Example 14. vSphere Web Client Local Installation
start /wait InstallerPath\VMware-WebClient.exe /L1033 /v"/qr HTTP_PORT=9090 HTTPS_PORT=9443 SSO_ADMIN_USER=\"admin@System-Domain\" SSO_ADMIN_PASSWORD=\"CENSORED\" LS_URL=\"https://SSO_FQDN:SSO_HTTPS_Port/lookupservice/sdk\" INSTALLDIR=\"InstallationPath\" /L*v \"%TEMP%\vim-ngc-msi.log\" "

Remote Installation Examples


ToinstallvCenterServerremotely,installthevCentercomponentsseparately,inthisorder:vCenterSingle SignOn,vCenterInventoryService,vCenterServer,andProfileDrivenStorageService(SPS). Beforeyoubegin,reviewthesectionsMicrosoftWindowsInstallerCommandsonpage 4,vCenterServer InstallerCommandParametersonpage 4,andBasicProcedureforInstallingvCenterServerand ComponentsfromtheCommandLineonpage 12. vCenterServerrequirestheMicrosoft.NET3.5SP1Framework.The.NET3.5SP1installationmightrequire Internetconnectivitytodownloadmorefiles.Ifthetargethostdoesnothave.NET3.5SP1installed,youcan installitremotelybyusingthecommandinExample 15(forWindowsServer2008andlater)orExample 16 (forWindowsServer2003). Example 15. Microsoft .NET 3.5 SP1 Installation for Windows Server 2008 and later
start /w ocsetup.exe "NetFx3" /quiet /norestart /log:\%TEMP%\netfx3.log\"

Thedotnetfx35.exefileinExample 16islocatedintheredistdirectoryofyourdownloadedvCenter ServerinstallerISOfile. Example 16. Microsoft .NET 3.5 SP1 Installation Windows Server 2003
redist\dotnet\dotnetfx35.exe /L 1033 /v "/qf /norestart "

IfyouplantousetheMicrosoftSQLServer2008R2ExpressSP1databasethatisbundledwithvCenterServer, MicrosoftWindowsInstallerversion4.5(MSI4.5)andtheMicrosoft.NET3.5SP1Frameworkarerequiredon yoursystem.YoucaninstallMicrosoft.NET3.5SP1asshowninExample 15andExample 16.Youcan downloadMSI4.5fromtheMicrosoftWebsite.IfthetargethostdoesnothaveMSI4.5installed,youcaninstall itremotelybyusingthecommandinExample 17.TheWindows6.0-KB958655-v2-x64.msufileislocatedin thedirectoryredist\msi45\Windows version number. Example 17. Windows MSI 4.5 Remote Installation
start /wait Windows6.0-KB958655-v2-x64.msu /quiet /norestart

VMware, Inc.

17

Command-Line Installation and Upgrade of VMware vCenter ServerTM 5.1

ToinstalltheMicrosoftSQLServer2008R2Expressdatabaseremotely,usethecommandinExample 18.You mustloginasthesystemaccount.TheSQLEXPR_x64_ENU.exefileislocatedinthedirectory redist\SQLEXPR. Example 18. Microsoft SQL Server 2008 R2 Express Remote Installation
start /wait SQLEXPR_x64_ENU.exe /Q /ACTION=Install /IACCEPTSQLSERVERLICENSETERMS /SQLSVCACCOUNT="NT AUTHORITY\SYSTEM" /FEATURES=SQL,Tools /SQLSYSADMINACCOUNTS="BUILTIN\ADMINISTRATORS" /NPENABLED="1" /TCPENABLED="1" /SECURITYMODE="SQL" /INSTANCENAME=VIM_SQLEXP /SAPWD="MASTER_PASSWORD"

Themsvcrt90DLLisrequiredforOpenSSL.Toinstallthemsvcrt90.dllremotely,usethecommandin Example 19.Thevcredist_x64.exefileislocatedinthedirectoryredist\vcredist\Windows version number. Example 19. Microsoft msvcrt90.dll Remote Installation
start /wait vcredist_x64.exe /q

Example 20. vCenter Single Sign-On Remote Installation


start /wait VMware-SSO-Server.exe /L1033 /v"/q CONFIG_TYPE=Setup SETUP_TYPE=Basic SSO_DB_SERVER_TYPE=Bundled RSA_DBA_PASSWORD=RSA_DBA_PASSWORD RSA_USER_PASSWORD=RSA_USER_PASSWORD MASTER_PASSWORD=MASTER_PASSWORD COMPUTER_FQDN=IP_ADDRESS INSTALLDIR=\"C:\Program Files\VMware\Infrastructure\" /L*v \"c:\temp\vim-sso-msi.log\" "

Example 21. Inventory Service Remote Installation


start /wait VMware-inventory-service.exe /L1033 /v"/q SSO_ADMIN_USER=admin@System-Domain SSSO_ADMIN_PASSWORD=\"master_password\" LS_URL=\"https://IP_ADDRESS:7444/lookupservicedk\" QUERY_SERVICE_NUKE_DATABASE=1 TOMCAT_MAX_MEMORY_OPTION=S COMPUTER_FQDN=IP_ADDRESS /L*v \"c:\temp\vim-qs-msi.log\" "

VMware, Inc.

18

Command-Line Installation and Upgrade of VMware vCenter ServerTM 5.1

Example 22. vCenter Server Remote Installation


start /wait VMware-vcserver.exe /v"/qr SSO_ADMIN_USER=admin@System-Domain SSO_ADMIN_PASSWORD=\"master_password\" VC_ADMIN_USER=Administrators VC_ADMIN_IS_GROUP_VPXD_TXT=true COMPUTER_FQDN=IP_ADDR LS_URL=\"https://IP_ADDR:7444/lookupservicedk\" IS_URL=\"https://FQDN:10443/\" DB_SERVER_TYPE=Bundled FORMAT_DB=1 VCS_GROUP_TYPE=Single VPX_ACCOUNT_TYPE=System /L*v \"\temp\vim-vcs-msi.log\" "

IfyouareperformingaremoteinstallationofvCenterServer,youmustinstallProfileDrivenStorageService (SPS)separatelyfromvCenterServer.BeforeinstallingProfileDrivenStorageService,verifythattheVMware VirtualCenterServerserviceisstartedintheWindowsAdminstrativeToolscontrolpanel.TheProfileDriven StorageServiceinstallationwillfailiftheVMwareVirtualCenterServerserviceisnotstarted. Example 23. Profile-Driven Storage Service (SPS) Remote Installation
msiexec.exe /qr /L*v "C:\Users\ADMINI~1\AppData\Local\Temp\vim-sps-msi.log" /i "media\vCenter-Server\Profile-Driven Storage\VMware vSphere Profile-Driven Storage.msi" INSTALLDIR="C:\Program Files\VMware\Infrastructure\" SPS_HTTP_PORT=31000 SPS_HTTPS_PORT=31100 COMPUTER_FQDN=abc.eng.vmware.com QUERY_SERVICE_NUKE_DATABASE="1" TOMCAT_MAX_MEMORY_OPTION="S" ARPSYSTEMCOMPONENT=1 SKIPVCCHECK=1

Example 24. vSphere Client Remote Installation


VMware-viclient.exe /s /v"/qn INSTALLDIR=\"C:\program files\VMware\Infracture\" "

Example 25. vSphere Web Client Remote Installation


start /wait media\VMware-WebClient.exe /L1033 /v"/qr HTTP_PORT=9090 HTTPS_PORT=9443 SSO_ADMIN_USER=\"admin@System-Domain\" SSO_ADMIN_PASSWORD=\"CENSORED\" LS_URL=\"https://SSO_FQDN:SSO_HTTPS_Port/lookupservice/sdk\" INSTALLDIR=\"InstallationPath\" /L*v \"%TEMP%\vim-ngc-msi.log\" "

Upgrading vCenter Server from the Command Line


WhenyouupgradetovCenterServer5.1fromthecommandline,youmustinstallvCenterSingleSignOnand installorupgradevCenterInventoryService,inthatorder,beforeyouinstallorupgradevCenterServer. WhenyouupgradevCenterServer,youcanupgradethevCenterServerdatabasefirst,andthenupgrade vCenterServer,orupgradeboththevCenterServerdatabaseandvCenterServerinasinglecommand. ToupgradethevCenterServerdatabasebeforeupgradingvCenterServer,usethefollowingcommand.
path_to_vCenter-Server\vCenter-Server\dbupgrade\bin\VCDtabaseUpgrade.exe DSN=DSN_name UID=DB_username PWD=DB_password LOGFILE=optional or specify another name with path

VMware, Inc.

19

Command-Line Installation and Upgrade of VMware vCenter ServerTM 5.1

Torunthiscommandsilently,addtheparameterQUIET=true.TheDB_username dependsonthedatabase type:

ForSQLServerdatabases.IftheDSNusesWindowsauthentication,theDB_username istheusernamefor thelogonuser.IftheDSNusestheSQLServerauthentication,theDB_username isthespecificdatabase user. ForOracleorIBMDB2databases,theDB_user name isthedatabaseuser.

TheDB_password isthepasswordforthespecifiedDB_username. ToupgradethevCenterServerdatabasewhenyouupgradevCenterServer,inasinglecommand,the VMware-vcserver.execommandmustincludethefollowingparameters.


DB_EXISTING_VERSION=existing_database_version DB_DSN=database_DSN DB_USERNAME=database_user_name DB_PASSWORD=database_password LAUNCHWIZARD=\"1\" VCS_DB_BACKUP=\"1\"

Example 26. Upgrade of vCenter Server and vCenter Server Database


path_to_vCenter-Server\vCenter-Server\VMware-vcserver.exe /v"DB_EXISTING_VERSION=existing_database_version DB_DSN=database_DSN DB_USERNAME=database_user_name DB_PASSWORD=database_password SSO_ADMIN_USER=\"admin@System-Domain\" SSO_ADMIN_PASSWORD=\"mypassword\" LS_URL=\"https://FQDN:7444/lookupservice/sdk\" IS_URL=\"https://FQDN:10443/\" VC_ADMIN_USER=Administrators VC_ADMIN_IS_GROUP_VPXD_TXT=true LAUNCHWIZARD=\"1\" VCS_DB_BACKUP=\"1\" " /qr
/L1033

IfthevCenterServerdatabaseisalreadyupgradedtothecorrectversionforthevCenterServerversionthat youareinstalling,thiscommanddoesnotupgradethedatabaseagain.FortheDB_EXISTING_VERSION parameter,usethefollowingschemaversionnumbers:


VirtualCenter2.5Update6:5 vCenterServer4.0.x:400 vCenterServer4.1.x:410 vCenterServer5.0:500 vCenterServer5.1:510

YoucancustomizethiscommandbyusingtheparametersinTable 3.

VMware, Inc.

20

Command-Line Installation and Upgrade of VMware vCenter ServerTM 5.1

Uninstalling vCenter Server and Components from the Command Line


YoumustuninstallvSphere5.1componentsinthisorder:ProfileDrivenStorageService(SPS),vCenterServer, vCenterInventoryService,andvCenterSingleSignOn. To uninstall Profile-Driven Storage Service 1 2 OpenaWindowscommandpromptonthevirtualmachineorserverthatProfileDrivenStorageService isinstalledon. Runthefollowingcommand:
msiexec.exe /x{6D993720-9949-4A37-AA5C-0FACBD6B0A27} SKIPVCCHECK=1 SUPPRESS_CONFIRM_UNINSTALL="1" /qr

To uninstall vCenter Server 1 2 OpenaWindowscommandpromptonthevirtualmachineorserverthatvCenterServerisinstalledon. Runthefollowingcommand:


msiexec.exe /x{A4400513-2688-45A9-8439-CA991F4E4106} SUPPRESS_CONFIRM_UNINSTALL="1" /qr

To uninstall both vCenter Server and Profile-Driven Storage Service 1 2 OpenaWindowscommandpromptonthevirtualmachineorserverthatvCenterServerisinstalledon. Runthefollowingcommand:
msiexec.exe /I{A4400513-2688-45A9-8439-CA991F4E4106} REMOVE=ALL SUPPRESS_CONFIRM_UNINSTALL="1" /qr

To uninstall vCenter Inventory Service 1 2 OpenaWindowscommandpromptonthevirtualmachineorserverthatvCenterInventoryServiceis installedon. Runthefollowingcommand:


msiexec.exe /x{946581B4-C0B9-4A86-9207-E64448CBA66B} SUPPRESS_CONFIRM_UNINSTALL="1" /qr

To uninstall vCenter Single Sign-On 1 2 OpenaWindowscommandpromptonthevirtualmachineorserverthatvCenterSingleSignOnis installedon. Runthefollowingcommand:


msiexec /x {DEC4C346-414B-4814-9BF3-CAC14154B55A} MASTER_PASSWORD=master_password /qr

To uninstall the vSphere Client 1 2 OpenaWindowscommandpromptonthevirtualmachineorserverthatthevSphere Clientisinstalled on. Runthefollowingcommand:


msiexec.exe /x{09DC364B-A77A-49A0-972B-E43F0DACC5E3}

VMware, Inc.

21

Command-Line Installation and Upgrade of VMware vCenter ServerTM 5.1

To uninstall the vSphere Web Client 1 2 OpenaWindowscommandpromptonthevirtualmachineorserverthatthevSphereWebClientis installedon. Runthefollowingcommand:


MSIEXEC.EXE /norestart /qr /x{F6DE3801-C557-40AD-B949-7A82D68CDFEE} SSO_ADMIN_USER="admin@System-Domain " SSO_ADMIN_PASSWORD="CENSORED" /L*v \"%TEMP%\vim-ngc-msi.log\"

Installing, Upgrading, and Uninstalling vCenter Server Support Tools


AfteryouinstallvCenterSingleSignOn,vCenterInventoryService,andvCenterServer,youcaninstallthe followingvCenterServersupporttools:

vSphereAutoDeploy vSphereAuthenticationProxy vSphereESXiDumpCollector vSphereSyslogCollector

TheinstallerfilesareincludedintheISOinstallerfileforvCenter Server,whichyoucandownloadfromthe VMwareproductpageathttp://www.vmware.com/products.TheinstallerISOfilenameis VMware-VIMSetup-all-5.1.0-yyyyyy.iso,whereyyyyyyisthebuildnumber.Afteryouextractthefiles fromtheISOfile,theinstallerexecutablesforthesupporttoolsareinthevctoolssubdirectory. Forremoteinstallations,youcanstoreinstallationrelateddataontheremotecomputer,mappingtheremote remotepath\\10.20.100.23\DATAasF:\DATA.Thenyoucanpointtothislocationfromtheinstallation command. Formoreinformationaboutthesetools,seethevSphere5.1documentationat http://www.vmware.com/support/pubs.

Installing, Upgrading, and Uninstalling vSphere Auto Deploy


Beforeyoubegin,reviewthesectionsMicrosoftWindowsInstallerCommandsonpage 4andBasic ProcedureforInstallingvCenterServerandComponentsfromtheCommandLineonpage 12.

Auto Deploy Installation Parameters


Table 7. Auto Deploy Installation Command Parameters for theVMware-autodeploy.exeCommand
Parameter INSTALLDIR=\"installdir\" Conditions Specifiestherootdestinationdirectoryfortheinstallation. Theinstallationpathcannothavecommas(,)orperiods(.). IfyouinstallAutoDeployonadriveotherthanC:,verifythatthereis enoughspaceintheC:\WINDOWS\Installerfoldertoinstallthe MicrosoftWindowsInstaller.msifile. VM_DATA_SIZE=number of GB VM_LOCALSERVER=IP or FQDN VM_PATH_DATA=\"data_directory\" VM_PORT=port number VM_PORTADD=port number VC_SERVER_ADDRESS=IP_address VC_SERVER_PASSWORD=\"password\" VC_SERVER_PORT=port number Harddiskspaceingigabytes(GB)forVM_PATH_DATA. AutoDeploylocalcomputerIPaddressorfullyqualifieddomainname (FQDN). Specifiestherootdestinationdatadirectoryfortheinstallation. AutoDeployserviceTCPportnumber AutoDeploymanagementTCPportnumber vCenterServeraddress vCenterServeruserpassword vCenterServerportnumber

VMware, Inc.

22

Command-Line Installation and Upgrade of VMware vCenter ServerTM 5.1

Table 7. Auto Deploy Installation Command Parameters for theVMware-autodeploy.exeCommand


VC_SERVER_THUMBPRINT=thumbprint VC_SERVER_USER=\"user_name\" vCenterServercertificatethumbprint vCenterServerusername

Example 27installsAutoDeploywiththelogfilewrittentothe%TEMP%directory. Example 27. vSphere Auto Deploy Installation


VMware-autodeploy.exe /v"VM_PATH_DATA=\"C:\DATA\" VM_DATA_SIZE=4 VM_PORT=6501 VM_PORTADD=6502 VC_SERVER_ADDRESS=10.20.104.158 VC_SERVER_PORT=80 VC_SERVER_USER=\"myUser\" VC_SERVER_PASSWORD=\"myPassword\" VC_SERVER_THUMBPRINT=\"6A:60:D0:25:8B:3E:67:0F:9B:EA:14:C5:F3:B7:01:2C:3B:11:EF:2A\" /qn /L*v \"%TEMP%\vim-autodeploy-msi.log\" "

Example 28performsasilentminorupgradeofAutoDeploywiththelogfilewrittentothe%TEMP% directory. Example 28. vSphere Auto Deploy Minor Upgrade
VMware-autodeploy.exe /v"/qn /L*v \"%TEMP%\vim-autodeploy-msi.log\" "

Example 29performsasilentmajorupgradeofAutoDeploywiththelogfilewrittentothe%TEMP% directory. Example 29. vSphere Auto Deploy Major Upgrade
VMware-autodeploy.exe /v"/qn /L*v \"%TEMP%\vim-autodeploy-msi.log\" "

Example 30removesAutoDeploysilentlywiththelogfilewrittentothe%TEMP%directory. Example 30. vSphere Auto Deploy Uninstallation


VMware-autodeploy.exe /x /v"/qn /L*v \"%TEMP%\vim-autodeploy-msi.log\" "

Installing, Upgrading, and Uninstalling vSphere Authentication Proxy


Beforeyoubegin,reviewthesectionsMicrosoftWindowsInstallerCommandsonpage 4andBasic ProcedureforInstallingvCenterServerandComponentsfromtheCommandLineonpage 12.

vSphere Authentication Proxy Installation Parameters


Table 8. vSphere Authentication Proxy Installation Command Parameters for theVMware-cam.exeCommand
Parameter INSTALLDIR=\"installdir\" Conditions Specifiestherootdestinationdirectoryfortheinstallation. Theinstallationpathcannothavecommas(,)orperiods(.). IfyouinstallAuthenticationProxyonadriveotherthanC:,verifythat thereisenoughspaceintheC:\WINDOWS\Installerfoldertoinstallthe MicrosoftWindowsInstaller.msifile. VM_LOCALSERVER=IP or FQDN VM_IIS_PORT_TCP=port number VM_IIS_PORTSSL=port number VC_SERVER_ADDRESS=IP_address VC_SERVER_PASSWORD=password VC_SERVER_PORT=port number AuthenticationProxylocalcomputerIPaddressorfullyqualified domainname(FQDN). AuthenticationProxyserviceTCPportnumber AuthenticationProxyserviceSSLTCPportnumber vCenterServeraddress vCenterServeruserpassword vCenterServerportnumber

VMware, Inc.

23

Command-Line Installation and Upgrade of VMware vCenter ServerTM 5.1

Table 8. vSphere Authentication Proxy Installation Command Parameters for theVMware-cam.exeCommand


VC_SERVER_THUMBPRINT=thumbprint VC_SERVER_USER=user name vCenterServercertificatethumbprint vCenterServerusername

Example 31installsAuthenticationProxywiththelogfilewrittentothe%TEMP%directory. Example 31.vSphereAuthenticationProxyInstallation


VMware-cam.exe /s /v"VC_SERVER_ADDRESS=10.20.104.158 VC_SERVER_USER=\"myUser\" VC_SERVER_PASSWORD=\"myPassword\" VM_IIS_PORT_TCP=52000 VM_IIS_PORTSSL=53000 VM_LOCALSERVER= 10.20.104.64 VC_SERVER_THUMBPRINT=\"6A:60:D0:25:8B:3E:67:0F:9B:EA:14:C5:F3:B7:01:2C:3B:11:EF:2A\" /qn /L*v \"%TEMP%\vim-cam-msi.log\" "

Example 32performsasilentminorupgradeofAutoDeploywiththelogfilewrittentothe%TEMP% directory. Example 32.vSphereAuthenticationProxyMinorUpgrade


VMware-cam.exe /s /v"/qn /L*v \"%TEMP%\vim-cam-msi.log\" "

Example 33performsasilentmajorupgradeofAuthenticationProxywiththelogfilewrittentothe%TEMP% directory. Example 33.vSphereAuthenticationProxyMajorUpgrade


VMware-cam.exe /s /v"VC_SERVER_PASSWORD=\"myPassword\" /qn /L*v \"%TEMP%\vim-cam-msi.log\" "

Example 34removesAuthenticationProxysilentlywiththelogfilewrittentothe%TEMP%directory. Example 34.vSphereAuthenticationProxyUninstallation


VMware-cam.exe /s /x /v"/qn /L*v \"%TEMP%\vim-cam-msi.log\" "

Installing, Upgrading, and Uninstalling vSphere ESXi Dump Collector


Beforeyoubegin,reviewthesectionsMicrosoftWindowsInstallerCommandsonpage 4andBasic ProcedureforInstallingvCenterServerandComponentsfromtheCommandLineonpage 12.

vSphere ESXi Dump Collector Installation Parameters


Table 9. vSphere ESXi Dump Collector Installation Command Parameters for theVMware-netdump.exe Command
Parameter INSTALLDIR=\"installdir\" Conditions Specifiestherootdestinationdirectoryfortheinstallation. Theinstallationpathcannothavecommas(,)orperiods(.). IfyouinstallESXiDumpCollectoronadriveotherthanC:,verifythat thereisenoughspaceintheC:\WINDOWS\Installerfoldertoinstallthe MicrosoftWindowsInstaller.msifile. VM_VC=1 VM_DATA_SIZE=number of GB VM_LOCALSERVER=IP or FQDN VM_PATH_DATA=\"data_directory\" VM_PORT=port number VM_PORTADD=port number VC_SERVER_ADDRESS=IP_address Includethisparameter,setto1,foranintegratedinstallationwith vCenterServer. Harddiskspaceingigabytes(GB)forVM_PATH_DATA. ESXiDumpCollectorlocalcomputerIPaddressorfullyqualified domainname(FQDN). Specifiestherootdestinationdatadirectoryfortheinstallation. ESXiDumpCollectorserviceTCPportnumber DumpCollectormanagementTCPportnumber. vCenterServeraddress.

VMware, Inc.

24

Command-Line Installation and Upgrade of VMware vCenter ServerTM 5.1

Table 9. vSphere ESXi Dump Collector Installation Command Parameters for theVMware-netdump.exe Command
VC_SERVER_PORT=port number VC_SERVER_USER==\"user_name\" VC_SERVER_PASSWORD=\"password\" VC_SERVER_THUMBPRINT=thumbprint vCenterServerportnumber. vCenterServerusername vCenterServeruserpassword vCenterServercertificatethumbprint

Example 35installsvSphereESXiDumpCollectorinastandalonedeploymentwiththelogfilewrittentothe %TEMP%directory. Example 35.vSphereESXiDumpCollectorStandaloneInstallation


VMware-netdump.exe /s /v"VM_PATH_DATA=\"C:\DATA\" VM_DATA_SIZE=4 VM_PORT=6501 VM_LOCALSERVER=10.20.104.64 /qn /L*v \"%TEMP%\vim-netdump-msi.log\" "

Example 36installsvSphereESXiDumpCollectorinadeploymentwithvCenterServer,withthelogfile writtentothe%TEMP%directory.ForvCenterServerinstallationcommandparameters,seeTable 3. Example 36.vSphereESXiDumpCollectorInstallationwithvCenterServer


VMware-netdump.exe /s /v"VM_VC=1 VM_PATH_DATA=\"C:\DATA\" VM_DATA_SIZE=4 VM_PORT=6501 VM_PORTADD=8001 VC_SERVER_ADDRESS=10.20.104.157 VC_SERVER_PORT=80 VC_SERVER_USER=\"myUser\" VC_SERVER_PASSWORD=\"myPassword\" /qn /L*v \"%TEMP%\vim-netdump-msi.log\" "

Example 37performsasilentminorupgradeofvSphereESXiDumpCollectorwiththelogfilewrittentothe %TEMP%directory. Example 37.vSphereESXiDumpCollectorMinorUpgrade(StandaloneorwithvCenterServer)


VMware-netdump.exe /s /v"/qn /L*v \"%TEMP%\vim-netdump-msi.log\" "

Example 38performsasilentmajorupgradeofAuthenticationProxywiththelogfilewrittentothe%TEMP% directory. Example 38.vSphereESXiDumpCollectorMajorUpgrade(StandaloneorwithvCenterServer)


VMware-netdump.exe /s /v"VC_SERVER_PASSWORD=\"myPassword\" /qn /L*v \"%TEMP%\vim-netdump-msi.log\" "

Example 39removesvSphereESXiDumpCollectorsilentlywiththelogfilewrittentothe%TEMP%directory. Example 39.vSphereESXiDumpCollectorUninstallation


VMware-netdump.exe /s /x /v"/qn /L*v \"%TEMP%\vim-netdump-msi.log\" "

Installing, Upgrading, and Uninstalling vSphere Syslog Collector


Beforeyoubegin,reviewthesectionsMicrosoftWindowsInstallerCommandsonpage 4andBasic ProcedureforInstallingvCenterServerandComponentsfromtheCommandLineonpage 12.

VMware, Inc.

25

Command-Line Installation and Upgrade of VMware vCenter ServerTM 5.1

vSphere Syslog Collector Installation Parameters


Table 10. vSphere Syslog Collector Installation Command Parameters for theVMware-syslog.exe Command
Parameter INSTALLDIR=\"installdir\" Conditions Specifiestherootdestinationdirectoryfortheinstallation Theinstallationpathcannothavecommas(,)orperiods(.). IfyouinstallvSphereSyslogCollectoronadriveotherthanC:,verify thatthereisenoughspaceintheC:\WINDOWS\Installerfolderto installtheMicrosoftWindowsInstaller.msifile. VM_DATA_ROTATION=number VM_DATA_SIZE=number of GB VM_LOCALSERVER=IP or FQDN VM_PATH_DATA=\"data_directory\" VM_PORT=port number VM_PORT_TCP=[0|1] VM_PORT_UDP=[0|1] VM_PORTSSL=port number VM_PORTSSL_TCP=[0|1] Numberofdatarotations Harddiskspaceingigabytes(GB)forVM_PATH_DATA. vSphereSyslogCollectorlocalcomputerIPaddressorfullyqualified domainname(FQDN) Specifiestherootdestinationdatadirectoryfortheinstallation SyslogCollectorserviceportnumber SyslogCollectorTCPserviceport.Setto0todisableor1toenable. SyslogCollectorUDPserviceport.Setto0todisableor1toenable. SyslogCollectorSSLportnumber SyslogCollectorSSLport.Setto0todisableor1toenable.

Example 40installsastandalonevSphereSyslogCollectorwiththelogfilewrittentothe%TEMP%directory. Example 40.vSphereSyslogCollectorStandaloneInstallation


VMware-syslog.exe /s /v"VM_PATH_DATA=\"C:\DATA\" VM_DATA_SIZE=4 VM_DATA_ROTATION=15 VM_PORT=6501 VM_PORT_TCP=0 VM_PORT_UDP=1 VM_PORTSSL_TCP=0 /qn /L*v \"%TEMP%\vim-syslog-msi.log\" "

Example 41installsvSphereSyslogCollectorwithvCenterServer,withthelogfilewrittentothe%TEMP% directory.ForvCenterServerinstallationcommandparameters,seeTable 3. Example 41.vSphereSyslogCollectorInstallationwithvCenterServer


VMware-syslog.exe /s /v"VM_VC=1 VC_SERVER_ADDRESS=10.20.104.157 VC_SERVER_PORT=80 VC_SERVER_USER=\"myUser\" VC_SERVER_PASSWORD=\"myPassword\" VM_PATH_DATA=\"C:\DATA\" VM_DATA_SIZE=4 VM_DATA_ROTATION=15 VM_PORT=6501 VM_PORT_TCP=0 VM_PORT_UDP=1 VM_PORTSSL_TCP=0 /qn /L*v \"%TEMP%\vim-syslog-msi.log\" "

Example 42performsasilentminorupgradeofvSphereSyslogCollectorwiththelogfilewrittentothe %TEMP%directory. Example 42.vSphereSyslogCollectorMinorUpgrade(StandaloneorwithvCenterServer)


VMware-syslog.exe /s /v"/qn /L*v \"%TEMP%\vim-syslog-msi.log\" "

Example 43performsasilentmajorupgradeofvSphereSyslogCollectorwiththelogfilewrittentothe %TEMP%directory.


VMware, Inc. 26

Command-Line Installation and Upgrade of VMware vCenter ServerTM 5.1

Example 43.vSphereSyslogCollectorMajorUpgrade(StandaloneorwithvCenterServer)
VMware-syslog.exe /s /v"VC_SERVER_PASSWORD=\"myPassword\" /qn /L*v \"%TEMP%\vim-syslog-msi.log\" "

Example 44removesvSphereSyslogCollectorsilentlywiththelogfilewrittentothe%TEMP%directory. Example 44.vSphereSyslogCollectorProxyUninstallation


VMware-syslog.exe /s /x /v"/qn /L*v \"%TEMP%\vim-syslog-msi.log\" "

If you have comments about this documentation, submit your feedback to: docfeedback@vmware.com VMware, Inc. 3401 Hillview Ave., Palo Alto, CA 94304 www.vmware.com Copyright 2013 VMware, Inc. All rights reserved. This product is protected by U.S. and international copyright and intellectual property laws. VMware products are covered by one or more patents listed at http://www.vmware.com/go/patents. VMware is a registered trademark or trademark of VMware, Inc. in the United States and/or other jurisdictions. All other marks and names mentioned herein may be trademarks of their respective companies. Item: EN-001258-00

27

Das könnte Ihnen auch gefallen