How to Determine Which Journal Receiver is Currently Being Processed
Question
How can I determine which journal receiver is currently being processed by HVR?
Environment
HVR 5
Answer
This information is stored in the HVR capture jobs cap_state file. This file (filename.cap_state) is located in the HVR_CONFIG/router/hub/channel/loc_source directory.
The information in this file can be viewed using the command hvrrouterview.
The following example shows how to find the journal receiver that is currently being processed by HVR. Here, myhub is the hub name and mychannel is the channel name:
Run the command hvrrouterview:
hvrrouterview myhub mychannel 5c62b1d1_5a134-5c62b1cf.cap_state
Sample output:
<?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> </hvr_private>
The field scan_start_addr contains the journal receiver name.
The first two parts (e.g. OSCEN.QSQJRN0001) form the journal receiver library and name. The last part is a sequence number, which is not relevant in this context.
So in the above example, the HVR is positioned in journal receiver QSQJRN0001 in library OSCEN.