Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
W
Wiki
  • Project overview
    • Project overview
    • Details
    • Activity
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • TEC
    • P
      Public
  • FlockLab
  • Wiki
  • Wiki
    • Man
  • flocklab cli

Last edited by Reto Da Forno Sep 09, 2020
Page history

flocklab cli

FlockLab Command Line Tool

👉 Remark: this command line tool is deprecated. We recommend to use the flocklab-tools instead (python based).

For automating FlockLab tests, a command line tool based on cURL is provided:

Download: Command Line Tool

Setting it up

A config file with the login credentials for FlockLab (same as for web interface) needs to exist in the user's home directory in order to use the command line tool:

Config file in ~/.flocklabauth:

USER=<your username>
PASSWORD=<your password>

Usage

usage: ./flocklab [OPTION]

OPTIONS:
   -v <testconfig.xml>: validate test config
   -c <testconfig.xml>: create / schedule new test
   -a <testid>:         abort test
   -d <testid>:         delete test
   -g <testid>:         get test results (via https)
   -f <testid>:         fetch test results (via webdav)
   -o <platform>:       get a list of the currently available (online) observers
   -p:                  get a list of the available platforms
   -h:                  display help

For the commands -g and -f, the download directory can be specified as an additional argument.

Adjust settings

Some additional settings can be adjusted in the script itself:

DEST=${3:-/tmp/flocklab}  # destination directory (if not specified, the default is used: /tmp/flocklab)
EXTRACT=1                 # extract results?
TESTCONFIG=0              # also download XML test config?
Clone repository
  • Man
    • CoojaPlugin
    • Description
    • Examples
    • FAQ
    • GpioAssignmentTargetAdapter
    • HowTo
    • QuickStart
    • Services
    • ServicesOld
    • SetupGuide
    • Targets
    • Tutorials
    • Tutorials
      • Tutorial1
      • Tutorial2
      • Tutorial3
View All Pages