ytti / oxidized

Oxidized is a network device configuration backup tool. It's a RANCID replacement!
Apache License 2.0
2.82k stars 931 forks source link

HP ArubaOS-CX: power-consumption starting with version FL.10.13.xxxx - permanent power changes logged #3142

Closed TerraTalpi closed 6 months ago

TerraTalpi commented 7 months ago

Hello dear team,

the ArubaOS-CX switches in Version FL.10.13.xxxx introduce a new sub-command show environment power-consumption with the following example output:

Power Consumption Averaging Period : 600 seconds

                                    Instantaneous     Average
Name Description                        Power (W)   Power (W)
---------------------------------------------------------------
1    6300M 24SFP+ 4SFP56 Swch               52.00       51.73

The parameter power-consumption was not available in the previous Long Support Release (LSR) Version FL.10.10.xxxx. The Power(W) values always change and produce a new change in odixized every time scanned. I guess this should be easily fixable by doing something like the fix for the fan speed in the current version, see commit ed094ff2e93d1ab4627d0cb183d4bd9273745a42 and/or pull-request #2865. I will try to implement this change and create a pull-request if possible.

TerraTalpi commented 7 months ago

@alextremblay has checked my pull request and informed me, that there is still a change produced with my currently submitted regex, since the number of digits could change. Therefore, I will test the regex again against this example output with a stack consisting of three switches, each with a different power consumption:

show environment power-consumption

Power Consumption Averaging Period : 600 seconds

                                    Instantaneous     Average
Name Description                        Power (W)   Power (W)
---------------------------------------------------------------
1    6300M 24SFP+ 4SFP56 Swch               52.00       51.73
2    6300M 48G 4SFP56 Swch                 156.00      155.94
3    6300M 48G 4SFP56 Swch                1156.00     1155.94

Please note that this is not an actual command output, but created by me, since I lack a switch (stack) that consumes more than 1000 Watts.

TerraTalpi commented 6 months ago

I have now further investigated this issue and checked the AOS-CX 10.13 Command-Line Interface Guide documentation about that command in the newest version FL.10.13.xxxx for various switch series. CLI Guides link:

The output differs depending on the following factors:

The different outputs may be the ones I posted previously for a VSF or standalone switch, but also the following (copied copied from the AOS-CX 10.13 Command-Line Interface Guides of multiple switch types):

Aruba 6400 switch:

switch> show environment power-consumption
                                                                       Power
Name   Type                Description                                 Usage
------------------------------------------------------------------------------
1/1    management-module   R0X31A 6400 Management Module               18 W
1/2    management-module                                               0 W
1/3    line-card-module                                                0 W
1/4    line-card-module    R0X39A 6400 48p 1GbE CL4 PoE 4SFP56 Mod     54 W
1/5    line-card-module                                                0 W
1/6    line-card-module    R0X39A 6400 48p 1GbE CL4 PoE 4SFP56 Mod     56 W
1/7    line-card-module    R0X39A 6400 48p 1GbE CL4 PoE 4SFP56 Mod     51 W
1/1    fabric-card-module  R0X24A 6405 Chassis                         71 W

Module Total Power Usage                                               250 W
Chassis Total Power Usage                                              294 W

Chassis Total Power Available                                          1800 W

Aruba 8400 switch:

switch> show environment power-consumption
Name Type                 Description                                    Usage
------------------------------------------------------------------------------
1/5  management-module    JL368A 8400X Mgmt Mod                           97 W
1/6  management-module    JL368A 8400X Mgmt Mod                           49 W
1/1  line-card-module     JL363A 8400X 32P 10G SFP/SFP+ Msec Mod         139 W
1/2  line-card-module     JL365A 8400X 8P 40G QSFP+ Adv Mod              158 W
1/3  line-card-module     JL366A 8400X 6P 40G/100G QSFP28 Adv Mod        127 W
1/4  line-card-module     JL363A 8400X 32P 10G SFP/SFP+ Msec Adv Mod     148 W
1/7  line-card-module     JL363A 8400X 32P 10G SFP/SFP+ Msec Adv Mod     152 W
1/8  line-card-module     JL363A 8400X 32P 10G SFP/SFP+ Msec Adv Mod     125 W
1/9  line-card-module     JL363A 8400X 32P 10G SFP/SFP+ Msec Adv Mod     132 W
1/10 line-card-module     JL363A 8400X 32P 10G SFP/SFP+ Msec Adv Mod     143 W
1/1  fabric-card-module   JL367A 8400X 7.2Tbps Fab Mod                   107 W
1/2  fabric-card-module   JL367A 8400X 7.2Tbps Fab Mod                    93 W
1/3  fabric-card-module   JL367A 8400X 7.2Tbps Fab Mod                    87 W

Module Total Power Usage                                                1557 W
Chassis Total Power Usage                                               1807 W

Chassis Total Power Available                                           9990 W
Chassis Total Power Allocated (total of all max wattages)               4130 W
Chassis Total Power Unallocated                                         5860 W

Please note, that I had to manually insert the spaces again, since they could not be copied out of the PDF.

I will create Regex expressions for the above outputs and add them to the pull request.