[[ucc_options]]
Common options to UCC
---------------------

The following table lists the options understood by all UCC commands. Most 
commands have additional options. You can get a summary of all available
options by calling a UCC command with the "-h" option.

.Common options for the UCC
[options="header"]
|==============================
|option (short and long form)| description
| -c,--configuration <Properties_file>  | Properties file containing your preferences. By default, a file 'userhome/.ucc/preferences' is checked.                                
| -k,--keystore <Keystore_file>   |      Keystore containing your user credential and trusted certificates
| -n,--alias <Alias>   |      Key entry alias (by default, the first key entry is used)
| -p,--password <Password>   |      Keystore password
| -x,--storetype <jks/pkcs12>    |   Keystore type (default is "jks") 
| -T,--truststore <Truststore_file>   |   (optional) Truststore in JKS format containing your trusted certificates
| -Y,--truststorePassword <Password>   |      Truststore password
| -o,--output <Output_dir>    |          Directory for any output produced (default is the current directory)
| -r,--registry <List_of_Registry_URLs>  |        The comma-separated list of URLs of UNICORE registries
| -v,--verbose | Verbose mode 
| -h,--help | Print help message
| -y,--with-timing            |      Timing mode (may not be supported by all commands) 
|================================


Configuration file
~~~~~~~~~~~~~~~~~~

By default, UCC checks for the existence of a file <userhome/.ucc/preferences> and reads
default settings from there. As shown above, you can use a different file by specifiying
it on the commandline using the "-c" option.

The configuration file can contain default settings for many commandline options,
which are given in the form <option name>=<value>  where <option name> is the long
form of the option.

For example, to set your keystore and registry, the file can contain the following settings
  
----------------------------
keystore=user-keystore.p12
storetype=pkcs12
password=XXXXXXX
registry=https://localhost:8080/XNJS/services/Registry?res=default_registry
----------------------------

[NOTE]
==================
To protect your passwords, you should make the file non-readable by others,
for example on Unix using a command such as 'chmod 600 preferences'
==================

Communications options
~~~~~~~~~~~~~~~~~~~~~~

The configuration file may also contain low-level options, for example if you need to 
specify connection timeouts, http proxies etc. 


.HTTP options for the UCC
[options="header"]
|==============================
|option | description
|http.proxyHost  | HTTP(s) proxy to use
|http.proxyPort  | Port of the HTTP(s) proxy to use
|http.nonProxyHosts  | Space separated list of host name fragments for which NOT to go via the proxy. If the target URL contains such a fragment, it is accessed directly
|http.connection.timeout  | Timeout to use when establishing a HTTP connection
|http.sockettimeout  | Timeout to use when reading/writing from/to HTTP connection
|==============================

For example, to set the timeout when establishing a connection to 5 seconds, you would use

------------
http.connection.timeout=5000
------------

