Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
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
75 changes: 75 additions & 0 deletions ntc_templates/templates/hp_comware_display_version.textfsm
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
Value SOFTWARE_VERSION (\S+)
Value SOFTWARE_RELEASE (\S+)
Value MODEL (.+)
Value UPTIME (.+?)
Value LAST_REBOOT_REASON (.+)
Value SLOT_NUMBER (\d+)


Start
^\s*HP(E)?\s+Comware\s+Software,\s+Version\s+${SOFTWARE_VERSION},\s+(Feature|Release)\s+${SOFTWARE_RELEASE}
Comment thread
mjbear marked this conversation as resolved.
Outdated
^\s*(H3C|HP)\s+Comware\s+
^\s*Comware\s+Software,\s+Version\s+${SOFTWARE_VERSION},\s+(Feature|Release)\s+${SOFTWARE_RELEASE}
^\s*Copyright\s+\(c\)
^\s*HP(E)?\s+${MODEL}\s+Switch\s*uptime\s*is\s*${UPTIME}$$
^\s*HP(E)?\s+${MODEL}\s+Switch\s*with\s+.+\s+uptime\s*is\s*${UPTIME}$$
^\s*HP(E)?\s+${MODEL}\s+uptime\s*is\s*${UPTIME}$$
Comment thread
mjbear marked this conversation as resolved.
Outdated
^\s*(H3C|HP)\s+${MODEL}\s*uptime\s*is\s*${UPTIME}$$
^\s*(H3C|HP)\s+${MODEL}\s*with
^\s*Hardware\s+Version
^\s*Bootrom\s*Version
^\s*CPLD
^\s*\d+[A-Z]\s+bytes
^\s*Last\s*reboot\s*reason\s*:\s*${LAST_REBOOT_REASON}
^\s*Boot\s*image:\s*.+
^\s*Boot\s*image\s*version:\s*.+
^\s*Compiled\s*.+
^\s*System\s*image:\s*.+
^\s*System\s*image\s*version:\s* -> Record
^\s*Feature\s+image
^\s*Patch\s*image\(s\)\s*list:
^\s*flash:
^\s*Slot\s*${SLOT_NUMBER}(:)?\s* -> Slot
^\s*MPU\(M\)\s+Slot\s*${SLOT_NUMBER}(:)?\s* -> Slot
^\s*MPU\(M\)\s+${SLOT_NUMBER}(:)?\s* -> Slot
^\s*MPU\(S\)\s+Slot\s*${SLOT_NUMBER}(:)?\s* -> Slot
^\s*MPU\(S\)\s+${SLOT_NUMBER}(:)?\s* -> Slot
^\s*LPU\s+${SLOT_NUMBER}(:)?\s* -> Slot
^\s*\[SubSlot\s*\d+\]
^\s*$$
^. -> Error

Slot
^\s*Slot\s*${SLOT_NUMBER}(:)?\s*
^\s*MPU\(M\)\s+Slot\s*${SLOT_NUMBER}(:)?\s*
^\s*MPU\(S\)\s+Slot\s*${SLOT_NUMBER}(:)?\s*
^\s*MPU\(M\)\s+${SLOT_NUMBER}(:)?\s*
^\s*MPU\(S\)\s+${SLOT_NUMBER}(:)?\s*
^\s*LPU\s+${SLOT_NUMBER}(:)?\s*
^\s*Uptime\sis\s${UPTIME}$$
^\s*Release\s+Version:
^\s*BOARD\s*TYPE:
^\s*HP(E)?\s+${MODEL}\s*Switch\s*
^\s*HP(E)?\s+${MODEL}\s+with
^\s*${MODEL}\s+Switch\s*
^\s*${MODEL}\s+with
^\s*DRAM:
^\s*FLASH:
^\s*NVRAM:
^\s*PCB
^\s*(Basic|Extended)\s+BootWare\s+Version
^\s*FPGA\s+Version:
^\s*FPGA\s\d+\s+Version:
Comment thread
mjbear marked this conversation as resolved.
Outdated
^\s*Bootrom\s*Version:
^\s*Bootware\s+Version
^\s*CPLD
^\s*Patch\s*Version\s*:
^\s*Reboot\s*Cause\s*:\s*${LAST_REBOOT_REASON}
^\s*Last\s+reboot\s+reason\s+:\s+${LAST_REBOOT_REASON}
^\s*\d+[A-Z]\s+bytes
^\s*Config\s+Register
^\s*Hardware\s+Version
^\s*BootRom\s+Version
Comment thread
mjbear marked this conversation as resolved.
Outdated
^\s*\[SubSlot\s*\d+\] -> Record
^\s*$$ -> Record
^. -> Error
1 change: 1 addition & 0 deletions ntc_templates/templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -668,6 +668,7 @@ hp_comware_display_mac-address.textfsm, .*, hp_comware, di[[splay]] mac-ad[[dres
hp_comware_display_vlan_brief.textfsm, .*, hp_comware, di[[splay]] v[[lan]] b[[rief]]
hp_comware_display_interface.textfsm, .*, hp_comware, dis[[play]] int[[erface]]
hp_comware_display_vlan_all.textfsm, .*, hp_comware, di[[splay]] v[[lan]] a[[ll]]
hp_comware_display_version.textfsm, .*, hp_comware, di[[splay]] ver[[sion]]
hp_comware_display_clock.textfsm, .*, hp_comware, di[[splay]] clo[[ck]]
hp_comware_display_arp.textfsm, .*, hp_comware, di[[splay]] a[[rp]]

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,190 @@
H3C Comware Platform Software
Comware Software, Version 5.20, Feature 6709L25
Copyright (c) 2004-2015 Hangzhou H3C Tech. Co., Ltd. All rights reserved.
H3C S7510E uptime is 309 weeks, 1 day, 16 hours, 15 minutes

LPU 0:
Uptime is 309 weeks,1 days,17 hours,37 minutes
H3C S7510E LPU with 1 XLS408 Processor
BOARD TYPE: LSQ3GV48SC
DRAM: 1024M bytes
FLASH: 0M bytes
NVRAM: 0K bytes
PCB 1 Version: VER.B
Bootware Version: 5.18
CPLD 1 Version: 003
Release Version: H3C S7510E-6709L25
Patch Version : None

LPU 1:
Uptime is 309 weeks,1 days,17 hours,36 minutes
H3C S7510E LPU with 1 XLS408 Processor
BOARD TYPE: LSQ3GV48SC
DRAM: 1024M bytes
FLASH: 0M bytes
NVRAM: 0K bytes
PCB 1 Version: VER.B
Bootware Version: 5.18
CPLD 1 Version: 003
Release Version: H3C S7510E-6709L25
Patch Version : None

LPU 2:
Uptime is 309 weeks,1 days,17 hours,47 minutes
H3C S7510E LPU with 1 XLS408 Processor
BOARD TYPE: LSQ3GV48SC
DRAM: 1024M bytes
FLASH: 0M bytes
NVRAM: 0K bytes
PCB 1 Version: VER.B
Bootware Version: 5.18
CPLD 1 Version: 003
Release Version: H3C S7510E-6709L25
Patch Version : None

LPU 3:
Uptime is 309 weeks,1 days,17 hours,37 minutes
H3C S7510E LPU with 1 XLS408 Processor
BOARD TYPE: LSQ3GV48SC
DRAM: 1024M bytes
FLASH: 0M bytes
NVRAM: 0K bytes
PCB 1 Version: VER.B
Bootware Version: 5.18
CPLD 1 Version: 003
Release Version: H3C S7510E-6709L25
Patch Version : None

LPU 4:
Uptime is 309 weeks,1 days,17 hours,42 minutes
H3C S7510E LPU with 1 XLS408 Processor
BOARD TYPE: LSQ3GV48SC
DRAM: 1024M bytes
FLASH: 0M bytes
NVRAM: 0K bytes
PCB 1 Version: VER.B
Bootware Version: 5.18
CPLD 1 Version: 003
Release Version: H3C S7510E-6709L25
Patch Version : None

MPU(M) 5:
Uptime is 309 weeks,1 days,16 hours,15 minutes
H3C S7510E MPU(M) with 1 BCM1125H Processor
BOARD TYPE: LSQ1SRP12GB
DRAM: 512M bytes
FLASH: 64M bytes
NVRAM: 512K bytes
PCB 1 Version: VER.C
PCB 2 Version: VER.B
Bootrom Version: 500
CPLD 1 Version: 003
CPLD 2 Version: 004
Release Version: H3C S7510E-6709L25
Patch Version : None

MPU(S) 6:
Uptime is 309 weeks,1 days,17 hours,38 minutes
H3C S7510E MPU(S) with 1 BCM1125H Processor
BOARD TYPE: LSQ1SRP12GB
DRAM: 512M bytes
FLASH: 64M bytes
NVRAM: 512K bytes
PCB 1 Version: VER.C
PCB 2 Version: VER.B
Bootrom Version: 500
CPLD 1 Version: 003
CPLD 2 Version: 004
Release Version: H3C S7510E-6709L25
Patch Version : None

LPU 7:
Uptime is 309 weeks,1 days,17 hours,51 minutes
H3C S7510E LPU with 1 XLS408 Processor
BOARD TYPE: LSQ3GV48SC
DRAM: 1024M bytes
FLASH: 0M bytes
NVRAM: 0K bytes
PCB 1 Version: VER.B
Bootware Version: 5.18
CPLD 1 Version: 003
Release Version: H3C S7510E-6709L25
Patch Version : None

LPU 8:
Uptime is 309 weeks,1 days,17 hours,43 minutes
H3C S7510E LPU with 1 XLS408 Processor
BOARD TYPE: LSQ3GV48SC
DRAM: 1024M bytes
FLASH: 0M bytes
NVRAM: 0K bytes
PCB 1 Version: VER.B
Bootware Version: 5.18
CPLD 1 Version: 003
Release Version: H3C S7510E-6709L25
Patch Version : None

LPU 9:
Uptime is 309 weeks,1 days,17 hours,46 minutes
H3C S7510E LPU with 1 XLS408 Processor
BOARD TYPE: LSQ3GV48SC
DRAM: 1024M bytes
FLASH: 0M bytes
NVRAM: 0K bytes
PCB 1 Version: VER.B
Bootware Version: 5.18
CPLD 1 Version: 003
Release Version: H3C S7510E-6709L25
Patch Version : None

LPU 10:
Uptime is 309 weeks,1 days,17 hours,40 minutes
H3C S7510E LPU with 1 XLS408 Processor
BOARD TYPE: LSQ3GV48SC
DRAM: 1024M bytes
FLASH: 0M bytes
NVRAM: 0K bytes
PCB 1 Version: VER.B
Bootware Version: 5.18
CPLD 1 Version: 003
Release Version: H3C S7510E-6709L25
Patch Version : None

LPU 11:
Uptime is 309 weeks,1 days,17 hours,37 minutes
H3C S7510E LPU with 1 XLS408 Processor
BOARD TYPE: LSQ3GV48SC
DRAM: 1024M bytes
FLASH: 0M bytes
NVRAM: 0K bytes
PCB 1 Version: VER.B
Bootware Version: 5.18
CPLD 1 Version: 003
Release Version: H3C S7510E-6709L25
Patch Version : None

LPU 12:
Uptime is 309 weeks,1 days,18 hours,8 minutes
H3C S7510E LPU with 1 BCM1122 Processor
BOARD TYPE: SRP12GBSLAVE
DRAM: 512M bytes
FLASH: 0M bytes
NVRAM: 0K bytes
PCB 1 Version: NA
Bootware Version: 3.06
CPLD 1 Version: NA
Release Version: H3C S7510E-6709L25
Patch Version : None

LPU 13:
Uptime is 309 weeks,1 days,18 hours,29 minutes
H3C S7510E LPU with 1 BCM1122 Processor
BOARD TYPE: SRP12GBSLAVE
DRAM: 512M bytes
FLASH: 0M bytes
NVRAM: 0K bytes
PCB 1 Version: NA
Bootware Version: 3.06
CPLD 1 Version: NA
Release Version: H3C S7510E-6709L25
Patch Version : None

@mjbear mjbear Oct 19, 2025

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This cw5_1 file seems awful similar to cw5_2 (and thus its raw output too).
Is this correct @marcus-cain?

We should strive to keep test data to the cover the differences and reduce any duplication/redundancy.

In the case I've overlooked any meaningful differences, my apologies.

Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
---
parsed_sample:
- last_reboot_reason: ""
model: "H3C S7510E LPU"
slot_number: "0"
software_release: "6709L25"
software_version: "5.20"
uptime: "309 weeks,1 days,17 hours,37 minutes"
- last_reboot_reason: ""
model: "H3C S7510E LPU"
slot_number: "1"
software_release: ""
software_version: ""
uptime: "309 weeks,1 days,17 hours,36 minutes"
- last_reboot_reason: ""
model: "H3C S7510E LPU"
slot_number: "2"
software_release: ""
software_version: ""
uptime: "309 weeks,1 days,17 hours,47 minutes"
- last_reboot_reason: ""
model: "H3C S7510E LPU"
slot_number: "3"
software_release: ""
software_version: ""
uptime: "309 weeks,1 days,17 hours,37 minutes"
- last_reboot_reason: ""
model: "H3C S7510E LPU"
slot_number: "4"
software_release: ""
software_version: ""
uptime: "309 weeks,1 days,17 hours,42 minutes"
- last_reboot_reason: ""
model: "H3C S7510E MPU(M)"
slot_number: "5"
software_release: ""
software_version: ""
uptime: "309 weeks,1 days,16 hours,15 minutes"
- last_reboot_reason: ""
model: "H3C S7510E MPU(S)"
slot_number: "6"
software_release: ""
software_version: ""
uptime: "309 weeks,1 days,17 hours,38 minutes"
- last_reboot_reason: ""
model: "H3C S7510E LPU"
slot_number: "7"
software_release: ""
software_version: ""
uptime: "309 weeks,1 days,17 hours,51 minutes"
- last_reboot_reason: ""
model: "H3C S7510E LPU"
slot_number: "8"
software_release: ""
software_version: ""
uptime: "309 weeks,1 days,17 hours,43 minutes"
- last_reboot_reason: ""
model: "H3C S7510E LPU"
slot_number: "9"
software_release: ""
software_version: ""
uptime: "309 weeks,1 days,17 hours,46 minutes"
- last_reboot_reason: ""
model: "H3C S7510E LPU"
slot_number: "10"
software_release: ""
software_version: ""
uptime: "309 weeks,1 days,17 hours,40 minutes"
- last_reboot_reason: ""
model: "H3C S7510E LPU"
slot_number: "11"
software_release: ""
software_version: ""
uptime: "309 weeks,1 days,17 hours,37 minutes"
- last_reboot_reason: ""
model: "H3C S7510E LPU"
slot_number: "12"
software_release: ""
software_version: ""
uptime: "309 weeks,1 days,18 hours,8 minutes"
- last_reboot_reason: ""
model: "H3C S7510E LPU"
slot_number: "13"
software_release: ""
software_version: ""
uptime: "309 weeks,1 days,18 hours,29 minutes"
Loading