README.md in esx-0.1.1 vs README.md in esx-0.2
- old
+ new
@@ -10,41 +10,45 @@
gem install esx
# Usage
-ESX ruby library includes a script to print ESX host information.
- Usage: esx my-esx-host-here
+Usage: esx --help
-This will ask you for the username and password of the host.
+## Available Commands
+__esx info --user root --password foo 10.10.0.2__
+
Sample output:
*********
ESXHOST1
*********
Memory Size: 32756
Memory Usage: 7429
Cpu Cores: 8
Power State: poweredOn
+ Hosted VMs: 2
+ Running VMs: 1
Virtual Machines:
- +-------------------------+--------+------+------+-------+
- | NAME | MEMORY | CPUS | NICS | DISKS |
- +-------------------------+--------+------+------+-------+
- | foobar | 128 | 1 | 1 | 1 |
- | foobar2 | 256 | 2 | 1 | 1 |
- +-------------------------+--------+------+------+-------+
+ +-------------------------+--------+------+------+-------+------------+
+ | NAME | MEMORY | CPUS | NICS | DISKS | STATE |
+ +-------------------------+--------+------+------+-------+------------+
+ | foobar | 128 | 1 | 1 | 1 | poweredOn |
+ | foobar2 | 256 | 2 | 1 | 1 | poweredOff |
+ +-------------------------+--------+------+------+-------+------------+
Datastores:
+------------+--------------+--------------+-----------+------+---------------------------------------------------+
| NAME | CAPACITY | FREESPACE | ACCESIBLE | TYPE | URL |
+------------+--------------+--------------+-----------+------+---------------------------------------------------+
| datastore2 | 146565758976 | 145547591680 | VMFS | true | /vmfs/volumes/4e611c69-16474ca5-d290-5ef3fc9a99c3 |
| datastore1 | 141465485312 | 20716716032 | VMFS | true | /vmfs/volumes/4e6117e7-35c82a3e-ba79-5cf3fc9699c2 |
+------------+--------------+--------------+-----------+------+---------------------------------------------------+
+__esx create-vm --user root --password foo --name esx-rubiojr --disk-file /path/to/file.vmdk --datastore datastore1 --memory 2048 --poweron 10.10.0.2__
# Using the library
require 'rubygems'
require 'lib/esx.rb'