API Main Practical
This practical will show you how to interact with the Grid'5000 API, using a range of tools that goes in increasing degrees of abstraction.
This practical is targeted at people who want to remotely and programmatically (i.e. without Human interaction) access the Grid'5000 tools to monitor nodes, submit jobs and deploy environments.
Before you start the practical, you are strongly advised to have a look at the introductory page about the Grid'5000 API.
This practical will use the latest stable version of the API:
The following examples will use the cURL tool, which is the swiss-army knife for interacting (among other things) with HTTP APIs. On debian systems, it can be installed with:
sudo apt-get install curl
sudo apt-get install ruby libopenssl-ruby rubygems
Note that if
gem -v returns a version number lower than
1.3.5, you may need to install rubygems from sources to get a more recent version.
The tutorials are self-hosted in a git repository at GitHub, so that you can easily get a copy (either by cloning the repository or downloading an archive of the files) and make changes to the source files.
Go to http://grid5000.github.com/tutorials/ to start the tutorials.
Do not hesitate to ask for help in the devel mailing-list, and share your code!