forked from networktocode/ntc-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New Templates: cisco_wlc_ssh_show_redundancy_detail/summary.textfsm (n…
- Loading branch information
Showing
7 changed files
with
100 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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*$$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
tests/cisco_wlc_ssh/show_redundancy_detail/cisco_wlc_ssh_show_redundancy_detail.raw
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
------------------- ------------------- ------------------- |
9 changes: 9 additions & 0 deletions
9
tests/cisco_wlc_ssh/show_redundancy_detail/cisco_wlc_ssh_show_redundancy_detail.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
11 changes: 11 additions & 0 deletions
11
tests/cisco_wlc_ssh/show_redundancy_summary/cisco_wlc_ssh_show_redundancy_summary.raw
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
13 changes: 13 additions & 0 deletions
13
tests/cisco_wlc_ssh/show_redundancy_summary/cisco_wlc_ssh_show_redundancy_summary.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |