User Tools

Site Tools


wibed:api

A crontab job in the nodes make an HTTP call to the server to get the information. The call can be of several types as listed below:

Experiment info retrieve

http://serverIP/api/info/<node_id>?status=<status>

exp_id <INT> the current experiment identifier
run <0 or timer> if zero the experiment must not be run, else it is the time until the current experiment expires
prepare <0 or 1> if not zero the node is allowed to prepare the next experiment
ov_url <url> the HTTP URL to download the current experiment overlay
save_url <url> the rsync URL to push the /save files during the experiment

Upgrade

http://serverIP/api/upgrade/<node_id>?version=<current_version>?model=<hw_model>

upg_url <url> the HTTP URL of the new firmware
upg_timer <timer> timer until the upgrade should start

Execute commands

http://serverIP/api/command/<node_id>

command_id <INT> id of the current command
command <string> string containing the command/s to execute
wibed/api.txt · Last modified: 2013/06/28 13:48 by jlflorit