Skip to content

Commit

Permalink
new_template: huawei_vrp_display_version (networktocode#597)
Browse files Browse the repository at this point in the history
  • Loading branch information
lutfisan authored and thomasblass committed Oct 25, 2020
1 parent ba70417 commit b9c0f0d
Show file tree
Hide file tree
Showing 8 changed files with 221 additions and 0 deletions.
9 changes: 9 additions & 0 deletions templates/huawei_vrp_display_version.textfsm
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Value VRP_VERSION (\S+)
Value PRODUCT_VERSION (.+)
Value MODEL (.+)
Value UPTIME (.+)


Start
^.*software,\s+Version\s+${VRP_VERSION}\s+\(${PRODUCT_VERSION}\)
^HUAWEI\s+${MODEL}\s+uptime\s+is\s+${UPTIME}$$
1 change: 1 addition & 0 deletions templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@ hp_procurve_show_arp.textfsm, .*, hp_procurve, sh[[ow]] ar[[p]]
huawei_vrp_display_interface_brief.textfsm, .*, huawei_vrp, disp[[lay]] inter[[face]] br[[ief]]
huawei_vrp_display_lldp_neighbor.textfsm, .*, huawei_vrp, disp[[lay]] lldp nei[[ghbor]]
huawei_vrp_display_temperature.textfsm, .*, huawei_vrp, disp[[lay]] tem[[perature]]
huawei_vrp_display_version.textfsm, .*, huawei_vrp, disp[[lay]] ver[[sion]]

juniper_junos_show_chassis_cluster_interfaces.textfsm, .*, juniper_junos, sh[[ow]] ch[[assis]] c[[luster]] i[[nterface]]
juniper_junos_show_chassis_cluster_status.textfsm, .*, juniper_junos, sh[[ow]] ch[[assis]] c[[luster]] s[[tatus]]
Expand Down
102 changes: 102 additions & 0 deletions tests/huawei_vrp/display_version/huawei_vrp_display_version.raw
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
Huawei Versatile Routing Platform Software
VRP (R) software, Version 8.180 (NE40E V800R011C00SPC200)
Copyright (C) 2012-2018 Huawei Technologies Co., Ltd.
HUAWEI NE40E-X2-M8A uptime is 161 days, 0 hour, 20 minutes

NE40E-X2-M8A version information:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
BKP version information:
PCB Version : CX68BKP02D REV A
MPU Slot Quantity : 2
NPU Slot Quantity : 2
CARD Slot Quantity : 8
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
MPU version information:

MPU (Slave) 11 : uptime is 160 days, 22 hours, 1 minute
StartupTime 2019/09/10 03:33:17
SDRAM Memory Size : 8192 M bytes
FLASH Memory Size : 32 M bytes
NVRAM Memory Size : 512 K bytes
CFCARD Memory Size : 2048 M bytes
MPU CR5D0MPUK170 version information:
PCB Version : CX68MPUK1 REV A
EPLD Version : 111
FPGA Version : 105
BootROM Version : 06.14
BootLoad Version : 06.14

MPU (Master) 12 : uptime is 161 days, 0 hour, 18 minutes
StartupTime 2019/09/10 01:16:12
SDRAM Memory Size : 8192 M bytes
FLASH Memory Size : 32 M bytes
NVRAM Memory Size : 512 K bytes
CFCARD Memory Size : 2048 M bytes
MPU CR5D0MPUK170 version information:
PCB Version : CX68MPUK1 REV A
EPLD Version : 111
FPGA Version : 105
BootROM Version : 06.14
BootLoad Version : 06.14
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NPU version information:

NPU 9 : uptime is 160 days, 12 hours, 38 minutes
StartupTime 2019/09/10 12:56:23
Host processor :
SDRAM Memory Size : 16384 M bytes
Flash Memory Size : 128 M bytes
NPU CR5DNPU48070 version information:
PCB Version : CX68NPU480A REV A
EPLD Version : 103
FPGA Version : 103
FPGA2 Version : 111
NP Version : 100
TM Version : 110
BootROM Version : 04.36
NSE Version : NSE REV A
CMAC Version : 110
PIC2: CR5D00L4XF72 version information
StartupTime : 2019/09/12 15:05:27
PCB Version : CX68L4XFD REV A
FPGA Version : 010
BOM Version : 000
PIC4: CR5D00L4XF72 version information
StartupTime : 2019/09/12 15:05:54
PCB Version : CX68L4XFD REV A
FPGA Version : 010
BOM Version : 000
PIC6: CR5D00L4XF72 version information
StartupTime : 2019/09/11 14:59:36
PCB Version : CX68L4XFD REV A
FPGA Version : 010
BOM Version : 000
PIC8: CR5D00EAGF70 version information
StartupTime : 2019/09/10 12:56:35
PCB Version : CX68EAGFD REV A
EPLD Version : 007
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Power version information:

POWER 13's version information:
PCB Version : CX68PSUC REV C

POWER 14's version information:
PCB Version : CX68PSUC REV C
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FAN version information:

FAN 15's version information:
PCB Version : CX67FCBB REV A
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
CLK version information:

CLK 16 : uptime is 160 days, 22 hours, 1 minute
StartupTime 2019/09/10 03:33:17
FPGA Version : 105
DSP Version : 17060011

CLK 17 : uptime is 161 days, 0 hour, 18 minutes
StartupTime 2019/09/10 01:16:12
FPGA Version : 105
DSP Version : 17060011
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
parsed_sample:
- vrp_version: "8.180"
product_version: "NE40E V800R011C00SPC200"
model: "NE40E-X2-M8A"
uptime: "161 days, 0 hour, 20 minutes"
60 changes: 60 additions & 0 deletions tests/huawei_vrp/display_version/huawei_vrp_display_version1.raw
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
Huawei Versatile Routing Platform Software
VRP (R) software, Version 8.100 (CX600 V800R007C10SPC100)
Copyright (C) 2012-2015 Huawei Technologies Co., Ltd.
HUAWEI CX600-M2E uptime is 266 days, 8 hours, 59 minutes
Patch Version: V800R007SPH019

CX600-M2E version information:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
BKP version information:
PCB Version : CR68BKP01C REV A
IPU Slot Quantity : 1
CARD Slot Quantity : 3
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
IPU version information:

IPU (Master) 3 : uptime is 266 days, 8 hours, 58 minutes
StartupTime 2019/05/28 02:26:30
SDRAM Memory Size : 4096 M bytes
FLASH Memory Size : 32 M bytes
NVRAM Memory Size : 512 K bytes
CFCARD Memory Size : 2048 M bytes
IPU CX6B0BKP0371 version information
CPU PCB Version : CX68L2XEFGFB REV B
EPLD Version : 111
FPGA Version : 107
NPU PCB Version : CX68L2XEFGFA REV B
FPGA Version : 107
NP Version : 100
TM Version : 110
NSE Version : NSE REV A
BootROM Version : 06.11
BootLoad Version : 06.11
PIC1: CR5D00C4CF71 version information
StartupTime : 2019/05/28 02:27:08
PCB Version : CX68C4CF REV A
FPGA Version : 004
FIC2: CR5D00P4CF70 version information
StartupTime : 2019/05/28 02:27:21
PCB Version : CX67P4CFA REV B
FPGA Version : 014
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Power version information:

POWER4's version information:
PCB Version : CX68PSUF REV B

POWER5's version information:
PCB Version : CX68PSUF REV B
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FAN version information:

FAN6's version information:
PCB Version : CX68FCBD REV A
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
CLK version information:

Slot 7 : uptime is 266 days, 8 hours, 58 minutes
StartupTime 2019/05/28 02:26:30
1. FPGA Version : 017
2. DSP Version : 17010002
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
parsed_sample:
- vrp_version: "8.100"
product_version: "CX600 V800R007C10SPC100"
model: "CX600-M2E"
uptime: "266 days, 8 hours, 59 minutes"
31 changes: 31 additions & 0 deletions tests/huawei_vrp/display_version/huawei_vrp_display_version2.raw
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
Huawei Versatile Routing Platform Software
VRP (R) software, Version 8.180 (ATN 910C-B V300R003C10SPC500)
Copyright (C) 2012-2018 Huawei Technologies Co., Ltd.
HUAWEI ATN 910C-B uptime is 358 days, 16 hours, 59 minutes

ATN 910C-B version information:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
CXP version information:

CXP (Master) 2 : uptime is 358 days, 16 hours, 58 minutes
StartupTime 2019/02/24 17:20:13
SDRAM Memory Size : 4096M bytes
FLASH Memory Size : 64M bytes
CFCARD Memory Size : 800M bytes
CFCARD2 Memory Size : 800M bytes
ANGMHSTA0211 version information
PCB Version : ANG1CXPH REV A
EPLD Version : V120
FPGA1 Version : V110
PE Version : 000
BootROM Version : 08.84
BootLoad Version : 08.84
Software Version : Version 8.180 RELEASE 0001
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
PWR version information:

PWR5's version information:
PCB Version : ES5MPSD17 REV D

PWR6's version information:
PCB Version : ES5MPSD17 REV D
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
parsed_sample:
- vrp_version: "8.180"
product_version: "ATN 910C-B V300R003C10SPC500"
model: "ATN 910C-B"
uptime: "358 days, 16 hours, 59 minutes"

0 comments on commit b9c0f0d

Please sign in to comment.