1BTMGMT(1)                 Linux System Administration                BTMGMT(1)
2
3
4

NAME

6       btmgmt - interactive bluetooth management tool
7

SYNOPSIS

9       btmgmt [--options] [commands]
10

DESCRIPTION

12       btmgmt(1)  interactive  bluetooth management tool. The tool issues com‐
13       mands to the Kernel using the Bluetooth Management  socket,  some  com‐
14       mands may require net-admin capability in order to work since the Blue‐
15       tooth Management interface is considered a  low-level  interface  meant
16       for  the likes of bluetoothd(8), it is not recommended for applications
17       to use it directly as it may result in unexpected behavior.
18

OPTIONS

20       -i/--index
21              Specify adapter index
22
23       -m-/-monitor
24              Enable monitor output
25
26       -t/--timeout
27              Timeout in seconds for non-interactive mode
28
29       -v/--version
30              Display version
31
32       -i/--init-script
33              Init script file
34
35       -h/--help
36              Display help
37

COMMANDS

39       main   See bluetoothctl-mgmt(1)
40
41       monitor
42              See bluetoothctl-monitor(1)
43

AUTOMATION

45       Two common ways to automate the tool are to pass the commands  directly
46       like in the follow example:
47
48          btmgmt <<EOF
49          list
50          show
51          EOF
52
53       Or create a script and pass it as init-script:
54
55          $ vi test-script.bt
56          list
57          show
58          quit
59          :wq
60          $ btmgmt --init-script=test-script
61

RESOURCES

63       http://www.bluez.org
64

REPORTING BUGS

66       linux-bluetooth@vger.kernel.org
67
69       Free use of this software is granted under ther terms of the GNU Lesser
70       General Public Licenses (LGPL).
71
72
73
74
75BlueZ                              July 2023                         BTMGMT(1)
Impressum