Quick examples of lc-tools usage.
Searching 'centos' images through images available for account:
$ lc-image-list|grep -i centos
image CentOS 5.2 (32-bit) w/ RightScale (id = 62)
image CentOS 5.2 (64-bit) w/ RightScale (id = 63)
image CentOS 5.3 (32-bit) w/ None (id = 1531)
image CentOS 5.3 (64-bit) w/ None (id = 1532)
Listing avialable sizes:
$ lc-sizes-list
size 512MB (id=512MB, ram=512, disk=30 bandwidth=None)
size 4GB (id=4GB, ram=4096, disk=240 bandwidth=None)
size 2GB (id=2GB, ram=2048, disk=120 bandwidth=None)
size 8GB (id=8GB, ram=8192, disk=480 bandwidth=None)
size 1GB (id=1GB, ram=1024, disk=60 bandwidth=None)
Creating a new node:
$ lc-node-add -i 62 -s 1GB -n mynewnode
It will create a centos node (id = 64) of size 1GB (id = '1GB') with name 'mynewnode'.
Gettling list of nodes:
$ lc-node-list
100xxx mynode1 173.204.xx.yy Running
100xxx mynode2 173.204.xx.zz Running
Removing a node:
$ lc-node-do -i node_id destroy
Where node_id is id of the node to destroy.