The BGP Glass CLI
Run ping, traceroute, and mtr from your locations without leaving the terminal. A single static binary, no runtime.
Install
Quick install (Linux / macOS)
curl -fsSL https://get.bgpglass.com/cli.sh | sh
From source (Go)
go install github.com/bgpglass/cli/cmd/bgpglass@latest
Authenticate
Create an API token in your portal (API section) and export it:
export BGPGLASS_TOKEN=your-token export BGPGLASS_HOST=your-org.bgpglass.com # your looking glass host
Usage
# run a ping from the "frankfurt" location bgpglass run ping 1.1.1.1 --from frankfurt # traceroute, waiting for the result bgpglass run traceroute example.com --from london # fetch a previous measurement by id bgpglass get 01J... # cached latency for all your locations, as JSON bgpglass latency
The CLI is a thin client over the measurement API — anything it does, you can do with a token and curl.