Vmware-vim-cmd: Difference between revisions

From VI-Toolkit
Jump to navigation Jump to search
m added vimsh category
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 7: Line 7:
so now you can use:
so now you can use:
  vmware-vim-cmd <command>
  vmware-vim-cmd <command>
or nowadays use the shorter:
vim-cmd <command>


  Usage: /usr/lib/vmware/hostd/vmware-vim-cmd [options]... command [cmd_arg1] [cmd_arg2] ...
  Usage: vmware-vim-cmd [options]... command [cmd_arg1] [cmd_arg2] ...
   
   
  Options:
  Options:
Line 21: Line 23:
Use the help command to get information on the commands available.
Use the help command to get information on the commands available.


   /usr/lib/vmware/hostd/vmware-vim-cmd help [command]
   vmware-vim-cmd help [command]
 


Possible locations of the binary are:
(legacy)
/usr/lib/vmware/hostd/vmware-vim-cmd
(current)
/usr/bin/vmware-vim-cmd
/bin/vim-cmd
[[Category: ESX]][[Category: SDK]][[Category: Vimsh]]
[[Category: ESX]][[Category: SDK]][[Category: Vimsh]]

Latest revision as of 19:05, 11 April 2015

Vmware-vim-cmd

The command line version of the vimsh command. This can be used in your scripts and replaces the alternative

vimsh -n -e <command>

so now you can use:

vmware-vim-cmd <command>

or nowadays use the shorter:

vim-cmd <command>
Usage: vmware-vim-cmd [options]... command [cmd_arg1] [cmd_arg2] ...

Options:
  -h           Display this help message and exit
  -v           Display version information and exit
  -H <host>    Host name to connect
  -O <port>    Port number to connect
  -U <user>    User name to use for login
  -P <pass>    Password to use for login
  -d <level>   Show verbose debug output. (info, verbose, trivia)

Use the help command to get information on the commands available.

  vmware-vim-cmd help [command]

Possible locations of the binary are: (legacy)

/usr/lib/vmware/hostd/vmware-vim-cmd 

(current)

/usr/bin/vmware-vim-cmd
/bin/vim-cmd