HOW TO CREATE A USER
EXAMPLE COMMAND:
./ucs_client.sh -action create_user -user TESTUSER -password TESTPASSWORD
OUTPUT:
USER:<ACCOUNTNAME>
PIN:<PIN>
PASSWORD:>PW< # NOTE: PW PUT IN ><
ADRESS:<ADRESS>
KEY:<KEYFILE>
KEY_PUB:/keys/ADDRESS
KEY_PRV:/control/keys/ADDRESS
NOTE: Currently the exported private is always stored in script control/keys/- folder while the public key is always stored in /keys-folder. So if you handover a path where these keys should be stored, it will NOT be used!
HOW TO CREATE A SMALL TRANSACTION (only pack new files, if possible)
EXAMPLE COMMAND:
./ucs_client.sh -action create_trx -user TESTUSER -pin 12345 -password TESTPASSWORD -receiver ADRESS -amount 1.000000000 -asset ASSET -purpose “PURPOSE TEXT“ -type partial -path /path/to/outputdir
NOTE: Type “partial” means the program will check whether sender and receiver have common transaction knowledge and if so it will only add data to the transaction file that are new to the sender. This can reduce the size of a transaction file.
HOW TO CREATE A BIG TRANSACTION (pack all files)
EXAMPLE COMMAND:
./ucs_client.sh -action create_trx -user TESTUSER -pin 12345 -password TESTPASSWORD -receiver ADRESS -amount 1.000000000 -asset ASSET -purpose “PURPOSE TEXT“ -type full -path /path/to/outputdir
NOTE: Type “full” means it will pack all data independent of common transaction knowledge.
HOW TO PARTIALLY READ A TRANSACTION FILE (only unpack new files)
EXAMPLE COMMAND:
./ucs_client.sh -action read_trx -user TESTUSER -pin 12345 -password TESTPASSWORD -type partial -path /path/to/file/file.trx
NOTE: Type “partial” means the program will check whether sender and receiver have common transaction knowledge and if so it will only unpack data that are new to the sender. This is standard and you should always do it this way to avoid that other files you already have being overwritten.
HOW TO FULLY READ A TRANSACTION FILE (unpack all files, overwrite):
EXAMPLE COMMAND:
./ucs_client.sh -action read_sync -user TESTUSER -pin 12345 -password TESTPASSWORD -type full -path /path/to/file/file.trx
NOTE: Type “full” means the program unpacks all data of the transaction file. This overwrites your existing data and should only be done with a lot of precaution and awareness! E.g. this allows you to restore you data by a transaction file only if corrupted. BE CAREFUL WITH THIS!
HOW TO CREATE A SYNCRONISATION FILE (contains all files):
EXAMPLE COMMAND:
./ucs_client.sh -action create_sync -user TESTUSER -pin 12345 -password TESTPASSWORD -path /path/to/outputdir
NOTE: As there is no explicit receiver for a synchronization file it always contains all data of all users. It is up to the receiver of the file which data to extract (full or partial).
HOW TO PARTIALLY READ A SYNCRONISATION FILE (only unpack new):
EXAMPLE COMMAND:
./ucs_client.sh -action read_sync -user TESTUSER -pin 12345 -password TESTPASSWORD -type partial -path /path/to/file/file.sync
NOTE: Type “partial” means the program will check whether sender and receiver have common transaction knowledge and if so it will only unpack data that are new to the sender. This is standard and you should always do it this way to avoid that other files you already have being overwritten.
HOW TO FULLY READ A SYNCRONISATION FILE (unpack all, overwrite):
EXAMPLE COMMAND:
./ucs_client.sh -action read_sync -user TESTUSER -pin 12345 -password TESTPASSWORD -type full -path /path/to/file/file.sync
NOTE: Type “full” means the program unpacks all data of the synchronization file. This overwrites your existing data and should only be done with a lot of precaution and awareness! E.g. this allows you to restore you data by a synchronization file only if corrupted. BE CAREFUL WITH THIS!
HOW TO SYNC WITH UCA:
EXAMPLE COMMAND:
./ucs_client.sh -action sync_uca -user TESTUSER -pin 12345 -password TESTPASSWORD
NOTE: The action “sync_uca” will create no output if successful and will always exit with code 0 even if the receive/send of data to the defined UCA(s) failed. If receive/send to one more of UCAs failed it will output a “ERROR” message containing used IP (<uca_ip>) and Port (<ucs_snd_port>) as defined in ~/control/uca.conf.
HOW TO CREATE A BACKUP:
EXAMPLE COMMAND:
./ucs_client.sh -action create_backup
HOW TO RESTORE A BACKUP:
EXAMPLE COMMAND:
./ucs_client.sh -action restore_backup -path /path/to/ucs/backup/<STAMP>.bcp
HOW TO DISPLAY STATISTICS:
EXAMPLE COMMAND:
./ucs_client.sh -action show_stats -user TESTUSER -pin 12345 -password TESTPASSWORD