lnst-ctl (1) - Linux Manuals
lnst-ctl: Linux Network Stack Test controller
NAME
lnst-ctl - Linux Network Stack Test controller
SYNOPSIS
lnst-ctl [OPTION]... ACTION RECIPE...DESCRIPTION
Linux Network Stack Test is a tool that supports development and execution of automated and portable network tests. For detailed description of the architecture of LNST please refer to project website (link listed on INTERNET RESOURCES bellow).lnst-ctl is a script used for managing slaves. It reads a recipe XML file as an input and executes tests on the specified slave machines.
OPTIONS
- -A, --override-alias name=value
- Define top-level alias that will override any other definitions in the recipe
- -a, --define-alias name=value
- Define top-level alias
- -c, --config=file
- Load a custom configuration file in addition to /etc/lnst-ctl.conf and ~/lnst/lnst-ctl.conf that are loaded by default.
- -d, --debug
- Toggle emitting debugging messages.
- --dump-config
- Dumps the join of all loaded configuration files on stdout and exits
- -h, --help
- Display usage of this command.
- -m, --no-colours
- Disable coloured terminal output.
- -o, --disable-pool-checks
- Skip the pool machine availability checks.
- -p, --packet-capture
- Capture and log all ongoing network communication between the slaves during the test.
- --pools=name[,...]
- Restricts which pools to use for matching, value is a comma separated list of values
- --pools=path
- Restrict which pool to use for matching, value is single path to a pool directory
- -r, --reduce-sync
- Disable synchronization of module and tool resources to slave machines, when python tasks are used in the recipe. Instead the user can manually synchronize resources from the python task itself. This option has no effect if the recipe only contains xml tasks.
- -s, --xslt-url=URL
- URL to a XSLT document that will be used when transforming the xml result file, only useful when -t is used as well
- -t, --html=file
- Generate a formatted result html
- -u, --multi-match
- Run each recipe with every pool match possible
- -x, --result=file
- Write results in XML format to the specified file.
- -v, --verbose
- Extends output of list_pools action
RECIPE can be either a LNST recipe file or a directory containing recipe files. One or more files/directories can be passed at the same time. Each recipe is a XML file. The format is described in detail in the online documentation available at LNST wiki (link is listed on INTERNET RESOURCES bellow).
ACTION can be one of run, config_only, deconfigure, match_setup, and list_pools.
When it is set to run, all provided recipe files will be sequentially executed. The network will be configured accordingly to each recipe file and clean up afterwards.
In case of config_only, the recipes provided are processed up to the point where all the machines are prepared and properly configured. No tests will be executed and the cleanup phase is omitted as well. This mode of operation is useful if you want to perform some specific actions or tests outside of LNST using the configuration specified in a recipe file.
In case of deconfigure, the configuration from a previous config_only run will be removed, including dynamically created devices on virtual machines. There is no need to specify a recipe for this action.
In case of list_pools, lnst-ctl looks up all the pools entered in configs and dumps info about them. When used without -v or --verbose option, only pool names and paths are printed. With verbose option, all viable slave machine configs are printed in more human readable format.
At last, when the ACTION is set to match_setup, lnst-ctl will only try to match the configuration in the recipe with its local pools and print the resulting match, in case it was successful or an appropriate error message, in case it was not.
CONFIGURATION
lnst-ctl will look for configuration in the following locations:
/etc/lnst-ctl.conf
~/.lnst/lnst-ctl.conf
For further description of file format or configuration options available, please refer to the configuration file itself, where each option is documented.
EXIT STATUS
lnst-ctl will terminate with one of the following statuses:
LNST is distributed under the GNU General Public License version 2. See
the file "COPYING" in the source distribution for information on terms &
conditions for accessing and otherwise using LNST.
INTERNET RESOURCES
Project Homepage: http://lnst-project.org/
Online Documentation: https://github.com/jpirko/lnst/wiki#learn
Git Source Tree: https://github.com/jpirko/lnst
Mailing List: <lnst-developers [at] lists.fedorahosted.org>
AUTHORS
Jiri Pirko <jiri [at] resnulli.us>
Jan Tluka <jtluka [at] redhat.com>
Ondrej Lichtner <olichtne [at] redhat.com>
Jiri Prochazka <jprochaz [at] redhat.com>
Jiri Zupka <jzupka [at] redhat.com>
Radek Pazdera <radek [at] pazdera.co.uk>
COPYRIGHT
Copyright (C) 2011-2015 Red Hat, Inc.