Skip to content

Commit 155da3a

Browse files
authored
Add aruba_os show inventory (#2188)
* Added new textfsm template to parshe show inventory command on aruba wireless controlers. Updated index file and added apporpriate text files Signed-off-by: Cain,Marcus <[email protected]> * Reordered the index file to ensure it is in order from longest command to shortest Signed-off-by: Cain,Marcus <[email protected]>
1 parent 8bfdd9f commit 155da3a

File tree

4 files changed

+125
-0
lines changed

4 files changed

+125
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
Value SUP_SLOT (\d+)
2+
Value SYSTEM_SERIAL (\S+)
3+
Value CPU_CARD_SERIAL (\S+)
4+
Value CPU_CARD_ASSEMBLY (\S+)
5+
Value CPU_CARD_REV (\S+)
6+
Value INTERFACE_CARD_SERIAL (\S+)
7+
Value INTERFACE_CARD_ASSEMBLY (\S+)
8+
Value INTERFACE_CARD_REV (\S+)
9+
Value SC_MODEL (\S+)
10+
Value HW_MAC_ADDR_START (\S+)
11+
Value HW_MAC_ADDR_END (\S+)
12+
Value CPLD_VERSION (\S+)
13+
14+
15+
Start
16+
^Supervisor\s+Card\s+slot\s+:\s+${SUP_SLOT}
17+
^System\s+Serial#\s+:\s+${SYSTEM_SERIAL}
18+
^CPU\s+Card\s+Serial#\s+:\s+${CPU_CARD_SERIAL}
19+
^CPU\s+Card\s+Assembly#\s+:\s+${CPU_CARD_ASSEMBLY}
20+
^CPU\s+Card\s+Revision\s+:\s+\(Rev:${CPU_CARD_REV}\)
21+
^Interface\s+Card\s+Serial#\s+:\s+${INTERFACE_CARD_SERIAL}
22+
^Interface\s+Card\s+Assembly#\s+:\s+${INTERFACE_CARD_ASSEMBLY}
23+
^Interface\s+Card\s+Revision\s+:\s+\(Rev:${INTERFACE_CARD_REV}\)
24+
^SC\s+Model#\s+:\s+${SC_MODEL}
25+
^HW\s+MAC\s+Addr\s+:\s+${HW_MAC_ADDR_START}\s+to\s+${HW_MAC_ADDR_END}
26+
^CPLD\s+Version\s+:\s+\(Rev:\s+${CPLD_VERSION}\) -> Record
27+
^Power\s+Supply.+$$
28+
^\s+:\s+.+$$
29+
^Main\s+Board\s+Temperatures\s+:
30+
^Interface\s+Board\s+Temperatures\s+:
31+
^Fan.+$$
32+
^Main\s+Board\s+Voltages\s+:
33+
^ispPAC.+$$
34+
^Interface\s+Board\s+Voltages\s+:
35+
^\s*$$
36+
^. -> Error

ntc_templates/templates/index

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ aruba_os_show_ip_interface_brief.textfsm, .*, aruba_os, sh[[ow]] ip in[[terface]
130130
aruba_os_show_ap_radio-database.textfsm, .*, aruba_os, show ap radio-database
131131
aruba_os_show_ap_database_long.textfsm, .*, aruba_os, show ap database long
132132
aruba_os_show_ap_database.textfsm, .*, aruba_os, show ap database
133+
aruba_os_show_inventory.textfsm, .*, aruba_os, sh[[ow]] inventory
133134
aruba_os_show_hostname.textfsm, .*, aruba_os, sh[[ow]] hostname
134135
aruba_os_show_version.textfsm, .*, aruba_os, sh[[ow]] ver[[sion]]
135136
aruba_os_show_vlan.textfsm, .*, aruba_os, sh[[ow]] vl[[an]]
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
2+
Supervisor Card slot : 0
3+
System Serial# : CV123ABC2 (Date:08/25/18)
4+
CPU Card Serial# : ABC123XYZ (Date:08/25/18)
5+
CPU Card Assembly# : 2010151H
6+
CPU Card Revision : (Rev:11.00)
7+
Interface Card Serial# : AI3ABC12379 (Date:08/25/18)
8+
Interface Card Assembly# : 2010085E
9+
Interface Card Revision : (Rev:04.00)
10+
SC Model# : Aruba7210-US
11+
HW MAC Addr : 00:1a:1e:05:27:60 to 00:1a:1e:05:27:67
12+
CPLD Version : (Rev: 3.0)
13+
Power Supply 0 : Present : No
14+
Power Supply 1 : Present : Yes
15+
: 12V OK : Yes
16+
: Fan OK : Yes
17+
: Aruba Model No : 2510057
18+
: Vendor & Model No : QCS DCJ3501-01P
19+
: Serial No : QC1234506L
20+
: MFG Date : 7/2/18
21+
: Output 1 Config : 12V 350W
22+
: Input Min : 90V AC
23+
: Input Max : 264V AC
24+
Main Board Temperatures :
25+
: U24 - Local Temp 25 C (shadow of XLP heatsink)
26+
: Q1 - Remote 1 Temp 27 C (shadow of VRM, VDD_CPU)
27+
: Q2 - Remote 2 Temp 26 C (shadow of VRM, VDD_SOC)
28+
: U44 - Local Temp 20 C (shadow of DPI connector)
29+
: U29 - Remote 1 Temp 24 C (XLP die temperature)
30+
: Q36 - Remote 2 Temp 21 C (shadow of 98X1422)
31+
: J2 - DDR A Temp 18 C (DDR3 A temp)
32+
: J4 - DDR B Temp 22 C (DDR3 B temp)
33+
: J1 - DDR C Temp 19 C (DDR3 C temp)
34+
: J3 - DDR D Temp 20 C (DDR3 D temp)
35+
: Port 0 Temp 23 C (1G PHY temp)
36+
: Port 1 Temp 23 C (1G PHY temp)
37+
Interface Board Temperatures :
38+
: U21 - Local Temp 23 C (shadow of port 1 RJ45)
39+
: Q4 - Remote 1 Temp 22 C (shadow of 88E1543)
40+
: Q3 - Remote 2 Temp 25 C (shadow of 88X2140)
41+
Fan 0 : 9070 rpm (5.831 V),Speed Low
42+
Fan 1 : 9112 rpm (5.921 V),Speed Low
43+
Fan 2 : 8916 rpm (5.809 V),Speed Low
44+
Fan 3 : 9049 rpm (5.876 V),Speed Low
45+
Main Board Voltages :
46+
ispPAC_POWR1014A_A :
47+
: 1V2 1.20V sense 1.208 V
48+
: VDD SOC 0.943V sense 0.928 V
49+
: VCC IOBD 1V5 1.50V sense 1.538 V
50+
: DDR3BD_VTT 0.75V sense 0.760 V
51+
: VCC 1A 1.00V sense 1.026 V
52+
: IV8_DIGITAL 1.80V sense 1.852 V
53+
: 3V3_MAIN 3.30V sense 3.348 V
54+
: VCC1 1.00V sense 1.024 V
55+
: VCC25 2.50V sense 2.538 V
56+
: 3V3 SB 3.30V sense 3.366 V
57+
ispPAC_POWR1014A_B :
58+
: VDD 0.837V sense 0.850 V
59+
: VCC IOAC 1V5 1.50V sense 1.546 V
60+
: DDR3AC_VTT 0.75V sense 0.760 V
61+
: VDD_SRAM 1.00V sense 1.048 V
62+
: VCC1B 1.00V sense 1.030 V
63+
: 1V8_ANALOG 1.80V sense 1.842 V
64+
: 1V8 1.80V sense 1.848 V
65+
: VDDIO12_XAUI 1.20V sense 1.212 V
66+
: 5V 5.00V sense 5.016 V
67+
Interface Board Voltages :
68+
ispPAC_POWR6AT6 :
69+
: VCC33 3.30V sense 3.342 V
70+
: VCC 18 1.80V sense 1.840 V
71+
: VCC1 1.00V sense 1.024 V
72+
: VCC12 1.20V sense 1.220 V
73+
: VCC12-DVDD 1.20V sense 1.214 V
74+
: VCC9 0.90V sense 0.932 V
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
parsed_sample:
3+
- cpld_version: "3.0"
4+
cpu_card_assembly: "2010151H"
5+
cpu_card_rev: "11.00"
6+
cpu_card_serial: "ABC123XYZ"
7+
hw_mac_addr_end: "00:1a:1e:05:27:67"
8+
hw_mac_addr_start: "00:1a:1e:05:27:60"
9+
interface_card_assembly: "2010085E"
10+
interface_card_rev: "04.00"
11+
interface_card_serial: "AI3ABC12379"
12+
sc_model: "Aruba7210-US"
13+
sup_slot: "0"
14+
system_serial: "CV123ABC2"

0 commit comments

Comments
 (0)