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

New Template: Cisco WLC show redundancy summary and detail #846

Merged
merged 1 commit into from
Jan 29, 2021
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
18 changes: 18 additions & 0 deletions templates/cisco_wlc_ssh_show_redundancy_detail.textfsm
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Value REDUNDANCY_MGMT_ADDR (\S+)
Value PEER_REDUNDANCY_MGMT_ADDR (\S+)
Value REDUNDANCY_PORT_ADDR (\S+)
Value PEER_REDUNDANCY_PORT_ADDR (\S+)
Value PEER_SERVICE_PORT_ADDR (\S+)
Value KEEP_ALIVE_TIMEOUT (\d+)
Value PEER_SEARCH_TIMEOUT (\d+)

Start
^\s*Redundancy Management IP Address\.*\s+${REDUNDANCY_MGMT_ADDR}\s*$$
^\s*Peer Redundancy Management IP Address\.*\s+${PEER_REDUNDANCY_MGMT_ADDR}\s*$$
^\s*Redundancy Port IP Address\.*\s+${REDUNDANCY_PORT_ADDR}\s*$$
^\s*Peer Redundancy Port IP Address\.*\s+${PEER_REDUNDANCY_PORT_ADDR}\s*$$
^\s*Peer Service Port IP Address\.*\s+${PEER_SERVICE_PORT_ADDR}\s*$$
# presently not parsing Switchover History
^\s*Keep Alive Timeout\s+:\s+${KEEP_ALIVE_TIMEOUT}\s+msecs\s*$$
^\s*Peer Search Timeout\s+:\s+${PEER_SEARCH_TIMEOUT}\s+secs\s*$$
# presently not parsing Peer Network Routes
24 changes: 24 additions & 0 deletions templates/cisco_wlc_ssh_show_redundancy_summary.textfsm
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
Value REDUNDANCY_MODE (\S+\s+\S+)
Value LOCAL_STATE (\S+)
Value PEER_STATE (\S+\s+\S+)
Value UNIT (\S+)
Value UNIT_ID (([\da-fA-F]{2}\:?){6})
Value REDUNDANCY_STATE (\S+)
Value MOBILITY_MAC (([\da-fA-F]{2}\:?){6})
Value REDUNDANCY_PORT (\S+)
Value BULKSYNC_STATUS (\S+)
Value AVG_REDUNDANCY_PEER_LATENCY (\d+)
Value AVG_MGMT_GW_LATENCY (\d+)

Start
^\s+Redundancy Mode\s+=\s+${REDUNDANCY_MODE}\s*$$
^\s+Local State\s+=\s+${LOCAL_STATE}\s*$$
^\s+Peer State\s+=\s+${PEER_STATE}\s*$$
^\s+Unit\s+=\s+${UNIT}\s*$$
^\s+Unit ID\s+=\s+${UNIT_ID}\s*$$
^\s+Redundancy State\s+=\s+${REDUNDANCY_STATE}\s*$$
^\s+Mobility MAC\s+=\s+${MOBILITY_MAC}\s*$$
^\s+Redundancy Port\s+=\s+${REDUNDANCY_PORT}\s*$$
^\s+BulkSync Status\s+=\s+${BULKSYNC_STATUS}\s*$$
^\s*Average Redundancy Peer Reachability Latency\s+=\s+${AVG_REDUNDANCY_PEER_LATENCY}\s+\S+\s+Seconds\s*$$
^\s*Average Management Gateway Reachability Latency\s+=\s+${AVG_MGMT_GW_LATENCY}\s+\S+\s+Seconds\s*$$
6 changes: 4 additions & 2 deletions templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
# abc[[xyz]] is expanded to abc(x(y(z)?)?)?, regexp inside [[]] is not supported
#
# Rules of Ordering:
# - OS in alphbetical order
# - Command in length other
# - OS in alphabetical order
# - Template name in length order
# - When Length is the same, use alphabetical order
# - Keep space between OS's
#
Expand Down Expand Up @@ -307,9 +307,11 @@ cisco_wlc_ssh_show_advanced_802.11a_channel.textfsm, .*, cisco_wlc_ssh, sh[[ow]]
cisco_wlc_ssh_show_802.11a_cleanair_config.textfsm, .*, cisco_wlc_ssh, sh[[ow]] 802\.11[ab] cl[[eanair]] c[[onfig]]
cisco_wlc_ssh_show_interface_detailed_id.textfsm, .*, cisco_wlc_ssh, sh[[ow]] int[[erface]] d[[etailed]] (\S+)
cisco_wlc_ssh_show_cdp_neighbors_detail.textfsm, .*, cisco_wlc_ssh, sh[[ow]] c[[dp]] neig[[hbors]] det[[ail]]
cisco_wlc_ssh_show_redundancy_summary.textfsm, .*, cisco_wlc_ssh, sh[[ow]] red[[undancy]] su[[mmary]]
cisco_wlc_ssh_show_rf-profile_summary.textfsm, .*, cisco_wlc_ssh, sh[[ow]] rf-[[profile]] s[[ummary]]
cisco_wlc_ssh_show_ap_config_general.textfsm, .*, cisco_wlc_ssh, sh[[ow]] ap con[[fig]] ge[[neral]]
cisco_wlc_ssh_show_interface_summary.textfsm, .*, cisco_wlc_ssh, sh[[ow]] int[[erface]] s[[ummary]]
cisco_wlc_ssh_show_redundancy_detail.textfsm, .*, cisco_wlc_ssh, sh[[ow]] red[[undancy]] d[[etail]]
cisco_wlc_ssh_show_client_detail.textfsm, .*, cisco_wlc_ssh, sh[[ow]] cl[[ient]] det[[ail]]
cisco_wlc_ssh_show_exclusionlist.textfsm, .*, cisco_wlc_ssh, sh[[ow]] ex[[clusionlist]]
cisco_wlc_ssh_show_ap_image_all.textfsm, .*, cisco_wlc_ssh, sh[[ow]] ap ima[[ge]] a[[ll]]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Redundancy Management IP Address................. 10.128.1.2
Peer Redundancy Management IP Address............ 10.128.1.3
Redundancy Port IP Address....................... 169.254.1.2
Peer Redundancy Port IP Address.................. 169.254.1.3
Peer Service Port IP Address..................... 0.0.0.0

Switchover History[1]:
Previous Active = 10.128.1.3, Current Active = 10.128.1.2
Switchover Reason = Active controller failed, Switchover Time = Tue Nov 24 19:24:43 2020


Redundancy Timeout Values.....:
----------------------------------------------------
Keep Alive Timeout : 100 msecs
Peer Search Timeout : 120 secs


Number of Routes................................. 0

Destination Network Netmask Gateway
------------------- ------------------- -------------------
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
parsed_sample:
- redundancy_mgmt_addr: "10.128.1.2"
peer_redundancy_mgmt_addr: "10.128.1.3"
redundancy_port_addr: "169.254.1.2"
peer_redundancy_port_addr: "169.254.1.3"
peer_service_port_addr: "0.0.0.0"
keep_alive_timeout: "100"
peer_search_timeout: "120"
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Redundancy Mode = SSO ENABLED
Local State = ACTIVE
Peer State = STANDBY HOT
Unit = Primary
Unit ID = 00:00:00:00:12:34
Redundancy State = SSO
Mobility MAC = 00:00:00:00:12:34
Redundancy Port = UP
BulkSync Status = Complete
Average Redundancy Peer Reachability Latency = 199 Micro Seconds
Average Management Gateway Reachability Latency = 570 Micro Seconds
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
parsed_sample:
- redundancy_mode: "SSO ENABLED"
local_state: "ACTIVE"
peer_state: "STANDBY HOT"
unit: "Primary"
unit_id: "00:00:00:00:12:34"
redundancy_state: "SSO"
mobility_mac: "00:00:00:00:12:34"
redundancy_port: "UP"
bulksync_status: "Complete"
avg_redundancy_peer_latency: "199"
avg_mgmt_gw_latency: "570"