Version 25 (modified by piontek, 11 years ago) (diff)

--

The page describes the usage of the QCG-Broker Client, which is the command line text client for the QCG-Broker service.

System pre-requirements

  • Installed qcg-broker-client package. The RPM installation procedure for SL5/6 is described here

User Requirements

  • User's credential To secure the communication and authenticate the user to the service the X509 proxy certificate is needed.

Environment configuration

User’s credential

To configure the security settings please create or edit the ~/.globus/cog.properties file.

Client expects the access either to the pair of user certificate and private key files in "pem" format or to the proxy certificate file.

IMPORTANT: If the user has the certificate in p12 format, the certificate has to be first converted to the pem format files.

  openssl pkcs12 -nocerts -in cert.p12 -out userkey.pem
  openssl pkcs12 -clcerts -nokeys -in cert.p12 -out usercert.pem

Add or edit the location of key/certificate files in the cog.properties file.

usercert=/home/piontek/.globus/usercert.pem
userkey=/home/piontek/.globus/userkey.pem

As an alternative the path to the user proxy certificate file can be specified.

proxy=/tmp/x509up_u501

If certificate and key are specified and exist the user proxy certificate is automatically created by the client. Otherwise the proxy certificate has to be created somehow else (e.g. using the grid-proxy-init tool) and copied to the location pointed out by the proxy variable. In the second case checking of the key format must be disabled in the qcg configuration. Please see the QCG_ENV_SKIP_KEY_CHECK variable in the next section.

Configuration of the client

One can overwrite global client configuration crating or editing the ~/.qcg/qcg.conf file and setting the following variables:

  • QCG_ENV_PROXY_DURATION - default lifetime (in hours) of the proxy certificate created by the client,
  • QCG_ENV_PROXY_DURATION_MIN - minimal liefetime of the proxy certificate in hours. If the remaining lifetime is shorter then the given value the proxy is automatically recreated by the client
  • QCG_ENV_CONNECT_TIMEOUT - maximal time (in seconds) that the client waits to connect to the interactive sesion,
  • QCG_ENV_SKIP_KEY_CHECK - If the variable is not empty client do not check the correctness of the key format. Must be check if the client is configured to use the proxy and the key/certificate are not provided.

QCG Broker Client Modes

The QCG-client can operate in two modes:

  • Simple mode - recommended for most of the users. The Simple mode offers the most frequently used functionality of the QCG in a very simple and intuitive way,
  • Advance Mode which is recommended for advanced users for whom the functionality of the Simple mode is not sufficient.

QCG Simple Client

The QCG Simple client is recommended for all users who do not need advanced capabilities of the QCG middleware like workflows, parallel jobs with topologies or parameter sweep jobs. In return, it offers access to the most frequently used functionality in very simple and intuitive way. The QCG Simple client consists of a set of command line tools modelled after the set of tools known from popular queueing systems. All tasks submitted to be executed by QCG-Broker must be described in a formal way using the concept of directives known also from queueing systems.

qcg-* tools

QCG-Simple description format