VMware Cloud Community
radek1986
Contributor
Contributor

[ESXCLI] Creating new folder on datastore

Hello All,


I have a problem with ESXCLI package. The issue seems to be simple, because need to create new folder on datastore..

But when I try to use:

vifs --server servername --username usrname --password pass --mkdir '[datastore] newFolderName' -Z 'datacenter'

(I am not sure if -Z parameter is necessary)

I have error: Unable to create directory [datastore] newFolderName

The comment works good when i use it directly on ESX, but I need to create the folder via vCenter.

Do you have any idea ?

Thank in advance for your help

Regards,

Radek

Reply
0 Kudos
2 Replies
MasonRupert
Contributor
Contributor

I may not be completely understanding your question. If you have access to vCenter why not perform this via Home>Datastores Browse the datastore and create new folder?

Reply
0 Kudos
radek1986
Contributor
Contributor

A wrote that I have to connect and do it via ESXCLI package.

Reply
0 Kudos