Command-Line Tools

Here are the command-line tools StratusLab provides.

End-User

Instance management

Volume management

Metadata management

Other

These commands are available in the package/tarball stratuslab-cli-user. The above links provide descriptions of the utilities highlighting the main use-cases and describing main parameters. Please run the commands with -h/–help to get list of all supported parameters and their respective descriptions.

Credentials

For working with user command-line tools one would need to posses the following credentials (requirement depends on use-case and utility used):

  • X509 key/pair
  • Globus/VOMS proxy
  • PKCS12 certificate
  • username/password of the account in StratusLab, Cloud frontend(s)

Configuration file for user commands

The configuration file contains definitions of different endpoints and credentials required for the user client. By default, user CLI utilities will search for the following file: $HOME/.stratuslab/stratuslab-user.cfg. This can be overwritten with -c/–config parameter. If the file is not found, a warning will be issued and required parameters will be searched in the following order: defaults, environment variables, command line options.

The configuration reference template file for RPM distribution is /etc/stratuslab/stratuslab-user.cfg.ref and for tar-ball is conf/stratuslab-user.cfg.ref.

User has to copy the file e.g. to the default location $HOME/.stratuslab/stratuslab-user.cfg and modify it accordingly. See stratuslab-user.cfg.ref for explanations of the variables. The variables that are commented out (eg p12_certificate) take their default values from the code.

The order of processing

1. defaults defined in the code 
2. configuration file
3. environment variable
4. command line parameter 

On example of MarketPlace Endpoint

1. http://appliances.stratuslab.eu/marketplace/metadata
2. marketplace_endpoint = http://appliances.stratuslab.eu/marketplace/metadata
3. STRATUSLAB_MARKETPLACE_ENDPOINT
4. --marketplace-endpoint

The variables in the configuration file correspond to the respective environment variables applying the following transformation STRATUSLAB_upper(<var in conf file>). I.e. apprepo_username → STRATUSLAB_APPREPO_USERNAME.

System Administrator

Installation, configuration and system test

Utilities used in StratusLab transfer management scripts

– Image and image metadata

– Persistent Disk Storage access

– Other

These commands are available in the package/tarball stratuslab-cli-sysadmin. For more details on manual installation/configuration see Manual Cloud Services Installation.

  • Bookmark at
  • Bookmark "Command-Line Tools" at del.icio.us
  • Bookmark "Command-Line Tools" at Digg
  • Bookmark "Command-Line Tools" at Reddit
  • Bookmark "Command-Line Tools" at Google
  • Bookmark "Command-Line Tools" at StumbleUpon
  • Bookmark "Command-Line Tools" at Facebook
  • Bookmark "Command-Line Tools" at Twitter