diff --git a/ntc_templates/templates/index b/ntc_templates/templates/index index b6c1d5eb60..da6e5f1f4c 100644 --- a/ntc_templates/templates/index +++ b/ntc_templates/templates/index @@ -457,6 +457,7 @@ paloalto_panos_show_arp_all.textfsm, .*, paloalto_panos, sh[[ow]] ar[[p]] all paloalto_panos_show_mac_all.textfsm, .*, paloalto_panos, sh[[ow]] mac all ruckus_fastiron_show_mac-address.textfsm, .*, ruckus_fastiron, sh[[ow]] mac[[-address]] +ruckus_fastiron_show_version.textfsm, .*, ruckus_fastiron, sh[[ow]] v[[ersion]] ruckus_fastiron_show_arp.textfsm, .*, ruckus_fastiron, sh[[ow]] ar[[p]] ubiquiti_edgeswitch_show_version.textfsm, .*, ubiquiti_edgeswitch, sh[[ow]] ve[[rsion]] diff --git a/ntc_templates/templates/ruckus_fastiron_show_version.textfsm b/ntc_templates/templates/ruckus_fastiron_show_version.textfsm new file mode 100644 index 0000000000..37cc7d41d2 --- /dev/null +++ b/ntc_templates/templates/ruckus_fastiron_show_version.textfsm @@ -0,0 +1,28 @@ +Value List VERSION (\S+) +Value List BOOTCODE (\S+\s+\S+) +Value HARDWARE (.*) +Value List SERIAL (\S+) +Value List UPTIME (.*) + + +Start + ^\s+Copyright\s+\(c\)\s+Ruckus\s+Networks,\s+Inc\.\s+All\s+rights\s+reserved\. + ^\s+UNIT\s+[0-9]*:\s+compiled\s+on\s+\S+\s+[0-9]*\s+[0-9]*\s+at\s+[0-9]*:[0-9]*:[0-9]*\s+labeled\s+as\s+\S+ + ^\s+\([0-9]*\s+bytes\)\s+from\s+Primary\s+\S+\s+\(UFI\) + ^\s+SW:\s+Version\s+${VERSION} + ^\s+Compressed\s+Primary\s+Boot\s+Code\s+size\s+=\s+[0-9]*,\s+Version:${BOOTCODE} + ^\s+Compiled\s+on\s+\S+\s+\S+\s+[0-9]*\s+[0-9]*:[0-9]*:[0-9]*\s+[0-9]* + ^\s+HW:\s+${HARDWARE}\s*$$ + ^UNIT\s+[0-9]*:\s+SL\s+[0-9]*:\s+.* + ^\s+Serial\s+#:${SERIAL} + ^\s+Software\s+Package:\s+\S+ + ^\s+Current\s+License:\s+\S+ + ^\s+P-ASIC\s+[0-9]*:\s+.* + ^\s+[0-9]* [KMGT](Hz|B)\s+.* + ^STACKID\s+[0-9]*\s+system\s+uptime\s+is\s+${UPTIME}\s*$$ + ^The\s+system\s+started\s+at\s+.* + ^The\s+system\s+:\s+started=.* + ^My\s+stack\s+unit\s+ID\s+=\s+[0-9]*,\s+bootup\s+role\s+=\s+\S+ -> Record + ^=+ + ^\s*$$ + ^. -> Error diff --git a/tests/ruckus_fastiron/show_version/show_version.raw b/tests/ruckus_fastiron/show_version/show_version.raw new file mode 100644 index 0000000000..48a8f3423e --- /dev/null +++ b/tests/ruckus_fastiron/show_version/show_version.raw @@ -0,0 +1,43 @@ + Copyright (c) Ruckus Networks, Inc. All rights reserved. + UNIT 1: compiled on Feb 19 2019 at 13:48:49 labeled as SPS08090 + (28575972 bytes) from Primary SPS08090.bin (UFI) + SW: Version 08.0.90T211 + Compressed Primary Boot Code size = 786944, Version:10.1.15T225 (mnz10115) + Compiled on Thu Jan 31 01:08:55 2019 + UNIT 2: compiled on Feb 19 2019 at 13:48:49 labeled as SPS08090 + (28575972 bytes) from Primary SPS08090.bin (UFI) + SW: Version 08.0.90T211 + Compressed Primary Boot Code size = 786944, Version:10.1.15T225 (mnz10115) + + HW: Stackable ICX7150-48-POEF +========================================================================== +UNIT 1: SL 1: ICX7150-48PF-2X10G_2X1G POE 48-port Management Module + Serial #:FEE3816Q018 + Software Package: BASE_SOFT_PACKAGE + Current License: 2X10G + P-ASIC 0: type B160, rev 11 Chip BCM56160_B0 +========================================================================== +UNIT 1: SL 2: ICX7150-2X1GC 2-port 2G Module +========================================================================== +UNIT 1: SL 3: ICX7150-4X10GF 4-port 40G Module +========================================================================== +UNIT 2: SL 1: ICX7150-48PF-2X10G_2X1G POE 48-port Management Module + Serial #:FEE3816Q017 + Software Package: BASE_SOFT_PACKAGE + Current License: 2X10G +========================================================================== +UNIT 2: SL 2: ICX7150-2X1GC 2-port 2G Module +========================================================================== +UNIT 2: SL 3: ICX7150-4X10GF 4-port 40G Module +========================================================================== + 1000 MHz ARM processor ARMv7 88 MHz bus + 8192 KB boot flash memory + 2048 MB code flash memory + 1024 MB DRAM +STACKID 1 system uptime is 24 day(s) 4 hour(s) 11 minute(s) 1 second(s) +STACKID 2 system uptime is 24 day(s) 4 hour(s) 11 minute(s) 1 second(s) +The system started at 18:28:15 Central Fri Dec 31 1999 + +The system : started=cold start +My stack unit ID = 1, bootup role = active + diff --git a/tests/ruckus_fastiron/show_version/show_version.yml b/tests/ruckus_fastiron/show_version/show_version.yml new file mode 100644 index 0000000000..3e6ba630c9 --- /dev/null +++ b/tests/ruckus_fastiron/show_version/show_version.yml @@ -0,0 +1,15 @@ +--- +parsed_sample: + - version: + - "08.0.90T211" + - "08.0.90T211" + bootcode: + - "10.1.15T225 (mnz10115)" + - "10.1.15T225 (mnz10115)" + hardware: "Stackable ICX7150-48-POEF" + serial: + - "FEE3816Q018" + - "FEE3816Q017" + uptime: + - "24 day(s) 4 hour(s) 11 minute(s) 1 second(s)" + - "24 day(s) 4 hour(s) 11 minute(s) 1 second(s)"