VMware Cloud Community
jgweir
Contributor
Contributor

vSphere 4.1 vifs (--mkdir --listds) not working properly

We are using the vSphere remote commands like "vifs --put" and "vifs --dir" to automate some processes. Some of these commands are working properly, but other commands are not.

These are the issues we are trying to workaround without success.

1) Cannot list DataStores in an ESXi/ESX servers.

The command 'vifs --server 192.168.1.112 --listds' returns:

"

Content Listing

-


"

Strange thing, as the --listdc to list datacenters work fine.

We've tried with user root and another user. We've tried using sudo. We've tried a ESX 4.0, ESXi 4.0, ESX 4.1, and ESXi 4.1, and all the time is the same result, which is, no error, but no result neither.

-


2) Cannot create a directory in an ESXi/ESX servers.

The command 'vifs --server 192.168.1.112 --mkdir "[datastore1] /toto"' returns:

"Unable to create directory /toto:

fault.RestrictedVersion.summary"

We've tried differents strings for the --mkdir parameter, like:

"[datastore1] /toto"

"[datastore1] toto"

"[datastore1] /toto/"

"[datastore1] toto/"

toto

/toto

/toto/

toto/

and all of them return the same error.

We've tried with user root and another user. We've tried using sudo. We've tried a ESX 4.0, ESXi 4.0, ESX 4.1, and ESXi 4.1, and all the time is the same result, which is, no error, but no result neither.

Any ideas how to resolve these issues ?

Thanks

0 Kudos
0 Replies