cmd/

directory
v0.0.0-...-13f1451 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2026 License: Apache-2.0

README

NTP

ntpcheck

CLI and library to perform various NTP-related tasks, including:

  • replacement for ntptime and ntpdate commands
  • human-readable diagnostics for typical problems with NTP based on data from chrony/ntpd
  • server stats and peer stats taken from chrony/ntpd with output in JSON
Quick Installation
go install github.com/facebook/time/cmd/ntpcheck@latest

NTPResponder

Simple NTP server implementation with kernel timestamps support

PTP

pshark

Simple tool to read pcap/pcapng captures and parse and print PTP packets from there. Allows to test our protocol parser implementation against arbitrary tcpdump capture. Also the code shows integration with GoPacket library.

ziffy

CLI tool to triangulate datacenter switches that are not operating correctly as PTP Transparent Clocks.

ptpcheck

CLI and library to perform various PTP-related tasks, including:

  • reporting stats taken from local PTP instance in JSON format
  • running basic unicast client to showcase or debug PTP protocol internals
  • running human-readable diagnostics for basic problems with PTP based on data from local PTP client (ptp4l).
  • comparing system time with PHC time
  • mapping PHC devices to network cards and vice versa
  • sync 2 PHCs
Quick Installation
go install github.com/facebook/time/cmd/ptpcheck@latest

ptp4u

Scalable unicast PTP server.

Quick Installation
go install github.com/facebook/time/cmd/ptp4u@latest

sptp

Scalable unicast SPTP client.

Quick Installation
go install github.com/facebook/time/cmd/sptp@latest

c4u

Config generator for ptp4u.

Quick Installation
go install github.com/facebook/time/cmd/c4u@latest

fbclock

fbclock-daemon

Stateful part of fbclock (TrueTime service).

Quick Installation
go install github.com/facebook/time/cmd/fbclock-daemon@latest

ptpcheck fbclock

Client part of fbclock: prints TrueTime read through the fbclock C library, -j for JSON. See ptpcheck for installation.

Calnex

Command line tool for a Calnex Sentinel device Cli Supports several basic commands such as:

  • Firmware upgrade
  • Configuration of the device
  • Measurement data export
  • Device reboot
  • Device clear
  • Device problem report export
Quick Installation
go install github.com/facebook/time/cmd/calnex@latest

GNSS

ntripper

Service that reads RTCM3 correction data from an oscillatord Unix socket and pushes it to an NTRIP caster. Supports connecting through an HTTP CONNECT proxy with TLS client certificate authentication.

Quick Installation
go install github.com/facebook/time/cmd/ntripper@latest
Usage
# Direct connection
ntripper -caster caster.example.com:2101 -mountpoint /MOUNT01 -password secret

# Via proxy with TLS client certificate
ntripper -caster caster.example.com:2101 -mountpoint /MOUNT01 -password secret \
         -proxy proxy.example.com:8082 \
         -proxy-cert /path/to/cert.pem

Directories

Path Synopsis
CLI to perform various NTP-related tasks
CLI to perform various NTP-related tasks
checker
Package checker provides an easy way to talk to NTPD/Chronyd and get NTPCheckResult, which abstracts away Chrony/NTP control protocol implementation details and contains tons of information useful for NTP monitoring, like NTP server variables including offset, peers and their variables and statuses.
Package checker provides an easy way to talk to NTPD/Chronyd and get NTPCheckResult, which abstracts away Chrony/NTP control protocol implementation details and contains tons of information useful for NTP monitoring, like NTP server variables including offset, peers and their variables and statuses.
cmd
ntripper reads RTCM3 and UBX-RXM-RAWX data from an oscillatord Unix socket and pushes RTCM corrections to an NTRIP caster using the SOURCE protocol.
ntripper reads RTCM3 and UBX-RXM-RAWX data from an oscillatord Unix socket and pushes RTCM corrections to an NTRIP caster using the SOURCE protocol.
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL