Using SVMotion from the Command Line

Author: NetworkAdminKB.com
Created: 2009-05-04
Modified: 2009-10-18

Issue:

When issuing an SVMotion command from the command line you may receive any of the following errors.

 

Argument to --vm is not in the correct format.

 

Could not find datacenter 'DS_Name in the inventory.

Cause:

The examples given in SVMotion.pl are incorrect or misleading.  You should not quote strings with single quotes (), use double quotes () instead.

 

Example:

--vm “[datastore] folder/file.vmx:new_datastore”

 

Solution:

 

Valid SVMotion.pl Command Line Examples (each command is a single line)

 

svmotion --url=https://vc_server.domain.com/sdk --username=domain1\user1

--password=pass --datacenter="Datacenter One"

--vm="[ds_store_01] folder/file.vmx:ds_store_02"

 

svmotion --server=vc_server.domain.com --passthroughauth

--datacenter="Datacenter One" --vm="[ds_store_01] folder/file.vmx:ds_store_02"

 

 

More Information:
If use SVMotion with the --interactive switch, a percentage completed graph is displayed.

When using the SVMotion without the --interactive switch the percentage completed graph is not displayed.

Article ID: 170, Created On: 9/17/2011, Modified: 9/17/2011