VMware Cloud Community
rohitsk
Contributor
Contributor

accessing local file system of esxi server using vifs

I am thinking of using vifs to download a file, make some changes and upload it to the server. But I am not able to access files on the file system. I am able to view files on datastores though.

For eg:

C:\Program Files (x86)\VMware\VMware vSphere CLI\bin>vifs.pl --server 9.39.127.121 --username admin --password ******** --get "/tmp/file" D:/test/

GET https://9.39.127.121/folder//tmp/ unsuccessful : 404 Not Found

Error: File can not be downloaded to D:/test/.

But I am able to put a file successfully to /tmp on the server

C:\Program Files (x86)\VMware\VMware vSphere CLI\bin>vifs.pl --server 9.39.127.121 --username admin --password ******** --put file.txt /tmp/file.txt

Uploaded file file.txt to file.txt successfully.

I can get/put the file to datastore without issues. So my question is will vifs get work only on datastores and not on local filesystem?

Tags (3)
Reply
0 Kudos
1 Reply
rohitsk
Contributor
Contributor

Also while uploading, I can upload to only /tmp. Is there a way to update arbitrary location using vifs?

I know the same can be achieved using ssh but I dont have the permissions to enable ssh.

Reply
0 Kudos