GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
hpct-query(1) FreeBSD General Commands Manual hpct-query(1)

hpct-queryHiPerConTracer Query Tool

hpct-query database_configuration ping|traceroute [-L level | --loglevel level] [-Z on|off | --logcolor on|off] [-O file | --logfile file] [-q | --quiet] [-v | --verbose] [-o filename | --output filename] [-T table_name | --table table_name] [-V version | --table-version version] [-M mapping_file | --address-to-measurementid mapping_file] [--deduplication on|off] [--from-time timestamp] [--to-time timestamp] [--from-measurement-id measurement_identifier] [--to-measurement-id measurement_identifier]

hpct-query [-h | --help]

hpct-query [--version]

hpct-query provides a simple query command to query a HiPerConTracer database for Ping or Traceroute results within a given time range. The output format is that same as the uncompressed HiPerConTracer results formant. See the HiPerConTracer manpage for the format description.

The following argument may be provided:

level | level
Sets the minimum logging level to the provided value: 0=trace, 1=debug, 2=info, 3=warning, 4=error, 5=fatal.
on|off | on|off
Enables (on) or disables (off) the usage of ANSI color escape sequences to colorise the log output according to its level.
file | file
Sets a file name for appending the log output to. If a file is set, no log output is made to the console. Otherwise, all log output will be written to the console.
|
Sets the minimum logging level to 3 (warning).
|
Sets the minimum logging level to 0 (trace).
filename | filename
Sets the specified filename as output file. Extensions .gz, .bz2, and .xz are recognised to enable compression.
table_name | table_name
Sets a custom table name to query from.
version | version
Sets the table version (default is: 2). This option is to be used to read a table from on older HiPerConTracer schema version.
mapping_file | mapping_file
Sets a mapping file, containing space-separated IP address to measurement ID mappings with one mapping per line. Where measurement ID is zero, the measurement ID is looked up from the mappings. This option can be used to later map measurements to a useful measurement ID for export. Example mapping file contents:
1.2.3.4 1000
3ffe::1:2:3 1000
5.6.7.8 2222
2001::1:2:3 2222
...
on|off
Perform deduplication of the output. This option is for debugging, or to handle badly misconfigured database schemata where there primary index is non-unique. In almost all cases, this option is unnecessary and should be turned off. Default: off.
timestamp
Set the beginning of the time range as string in format "%Y-%m-%d %H:%M:%S.%F". If not provided, all results will be queried.
timestamp
Set the end of the time range as string in format "%Y-%m-%d %H:%M:%S.%F". If not provided, all results after a given from-time will be queried. Note: data at to-time timestamp is not included in the export, only time stamps less than to-time! That is, the time interval for export is [from-timestamp, to-timestamp). This ensures the possibility to for example export daily batches without having the same value included in two files!
measurement_identifier
Set the beginning of the measurement identifier range. If not provided, all results will be queried.
measurement_identifier
Set the end of the measurement identifier range. If not provided, all results will be queried.
|
Prints command help.
Prints program version.

hpct-query hipercontracer-database.conf ping
 
hpct-query hipercontracer-database.conf traceroute
 
hpct-query hipercontracer-database.conf ping --from-time 2022-09-29 13:00:00
 
hpct-query hipercontracer-database.conf traceroute --from-time 2022-09-29 00:00:00 --to-time 2022-09-29 12:00:00
 
hpct-query hipercontracer-database.conf traceroute --from-measurement-id 1000 --to-measurement-id 2000
 
hpct-query hipercontracer-database.conf traceroute --from-measurement-id 1000 --to-measurement-id 2000 --output results.xz
 
hpct-query hipercontracer-database.conf ping --table test_ping_table
 
hpct-query hipercontracer-database.conf traceroute -T Traceroute_v1 -V 1 --from-time 2015-10-16 --to-time 2015-10-17 -o Traceroute-2015-10-16.hpct.xz -M addressmappings.txt
 
hpct-query --version
 
hpct-query --h
 

Thomas Dreibholz
https://www.nntb.no/~dreibh/hipercontracer
mailto://dreibh@simula.no

May 12, 2025 hpct-query

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.