I had been through this.I nneed a command to work with ESXi console.Get-VM command doesnt work with the ESXi console.
You can use this:
http://www.vmware.com/support/developer/vcli/vcli41/doc/reference/vmkfstools.html
But note that Get-VM must be issue not in the ESXi console, but on a Windows machine with PowerCLI installed.
Andre
No commands worked for me. My VM is powered on.I need a command to add a lUN to VM either as physical or virtual RDM through the ESXi console(CLI). Can anyone help !!
My Idea would be to use the vMA 4.1 or the DUI of the ESXi Server to execute the following CLI command :
http://www.vmware.com/support/developer/vcli/vcli41/doc/reference/vmkfstools.html
vmkfstools <conn_options> <options> <target>
If <target> is a file system, <options> can be one of the following:
--createfs [blocksize]kK|mM --setfsname <fsname> --queryfs --extendfs <span_partition> <head_partition>
If <target is a virtual disk, <options> can be one of the following:
--clonevirtualdisk --createdrm --createdrmpassthru --createvirtualdisk <size>kK|mM|gG --adaptertype <type> --diskformat <format> <location> --deletevirtualdisk --diskformat --extendvirtualdisk --geometry --inflatedisk --querydrm --renamevirtualdisk <oldName> <newName> --writezeros
Hope this help