summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikhil Ashoka <a.nikhil@ibm.com>2022-01-05 19:51:24 +0300
committerDixsie Wolmers <dixsiew@gmail.com>2022-01-28 00:20:09 +0300
commit18cde3ce0c1b2f99e94f5cef66661adcb22ba8f7 (patch)
tree24b99d74249a6d15b8e76bd6ebb013e73d7306f0
parente39b95d6d06c9389c123440d1571edc5cee211bb (diff)
downloadwebui-vue-18cde3ce0c1b2f99e94f5cef66661adcb22ba8f7.tar.xz
Add values to system inventory table
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
-rw-r--r--src/locales/en-US.json2
-rw-r--r--src/store/modules/HardwareStatus/SystemStore.js2
-rw-r--r--src/views/HardwareStatus/Inventory/InventoryTableSystem.vue8
3 files changed, 11 insertions, 1 deletions
diff --git a/src/locales/en-US.json b/src/locales/en-US.json
index 40d65531..f29ba0e9 100644
--- a/src/locales/en-US.json
+++ b/src/locales/en-US.json
@@ -388,6 +388,7 @@
"capacityMiB": "Capacity MiB",
"chassisType": "Chassis type",
"connectTypesSupported": "Connect types supported",
+ "coreCount": "Core count",
"count": "Count",
"dataWidthBits": "Data width bits",
"description": "Description",
@@ -433,6 +434,7 @@
"subModel": "Sub model",
"systemType": "System type",
"totalCores": "Total cores",
+ "totalSystemMemoryGiB": "Total system memory",
"totalThreads": "Total threads",
"uuid": "UUID",
"version": "Version"
diff --git a/src/store/modules/HardwareStatus/SystemStore.js b/src/store/modules/HardwareStatus/SystemStore.js
index a94bb14f..a1394f1e 100644
--- a/src/store/modules/HardwareStatus/SystemStore.js
+++ b/src/store/modules/HardwareStatus/SystemStore.js
@@ -17,6 +17,7 @@ const SystemStore = {
system.firmwareVersion = data.BiosVersion;
system.hardwareType = data.Name;
system.health = data.Status?.Health;
+ system.totalSystemMemoryGiB = data.MemorySummary?.TotalSystemMemoryGiB;
system.id = data.Id;
system.locationIndicatorActive = data.LocationIndicatorActive;
system.locationNumber = data.Location?.PartLocation?.ServiceLabel;
@@ -27,6 +28,7 @@ const SystemStore = {
system.memorySummaryState = data.MemorySummary?.Status?.State;
system.model = data.Model;
system.processorSummaryCount = data.ProcessorSummary?.Count;
+ system.processorSummaryCoreCount = data.ProcessorSummary?.CoreCount;
system.processorSummaryHealth = data.ProcessorSummary?.Status?.Health;
system.processorSummaryHealthRoll =
data.ProcessorSummary?.Status.HealthRollup;
diff --git a/src/views/HardwareStatus/Inventory/InventoryTableSystem.vue b/src/views/HardwareStatus/Inventory/InventoryTableSystem.vue
index 20d63d79..93e65bbe 100644
--- a/src/views/HardwareStatus/Inventory/InventoryTableSystem.vue
+++ b/src/views/HardwareStatus/Inventory/InventoryTableSystem.vue
@@ -111,7 +111,10 @@
<dd>{{ dataFormatter(item.memorySummaryHealth) }}</dd>
<!-- Health Roll -->
<dt>{{ $t('pageInventory.table.healthRollup') }}:</dt>
- <dd>{{ dataFormatter(item.memorySummaryHealthRoll) }}</dd>
+ <dd>{{ dataFormatter(item.memorySummaryHealthRollup) }}</dd>
+ <!-- Total system memory -->
+ <dt>{{ $t('pageInventory.table.totalSystemMemoryGiB') }}:</dt>
+ <dd>{{ dataFormatter(item.totalSystemMemoryGiB) }}GB</dd>
</dl>
<!-- Processor Summary -->
<p class="mt-1 mb-2 h6 float-none m-0">
@@ -130,6 +133,9 @@
<!-- Count -->
<dt>{{ $t('pageInventory.table.count') }}:</dt>
<dd>{{ dataFormatter(item.processorSummaryCount) }}</dd>
+ <!-- Core Count -->
+ <dt>{{ $t('pageInventory.table.coreCount') }}:</dt>
+ <dd>{{ dataFormatter(item.processorSummaryCoreCount) }}</dd>
</dl>
</b-col>
</b-row>