sdptool(1) Linux System Administration sdptool(1)

# [Name](#Name)

sdptool - control and interrogate SDP servers

# [SYNOPSIS](#SYNOPSIS)

**sdptool** \[*OPTIONS*] \[*COMMAND* \[*PARAMETERS*]]

# [DESCRIPTION](#DESCRIPTION)

[**sdptool(1)**](/man/os/bluez/sdptool.1) provides the interface for performing SDP queries on Bluetooth devices, and administering a local SDP database.

# [COMMANDS](#COMMANDS)

The following commands are available. In all cases **bdaddr** specifies the device to search or browse. If *local* is used for **bdaddr**, then the local SDP database is searched.

Services are identified and manipulated with a 4-byte **record\_handle** (NOT the service name). To find a service's **record\_handle**, look for the "Service RecHandle" line in the **search** or **browse** results

[**search \[--bdaddr bdaddr\] \[--tree\] \[--raw\] \[--xml\] service\_name**](#search)

Search for services..

Known service names are **DID**, **SP**, **DUN**, **LAN**, **FAX**, **OPUSH**, **FTP**, **HS**, **HF**, **HFAG**, **SAP**, **NAP**, **GN**, **PANU**, **HCRP**, **HID**, **CIP**, **A2SRC**, **A2SNK**, **AVRCT**, **AVRTG**, **UDIUE**, **UDITE** and **SYNCML**.

[**browse \[--tree\] \[--raw\] \[--xml\] \[bdaddr\]**](#browse)

Browse all available services on the device specified by a Bluetooth address as a parameter.

[**records \[--tree\] \[--raw\] \[--xml\] bdaddr**](#records)

Retrieve all possible service records.

[**add \[ --handle=N --channel=N \]**](#add)

Add a service to the local SDP database.

You can specify a handle for this record using the **--handle** option.

You can specify a channel to add the service on using the **--channel** option.

NOTE: Local adapters configuration will not be updated and this command should be used only for SDP testing.

[**del record\_handle**](#del)

Remove a service from the local SDP database.

NOTE: Local adapters configuration will not be updated and this command should be used only for SDP testing.

[**get \[--tree\] \[--raw\] \[--xml\] \[--bdaddr bdaddr\] record\_handle**](#get)

Retrieve a service from the local SDP database.

[**setattr record\_handle attrib\_id attrib\_value**](#setattr)

Set or add an attribute to an SDP record.

[**setseq record\_handle attrib\_id attrib\_values**](#setseq)

Set or add an attribute sequence to an SDP record.

# [OPTIONS](#OPTIONS)

[**--help**](#help)

Displays help on using sdptool.

# [EXAMPLES](#EXAMPLES)

```
$ sdptool browse 00:80:98:24:15:6D
$ sdptool browse local
$ sdptool add DUN
$ sdptool del 0x10000
```

# [RESOURCES](#RESOURCES)

&lt;http://www.bluez.org&gt;

# [REPORTING BUGS](#REPORTING_BUGS)

&lt;linux-bluetooth@vger.kernel.org&gt;

# [Author](#Author)

Maxim Krasnyansky &lt;maxk@qualcomm.com&gt;, Edd Dumbill &lt;ejad@debian.org&gt;

# [Copyright](#Copyright)

Free use of this software is granted under the terms of the GNU Lesser General Public Licenses (LGPL).

BlueZ

---

Document: sdptool(1) from bluez 5.87-r2 (Chainguard OS)
Source: https://github.com/bluez/bluez
