Hostsvc/datastore/nas create
vimsh hostsvc/datastore/nas_create
Usage: nas_create name remoteHost remotePath readonly
Add a NAS datastore. readonly is a boolean value, 0 for readonly and 1 for rw access.
Example
NFS SERVER IP: 172.30.0.254
NFS EXPORTED PATH: /nfs/mount/path
RW: 1
DATASTORE NAME : MY_NFS_DATASTORE
ESX 3.5+
vmware-vim-cmd hostsvc/datastore/nas_create MY_NFS_DATASTORE 172.30.0.254 /nfs/mount/point 1
ESXi 3.5+
vim-cmd hostsvc/datastore/nas_create MY_NFS_DATASTORE 172.30.0.254 /nfs/mount/point 1
ESX 3.0.x+
vimsh -n -e "hostsvc/datastore/nas_create MY_NFS_DATASTORE 172.30.0.254 /nfs/mount/point 1"