summaryrefslogtreecommitdiff
path: root/src/store/modules/HardwareStatus
AgeCommit message (Collapse)AuthorFilesLines
2025-08-08Improved performance in Sensors pageNikhil Ashoka1-1/+38
- The Sensors page takes too long to load, It is because we are trying to call the redfish endpoint: /Sensors' Members one by one and setting in the GUI. The change made is that we are using the query parameters' expand option to call only once and get all the required responses. - We are using query parameters only for those which have MaxLevels>0, else calling the APIs one by one. - Tested: Checked on a p10 system. For 306 records, it used to take 1 minute 20 seconds, now takes 7 seconds to load. Signed-off-by: Nikhil Ashoka <a.nikhil@ibm.com> Change-Id: Ife3447e48d4f5617dcf4563ceac486e4502b2de1
2025-01-24inventory: move serial console to systemTan Siewert2-3/+3
SerialConsole was deprecated in Manager v1_10_0 and has been removed in bmcweb [1]. Because the SerialConsole values were not available anymore, the Managers were not displayed because "setBmcInfo" couldn't find the "SerialConsole" properties. THe following error will be logged: ``` TypeError: Cannot read properties of undefined (reading 'ConnectTypesSupported') at Wa.setBmcInfo (app.25e72670.js:58:745295) at app.25e72670.js:50:2774 at app.25e72670.js:50:10113 at Array.forEach (<anonymous>) at app.25e72670.js:50:10092 at Wa._withCommit (app.25e72670.js:50:11953) at Wa.commit (app.25e72670.js:50:10066) at Wa.commit (app.25e72670.js:50:9518) at o.commit (app.25e72670.js:50:2216) at app.25e72670.js:58:745747 ``` [1]: https://github.com/openbmc/bmcweb/commit/fa800c8a141aa4b209269e0fb50cae34aa24f75d Tested: BMC manager being listed in the inventory and serial console variables being displayed for the system. Change-Id: I1a24178717805ca50eef2c89042c0bd9ede1d5bc Signed-off-by: Tan Siewert <tan@siewert.io>
2024-10-03Vuelidate, I18n, and filter are upgraded to vue3Surya V7-26/+50
While navigating to the pages i18n, vuelidate, and filters errors occurred. i18n, and vuelidate code changes in each page adapted to vue3. Filter global function for date and time format implemented in the main.js file and those files which as called the filter functions. Change-Id: If1a2ee22d47750faef1c35ef2c263299067d9a20 Signed-off-by: Surya Venkatesan <suryav@ami.com>
2024-06-25Replace fixed paths with response from APISean Zhang5-10/+7
Currently, the Redfish request used fixed URIs, modify the code to use the BMC and System paths got from response of API calls. For CertificateStore, since it was using the URL for constant variable assignment, changed the constant CERTIFICATE_TYPES to method call. Change-Id: I330b7272083e3e6993aae5705aae170b8e9a4659 Signed-off-by: Sean Zhang <xiazhang@nvidia.com>
2024-05-21Added toast notification for identify LEDsNikhil Ashoka6-35/+89
- Added success toast notification messages for identify LEDs present at Inventory and LEDs page and Overview. - Import of Toast was not present in Overview's Inventory card and DIMM slot table, fixed it. Signed-off-by: Nikhil Ashoka <a.nikhil@ibm.com> Change-Id: If9ad84e66f6f15616cb8af51b1e84d8d06b1afd0
2024-03-20Display Power Supply Inventory from PowerSubsystemHuyLe1-6/+18
Switch Power Supply information to use information from the new PowerSubsystem since bmcweb enabled this by default, any other modern Redfish implementation should have this schema enabled. Tested: On Ampere MtJade platform 1. Login to WebUI; Hardware Status; Inventory 2. Inventory information for power supplies is displayed. Change-Id: Iad59d0145b47bcd5eb3cb4ff852e50da976a6005 Signed-off-by: HuyLe <hule@amperecomputing.com>
2024-03-08Move to new ThermalSubsystemGunnar Mills1-72/+34
Remove VUE_APP_FAN_DATA_FROM_THERMAL_SUBSYSTEM. Assume any Redfish implementation we are using has the new ThermalSubsystem. bmcweb, the only webserver, webui-vue supports today, enabled this by default at https://gerrit.openbmc.org/c/openbmc/bmcweb/+/69228 ThermalSubsystem, PowerSubsystem has been out since 2020.4, so it is reasonable to assume it is there in any modern Redfish implementation. Tested: Nabil tested and verified this worked. Signed-off-by: Gunnar Mills <gmills@us.ibm.com> Change-Id: I4952daf30f9b654234dd0e838adebc38cc8c380f
2024-03-05Reformat files with new linterEd Tanous10-22/+22
All changes should be whitespace, and were done using npm run-script lint. Change-Id: I943c6b435c5c872841af5affc1e89910468b5ca6 Signed-off-by: Ed Tanous <ed@tanous.net>
2023-10-09Fix pressing Refresh button not removing deleted sensorsHuyLe1-0/+7
Issue: when clicking the Refresh button at top right corner of the WebUI, sensors that were removed from Redfish are not removed from the WebUI but still shown with old sensor values. Root cause: current code keeps a list of sensors. Click on Refresh button just checks and updates sensors returned by Redfish, it does not check if sensors are still present or not. This is incorrect for sensors on hot plug devices or PLDM sensors when the sensor source is not available. In this case, sensors are completely removed instead of just their values changed to n/a. Solution: Initialize an empty array sensor state to retrieve existing sensor data whenever loading sensors. Change-Id: Ifb0c0586fdba22b6f446c58b3d5b937a3f3ee750 Signed-off-by: HuyLe <hule@amperecomputing.com>
2023-08-08Fan data from Thermal or ThermalSubsystem APISivaprabu Ganesan1-27/+72
Fan data API switch in Inventory and LEDs page based on environment variable VUE_APP_FAN_DATA_FROM_THERMAL_SUBSYSTEM. Backend Support PR: https://gerrit.openbmc.org/c/openbmc/bmcweb/+/57533 Change-Id: I95ac9f9cef97bdab84a179b3e318eb37ab11752b Signed-off-by: Sivaprabu Ganesan <sivaprabug@ami.com>
2023-07-14Drop processor and memory summary status displayKonstantin Aladyshev1-8/+0
Redfish deprecated the Processor/Memory Summary Status (state, health, healthrollup) attributes. Please refer to redfish spec for more details: https://redfish.dmtf.org/schemas/v1/ComputerSystem.v1_20_0.json These attributes are already removed from the bmcweb code: https://gerrit.openbmc.org/c/openbmc/bmcweb/+/62731 So currently webui-vue tries to access not present attributes and fails, and since these fields are not marked as optional, 'Server Overview' card fails to display. Drop processor and memory summary status attributes handling to correct the issue. Change-Id: I7fb956a0a310c6bd85560169b1ca0a64c19dc824 Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com>
2023-06-20Add fields to the DIMM inventory tableJason M. Bills1-0/+6
There is a request to see three additional fields from Redfish in the DIMM inventory table: https://github.com/openbmc/webui-vue/issues/107. This change adds Manufacturer, Error correction, and Rank count data from Redfish into the DIMM inventory table. Tested: Confirmed that the three fields show in the table with the correct data from Redfish. Change-Id: I6f1fc5103649abf8350e5b5c107c11eea3d1a599 Signed-off-by: Jason M. Bills <jason.m.bills@intel.com>
2023-04-20Remove hardcoded chassis from Fan storeMichalX Szopinski1-3/+23
This change removes the hardcoded chassis URL from FanStore. Now the URL is taken from the odata.id. Signed-off-by: MichalX Szopinski <michalx.szopinski@intel.com> Change-Id: I59e4d46a8aaa453f6662f4f396f32d7fad18fb91
2023-02-02Fixed sensor mismatch issue with IPMI and redfishkirankumarb071-17/+18
Description: The sensor count in WebUI is mismatched when compared to IPMI and REDFISH responses. When Web UI is iterating the sensor response property, the iteration is stopped when the key value is undefined. As a result, the sensor details in the web UI are incorrect. So added the code changes to check the property value in every iteration, whether the value is present or not. Tested: Step 1: Login to WEB UI Step 2: Navigate to Hardware Status and Sensors Step 3: Check the sensor details with IPMI and redfish response Step 4: All the sensors and those details in the IPMI and redfish response are listing in Web UI Change-Id: Icf5098b3dd2413851e755d9ede17a8501cbb7411 Signed-off-by: Kirankumar Ballapalli <kirankumarb@ami.com>
2022-12-19Removed the MemorySizeGlukhov Mikhail1-2/+0
Removed the MemorySize field for DIMMs, because it is missing in Redfish ``` https://www.dmtf.org/sites/default/files/standards/documents/DSP8010.zip ``` Change-Id: I12f37a601e429060765960f3c66b5249b84eabe7 Signed-off-by: Glukhov Mikhail <mikl@greenfil.ru>
2022-11-10Fix In-page "Refresh" button doesn't update sensor readingswangqi021-1/+1
The reason for this problem is uniqBy always keep the first one when removing repetition Resolves: https://github.com/openbmc/webui-vue/issues/60 Change-Id: Iec87d7845e694b0f2a14de4061ae113eac492fc0 Signed-off-by: wangqi02 <wangqi02@inspur.com>
2022-05-03Add missing Model mapping to Chassis StoreMichalX Szopinski1-0/+2
Add missing "model" mapping on "Hardware status" tab in chassis section. Signed-off-by: MichalX Szopinski <michalx.szopinski@intel.com> Change-Id: I9a6bd4a7e4fbaaac72aa8d59cc065ba0bea040bd
2022-01-28Add values to system inventory tableNikhil Ashoka1-0/+2
TotalSystemMemoryGiB and CoreCount field is not present. Added TotalSystemMemoryGiB under Memory summary Added CoreCount under Processor summary Signed-off-by: Nikhil Ashoka <a.nikhil@ibm.com> Change-Id: I598abc7c05dd5113db0071ecd71bbcc32ad696c4
2022-01-07Fixed Assembly table Identify LED switchesKenneth Fullbright1-1/+7
Identify LED should toggle on/off successfully Rewrote the patch code to work with the Redfish schema Set LocationIndicatorActive to true: curl -k -H "X-Auth-Token: $token" -X PATCH -d ' { "Assemblies":[ {"MemberId" : "0", "LocationIndicatorActive":true}, {"MemberId": "1", "LocationIndicatorActive":true} ] }' https://${bmc}/redfish/v1/Chassis/chassis/Assembly MemberId is required to reference which assembly LED to toggle Signed-off-by: Kenneth Fullbright <kennyneedsmilky@gmail.com> Change-Id: Id0a3cf4dc533f6a0205be9fd037b13f92647cc00
2022-01-07Add missing properties to Dimms tableSandeepa Singh1-0/+12
- Added the following properties: Base module type, Bus width bits, Capacity MiB, Data width bits, Enabled, Operating speed Mhz - Design has been updated for Dimms table Signed-off-by: Sandeepa Singh <sandeepa.singh@ibm.com> Change-Id: Ifd77071abd9544120c1904065275ccc00dd8d862
2021-10-28Add Dimms table missing propertiesSandeepa Singh1-1/+37
- Added the following properties: Model, Description, Spare part number, Location Number, Memory type, Memory size, Identify led - Design has been updated for Dimms table on inventory page Signed-off-by: Sandeepa Singh <sandeepa.singh@ibm.com> Change-Id: Ife61396bd70c29df1b5ea55091adc8c6813b5cdc
2021-09-23Add Assemblies schema to Hardware Status - Inventory and LEDsSneha Patel1-0/+66
Signed-off-by: Sneha Patel <Snehaben.Patel@ibm.com> Change-Id: I1a4edae664d008a4f618d03d62e2319d8157ed6d
2021-09-15Location codes on Hardware status-Inventory and LEDsSneha Patel5-4/+8
Display location number on hardware inventory items Signed-off-by: Sneha Patel <Snehaben.Patel@ibm.com> Change-Id: Ib5555191f21ac4546d0b2e2af5b395aaa3a5357e
2021-08-30Use a 'V' symbol for voltage unitKonstantin Aladyshev1-1/+1
Currently webui-vue displays all sensor data with units written as symbols ('A', 'W', 'C', 'RPM') except for voltage which is written as 'Volts'. Use a 'V' symbol for voltage unit for unification. Change-Id: I257b6d6bf1d099f62a861430a6448368b56dace1 Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com>
2021-08-20Resolve bug for identify LED switch in processor tableSukanya Pandey1-16/+11
Bug: While toggling identify LED for cpu0, in return other identify LEDs are also getting toggled which belongs to different CPUs. Signed-off-by: Sukanya Pandey <sukapan1@in.ibm.com> Change-Id: Ic48eba7b391a28f861e38f306233387819ad944c
2021-08-20Add system attention indicatorsSukanya Pandey1-17/+20
- Different LEDs and statuses will be added to hardware status page - Status for power will be shown and LED included is System identify Led Signed-off-by: Sukanya Pandey <sukapan1@in.ibm.com> Change-Id: I8689f7bf3cc02a7a90379ec50b005bf344c091e4
2021-08-10IA update: Update control section to operationsSandeepa Singh1-9/+6
This is the third update to the information architecture changes and has the following changes: - The control section has been updated to operations - The server led page has been removed - The firmware page is moved to operations section Signed-off-by: Sandeepa Singh <sandeepa.singh@ibm.com> Change-Id: I2e23da447890d7bee51892e1f782d5f2db6dded4
2021-08-10IA update: Update health sectionSandeepa Singh9-0/+689
This is the second update to information architecture changes and has the following changes: - Health section is updated to hardware status section - Hardware status page is updated to inventory and LEDs page - Route for sensors page has been updated Signed-off-by: Sandeepa Singh <sandeepa.singh@ibm.com> Change-Id: Ia1ba3a15a243a00f59a2ec646132436eb355a999