Rvc

From VI-Toolkit
Revision as of 15:37, 30 January 2014 by Wila (talk | contribs) (Created page with "=== Ruby vSphere Console === author: Rich Lane ==== Description ==== A command line interface for vSphere, built via RbVmomi ==== Usage ==== % rvc 192.168.1.105 usernam...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Ruby vSphere Console

author: Rich Lane

Description

A command line interface for vSphere, built via RbVmomi

Usage

% rvc 192.168.1.105
username: Administrator
password:
0 dc (datacenter)
192.168.1.105:/> cd dc/host/192.168.1.100/
192.168.1.105:/dc/host/192.168.1.100/> ls
0 host [192.168.1.100] (host): cpu 2*2*2.81 GHz, memory 2.00 GB
1 resourcePool [Resources]: cpu 4.35/4.35/normal, mem 0.48/0.48/normal
192.168.1.105:/dc/host/192.168.1.100/> ls host/vms/
0 foo: poweredOn
192.168.1.105:/dc/host/192.168.1.100/> i host/vms/foo
name: foo
host: dc/host/192.168.1.100/192.168.1.100
tools: guestToolsNotRunning 
VC UUID: 5259d5d2-b767-43c9-db6d-fbf5cc4b6f02
power: poweredOn
cpus: 1 
memory: 128 MB
nics:
 Network adapter 1: "VM Network" connected 00:0c:29:c6:5d:2a 
192.168.1.105:/dc/host/192.168.1.100/> off host/vms/foo
PowerOffVM foo: success
192.168.1.105:/dc/host/192.168.1.100/> quit

Location

https://github.com/vmware/rvc

See also: (virtuallyghetto) How to install Ruby vSphere Console on vMA