-
Notifications
You must be signed in to change notification settings - Fork 2
show commands
Pre-Alpha. This page describes behavior that may change.
This is the day-2 operator's quick reference for the ze show family. The full command list is in reference/command-reference.md. What follows is the ten you will type the most.
ze show is the read-only path. It cannot mutate state, which makes it the right thing to put in monitoring scripts and dashboards. The same commands work inside the interactive shell after ze cli, just without the ze prefix.
ze show peer list # Brief peer list with state
ze show bgp summary # The BGP summary table
ze show peer <name> detail # Everything about one peer
ze show peer <name> capabilities # Negotiated capabilities for one peer
ze show rib routes received <peer> [family]
ze show rib routes sent <peer> [family]
ze show interface brief # One-line-per-interface summary
ze show interface rate # Per-interface rate tracking
ze show uptime # Daemon start time and running duration
ze show rpki status # RTR sessions and VRP counts
ze show health # Component health registry
ze show warnings # Active operational warnings
ze show errors # Recent error events
ze show version # Version, build, plugin list
ze show debug # Live debug module stateBrief table for "is anything down right now".
$ ze show peer list
NAME REMOTE AS STATE
upstream 10.0.0.1 65001 ESTABLISHED
ixp 192.0.2.42 65010 ESTABLISHED
backup 10.0.0.2 65001 CONNECT
The same shape network operators have been reading for thirty years.
$ ze show bgp summary
NEIGHBOR AS UP STATE PFXRCVD
10.0.0.1 65001 2h13m ESTABLISHED 947213
192.0.2.42 65010 18d4h ESTABLISHED 12047
10.0.0.2 65001 - CONNECT -
ze show uptime reports when the daemon started and how long it has been running. Two fields: start-time (RFC 3339) and uptime (duration string). Useful after a graceful restart or reload to confirm the process came up when you expected.
For per-peer uptime, use peer list or bgp summary, which both show the per-session uptime in their tables.
Everything Ze knows about one session, including capability negotiation, families, prefix counters, and timer state. Use it the moment a peer behaves oddly.
The Adj-RIB-In and Adj-RIB-Out, filterable by peer and family. Pipe through | match for a regex filter, | count for a row count, or | json for structured output.
ze show rib routes received upstream ipv4/unicast | count
ze show rib routes received upstream | match 192.0.2 | no-moreze show interface brief is the one-liner-per-interface view: name, state, MTU, and the first address. Drop brief to get the full interface dump (every address, counters, kernel attributes). Add a name to focus on one interface. Add counters after the name to get just the RX/TX statistics block for that interface. The long form returns structured JSON; pipe through | table or | json as needed.
ze show interface brief # all interfaces, compact
ze show interface eth0 # one interface, full detail
ze show interface eth0 counters # one interface, counters onlyze resolve ping and ze resolve traceroute use an internal ICMP engine (no OS shell-out) and are available inside the shell and over the API without needing a separate shell account on the router.
ze resolve ping 10.0.0.1
ze resolve ping --source 192.0.2.1 --count 5 --size 1500 10.0.0.1
ze resolve traceroute 10.0.0.1
ze resolve traceroute --source 192.0.2.1 10.0.0.1| Flag | Subcommand | Purpose |
|---|---|---|
--source <addr> |
both | Bind to a specific local address. |
--count <N> |
ping |
Number of probes. |
--size <bytes> |
ping |
Payload size. |
ping has a 15-second wall-clock timeout, traceroute has 30 seconds. Both use the internal ICMP engine (no OS shell-out) with context-based cancellation so they cannot stall the dispatcher. Tab-completion walks YANG and suggests the known interfaces for the source address.
Reverse Path Forwarding lookup on the sharded Loc-RIB. Returns the best-path entry for the longest matching prefix. Useful for external multicast daemons (PIM-SM) that need to resolve upstream next-hops.
ze show rib rpf ipv4/unicast 10.0.1.5rpki status shows your RTR session count, the cache server, and the VRP totals. warnings and errors query the operational report bus that the BGP reactor and the rest of the subsystems publish to. Warnings are state-based (something is wrong right now). Errors are events (something happened, with a timestamp). Both return JSON by default.
ze show warnings | json
ze show errors | jsonThe login banner reads from the same bus and surfaces the active warnings when you connect.
Production debugging commands, all available from the CLI shell.
ze show health # Component health (bgp, fib, firewall, iface, ...)
ze show tcp-check <ip> <port> # TCP connectivity probe
ze show traceroute <target> # ICMP path trace
ze show capture interface <iface> tcp port 179 count 10 format text
ze show dns lookup <name> type A # DNS resolution
ze show dns cache stats # Cache hit/miss statistics
ze show system sockets tcp # Socket state (replaces ss)
ze show system kernel-log level warning count 50
ze show system goroutines summary # Goroutine distribution
ze show system file-descriptors summary
ze show system profile cpu duration 10s
ze show crashes # Panic crash reportsSee Production Diagnostics for the full symptom-based guide.
ze show nexthop-table # Resolved next-hops with recursion depth
ze show ecmp-groups # ECMP nexthop groups (max 128 members)
ze show mpls forwarding # Kernel AF_MPLS label table (push/swap/pop)
ze show ip ospf neighbor # OSPF adjacencies (also: interface, database, route, spf, border-routers)
ze show isis neighbor # IS-IS adjacencies (also: database, route, interface, hostname, spf-log)
ze show rsvp-te fast-reroute # RSVP-TE FRR protection state (PLR, bypass LSPs)
ze show policy test <policy> ... # Dry-run a policy against routes, no applyze show flow-export [<collector>] # sFlow/NetFlow/IPFIX exporter stats
ze show storage smart # Per-device SMART health and self-tests
ze show gnmi # gNMI server status and subscriptions
ze show audit # Local audit log (action/actor/surface/time filters)
ze show pki certificates # Certificate store
ze show pki certificate <name> pem # Export a certificate as PEM
ze show pki certificate <name> bundle pem # Export the full chain as PEM
ze show pki certificate <name> fingerprintze show debug # Live daemon debug state (not stored profile)
ze show class-of-service # CoS profiles and assignments
ze show bgp irr # IRR filter status per ASN
ze show bgp irr prefix <peer> # IRR-resolved prefixes for a peer
ze show bgp irr check <peer> <prefix> # Test prefix against IRR filtermonitor ping <target> # Continuous ICMP with live stats
monitor traceroute <target> # mtr-style continuous traceroute
monitor system netlink all # Kernel route/link/address changes
monitor interface rate # Live interface rate trackingmonitor traceroute supports pipe enrichment: | log | origin annotates hops with ASN names, | log | resolve adds reverse DNS.
The shell understands a small set of pipe operators borrowed from network OS shells.
| Pipe | Effect |
|---|---|
| json |
Render the structured response as JSON. |
| table |
Render as a table. |
| match <regex> |
Drop rows that do not match. |
| count |
Just the row count. |
| no-more |
Disable paging for long output. |
| log |
Scrollback output for streaming commands. |
| first N |
Keep only the first N items. Server-side early termination when supported. |
| last N |
Keep only the last N items (trailing window). |
| origin |
Annotate IPs with ASN names (Team Cymru). |
| resolve |
Annotate IPs with reverse DNS hostnames. |
- Monitoring for live event streams and the auto-refreshing dashboard.
- Production Diagnostics for symptom-based troubleshooting.
- Health Checks for the health registry and report bus.
- Command reference for every command and every flag.
- CLI reference for the interactive shell, history, and tab completion.
Adapted from main/docs/guide/command-reference.md and main/docs/features/cli-commands.md.
Unreviewed draft. This wiki was authored in bulk and has not been reviewed. File corrections on the issue tracker.
- Overview
- YANG Model
- Editor Workflow
- Archive and Rollback
- System
- Interfaces
- VRRP
- BFD
- FIB
- OSPF
- IS-IS
- MPLS / LDP / RSVP-TE
- RSVP-TE
- SRv6
- Static Routes
- Policy Routing
- Firewall
- Traffic Control
- Class of Service
- L2TP/PPP
- PPPoE
- VPP Data Plane
- RPKI
- IPsec VPN
- TACACS+ AAA
- RADIUS AAA
- AS112 DNS
- Authorization
- Fleet
- BGP
- Starting and Stopping
- Show Commands
- Monitoring
- Flow Export
- DDoS Mitigation
- Anomaly Detection
- Health Checks
- Audit Trail
- Production Diagnostics
- Logging
- Operational Reports
- Healthcheck
- Self-Update
- Zero-Touch Provisioning
- MRT Analysis
- Upgrade and Restart
- Storage
- Policy
- Core
- Resilience
- Validation
- Capabilities
- Address Families
- Protocol
- Subsystems
- Infrastructure
- Route Server at an IXP
- Transit Edge with RPKI
- Public Looking Glass
- ExaBGP Migration Walkthrough
- FlowSpec Injection
- Chaos-Tested Peering
- AS Path Topology