Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create aruba_os_show_ap_database_long #1134

Merged
merged 6 commits into from
May 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions ntc_templates/templates/aruba_os_show_ap_database_long.textfsm
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
Value AP_NAME (\S+)
Value GROUP (\S+)
Value AP_MODEL (\S+)
Value IP_ADDRESS ((([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]))
Value STATUS (.+?)
Value FLAGS (\S+)
Value PRIMARY ((([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]))
Value STANDBY ((([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]))
Value MAC ([a-fA-F0-9]{2}(:[a-fA-F0-9]{2}){5})
Value SERIAL (\S+)
Value PORT (.+?)
Value FQLN (.+?)
Value OUTER_IP (.+?)
Value USER (.+?)

Start
^${AP_NAME}\s+${GROUP}\s+${AP_MODEL}\s+${IP_ADDRESS}\s+${STATUS}\s+${FLAGS}\s+${PRIMARY}\s+${STANDBY}\s+${MAC}\s+${SERIAL}\s+${PORT}\s+${FQLN}\s+${OUTER_IP}\s+${USER}\s*$$ -> Record
^AP Database
^.+\.+
^Name\s+Group\s+AP Type\s+IP Address\s+Status\s+Flags\s+Switch IP\s+Standby IP\s+Wired MAC Address\s+Serial #\s+Port\s+FQLN\s+Outer IP\s+User\s*$$
^Flags:
^\s*$$
^\s+
^Total
^-+
^. -> Error
1 change: 1 addition & 0 deletions ntc_templates/templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ aruba_aoscx_show_interface.textfsm , .*, aruba_aoscx, sh[[ow]] int[[erface]]
aruba_os_show_ipv6_interface_brief.textfsm, .*, aruba_os, sh[[ow]] ipv6 in[[terface]] b[[rief]]
aruba_os_show_ip_interface_brief.textfsm, .*, aruba_os, sh[[ow]] ip in[[terface]] b[[rief]]
aruba_os_show_ap_radio-database.textfsm, .*, aruba_os, show ap radio-database
aruba_os_show_ap_database_long.textfsm, .*, aruba_os, show ap database long
aruba_os_show_ap_database.textfsm, .*, aruba_os, show ap database
aruba_os_show_arp.textfsm, .*, aruba_os, sh[[ow]] arp

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@

AP Database
-----------
Name Group AP Type IP Address Status Flags Switch IP Standby IP Wired MAC Address Serial # Port FQLN Outer IP User
---- ----- ------- ---------- ------ ----- --------- ---------- ----------------- -------- ---- ---- -------- ----
ap-building-1 building 635 192.168.1.1 Up 2d:17h:8m:4s 2Sf 192.168.2.2 192.168.2.3 cc:88:c7:11:22:33 CNM12345 N/A N/A N/A N/A
ap-building-2 building 515 192.168.1.2 Up 2d:17h:8m:23s 2Sf 192.168.2.2 192.168.2.3 cc:88:c7:11:22:34 CNM12346 N/A N/A N/A N/A
ap-building-3 building 505H 192.168.1.3 Up 2d:16h:57m:55s 2Sf 192.168.2.2 192.168.2.3 cc:88:c7:11:22:35 CNM12347 N/A N/A N/A N/A


Flags: 1 = 802.1x authenticated AP use EAP-PEAP; 1+ = 802.1x use EST; 1- = 802.1x use factory cert
2 = Using IKE version 2; 4 = WiFi Uplink
B = Built-in AP; C = Cellular RAP; D = Dirty or no config
E = Regulatory Domain Mismatch; F = AP failed 802.1x authentication
G = No such group; I = Inactive; J = USB cert at AP; L = Unlicensed
M = Mesh node
N = Duplicate name; P = PPPoe AP; R = Remote AP; R- = Remote AP requires Auth
S = Standby-mode AP; T = Thermal ShutDown; U = Unprovisioned; X = Maintenance Mode
Y = Mesh Recovery
b = bypass of AP1x timeout; c = CERT-based RAP; e = Custom EST cert; f = No Spectrum FFT support
i = Indoor; o = Outdoor; l = LAG 802.3ad; m = Protocol Mismatch
p = In deep-sleep status; r = Power Restricted; s = LACP striping; t = Temperature Restricted
u = Custom-Cert RAP; z = Datazone AP
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
---
parsed_sample:
- ap_name: "ap-building-1"
group: "building"
ap_model: "635"
ip_address: "192.168.1.1"
status: "Up 2d:17h:8m:4s"
flags: "2Sf"
primary: "192.168.2.2"
standby: "192.168.2.3"
mac: "cc:88:c7:11:22:33"
serial: "CNM12345"
port: "N/A"
fqln: "N/A"
outer_ip: "N/A"
user: "N/A"
- ap_name: "ap-building-2"
group: "building"
ap_model: "515"
ip_address: "192.168.1.2"
status: "Up 2d:17h:8m:23s"
flags: "2Sf"
primary: "192.168.2.2"
standby: "192.168.2.3"
mac: "cc:88:c7:11:22:34"
serial: "CNM12346"
port: "N/A"
fqln: "N/A"
outer_ip: "N/A"
user: "N/A"
- ap_name: "ap-building-3"
group: "building"
ap_model: "505H"
ip_address: "192.168.1.3"
status: "Up 2d:16h:57m:55s"
flags: "2Sf"
primary: "192.168.2.2"
standby: "192.168.2.3"
mac: "cc:88:c7:11:22:35"
serial: "CNM12347"
port: "N/A"
fqln: "N/A"
outer_ip: "N/A"
user: "N/A"