Overview
Thenetbird 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
Display detailed status information in human-readable formatShort form:
-dShows comprehensive information about all peers, routes, and connections.Display detailed status information in JSON formatUseful for scripting and programmatic access.
Display detailed status information in YAML formatAlternative structured format for parsing.
Display only the NetBird IPv4 address of this peerExample output:
100.64.0.33The flags
--detail, --json, --yaml, and --ipv4 are mutually exclusive.Filtering Options
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
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
Filter the detailed output by connection statusValid values:
idle, connecting, connectedExample: --filter-by-status connectedFilter the detailed output by connection typeValid values:
P2P, RelayedExample: --filter-by-connection-type P2PWhen any filter is applied, the
--detail flag is automatically enabled.Examples
Basic Status
Show basic connection status:Detailed Status
Show detailed information about all peers and connections:JSON Output
Get status in JSON format for scripting:Get Only IP Address
Extract just the NetBird IP (useful 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:YAML Output
Get status in YAML format:Status Fields
Daemon Status
Possible values:Connected- Successfully connected to the NetBird networkDisconnected- Not connected to the networkConnecting- Connection in progressNeedsLogin- Authentication requiredLoginFailed- Authentication failedSessionExpired- Authentication session expired
Connection Status
For each peer:Connected- Active connection establishedConnecting- Connection attempt in progressIdle- 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
netbird up or netbird login
Daemon Not Running
See Also
- netbird up - Connect to the network
- netbird down - Disconnect from the network
- netbird networks list - List available network routes