Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add huawei vrp display version #597

Merged
merged 5 commits into from
Feb 24, 2020
Merged
Show file tree
Hide file tree
Changes from 2 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
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 (.+)
FragmentedPacket marked this conversation as resolved.
Show resolved Hide resolved
Value UPTIME (.+)


Start
^.*software,\sVersion\s${VRP_VERSION}\s\(${PRODUCT_VERSION}\)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you mind changing the each \s to \s+ just in case they change any whitespace between versions and it won't break the template.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

^HUAWEI\s${MODEL}\suptime\sis\s${UPTIME}
737 changes: 369 additions & 368 deletions templates/index

Large diffs are not rendered by default.

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"
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"
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"