I have been running the following command successfully in a script for several months now.
vmware-cmd --server 192.168.5.29 --vihost 192.168.5.28 -s register "/vmfs/volumes/192.168.5.28/CloneTestBackup/CloneTestBackup.vmx" ".5network" "Resources"
(yes the datastore is named after the ip address of the ESXi host)
I upgraded my Vmware vCenter Server Appliance from 5.1 to 5.5 and since then the command has not been working.
I get the following error:
Fault string: A specified parameter was not correct.
Fault detail: InvalidArgument
A specified parameter was not correct.
The data center and resource pool are correct because when I change their names I get a different error.
I can register the machine successfully from the vSphere Client and the Web Interface but it always fails for any vmx file from the vMA.
The unregister command works fine it is only the register command that fails.
192.168.5.29 is vCenter Server Appliance 5.5
192.168.5.28 is ESXi 5.1