Skip to content

waykocat/RetrieveMachines

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Automatic VM Retrieve

Sync-Retrieve is tool that allows the user to retrieve all VMs in all physical machines in the platform. It consists in a script that does the retrieve that can be configured easily with crontab to launch it periodically

Setting up the environment - Use in CentOS 6

Installing ruby

# yum install ruby

Installing dependencies

# gem install bundler
# bundle install

Using the script

Parameters

The parameters needed to use the script are the following

  1. Username and Password from your AbiquoPlatform

  2. URL from the API that we want to modify

Options

Usage example

# ruby vm-retrieve.rb -u admin:admin -s https://192.168.54.25/api/admin/datacenters

Usage with crontabExamples with crontab

If crontab is not installed yet run command

# yum install vixie-cron

Enable the package on boot and start

# /sbin/chkconfig crond on

# /etc/init.d/crond start

Its necessary to add lines to /etc/crontab file

If we want to retrieve VM each hour:

0 */1 * * * /path-to-script/vm-retrieve.rb  parameters

If we want to retrieve VM each 30' :

0,30 * * * * /path-to-script/vm-retrieve.rb  parameters

License

This script is licensed under the Beerware License further details, see the LICENSE file.

For comments and support: albert.navarro[at]abiquo.com

About

Tool to retrieve all virtual machines from abiquo platform

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages