---
name: "btsockstat"
section: "1"
platform: "freebsd"
package: "base"
version: "16.0-CURRENT-20261027-61c70dc16a79"
release: "FreeBSD 16.0-CURRENT (2026-10-27)"
platforms: ["freebsd"]
url: "https://new.carta.tech/btsockstat"
---

# btsockstat(1)

show Bluetooth sockets information

## NAME

**btsockstat** – show Bluetooth sockets information

## SYNOPSIS

**btsockstat** \[**-nrh**\] \[**-M** *core*\] \[**-p** *protocol*\]

## DESCRIPTION

The **btsockstat** utility symbolically displays the contents of various Bluetooth sockets related data structures. There are few output formats, depending on the options for the information presented. The **btsockstat** utility will print results to the standard output and error messages to the standard error.

The options are as follows:

- **-h**

  Display usage message and exit.

- **-M** *core*

  Extract values associated with the name list from the specified core instead of the default */dev/kmem*.

- **-n**

  Show Bluetooth addresses as numbers. Normally, **btsockstat** attempts to resolve Bluetooth addresses, and display them symbolically.

- **-p** *protocol*

  Display a list of active sockets (protocol control blocks) for each specified protocol. Supported protocols are: **hci\_raw**, **l2cap\_raw**, **l2cap,** **rfcomm** and **rfcomm\_s**.

- **-r**

  Display a list of active routing entries (if any) for specified protocol.

## EXIT STATUS

The **btsockstat** utility exits 0 on success, and \>0 if an error occurs.

## SEE ALSO

[ng\_btsocket(4)](/ng_btsocket/4.md)

## AUTHORS

Maksim Yevmenkin ⟨*m\_evmenkin@yahoo.com*⟩

## BUGS

Most likely. Please report if found.
