Problem Summary
How do I determine which journal receiver is currently being processed by HVR?
Answer
This information is stored in the HVR capture jobs cap_state file.
This file is located in $HVR_CONFIG/router/<hub>/<channel>/loc_<src>/*.cap_state
The information can be viewed using the hvrrouterview utility.
Here myhub is the hubname
mychannel is the channel name
Example:
$ hvrrouterview myhub mychannel 5c62b1d1_5a134-5c62b1cf.cap_state
<?xml version="1.0″ encoding="UTF-8″?>
<!DOCTYPE hvr_private SYSTEM "lib/hvr_private.dtd">
<hvr_private version="1.0″>
<file name="5c62b1d1_5a134-5c62b1cf.cap_state"/>
<list>
<!– scan_load –> <int>1549971877</int> <!– 2019-02-12T12:44:37+01:00 –>
<!– scan_start_tstamp –> <int>1549971919</int> <!– 2019-02-12T12:45:19+01:00 –>
<!– scan_start_addr –> <str>OSCEN.QSQJRN0001.601</str>
<!– emit_seq –> <str>601</str>
<!– scan_start_seq –> <str>601</str>
<!– emit_tstamp –> <int>1549971919</int> <!– 2019-02-12T12:45:19+01:00 –>
<!– emit_addr –> <str>OSCEN.QSQJRN0001.601</str>
<!– catchup_tstamp –> <int>1549971924</int> <!– 2019-02-12T12:45:24+01:00 –>
<!– ckp_tstamp –> <int>0</int> <!– 0 –>
<!– ckp_scan_start_tstamp –> <int>0</int> <!– 0 –>
<!– ckp_scan_start_addr –> <str>unknown</str>
<!– ckp_scan_start_seq –> <str>0</str>
<!– user_txs_seq –> <str>0</str>
<!– user_txs –> <list/>
</list>
The journal receiver name is in the values for the field “scan_start_addr”.
The first two parts form the journal receiver library and name.
The last part is a sequence number that is not relevant in this context.
So in the above example, the HVR is positioned in journal receiver QSQJRN0001 (in library OSCEN)