Skip to main content

Overview

The netbird status command displays the current status of the NetBird client, including connection status, peer information, network details, and more.

Description

This command shows:
  • Daemon connection status
  • Management server connection
  • Signal server connection
  • Local peer information (IP, public key, hostname)
  • Connected peers and their status
  • Network routes
  • DNS configuration
  • Active profile name

Flags

Output Formats

boolean
default:"false"
Display detailed status information in human-readable formatShort form: -dShows comprehensive information about all peers, routes, and connections.
boolean
default:"false"
Display detailed status information in JSON formatUseful for scripting and programmatic access.
boolean
default:"false"
Display detailed status information in YAML formatAlternative structured format for parsing.
boolean
default:"false"
Display only the NetBird IPv4 address of this peerExample output: 100.64.0.33
The flags --detail, --json, --yaml, and --ipv4 are mutually exclusive.

Filtering Options

string[]
Filter the detailed output by a list of one or more IP addressesExamples:
  • Single IP: --filter-by-ips 100.64.0.100
  • Multiple IPs: --filter-by-ips 100.64.0.100,100.64.0.200
string[]
Filter the detailed output by peer FQDN or hostnamesExamples:
  • Single name: --filter-by-names peer-a
  • Multiple names: --filter-by-names peer-a,peer-b.netbird.cloud
string
Filter the detailed output by connection statusValid values: idle, connecting, connectedExample: --filter-by-status connected
string
Filter the detailed output by connection typeValid values: P2P, RelayedExample: --filter-by-connection-type P2P
When any filter is applied, the --detail flag is automatically enabled.

Examples

Basic Status

Show basic connection status:
Output:

Detailed Status

Show detailed information about all peers and connections:
Output:

JSON Output

Get status in JSON format for scripting:
Output:

Get Only IP Address

Extract just the NetBird IP (useful in scripts):
Output:
Use in scripts:

Filter by Connection Status

Show only connected peers:

Filter by Peer IP

Show status for specific peers:

Filter by Hostname

Show status for specific peers by name:

Filter by Connection Type

Show only P2P connections:
Show only relayed connections:

YAML Output

Get status in YAML format:

Status Fields

Daemon Status

Possible values:
  • Connected - Successfully connected to the NetBird network
  • Disconnected - Not connected to the network
  • Connecting - Connection in progress
  • NeedsLogin - Authentication required
  • LoginFailed - Authentication failed
  • SessionExpired - Authentication session expired

Connection Status

For each peer:
  • Connected - Active connection established
  • Connecting - Connection attempt in progress
  • Idle - No active connection (on-demand not triggered)

Connection Type

  • P2P - Direct peer-to-peer connection (best performance)
  • Relayed - Connection via relay server (fallback when P2P fails)

Understanding the Output

Management Server

Shows connection to the NetBird management server:
  • URL and port
  • Connection status
  • Protocol version

Signal Server

Shows connection to the signaling server used for peer coordination:
  • URL and port
  • Connection status

Local Peer Information

  • NetBird IP: Your virtual private IP in the NetBird network (typically in 100.64.0.0/10 range)
  • Public Key: Your WireGuard public key
  • Hostname: Your device hostname as registered with NetBird
  • Interface: WireGuard interface name (e.g., wt0)
  • Version: NetBird client version

Peer Information

For each connected peer:
  • Hostname/FQDN: Peer’s fully qualified domain name
  • NetBird IP: Peer’s NetBird virtual IP
  • Status: Connection status
  • Connection type: P2P or Relayed
  • Direct: Whether the connection is direct or via relay
  • Latency: Round-trip time to the peer
  • Last seen: Last time peer was active
  • Bytes sent/received: Data transfer statistics

Network Routes

  • ID: Route identifier
  • Network/Domains: Network range or domain name
  • Status: Selected or Not Selected
  • Resolved IPs: For domain routes, the resolved IP addresses

Scripting Examples

Check if Connected

Get Peer Count

List All Connected Peer IPs

Check Connection Type

Monitor Connection Health

Common Status Messages

NeedsLogin

Solution: Run netbird up or netbird login

Daemon Not Running

Solution:

See Also