Installing / Upgrading from the Command Line

CloudM Migrate can be installed from the command line, with and without user interaction.  To view the help and available options run the installer with the -h switch.  For example

C:\Install> CloudM-Migrate-<version>.exe -h

To install CloudM Migrate with no interaction, you can use the -q switch, and you should also specify several installer properties:

  • Note that elevated permissions or UAC (User Access Control) are required to run the installation command non-interactively with the -q flag.
CONNECTIONSTRING=<value> (Full connection string required)
USEEXISTINGSQL=<true/false> (Default false)
INSTALLMASTER=<true/false> (Default true)
INSTALLSLAVE=<true/false> (Default true)
INSTALLWEBAPP=<true/false> (Default true)
INSTALLDESKTOP=<true/false> (Default true) 
LAUNCHWEBAPP=<true/false> (Default false) 
MAXUSERSPERSLAVE=<value> (Default 10)
PRIMARYSERVICEPORT (default 30061)
SECONDARYSERVICEPORT (default 30062)
RESULTSLOGSSERVICEPORT (default 30063)
ADMINEMAIL=<value> (Email address of user to create as web client admin)
ADMINPASSWORD=<value> (Password to create for the web client admin)

So, the full command line using an existing SQL Server would look like:

C:\Install> CloudM-Migrate-<version>.exe -q LAUNCHWEBAPP=true  USEEXISTINGSQL=true INSTALLMASTER=true INSTALLSLAVE=true MAXUSERSPERSLAVE=10 INSTALLWEBAPP=true INSTALLDESKTOP=true ADMINEMAIL=test@youremailaddresshere.com ADMINPASSWORD=MyPassword CONNECTIONSTRING="Data Source=CTS-MASTER\SQLEXPRESS;User Id=PoweredBy;Password=MyPassword;DataBase=PoweredBy;Connection Timeout=60"

Where -q will allow it to run in quiet mode.

If a CONNECTIONSTRING value is specified then the USEEXISTINGSQL value is automatically ignored and set as TRUE. 

Installing using custom ports

If installing using custom ports, be aware that custom ports need to match on primary and secondary servers in order for them to be able to communicate.

For example, if installing on a primary with the following custom ports 

  • Primary service port (2303)
  • Secondary service port (2304)
  • Results logs service port (2305)

Then the full command line using an existing SQL Server would look like:

C:\Install> CloudM-Migrate-<version>.exe -q LAUNCHWEBAPP=true  USEEXISTINGSQL=true INSTALLMASTER=true INSTALLSLAVE=true MAXUSERSPERSLAVE=10 INSTALLWEBAPP=true INSTALLDESKTOP=true ADMINEMAIL=test@youremailaddresshere.com ADMINPASSWORD=MyPassword CONNECTIONSTRING="Data Source=CTS-MASTER\SQLEXPRESS;User Id=PoweredBy;Password=MyPassword;DataBase=PoweredBy;Connection Timeout=60" PRIMARYSERVICEPORT=2303 SECONDARYSERVICEPORT=2304 RESULTSLOGSSERVICEPORT=2305

The full command line to then install a secondary server would look like:

C:\Install> CloudM-Migrate-<version>.exe -q LAUNCHWEBAPP=true  USEEXISTINGSQL=true INSTALLMASTER=false INSTALLSLAVE=true MAXUSERSPERSLAVE=10 INSTALLWEBAPP=false INSTALLDESKTOP=false ADMINEMAIL=test@youremailaddresshere.com ADMINPASSWORD=MyPassword CONNECTIONSTRING="Data Source=CTS-MASTER\SQLEXPRESS;User Id=PoweredBy;Password=MyPassword;DataBase=PoweredBy;Connection Timeout=60" PRIMARYSERVICEPORT=2303 SECONDARYSERVICEPORT=2304 RESULTSLOGSSERVICEPORT=2305

Upgrading

Upgrading is the same as installing. It just detects that you have an earlier version of the product installed already.

Was this article helpful?
1 out of 1 found this helpful