sdptool(1)
π sdptool(1) β control and interrogate SDP servers β¨
Okay so this is sdptool(1), hanging out in the Linux System Administration section of the manual-verse, and she is here to help you talk to SDP servers and wrangle your local SDP database. Bestie, letβs get into it. π«Ά
πΈ Name
sdptool β control and interrogate SDP servers π
β¨ SYNOPSIS β¨
sdptool [OPTIONS] [COMMAND [PARAMETERS]]
π¦ DESCRIPTION
sdptool(1) is literally the interface for performing SDP queries on Bluetooth devices and administering a local SDP database. Thatβs the vibe. Slay. π
π COMMANDS
The following commands are available. In every case, 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. This is important, bestie β do not come for the service name when the manual said record_handle. π«
search [--bdaddr bdaddr] [--tree] [--raw] [--xml] service_nameβ 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,UDITEandSYNCML. π
- Known service names are
browse [--tree] [--raw] [--xml] [bdaddr]β Browse all available services on the device specified by a Bluetooth address as a parameter. π¦records [--tree] [--raw] [--xml] bdaddrβ Retrieve all possible service records. πadd [ --handle=N --channel=N ]β Add a service to the local SDP database. β- You can specify a handle for this record using the
--handleoption. - You can specify a channel to add the service on using the
--channeloption.
- You can specify a handle for this record using the
β οΈ NOTE: Local adapters configuration will not be updated and this command should be used only for SDP testing.
del record_handleβ 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β Retrieve a service from the local SDP database. π₯setattr record_handle attrib_id attrib_valueβ Set or add an attribute to an SDP record. βοΈsetseq record_handle attrib_id attrib_valuesβ Set or add an attribute sequence to an SDP record. π§
π OPTIONS
--helpβ Displays help on usingsdptool. π
π EXAMPLES
$ sdptool browse 00:80:98:24:15:6D
$ sdptool browse local
$ sdptool add DUN
$ sdptool del 0x10000
π RESOURCES
<http://www.bluez.org> β the BlueZ website, iconic. π
π REPORTING BUGS
<linux-bluetooth@vger.kernel.org> β thatβs the bug-reporting email, bestie. π¬
βοΈ Author
Maxim Krasnyansky <maxk@qualcomm.com>, Edd Dumbill <ejad@debian.org> π«Ά
π Copyright
Free use of this software is granted under the terms of the GNU Lesser General Public Licenses (LGPL). π
π And thatβs the whole page, bestie! Source/version: BlueZ Β· page: sdptool(1) Β· date: the original footer didnβt list one, so no invented timestamp β just vibes. π«Ά
π¦ where this page comes from
- arch rolling: bluez-deprecated-tools 5.87-2 Β· GPL-2.0-only
- nixpkgs unstable: bluez 5.87
- ubuntu stonking: bluez 5.87-4 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms