Skip to content
Open
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
2 changes: 1 addition & 1 deletion ntc_templates/templates/cisco_nxos_show_module.textfsm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Value MODULE (\d+)
Value PORTS (\d+)
Value TYPE (\S+(\s+\S+)+)
Value MODEL (\S+)
Value STATUS (ok|active \*|ha-standby|powered-dn|powered-up)
Value STATUS (ok|active \*|active|standby|ha-standby|present|testing|initializing|powered-dn|powered-up)

Start
^Xbar\s+Ports\s+Module-Type\s+Model\s+Status -> Fail
Expand Down
48 changes: 48 additions & 0 deletions tests/cisco_nxos/show_module/cisco_nxos_show_module2.raw
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
Mod Ports Module-Type Model Status
--- ----- ------------------------------------- --------------------- ---------
1 32 32x100G Ethernet Module N9K-X9732C-EX ok
22 0 4-slot Fabric Module N9K-C9504-FM-E ok
23 0 4-slot Fabric Module N9K-C9504-FM-E ok
24 0 4-slot Fabric Module N9K-C9504-FM-E ok
26 0 4-slot Fabric Module N9K-C9504-FM-E ok
27 0 Supervisor Module N9K-SUP-A active *
28 0 Supervisor Module N9K-SUP-A ha-standby
29 0 System Controller N9K-SC-A standby
30 0 System Controller N9K-SC-A active

Mod Sw Hw Slot
--- ----------------------- ------ ----
1 9.3(7a) 1.4 LC1
22 9.3(7a) 1.0 FM2
23 9.3(7a) 1.0 FM3
24 9.3(7a) 1.0 FM4
26 9.3(7a) 1.0 FM6
27 9.3(7a) 1.3 SUP1
28 9.3(7a) 1.3 SUP2
29 9.3(7a) 1.2 SC1
30 9.3(7a) 1.2 SC2


Mod MAC-Address(es) Serial-Num
--- -------------------------------------- ----------
1 70-db-98-cb-85-24 to 70-db-98-cb-85-a7 FOC21221PEM
22 NA FOC21070SAF
23 NA FOC21030C83
24 NA FOC21030C9C
26 NA FOC21030C90
27 e4-c7-22-bd-9e-30 to e4-c7-22-bd-9e-41 SAL1825V1GU
28 e4-c7-22-bd-9d-58 to e4-c7-22-bd-9d-69 SAL1825UYRZ
29 NA SAL1822TJW4
30 NA SAL1822TK1B

Mod Online Diag Status
--- ------------------
1 Pass
22 Pass
23 Pass
24 Pass
26 Pass
27 Pass
28 Pass
29 Pass
30 Pass
47 changes: 47 additions & 0 deletions tests/cisco_nxos/show_module/cisco_nxos_show_module2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
---
parsed_sample:
- model: "N9K-X9732C-EX"
module: "1"
ports: "32"
status: "ok"
type: "32x100G Ethernet Module"
- model: "N9K-C9504-FM-E"
module: "22"
ports: "0"
status: "ok"
type: "4-slot Fabric Module"
- model: "N9K-C9504-FM-E"
module: "23"
ports: "0"
status: "ok"
type: "4-slot Fabric Module"
- model: "N9K-C9504-FM-E"
module: "24"
ports: "0"
status: "ok"
type: "4-slot Fabric Module"
- model: "N9K-C9504-FM-E"
module: "26"
ports: "0"
status: "ok"
type: "4-slot Fabric Module"
- model: "N9K-SUP-A"
module: "27"
ports: "0"
status: "active *"
type: "Supervisor Module"
- model: "N9K-SUP-A"
module: "28"
ports: "0"
status: "ha-standby"
type: "Supervisor Module"
- model: "N9K-SC-A"
module: "29"
ports: "0"
status: "standby"
type: "System Controller"
- model: "N9K-SC-A"
module: "30"
ports: "0"
status: "active"
type: "System Controller"
45 changes: 45 additions & 0 deletions tests/cisco_nxos/show_module/cisco_nxos_show_module3.raw
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
Mod Ports Module-Type Model Status
--- ----- ------------------------------------- --------------------- ---------
1 32 32x100G Ethernet Module N9K-X9732C-EX initializing
2 32 32x100G Ethernet Module N9K-X9732C-EX testing
22 0 8-slot Fabric Module N9K-C9508-FM-E ok
24 0 Unknown Module present
26 0 8-slot Fabric Module N9K-C9508-FM-E ok
27 0 Supervisor Module N9K-SUP-A active *
28 0 Supervisor Module N9K-SUP-A ha-standby
29 0 System Controller N9K-SC-A standby
30 0 System Controller N9K-SC-A active

Mod Sw Hw Slot
--- ----------------------- ------ ----
1 9.3(15) 1.4 LC1
2 9.3(15) 1.4 LC2
22 9.3(15) 1.2 FM2
26 9.3(15) 1.2 FM6
27 9.3(15) 1.2 SUP1
28 9.3(15) 1.0 SUP2
29 9.3(15) 1.4 SC1
30 9.3(15) 1.4 SC2


Mod MAC-Address(es) Serial-Num
--- -------------------------------------- ----------
1 00-27-e3-5f-5a-64 to 00-27-e3-5f-5a-e7 FOC21213GNT
2 70-db-98-cb-90-78 to 70-db-98-cb-90-fb FOC21213GKV
22 NA FOC21264ZX1
26 NA FOC21264ZY5
27 e4-c7-22-bd-84-e0 to e4-c7-22-bd-84-f1 SAL1823U1XF
28 e0-0e-da-36-a9-0c to e0-0e-da-36-a9-1d SAL2027T03Z
29 NA SAL1829WZ8T
30 NA SAL1829WZ9B

Mod Online Diag Status
--- ------------------
1 Pass
2 Pass
22 Pass
26 Pass
27 Pass
28 Pass
29 Pass
30 Pass
47 changes: 47 additions & 0 deletions tests/cisco_nxos/show_module/cisco_nxos_show_module3.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
---
parsed_sample:
- model: "N9K-X9732C-EX"
module: "1"
ports: "32"
status: "initializing"
type: "32x100G Ethernet Module"
- model: "N9K-X9732C-EX"
module: "2"
ports: "32"
status: "testing"
type: "32x100G Ethernet Module"
- model: "N9K-C9508-FM-E"
module: "22"
ports: "0"
status: "ok"
type: "8-slot Fabric Module"
- model: ""
module: "24"
ports: "0"
status: "present"
type: "Unknown Module"
- model: "N9K-C9508-FM-E"
module: "26"
ports: "0"
status: "ok"
type: "8-slot Fabric Module"
- model: "N9K-SUP-A"
module: "27"
ports: "0"
status: "active *"
type: "Supervisor Module"
- model: "N9K-SUP-A"
module: "28"
ports: "0"
status: "ha-standby"
type: "Supervisor Module"
- model: "N9K-SC-A"
module: "29"
ports: "0"
status: "standby"
type: "System Controller"
- model: "N9K-SC-A"
module: "30"
ports: "0"
status: "active"
type: "System Controller"