Vimsh: Difference between revisions
Added William's article about vimsh
mNo edit summary |
(Added William's article about vimsh) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 7: | Line 7: | ||
Below is some output of the shell that you get to see and the output of the "?" command: | Below is some output of the shell that you get to see and the output of the "?" command: | ||
[/]$ ? | [/]$ ? | ||
hostsvc/ vmsvc/ csinfo help | hostsvc/ vmsvc/ csinfo help puload | ||
internalsvc/ ? | internalsvc/ ? csls pinfo puse | ||
proxysvc/ | proxysvc/ argtype csuimport pload quit | ||
solo/ | solo/ cls echo ploadpath sleep | ||
vimsvc/ csimport exit | vimsvc/ csimport exit pls source | ||
Line 20: | Line 20: | ||
An advantage of vimsh over normal esx-cfg commands is that the changes are immediate, so you do not need to restart the vmware management services. | An advantage of vimsh over normal esx-cfg commands is that the changes are immediate, so you do not need to restart the vmware management services. | ||
In recent versions of ESX (ESX3.5+), there's also a non interactive command line version of vimsh that can be used from within a script which is called [[vmware-vim-cmd]] and is much easier to read in your scripts as the alternative: | In recent versions of ESX (ESX3.5+), there's also a non interactive command line version of vimsh that can be used from within a script which is called [[vmware-vim-cmd]] and is much easier to read in your scripts as the alternative: vimsh -n -e "command" | ||
vimsh -n -e | |||
'''ESX 3.0.x+''' | |||
/usr/bin/vimsh -n -e "command" | |||
'''ESX 3.5+''' | |||
/usr/bin/vimsh -n -e "command" | |||
/usr/bin/vmware-vim-cmd "command" | |||
'''ESXi 3.5+''' | |||
/bin/vim-cmd "command" | |||
/usr/bin/vimsh is a symbolic link to the file [[vmware-vimsh]] in the same folder. | |||
==== List of commands ==== | ==== List of commands ==== | ||
Line 77: | Line 87: | ||
* [http://malaysiavm.com/blog/how-to-update-vmware-esx-patch-using-cli/ How-to update vmware ESX using CLI] | * [http://malaysiavm.com/blog/how-to-update-vmware-esx-patch-using-cli/ How-to update vmware ESX using CLI] | ||
* [http://engineering.ucsb.edu/~duonglt/vmware/#vmware_vimsh William Lam's "VMware's undocumented vimsh"] | |||
[[Category: ESX]][[Category: SDK]][[Category: Vimsh]] | [[Category: ESX]][[Category: SDK]][[Category: Vimsh]] |