Skip to content
Open
Show file tree
Hide file tree
Changes from 3 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
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Value TYPE (\S+)
Value LOCATION (\S+)
Value PRODUCT_NUMBER (\S+)
Value DESCRIPTION (.+?)
Value SERIAL (\S+)
Value HARDWARE_VERSION (\S+)

Start
^\s*$$
^Type\s+Location -> Next
^\s*Number -> Next
^\s*[- \s]+\s*$$ -> Next
^\s*${TYPE}\s+${LOCATION}\s+${PRODUCT_NUMBER}\s+${DESCRIPTION}\s+${SERIAL}\s+${HARDWARE_VERSION}\s*$$ -> Record
^. -> Error "LINE NOT FOUND"
1 change: 1 addition & 0 deletions ntc_templates/templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ aruba_aoscx_show_interface_dom_detail.textfsm , .*, aruba_aoscx, sh[[ow]] int[[e
aruba_aoscx_show_ip_route_all-vrfs.textfsm, .*, aruba_aoscx, sh[[ow]] ip r[[oute]] a[[ll-vrfs]]
aruba_aoscx_show_mac-address-table.textfsm, .*, aruba_aoscx, sh[[ow]] ma[[c-address-table]]
aruba_aoscx_show_ntp_associations.textfsm, .*, aruba_aoscx, sh[[ow]] ntp as[[sociations]]
aruba_aoscx_show_system_inventory.textfsm, .*, aruba_aoscx, sh[[ow]] sys[[tem]] inv[[entory]]
aruba_aoscx_show_interface_mgmt.textfsm, .*, aruba_aoscx, sh[[ow]] int[[erface]] m[[gmt]]
aruba_aoscx_show_arp_all-vrfs.textfsm, .*, aruba_aoscx, sh[[ow]] ar[[p]] a[[ll-vrfs]]
aruba_aoscx_show_bfd_all-vrfs.textfsm, .*, aruba_aoscx, sh[[ow]] bf[[d]] a[[ll-vrfs]]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@

Type Location Product Description Serial Hardware
Number Number Version
-------------------- -------- ---------------- -------------------------------------------------- ---------------- -----------
Chassis 1 JL635A Aruba 8325-48Y8C 48p 25G 8p 100G Swch ABCD1234EF 0
Power Supply 1/1 JL632A Aruba 8325 650W 100-240VAC FB PSU ABCD1235EF --
Power Supply 1/2 JL632A Aruba 8325 650W 100-240VAC FB PSU ABCD1236EF --
Fan Tray-1/1 JL628A 8325 Fan Module -- --
Fan Tray-1/1 JL628A 8325 Fan Module -- --
Fan Tray-1/2 JL628A 8325 Fan Module -- --
Fan Tray-1/2 JL628A 8325 Fan Module -- --
Fan Tray-1/3 JL628A 8325 Fan Module -- --
Fan Tray-1/3 JL628A 8325 Fan Module -- --
Fan Tray-1/4 JL628A 8325 Fan Module -- --
Fan Tray-1/4 JL628A 8325 Fan Module -- --
Fan Tray-1/5 JL628A 8325 Fan Module -- --
Fan Tray-1/5 JL628A 8325 Fan Module -- --
Fan Tray-1/6 JL628A 8325 Fan Module -- --
Fan Tray-1/6 JL628A 8325 Fan Module -- --
Transceiver 1/1/1 J9151E 10G-LR / 10G SFP+ LR ABCD1237EF 1990-4694
Transceiver 1/1/2 J9151E 10G-LR / 10G SFP+ LR ABCD1238EF 1990-4694
Transceiver 1/1/8 J4859D 1G-LX / 1G SFP LX ABCD1239EF 1990-4802
Transceiver 1/1/9 J4859D 1G-LX / 1G SFP LX ABCD1210EF 1990-4802
Transceiver 1/1/10 J4858D 1G-SX / 1G SFP SX ABCD1211EF 1990-4750
Transceiver 1/1/11 J4859D 1G-LX / 1G SFP LX ABCD1212EF 1990-4802
Transceiver 1/1/12 J4858D 1G-SX / 1G SFP SX ABCD1213EF 1990-4750
Transceiver 1/1/46 J4859D 1G-LX / 1G SFP LX ABCD1214EF 1990-4802
Transceiver 1/1/47 J9151E 10G-LR / 10G SFP+ LR ABCD1215EF 1990-4694
Transceiver 1/1/48 J9151E 10G-LR / 10G SFP+ LR ABCD1216EF 1990-4694


Original file line number Diff line number Diff line change
@@ -0,0 +1,152 @@
---
parsed_sample:
- description: "Aruba 8325-48Y8C 48p 25G 8p 100G Swch"
hardware_version: "0"
location: "1"
product_number: "JL635A"
serial: "ABCD1234EF"
type: "Chassis"
- description: "JL632A Aruba 8325 650W 100-240VAC FB PSU"
hardware_version: "--"
location: "Supply"
product_number: "1/1"
serial: "ABCD1235EF"
type: "Power"
- description: "JL632A Aruba 8325 650W 100-240VAC FB PSU"
hardware_version: "--"
location: "Supply"
Comment thread
mjbear marked this conversation as resolved.
Outdated
product_number: "1/2"
serial: "ABCD1236EF"
type: "Power"
- description: "8325 Fan Module"
hardware_version: "--"
location: "Tray-1/1"
product_number: "JL628A"
serial: "--"
type: "Fan"
- description: "8325 Fan Module"
hardware_version: "--"
location: "Tray-1/1"
product_number: "JL628A"
serial: "--"
type: "Fan"
- description: "8325 Fan Module"
hardware_version: "--"
location: "Tray-1/2"
product_number: "JL628A"
serial: "--"
type: "Fan"
- description: "8325 Fan Module"
hardware_version: "--"
location: "Tray-1/2"
product_number: "JL628A"
serial: "--"
type: "Fan"
- description: "8325 Fan Module"
hardware_version: "--"
location: "Tray-1/3"
product_number: "JL628A"
serial: "--"
type: "Fan"
- description: "8325 Fan Module"
hardware_version: "--"
location: "Tray-1/3"
product_number: "JL628A"
serial: "--"
type: "Fan"
- description: "8325 Fan Module"
hardware_version: "--"
location: "Tray-1/4"
product_number: "JL628A"
serial: "--"
type: "Fan"
- description: "8325 Fan Module"
hardware_version: "--"
location: "Tray-1/4"
product_number: "JL628A"
serial: "--"
type: "Fan"
- description: "8325 Fan Module"
hardware_version: "--"
location: "Tray-1/5"
product_number: "JL628A"
serial: "--"
type: "Fan"
- description: "8325 Fan Module"
hardware_version: "--"
location: "Tray-1/5"
product_number: "JL628A"
serial: "--"
type: "Fan"
- description: "8325 Fan Module"
hardware_version: "--"
location: "Tray-1/6"
product_number: "JL628A"
serial: "--"
type: "Fan"
- description: "8325 Fan Module"
hardware_version: "--"
location: "Tray-1/6"
product_number: "JL628A"
serial: "--"
type: "Fan"
- description: "10G-LR / 10G SFP+ LR"
hardware_version: "1990-4694"
location: "1/1/1"
product_number: "J9151E"
serial: "ABCD1237EF"
type: "Transceiver"
- description: "10G-LR / 10G SFP+ LR"
hardware_version: "1990-4694"
location: "1/1/2"
product_number: "J9151E"
serial: "ABCD1238EF"
type: "Transceiver"
- description: "1G-LX / 1G SFP LX"
hardware_version: "1990-4802"
location: "1/1/8"
product_number: "J4859D"
serial: "ABCD1239EF"
type: "Transceiver"
- description: "1G-LX / 1G SFP LX"
hardware_version: "1990-4802"
location: "1/1/9"
product_number: "J4859D"
serial: "ABCD1210EF"
type: "Transceiver"
- description: "1G-SX / 1G SFP SX"
hardware_version: "1990-4750"
location: "1/1/10"
product_number: "J4858D"
serial: "ABCD1211EF"
type: "Transceiver"
- description: "1G-LX / 1G SFP LX"
hardware_version: "1990-4802"
location: "1/1/11"
product_number: "J4859D"
serial: "ABCD1212EF"
type: "Transceiver"
- description: "1G-SX / 1G SFP SX"
hardware_version: "1990-4750"
location: "1/1/12"
product_number: "J4858D"
serial: "ABCD1213EF"
type: "Transceiver"
- description: "1G-LX / 1G SFP LX"
hardware_version: "1990-4802"
location: "1/1/46"
product_number: "J4859D"
serial: "ABCD1214EF"
type: "Transceiver"
- description: "10G-LR / 10G SFP+ LR"
hardware_version: "1990-4694"
location: "1/1/47"
product_number: "J9151E"
serial: "ABCD1215EF"
type: "Transceiver"
- description: "10G-LR / 10G SFP+ LR"
hardware_version: "1990-4694"
location: "1/1/48"
product_number: "J9151E"
serial: "ABCD1216EF"
type: "Transceiver"
Loading