Skip to content

Commit ed927aa

Browse files
authored
Fix ios sh redundancy for 93xx stackwise (#2193)
1 parent 6a96a40 commit ed927aa

File tree

6 files changed

+181
-90
lines changed

6 files changed

+181
-90
lines changed

ntc_templates/templates/cisco_ios_show_redundancy.textfsm

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ Value ACTIVE_MINOR_RELEASE (\d+)
2323
Value ACTIVE_MAINTENANCE_RELEASE (\S+)
2424
Value ACTIVE_BOOT_DIRECTORY (\S+)
2525
Value ACTIVE_BOOT_FILE (\S+)
26+
Value FAST_SWITCHOVER (\S+)
27+
Value INITIAL_GARP (\S+)
2628
Value ACTIVE_CONFIG_REGISTER (\S+)
2729
Value STANDBY_SLOT (\S+)
2830
Value STANDBY_SOFTWARE_STATE (.+?)
@@ -69,6 +71,8 @@ Current
6971
^.+[Cc][Ii][Ss][Cc][Oo]
7072
^.*(?:Copyright|Compiled|CONFIG_FILE|BOOTLDR)
7173
^\s*BOOT\s*=\s*${ACTIVE_BOOT_DIRECTORY}:${ACTIVE_BOOT_FILE}\s*$$
74+
^\s*Fast\s+Switchover\s+=\s+${FAST_SWITCHOVER}
75+
^\s*Initial\s+Garp\s+=\s+${INITIAL_GARP}
7276
^\s*Configuration\s+register\s*=\s*${ACTIVE_CONFIG_REGISTER}\s*$$
7377
^Peer\s*\(slot:\s*unavailable\)\s*\w*\s*\w*\s*\w*\s*\w*\s*\w\s*\w*\s*\w*\s*\w*\s*\w*\s*\'${STANDBY_STATUS}\'\s*state$$ -> EOF
7478
^\s*Peer\s+Processor -> Peer
Lines changed: 32 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,44 @@
11
---
22
parsed_sample:
3-
- system_uptime_years: ""
4-
system_uptime_weeks: ""
5-
system_uptime_days: "2"
6-
system_uptime_hours: "2"
7-
system_uptime_minutes: "39"
8-
switchovers: "0"
9-
standby_failures: "0"
10-
last_switchover_reason: "none"
11-
hardware_mode: "Duplex"
12-
configured_redundancy_mode: "Stateful Switchover"
13-
operating_redundancy_mode: "Stateful Switchover"
14-
maintenance_mode: "Disabled"
15-
communication_status: "Up"
3+
- active_boot_directory: "bootflash"
4+
active_boot_file: "cat4000-i5s-mz.122_20_EWA_392,1"
5+
active_config_register: "0x2002"
6+
active_maintenance_release: "20"
7+
active_major_release: "12"
8+
active_minor_release: "2"
169
active_slot: "1"
1710
active_software_state: "ACTIVE"
18-
active_uptime_years: ""
19-
active_uptime_weeks: ""
2011
active_uptime_days: "2"
2112
active_uptime_hours: "2"
2213
active_uptime_minutes: "39"
23-
active_major_release: "12"
24-
active_minor_release: "2"
25-
active_maintenance_release: "20"
26-
active_boot_directory: "bootflash"
27-
active_boot_file: "cat4000-i5s-mz.122_20_EWA_392,1"
28-
active_config_register: "0x2002"
14+
active_uptime_weeks: ""
15+
active_uptime_years: ""
16+
communication_status: "Up"
17+
configured_redundancy_mode: "Stateful Switchover"
18+
fast_switchover: ""
19+
hardware_mode: "Duplex"
20+
initial_garp: ""
21+
last_switchover_reason: "none"
22+
maintenance_mode: "Disabled"
23+
operating_redundancy_mode: "Stateful Switchover"
24+
standby_boot_directory: "bootflash"
25+
standby_boot_file: "cat4000-i5s-mz.122_20_EWA_392,1"
26+
standby_config_register: "0x2002"
27+
standby_failures: "0"
28+
standby_maintenance_release: "20"
29+
standby_major_release: "12"
30+
standby_minor_release: "2"
2931
standby_slot: "2"
3032
standby_software_state: "STANDBY HOT"
31-
standby_uptime_years: ""
32-
standby_uptime_weeks: ""
33+
standby_status: ""
3334
standby_uptime_days: "2"
3435
standby_uptime_hours: "2"
3536
standby_uptime_minutes: "39"
36-
standby_major_release: "12"
37-
standby_minor_release: "2"
38-
standby_maintenance_release: "20"
39-
standby_boot_directory: "bootflash"
40-
standby_boot_file: "cat4000-i5s-mz.122_20_EWA_392,1"
41-
standby_config_register: "0x2002"
42-
standby_status: ""
37+
standby_uptime_weeks: ""
38+
standby_uptime_years: ""
39+
switchovers: "0"
40+
system_uptime_days: "2"
41+
system_uptime_hours: "2"
42+
system_uptime_minutes: "39"
43+
system_uptime_weeks: ""
44+
system_uptime_years: ""
Lines changed: 32 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,44 @@
11
---
22
parsed_sample:
3-
- system_uptime_years: ""
4-
system_uptime_weeks: ""
5-
system_uptime_days: ""
6-
system_uptime_hours: "1"
7-
system_uptime_minutes: "22"
8-
switchovers: "0"
9-
standby_failures: "0"
10-
last_switchover_reason: "none"
11-
hardware_mode: "Duplex"
12-
configured_redundancy_mode: "sso"
13-
operating_redundancy_mode: "sso"
14-
maintenance_mode: "Disabled"
15-
communication_status: "Up"
3+
- active_boot_directory: "bootdisk"
4+
active_boot_file: "s2t54-adventerprisek9-mz.SPA.155-1.SY4.bin,1;"
5+
active_config_register: "0x2102"
6+
active_maintenance_release: ""
7+
active_major_release: ""
8+
active_minor_release: ""
169
active_slot: "1/5"
1710
active_software_state: "ACTIVE"
18-
active_uptime_years: ""
19-
active_uptime_weeks: ""
2011
active_uptime_days: ""
2112
active_uptime_hours: "1"
2213
active_uptime_minutes: "22"
23-
active_major_release: ""
24-
active_minor_release: ""
25-
active_maintenance_release: ""
26-
active_boot_directory: "bootdisk"
27-
active_boot_file: "s2t54-adventerprisek9-mz.SPA.155-1.SY4.bin,1;"
28-
active_config_register: "0x2102"
14+
active_uptime_weeks: ""
15+
active_uptime_years: ""
16+
communication_status: "Up"
17+
configured_redundancy_mode: "sso"
18+
fast_switchover: ""
19+
hardware_mode: "Duplex"
20+
initial_garp: ""
21+
last_switchover_reason: "none"
22+
maintenance_mode: "Disabled"
23+
operating_redundancy_mode: "sso"
24+
standby_boot_directory: "bootdisk"
25+
standby_boot_file: "s2t54-adventerprisek9-mz.SPA.155-1.SY4.bin,1;"
26+
standby_config_register: "0x2102"
27+
standby_failures: "0"
28+
standby_maintenance_release: ""
29+
standby_major_release: ""
30+
standby_minor_release: ""
2931
standby_slot: "2/5"
3032
standby_software_state: "STANDBY HOT"
31-
standby_uptime_years: ""
32-
standby_uptime_weeks: ""
33+
standby_status: ""
3334
standby_uptime_days: ""
3435
standby_uptime_hours: ""
3536
standby_uptime_minutes: "19"
36-
standby_major_release: ""
37-
standby_minor_release: ""
38-
standby_maintenance_release: ""
39-
standby_boot_directory: "bootdisk"
40-
standby_boot_file: "s2t54-adventerprisek9-mz.SPA.155-1.SY4.bin,1;"
41-
standby_config_register: "0x2102"
42-
standby_status: ""
37+
standby_uptime_weeks: ""
38+
standby_uptime_years: ""
39+
switchovers: "0"
40+
system_uptime_days: ""
41+
system_uptime_hours: "1"
42+
system_uptime_minutes: "22"
43+
system_uptime_weeks: ""
44+
system_uptime_years: ""
Lines changed: 32 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,44 @@
11
---
22
parsed_sample:
3-
- system_uptime_years: ""
4-
system_uptime_weeks: "46"
5-
system_uptime_days: "4"
6-
system_uptime_hours: "22"
7-
system_uptime_minutes: "52"
8-
switchovers: "0"
9-
standby_failures: "0"
10-
last_switchover_reason: "none"
11-
hardware_mode: "Simplex"
12-
configured_redundancy_mode: "sso"
13-
operating_redundancy_mode: "sso"
14-
maintenance_mode: "Disabled"
15-
communication_status: "Down Reason: Failure"
3+
- active_boot_directory: "bootdisk"
4+
active_boot_file: "/c6848x-adventerprisek9-mz.SPA.154-1.SY4.bin,12;"
5+
active_config_register: "0x2102"
6+
active_maintenance_release: ""
7+
active_major_release: ""
8+
active_minor_release: ""
169
active_slot: "1"
1710
active_software_state: "ACTIVE"
18-
active_uptime_years: ""
19-
active_uptime_weeks: "46"
2011
active_uptime_days: "4"
2112
active_uptime_hours: "22"
2213
active_uptime_minutes: "52"
23-
active_major_release: ""
24-
active_minor_release: ""
25-
active_maintenance_release: ""
26-
active_boot_directory: "bootdisk"
27-
active_boot_file: "/c6848x-adventerprisek9-mz.SPA.154-1.SY4.bin,12;"
28-
active_config_register: "0x2102"
14+
active_uptime_weeks: "46"
15+
active_uptime_years: ""
16+
communication_status: "Down Reason: Failure"
17+
configured_redundancy_mode: "sso"
18+
fast_switchover: ""
19+
hardware_mode: "Simplex"
20+
initial_garp: ""
21+
last_switchover_reason: "none"
22+
maintenance_mode: "Disabled"
23+
operating_redundancy_mode: "sso"
24+
standby_boot_directory: ""
25+
standby_boot_file: ""
26+
standby_config_register: ""
27+
standby_failures: "0"
28+
standby_maintenance_release: ""
29+
standby_major_release: ""
30+
standby_minor_release: ""
2931
standby_slot: ""
3032
standby_software_state: ""
31-
standby_uptime_years: ""
32-
standby_uptime_weeks: ""
33+
standby_status: "DISABLED"
3334
standby_uptime_days: ""
3435
standby_uptime_hours: ""
3536
standby_uptime_minutes: ""
36-
standby_major_release: ""
37-
standby_minor_release: ""
38-
standby_maintenance_release: ""
39-
standby_boot_directory: ""
40-
standby_boot_file: ""
41-
standby_config_register: ""
42-
standby_status: "DISABLED"
37+
standby_uptime_weeks: ""
38+
standby_uptime_years: ""
39+
switchovers: "0"
40+
system_uptime_days: "4"
41+
system_uptime_hours: "22"
42+
system_uptime_minutes: "52"
43+
system_uptime_weeks: "46"
44+
system_uptime_years: ""
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
Redundant System Information :
2+
------------------------------
3+
Available system uptime = 1 year, 13 weeks, 6 days, 1 hour, 2 minutes
4+
Switchovers system experienced = 0
5+
Standby failures = 0
6+
Last switchover reason = none
7+
8+
Hardware Mode = Duplex
9+
Configured Redundancy Mode = sso
10+
Operating Redundancy Mode = sso
11+
Maintenance Mode = Disabled
12+
Communications = Up
13+
14+
Current Processor Information :
15+
-------------------------------
16+
Active Location = slot 1
17+
Current Software state = ACTIVE
18+
Uptime in current state = 1 year, 13 weeks, 6 days, 1 hour, 2 minutes
19+
Image Version = Cisco IOS Software [Cupertino], Catalyst L3 Switch Software (CAT9K_IOSXE), Version 17.9.5, RELEASE SOFTWARE (fc1)
20+
Technical Support: http://www.cisco.com/techsupport
21+
Copyright (c) 1986-2024 by Cisco Systems, Inc.
22+
Compiled Tue 30-Jan-24 15:48 by mcpre
23+
BOOT = flash:packages.conf;
24+
Fast Switchover = Disabled
25+
Initial Garp = Disabled
26+
27+
Peer Processor Information :
28+
----------------------------
29+
Standby Location = slot 5
30+
Current Software state = STANDBY HOT
31+
Uptime in current state = 1 year, 13 weeks, 6 days, 58 minutes
32+
Image Version = Cisco IOS Software [Cupertino], Catalyst L3 Switch Software (CAT9K_IOSXE), Version 17.9.5, RELEASE SOFTWARE (fc1)
33+
Technical Support: http://www.cisco.com/techsupport
34+
Copyright (c) 1986-2024 by Cisco Systems, Inc.
35+
Compiled Tue 30-Jan-24 15:48 by mcpre
36+
BOOT = flash:packages.conf;
37+
CONFIG_FILE =
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
---
2+
parsed_sample:
3+
- active_boot_directory: "flash"
4+
active_boot_file: "packages.conf;"
5+
active_config_register: ""
6+
active_maintenance_release: ""
7+
active_major_release: ""
8+
active_minor_release: ""
9+
active_slot: "1"
10+
active_software_state: "ACTIVE"
11+
active_uptime_days: "6"
12+
active_uptime_hours: "1"
13+
active_uptime_minutes: "2"
14+
active_uptime_weeks: "13"
15+
active_uptime_years: "1"
16+
communication_status: "Up"
17+
configured_redundancy_mode: "sso"
18+
fast_switchover: "Disabled"
19+
hardware_mode: "Duplex"
20+
initial_garp: "Disabled"
21+
last_switchover_reason: "none"
22+
maintenance_mode: "Disabled"
23+
operating_redundancy_mode: "sso"
24+
standby_boot_directory: "flash"
25+
standby_boot_file: "packages.conf;"
26+
standby_config_register: ""
27+
standby_failures: "0"
28+
standby_maintenance_release: ""
29+
standby_major_release: ""
30+
standby_minor_release: ""
31+
standby_slot: "5"
32+
standby_software_state: "STANDBY HOT"
33+
standby_status: ""
34+
standby_uptime_days: "6"
35+
standby_uptime_hours: ""
36+
standby_uptime_minutes: "58"
37+
standby_uptime_weeks: "13"
38+
standby_uptime_years: "1"
39+
switchovers: "0"
40+
system_uptime_days: "6"
41+
system_uptime_hours: "1"
42+
system_uptime_minutes: "2"
43+
system_uptime_weeks: "13"
44+
system_uptime_years: "1"

0 commit comments

Comments
 (0)