RKIK - Rusty Klock Inspection Kit
RKIK is a command-line tool for querying NTP servers and comparing clock offsets, written in Rust.
It allows you to:
- Query a single NTP server
- Compare two NTP servers
- Display human-readable or JSON output
- Use positional or flagged arguments (
--server, or directly passing the hostname/IP) - Enable verbose output for advanced details (stratum, reference ID)
Link to Documentation page
๐ Features
- โ Query any NTP server (IPv4 or IPv6)
- โ Compare offsets between two servers
- โ Output formats: human-readable or JSON
- โ Verbose mode for advanced metadata
- โ Accepts both FQDN and raw IP addresses
- โ
Argument parsing via
clapwith fallback positional support
๐ Installation
Linux
# Download rkik-linux-x86_64.tar.gz on https://github.com/aguacero7/rkik/releases/latest
Red-hat Like Systems (CentOS, Fedora, RHEL, Alma,..)
# Download rkik-<X.Y.Z-R>.x86_64.rpm on https://github.com/aguacero7/rkik/releases/latest
# OR
# OR
Debian-like Systems
# Download rkik-<X.Y.Z-R>.x86_64.deb on https://github.com/aguacero7/rkik/releases/latest
Cargo
From Source :
๐งช Usage Examples
| Command | Description |
|---|---|
rkik pool.ntp.org |
Query an NTP server (positional) |
rkik --server pool.ntp.org |
Same as above, explicit flag |
rkik --server time.google.com --verbose |
Verbose query output |
rkik --server time.cloudflare.com --format json |
JSON output for a single server |
rkik --compare pool.ntp.org time.google.com |
Compare two servers |
rkik --compare ntp1 ntp2 --format json |
Compare servers with JSON output |
๐ฆ Output Examples
Human-readable:
Server: time.google.com
IP: 216.239.35.0
UTC Time: Mon, 27 May 2024 13:45:00 +0000
Local Time: 2024-05-27 15:45:00
Clock Offset: -1.203 ms
Round Trip Delay: 2.320 ms
JSON:
Documentation
See the docs directory for the full user and developer guides.