The release of vSphere 5.5 includes the support and availability of the vSphere Ruby Console (RVC). RVC is an interactive object oriented command line interface utility based on the Ruby programming language. RVC was initially introduced by VMware some time ago as a fling.
The utility has evolved into a fully supported tool for both the Windows version of vCenter Server and the Linux version of vCenter Server Appliance (VCVA). RVC, is similar to other common tools like PowerCLI, ESXCLI, and can be used to manage and troubleshoot vSphere environments. RVC can be used to perform basic commands that create vSphere inventory objects like datacenters, clusters, virtual machines, etc.
Using RVC – Linux, Mac OSX, Windows
Linux and Mac OSX operating systems provide a couple of different option for using RVC. The options rely on whether Ruby and RVC have been installed locally.
Option 1: If Ruby and RVC have been successfully installed and configured onto a local system using RVC to connect to ESXi host or a vCenter Server instance is achieve by opening a terminal or command prompt window and typing following:
- rvc @
- rvc [email protected] or rvc vcs.sddc.local
Option 2: When working with instances of VCVA and Ruby and RVC are not installed and configured on a local system open a secure shell (ssh) connection to the target VCVA and launch RVC from within the VCVA. A successful remote RVC connection to a VCVA via ssh is illustrated below.
Once connected to a target instance, RVC presents a hierarchical structure derived from the vCenter Server or ESXi host inventory similar to the one found in both the vSphere Web Client and the vSphere Client.
For future updates, be sure to follow me on Twitter at @PunchingClouds