Skip to content
This repository has been archived by the owner on Jan 6, 2020. It is now read-only.

How to use routing_key_helper

maqi edited this page Jun 17, 2013 · 6 revisions

Detailed Instructions about how to use routing_key_help

Options

Short Full command / arg Description
-h [ --help ] command Print this help message
-c [ --create ] command Create pmids(keys) and write to file
-l [ --load ] command Load pmids(keys) from file
-d [ --delete ] command Delete pmids(keys) file
-p [ --print ] command Print the list of pmids available
-n [ --pmids_count ] arg (=12) Number of pmids(keys) to create, if not set use default value
--pmids_path N/A arg (=/tmp/pmids_list.dat) Path to pmids file, if not set use default value

Usage

Scenario Full Command Note
create 12 keys then print ./routing_key_helper -cp keys are written to the default key file
load current key file then print ./routing_key_helper -lp an error msg will be presented if can't load default key file
create 16 keys then print ./routing_key_helper -cp -n 16 will overwrite previous key file if exists
delete key file ./routing_key_helper -d this will delete the default key file
create 12 keys to specified key file ./routing_key_helper -c --pmids_path /tmp/key_list.dat key_file will be generated