Hi
I am trying to use VCO SSH plugin to execute some commands on my host.
Connection works fine and commands such as uptime,hostname work too.
What I want to do is execute the mkdir command to create some folders but it always fails (i.e mkdir \vswp\volumes\myvol\mydir)
What I eventually want to achieve is to clone disks with vmkfstools
Any thoughts?
If you are trying to create folders on linux/ESXi, please note that you should not use "\" but "/"
I.e. mkdir /mnt/newfolder
Haven't tried using VCO SSH plugin but normal SSH command should work.
For example, "ssh root@test.com mkdir /tmp/test_folder"
The below is the actual output of running "ssh root@test.com vmkfstools -h"
s:~ stevenk$ ssh root@test.com vmkfstools -h
Password:
No valid command specified
OPTIONS FOR FILE SYSTEMS:
vmkfstools -C --createfs [vmfs3|vmfs5]
-b --blocksize #[mMkK]
-S --setfsname fsName
-Z --spanfs span-partition
-G --growfs grown-partition
deviceName
-P --queryfs -h --humanreadable
-T --upgradevmfs
vmfsPath
-y --reclaimBlocks vmfsPath [--reclaimBlocksUnit #blocks]
OPTIONS FOR VIRTUAL DISKS:
vmkfstools -c --createvirtualdisk #[gGmMkK]
-d --diskformat [zeroedthick
|thin
|eagerzeroedthick
]
-a --adaptertype [buslogic|lsilogic|ide
|lsisas|pvscsi]
-W --objecttype [file|vsan]
--policyFile <fileName>
-w --writezeros
-j --inflatedisk
-k --eagerzero
-K --punchzero
-U --deletevirtualdisk
-E --renamevirtualdisk srcDisk
-i --clonevirtualdisk srcDisk
-d --diskformat [zeroedthick
|thin
|eagerzeroedthick
|rdm:<device>|rdmp:<device>
|2gbsparse]
-W --object [file|vsan]
--policyFile <fileName>
-N --avoidnativeclone
-X --extendvirtualdisk #[gGmMkK]
[-d --diskformat eagerzeroedthick]
-M --migratevirtualdisk
-r --createrdm /vmfs/devices/disks/...
-q --queryrdm
-z --createrdmpassthru /vmfs/devices/disks/...
-v --verbose #
-g --geometry
-x --fix [check|repair]
-e --chainConsistent
-Q --objecttype name/value pair
--uniqueblocks childDisk
vmfsPath
OPTIONS FOR DEVICES:
-L --lock [reserve|release|lunreset|targetreset|busreset|readkeys|readresv
] /vmfs/devices/disks/...
-B --breaklock /vmfs/devices/disks/...
vmkfstools -H --help
Let me know if this isn't what you wanted :smileygrin:
If you are trying to create folders on linux/ESXi, please note that you should not use "\" but "/"
I.e. mkdir /mnt/newfolder
This is embarrassing. Can't believe I missed that....