Skip to content

Commit 6a94dd6

Browse files
committed
Added new template for Linux: bluetoothctl show
1 parent 81dc3b1 commit 6a94dd6

File tree

6 files changed

+242
-0
lines changed

6 files changed

+242
-0
lines changed

ntc_templates/templates/index

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -820,6 +820,7 @@ linux_iwlist_wlan0_scanning.textfsm, .*, linux, iwlist \S+ sc[[anning]]
820820
linux_nmcli_connection_show.textfsm, .*, linux, nmcli c[[onnection]] s[[how]]
821821
linux_dmidecode_-t_memory.textfsm, .*, linux, dmidecode -t memory
822822
linux_dmidecode_-t_system.textfsm, .*, linux, dmidecode -t system
823+
linux_bluetoothctl_show.textfsm, .*, linux, bluetoothctl show
823824
linux_dmidecode_-t_bios.textfsm, .*, linux, dmidecode -t bios
824825
linux_ip_address_show.textfsm, .*, linux, ip a[[ddress]] [[show]]
825826
linux_ip_route_show.textfsm, .*, linux, ip r[[oute]] [[show]]
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
Value CONTROLLER_ID (\S+\s+\(\S+\))
2+
Value MANUFACTURER_ID (\S+\s+\(\d+\))
3+
Value VERSION (\S+\s+\(\d+\))
4+
Value NAME (\S.+\S|\S+)
5+
Value ALIAS (\S.+\S|\S+)
6+
Value CLASS (\S+\s+\(\d+\))
7+
Value POWERED (\S+)
8+
Value DISCOVERABLE (\S+)
9+
Value DISCOVERABLE_TIMEOUT (\S+\s+\(\d+\))
10+
Value PAIRABLE (\S+)
11+
Value UUID_MESSAGE_NOTIFICATION_SERVER (\S+)
12+
Value UUID_A_V_REMOTE_CONTROL (\S+)
13+
Value UUID_OBEX_OBJECT_PUSH (\S+)
14+
Value UUID_MESSAGE_ACCESS_SERVER (\S+)
15+
Value UUID_PNP_INFORMATION (\S+)
16+
Value UUID_IRMC_SYNC (\S+)
17+
Value UUID_VENDOR_SPECIFIC (\S+)
18+
Value UUID_AV_REMOTE_CONTROL_TARGET (\S+)
19+
Value UUID_GENERIC_ATTRIBUTE_PROFILE (\S+)
20+
Value UUID_PHONEBOOK_ACCESS_SERVER (\S+)
21+
Value UUID_AUDIO_SINK (\S+)
22+
Value UUID_DEVICE_INFORMATION (\S+)
23+
Value UUID_GENERIC_ACCESS_PROFILE (\S+)
24+
Value UUID_HANDSFREE_AUDIO_GATEWAY (\S+)
25+
Value UUID_AUDIO_SOURCE (\S+)
26+
Value UUID_OBEX_FILE_TRANSFER (\S+)
27+
Value UUID_HANDSFREE (\S+)
28+
Value MODALIAS (\S+)
29+
Value DISCOVERING (\S+)
30+
Value List ROLES (\S+)
31+
Value ACTIVE_INSTANCES (\S+\s+\(\d+\))
32+
Value SUPPORTED_INSTANCES (\S+\s+\(\d+\))
33+
Value List SUPPORTED_INCLUDES (\S+)
34+
Value List SUPPORTED_SECONDARY_CHANNELS (\S+)
35+
36+
Start
37+
^\s*Controller\s+${CONTROLLER_ID}\s*$$
38+
^\s*Manufacturer:\s+${MANUFACTURER_ID}\s*$$
39+
^\s*Version:\s+${VERSION}\s*$$
40+
^\s*Name:\s+${NAME}\s*$$
41+
^\s*Alias:\s+${ALIAS}\s*$$
42+
^\s*Class:\s+${CLASS}\s*$$
43+
^\s*Powered:\s+${POWERED}\s*$$
44+
^\s*Discoverable:\s+${DISCOVERABLE}\s*$$
45+
^\s*DiscoverableTimeout:\s+${DISCOVERABLE_TIMEOUT}\s*$$
46+
^\s*Pairable:\s+${PAIRABLE}\s*$$
47+
^\s*UUID:\s+Message\s+Notification\s+Se\.\.\s+\(${UUID_MESSAGE_NOTIFICATION_SERVER}\)\s*$$
48+
^\s*UUID:\s+A\/V\s+Remote\s+Control\s+\(${UUID_A_V_REMOTE_CONTROL}\)\s*$$
49+
^\s*UUID:\s+OBEX\s+Object\s+Push\s+\(${UUID_OBEX_OBJECT_PUSH}\)\s*$$
50+
^\s*UUID:\s+Message\s+Access\s+Server\s+\(${UUID_MESSAGE_ACCESS_SERVER}\)\s*$$
51+
^\s*UUID:\s+PnP\s+Information\s+\(${UUID_PNP_INFORMATION}\)\s*$$
52+
^\s*UUID:\s+IrMC\s+Sync\s+\(${UUID_IRMC_SYNC}\)\s*$$
53+
^\s*UUID:\s+Vendor\s+specific\s+\(${UUID_VENDOR_SPECIFIC}\)\s*$$
54+
^\s*UUID:\s+A\/V\s+Remote\s+Control\s+Target\s+\(${UUID_AV_REMOTE_CONTROL_TARGET}\)\s*$$
55+
^\s*UUID:\s+Generic\s+Attribute\s+Profile\s+\(${UUID_GENERIC_ATTRIBUTE_PROFILE}\)\s*$$
56+
^\s*UUID:\s+Phonebook\s+Access\s+Server\s+\(${UUID_PHONEBOOK_ACCESS_SERVER}\)\s*$$
57+
^\s*UUID:\s+Audio\s+Sink\s+\(${UUID_AUDIO_SINK}\)\s*$$
58+
^\s*UUID:\s+Device\s+Information\s+\(${UUID_DEVICE_INFORMATION}\)\s*$$
59+
^\s*UUID:\s+Generic\s+Access\s+Profile\s+\(${UUID_GENERIC_ACCESS_PROFILE}\)\s*$$
60+
^\s*UUID:\s+Handsfree\s+Audio\s+Gateway\s+\(${UUID_HANDSFREE_AUDIO_GATEWAY}\)\s*$$
61+
^\s*UUID:\s+Audio\s+Source\s+\(${UUID_AUDIO_SOURCE}\)\s*$$
62+
^\s*UUID:\s+OBEX\s+File\s+Transfer\s+\(${UUID_OBEX_FILE_TRANSFER}\)\s*$$
63+
^\s*UUID:\s+Handsfree\s+\(${UUID_HANDSFREE}\)\s*$$
64+
^\s*Modalias:\s+${MODALIAS}\s*$$
65+
^\s*Discovering:\s+${DISCOVERING}\s*$$
66+
^\s*Roles:\s+${ROLES}\s*$$
67+
^\s*Advertising\s+Features:\s*$$
68+
^\s*ActiveInstances:\s+${ACTIVE_INSTANCES}\s*$$
69+
^\s*SupportedInstances:\s+${SUPPORTED_INSTANCES}\s*$$
70+
^\s*SupportedIncludes:\s+${SUPPORTED_INCLUDES}\s*$$
71+
^\s*SupportedSecondaryChannels:\s+${SUPPORTED_SECONDARY_CHANNELS}\s*$$
72+
^\s*$$
73+
^. -> Error
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
Controller AA:AA:AA:AA:AA:AA (public)
2+
Manufacturer: 0x005d (93)
3+
Version: 0x0a (10)
4+
Name: ntc-AA-AAAA
5+
Alias: ntc-AA-AAAA
6+
Class: 0x00000000 (0)
7+
Powered: no
8+
Discoverable: no
9+
DiscoverableTimeout: 0x000000b4 (180)
10+
Pairable: yes
11+
UUID: Message Notification Se.. (00001133-0000-1000-8000-00805f9b34fb)
12+
UUID: A/V Remote Control (0000110e-0000-1000-8000-00805f9b34fb)
13+
UUID: OBEX Object Push (00001105-0000-1000-8000-00805f9b34fb)
14+
UUID: Message Access Server (00001132-0000-1000-8000-00805f9b34fb)
15+
UUID: PnP Information (00001200-0000-1000-8000-00805f9b34fb)
16+
UUID: IrMC Sync (00001104-0000-1000-8000-00805f9b34fb)
17+
UUID: Vendor specific (00005005-0000-1000-8000-0002ee000001)
18+
UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
19+
UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
20+
UUID: Phonebook Access Server (0000112f-0000-1000-8000-00805f9b34fb)
21+
UUID: Audio Sink (0000110b-0000-1000-8000-00805f9b34fb)
22+
UUID: Device Information (0000180a-0000-1000-8000-00805f9b34fb)
23+
UUID: Generic Access Profile (00001800-0000-1000-8000-00805f9b34fb)
24+
UUID: Handsfree Audio Gateway (0000111f-0000-1000-8000-00805f9b34fb)
25+
UUID: Audio Source (0000110a-0000-1000-8000-00805f9b34fb)
26+
UUID: OBEX File Transfer (00001106-0000-1000-8000-00805f9b34fb)
27+
UUID: Handsfree (0000111e-0000-1000-8000-00805f9b34fb)
28+
Modalias: usb:v1D6Bp0246d0548
29+
Discovering: no
30+
Roles: central
31+
Roles: peripheral
32+
Advertising Features:
33+
ActiveInstances: 0x00 (0)
34+
SupportedInstances: 0x04 (4)
35+
SupportedIncludes: tx-power
36+
SupportedIncludes: appearance
37+
SupportedIncludes: local-name
38+
SupportedSecondaryChannels: 1M
39+
SupportedSecondaryChannels: 2M
40+
SupportedSecondaryChannels: Coded
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
---
2+
parsed_sample:
3+
- active_instances: "0x00 (0)"
4+
alias: "ntc-AA-AAAA"
5+
class: "0x00000000 (0)"
6+
controller_id: "AA:AA:AA:AA:AA:AA (public)"
7+
discoverable: "no"
8+
discoverable_timeout: "0x000000b4 (180)"
9+
discovering: "no"
10+
manufacturer_id: "0x005d (93)"
11+
modalias: "usb:v1D6Bp0246d0548"
12+
name: "ntc-AA-AAAA"
13+
pairable: "yes"
14+
powered: "no"
15+
roles:
16+
- "central"
17+
- "peripheral"
18+
supported_includes:
19+
- "tx-power"
20+
- "appearance"
21+
- "local-name"
22+
supported_instances: "0x04 (4)"
23+
supported_secondary_channels:
24+
- "1M"
25+
- "2M"
26+
- "Coded"
27+
uuid_a_v_remote_control: "0000110e-0000-1000-8000-00805f9b34fb"
28+
uuid_audio_sink: "0000110b-0000-1000-8000-00805f9b34fb"
29+
uuid_audio_source: "0000110a-0000-1000-8000-00805f9b34fb"
30+
uuid_av_remote_control_target: "0000110c-0000-1000-8000-00805f9b34fb"
31+
uuid_device_information: "0000180a-0000-1000-8000-00805f9b34fb"
32+
uuid_generic_access_profile: "00001800-0000-1000-8000-00805f9b34fb"
33+
uuid_generic_attribute_profile: "00001801-0000-1000-8000-00805f9b34fb"
34+
uuid_handsfree: "0000111e-0000-1000-8000-00805f9b34fb"
35+
uuid_handsfree_audio_gateway: "0000111f-0000-1000-8000-00805f9b34fb"
36+
uuid_irmc_sync: "00001104-0000-1000-8000-00805f9b34fb"
37+
uuid_message_access_server: "00001132-0000-1000-8000-00805f9b34fb"
38+
uuid_message_notification_server: "00001133-0000-1000-8000-00805f9b34fb"
39+
uuid_obex_file_transfer: "00001106-0000-1000-8000-00805f9b34fb"
40+
uuid_obex_object_push: "00001105-0000-1000-8000-00805f9b34fb"
41+
uuid_phonebook_access_server: "0000112f-0000-1000-8000-00805f9b34fb"
42+
uuid_pnp_information: "00001200-0000-1000-8000-00805f9b34fb"
43+
uuid_vendor_specific: "00005005-0000-1000-8000-0002ee000001"
44+
version: "0x0a (10)"
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
Controller AA:AA:AA:AA:AA:AA (public)
2+
Manufacturer: 0x005d (93)
3+
Version: 0x0a (10)
4+
Name: ntc-AA-AAAA
5+
Alias: ntc-AA-AAAA
6+
Class: 0x007c0104 (8126724)
7+
Powered: yes
8+
Discoverable: yes
9+
DiscoverableTimeout: 0x000000b4 (180)
10+
Pairable: yes
11+
UUID: Message Notification Se.. (00001133-0000-1000-8000-00805f9b34fb)
12+
UUID: A/V Remote Control (0000110e-0000-1000-8000-00805f9b34fb)
13+
UUID: OBEX Object Push (00001105-0000-1000-8000-00805f9b34fb)
14+
UUID: Message Access Server (00001132-0000-1000-8000-00805f9b34fb)
15+
UUID: PnP Information (00001200-0000-1000-8000-00805f9b34fb)
16+
UUID: IrMC Sync (00001104-0000-1000-8000-00805f9b34fb)
17+
UUID: Vendor specific (00005005-0000-1000-8000-0002ee000001)
18+
UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
19+
UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
20+
UUID: Phonebook Access Server (0000112f-0000-1000-8000-00805f9b34fb)
21+
UUID: Audio Sink (0000110b-0000-1000-8000-00805f9b34fb)
22+
UUID: Device Information (0000180a-0000-1000-8000-00805f9b34fb)
23+
UUID: Generic Access Profile (00001800-0000-1000-8000-00805f9b34fb)
24+
UUID: Handsfree Audio Gateway (0000111f-0000-1000-8000-00805f9b34fb)
25+
UUID: Audio Source (0000110a-0000-1000-8000-00805f9b34fb)
26+
UUID: OBEX File Transfer (00001106-0000-1000-8000-00805f9b34fb)
27+
UUID: Handsfree (0000111e-0000-1000-8000-00805f9b34fb)
28+
Modalias: usb:v1D6Bp0246d0548
29+
Discovering: yes
30+
Roles: central
31+
Roles: peripheral
32+
Advertising Features:
33+
ActiveInstances: 0x00 (0)
34+
SupportedInstances: 0x04 (4)
35+
SupportedIncludes: tx-power
36+
SupportedIncludes: appearance
37+
SupportedIncludes: local-name
38+
SupportedSecondaryChannels: 1M
39+
SupportedSecondaryChannels: 2M
40+
SupportedSecondaryChannels: Coded
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
---
2+
parsed_sample:
3+
- active_instances: "0x00 (0)"
4+
alias: "ntc-AA-AAAA"
5+
class: "0x007c0104 (8126724)"
6+
controller_id: "AA:AA:AA:AA:AA:AA (public)"
7+
discoverable: "yes"
8+
discoverable_timeout: "0x000000b4 (180)"
9+
discovering: "yes"
10+
manufacturer_id: "0x005d (93)"
11+
modalias: "usb:v1D6Bp0246d0548"
12+
name: "ntc-AA-AAAA"
13+
pairable: "yes"
14+
powered: "yes"
15+
roles:
16+
- "central"
17+
- "peripheral"
18+
supported_includes:
19+
- "tx-power"
20+
- "appearance"
21+
- "local-name"
22+
supported_instances: "0x04 (4)"
23+
supported_secondary_channels:
24+
- "1M"
25+
- "2M"
26+
- "Coded"
27+
uuid_a_v_remote_control: "0000110e-0000-1000-8000-00805f9b34fb"
28+
uuid_audio_sink: "0000110b-0000-1000-8000-00805f9b34fb"
29+
uuid_audio_source: "0000110a-0000-1000-8000-00805f9b34fb"
30+
uuid_av_remote_control_target: "0000110c-0000-1000-8000-00805f9b34fb"
31+
uuid_device_information: "0000180a-0000-1000-8000-00805f9b34fb"
32+
uuid_generic_access_profile: "00001800-0000-1000-8000-00805f9b34fb"
33+
uuid_generic_attribute_profile: "00001801-0000-1000-8000-00805f9b34fb"
34+
uuid_handsfree: "0000111e-0000-1000-8000-00805f9b34fb"
35+
uuid_handsfree_audio_gateway: "0000111f-0000-1000-8000-00805f9b34fb"
36+
uuid_irmc_sync: "00001104-0000-1000-8000-00805f9b34fb"
37+
uuid_message_access_server: "00001132-0000-1000-8000-00805f9b34fb"
38+
uuid_message_notification_server: "00001133-0000-1000-8000-00805f9b34fb"
39+
uuid_obex_file_transfer: "00001106-0000-1000-8000-00805f9b34fb"
40+
uuid_obex_object_push: "00001105-0000-1000-8000-00805f9b34fb"
41+
uuid_phonebook_access_server: "0000112f-0000-1000-8000-00805f9b34fb"
42+
uuid_pnp_information: "00001200-0000-1000-8000-00805f9b34fb"
43+
uuid_vendor_specific: "00005005-0000-1000-8000-0002ee000001"
44+
version: "0x0a (10)"

0 commit comments

Comments
 (0)