Ruby vSphere console

The next CLI that is very useful in real life is the Ruby vSphere console. The Ruby vSphere console is a part of the vCenter Appliance 6.7, and is accessible by typing rvc.

You can install rvc in your notebook or use a Docker container. The rvc command is often used for TRBL vSAN. You can find a great post about it here: https://blogs.vmware.com/kb/2016/10/tips-tricks-ruby-vsphere-console-rvc-managing-virtual-san-environment.html:

Command> rvc
Install the "ffi" gem for better tab completion.
WARNING: Nokogiri was built against LibXML version 2.9.4, but has dynamically loaded 2.9.8
Host to connect to (user@host): localhost
Using default username "[email protected]".
password:
Welcome to RVC. Try the 'help' command.
0 /
1 localhost/
>

Once you are connected, you can browse the available commands using help:

> help
Namespaces:
alarm
basic
cluster
connection
core
datacenter
datastore
device
diagnostics
...

To see commands in a namespace, use help namespace_name. To see detailed help for a command, use help namespace_name.command_name.

Here's a list of the available commands for VMs:

help vm
Commands:
annotate: Change a VM's annotation
answer: Answer a VM question
bootconfig: Alter the boot config settings
clone: Clone a VM
create: Create a new VM
extra_config: Display extraConfig options
find: Display a menu of VMX files to register
ip: Wait for and display VM IP addresses
kill (kill, k): Power off and destroy VMs
...
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.19.56.45