hvrrouterview
Usage
hvrrouterview [-restrict opts] [-xml opts] [-F] chn [txfile]...
Shows the contents of transaction files currently available in the channel's router directory. The output is shown as XML, which is sent to stdout. Options-b
,-c
,-e
,-f
,-i
,-n
,-t
and-w
can be used to restrict the changes shown. Option-j
shows journal files instead of transaction files.hvrrouterview -s [-cloc] [-iloc] [-xml opts] chn
Shows the contents of control files as XML.hvrrouterview [-xml opts] chn hvrfile...
Shows the contents of internal HVR files, such as a *.enroll or *.cap_state file in a router directory, any of the files in a file location's _hvr_state directory, a control file (in directory HVR_CONFIG/hubs/hub/channels/chn/control).
Description
Command hvrrouterview displays data from internal HVR files such as transaction and journal files in the router directory on the hub machine.
General Options
Parameter | Description |
---|---|
-F | Identifies transaction file as captured by a 'blob file' channel (these use a different decompression algorithm). This is seldom necessary, because HVR should deduce the decompression algorithm from the basename of the transaction file. |
-s | View contents of control files instead of transaction files. Control files are created by hvrrefresh with option -q , or by command hvrcontrol. |
Restrict Options
Parameter | Description |
---|---|
-btime | Only changes after capture time. Valid formats for |
-cloc | Only changes from specific capture location. |
-etime | Only changes before capture time. Valid formats fortime are YYYY-MM-DD [HH:MM:SS] in local time or YYYY-MM-DDTHH:MM:SS+TZD or YYYY-MM-DDTHH:MM:SSZ or today or now[[±]SECS] or an integer (seconds since 1970-01-01 00:00:00 UTC). For example, -b "2010-07-29 10:30:21" or -b now-3600 (changes in the last hour). This option is equivalent to -whvr_cap_tstamp>=time. |
-ftxfile | Contents of a specific transaction file This option can be specified multiple times. Another way to see the contents of a specific transaction file is to list the file(s) after the channel name (as a third positional parameter). The advantage is that 'globbing' can be used for a list of files (e.g. *.tx_l*) whereas-f only accepts one file (although it can be supplied multiple times). |
-iloc | Only changes for a specific integrate location. |
-j | Show the contents of HVR journal files in directory HVR_CONFIG/hubs/hub/channels/chn/locs/loc/jnl. These files are kept only if action Integrate is defined with parameter JournalRouterFiles. |
-n | Newest. Only most recent transaction file(s). |
-ty | Only rows for tables specified by Values of
-ty instructions can be supplied together. |
-wwhere | Where condition which must have form columname operator value.
-w options are supplied then they are AND-ed together. |
XML Options
Parameter | Description |
---|---|
-d | Show column data type information. |
-h | Print data values in hexadecimal format. |
Extract Options
Parameter | Description |
---|---|
-xtgt | Extract data from transaction files into a target tgt.
Value tgt should be either a location name (applicable for channels with tables) or a directory path on the hub machine (applicable for channels without tables). |
Examples
This section provides examples of using the hvrrouterview command.
Example 1. Show the contents of file
The following command shows the contents of certain transaction files.
hvrrouterview myhub mychn $HVR_CONFIG/hubs/myhub/channels/mychn/locs/mysrc/router/loc_mytgt/*.tx_dec01
The following command shows the contents of a capture state file named 619eaa9c_5c37b-619eaab9.cap_state.
hvrrouterview myhub mychn $HVR_CONFIG/hubs/myhub/channels/mychn/locs/src/router/619eaa9c_5c37b-619eaab9.cap_state
Example 2. Show any changes for a table from the journals
The following command shows any changes for a table named cust from the journals.
hvrrouterview -j -tcust myhub mychn
Example 3. Show any changes from router files between two transaction sequences
The following command shows any changes for a channel (e.g., mychn) that were captured between two hvr_tx_seq values.
hvrrouterview -w "hvr_tx_seq>='00000000004956275877:00001'" -w "hvr_tx_seq<='00000000004956275877:00009'" myhub mychn