Hi,
I want to find out the vmx files and copy them to remote host? Please tell me how i cna do so?
Regards,
Victor
The path to vmx file can be fetched from "config.files.vmPathName" of the VirtualMachine object. In order to copy a file, you can use the "CopyDatastoreFile_Task" method available in VI API. For more details on this method, you can refer to the VI API reference guide:
http://www.vmware.com/support/developer/vc-sdk/visdk25pubs/ReferenceGuide/vim.FileManager.html
Hope this information is helpful.
Thanks for your Reply.
Sorry for incomplete question.
I am using the "VMware VI Remote CLI".Through this,Is there any way to accomplish the said objective?
Check out the vifs command.
Please tell,how to locate vmx file of particular VM .
After locating I want to copy it to some remote host and vice versa. How can i do so? I looked into vifs,but to no avail.
Regards,
Victor
Hi!
You can up- and download files via https:///folder
Straight forward, you find examples in this forum.
Tos2k