From a0cfff18ef1542cc94d98b9a0bf5ee879c315a92 Mon Sep 17 00:00:00 2001 From: Mark Nellemann Date: Mon, 5 Dec 2022 15:18:42 +0100 Subject: [PATCH] Fetch multiple samples. --- CHANGELOG.md | 4 + TODO.md | 8 + .../HMCi - Power LPAR Overview.json | 4 +- .../HMCi - Power LPAR Utilization.json | 4 +- .../HMCi - Power System Energy.json | 4 +- .../HMCi - Power System Overview.json | 4 +- .../HMCi - Power System Utilization.json | 2 +- doc/dashboards/HMCi - Power VIO Overview.json | 4 +- .../HMCi - Power VIO Utilization.json | 4 +- gradle.properties | 2 +- .../java/biz/nellemann/hmci/InfluxClient.java | 59 +- .../biz/nellemann/hmci/LogicalPartition.java | 103 +- .../biz/nellemann/hmci/ManagedSystem.java | 186 +- .../biz/nellemann/hmci/ManagementConsole.java | 70 +- .../java/biz/nellemann/hmci/Measurement.java | 9 + .../java/biz/nellemann/hmci/Resource.java | 72 +- .../java/biz/nellemann/hmci/RestClient.java | 58 +- .../java/biz/nellemann/hmci/SystemEnergy.java | 29 +- .../nellemann/hmci/dto/json/SampleInfo.java | 4 +- .../nellemann/hmci/dto/json/SystemUtil.java | 4 + .../hmci/dto/toml/HmcConfiguration.java | 2 +- .../hmci/LogicalPartitionTest.groovy | 52 +- .../nellemann/hmci/ManagedSystemTest.groovy | 15 +- .../resources/2-managed-system-perf-data.json | 7114 +++++++++++++++-- .../3-logical-partition-perf-data.json | 1357 +++- 25 files changed, 7805 insertions(+), 1369 deletions(-) create mode 100644 TODO.md diff --git a/CHANGELOG.md b/CHANGELOG.md index d787e0f..5d600d8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,9 @@ All notable changes to this project will be documented in this file. +## [1.4.1] - 2011-12-xx +- Retrieve multiple PCM samples and keep track of processed samples. + ## [1.4.0] - 2011-12-01 - Rewrite of toml+xml+json de-serialization code (uses jackson now). - Changes to configuration file format - please look at [doc/hmci.toml](doc/hmci.toml) as example. @@ -24,6 +27,7 @@ All notable changes to this project will be documented in this file. ## [1.2.7] - 2022-02-24 - Options to include/exclude Managed Systems and/or Logical Partitions. +[1.4.1]: https://bitbucket.org/mnellemann/hmci/branches/compare/v1.4.1%0Dv1.4.0 [1.4.0]: https://bitbucket.org/mnellemann/hmci/branches/compare/v1.4.0%0Dv1.3.3 [1.3.3]: https://bitbucket.org/mnellemann/hmci/branches/compare/v1.3.3%0Dv1.3.0 [1.3.0]: https://bitbucket.org/mnellemann/hmci/branches/compare/v1.3.0%0Dv1.2.8 diff --git a/TODO.md b/TODO.md new file mode 100644 index 0000000..ceac7e1 --- /dev/null +++ b/TODO.md @@ -0,0 +1,8 @@ +# TODO + +In *ManagementConsole run()* - should we try to sleep up until the closest 30/sec interval to get most fresh data? +Or should we get more data-samples and keep track of which we have processed already ? And then sleep for shorter times. + +Set how many samples to ask for and process. +Loop samples. +Keep track of sample status and if they are processed. diff --git a/doc/dashboards/HMCi - Power LPAR Overview.json b/doc/dashboards/HMCi - Power LPAR Overview.json index 0a37722..c508e32 100644 --- a/doc/dashboards/HMCi - Power LPAR Overview.json +++ b/doc/dashboards/HMCi - Power LPAR Overview.json @@ -2,7 +2,7 @@ "__inputs": [ { "name": "DS_HMCI", - "label": "hmci", + "label": "Database", "description": "", "type": "datasource", "pluginId": "influxdb", @@ -2712,4 +2712,4 @@ "uid": "Xl7oHESGz", "version": 4, "weekStart": "" -} \ No newline at end of file +} diff --git a/doc/dashboards/HMCi - Power LPAR Utilization.json b/doc/dashboards/HMCi - Power LPAR Utilization.json index 185ec57..a455f09 100644 --- a/doc/dashboards/HMCi - Power LPAR Utilization.json +++ b/doc/dashboards/HMCi - Power LPAR Utilization.json @@ -2,7 +2,7 @@ "__inputs": [ { "name": "DS_INFLUXDB", - "label": "InfluxDB", + "label": "Database", "description": "", "type": "datasource", "pluginId": "influxdb", @@ -699,4 +699,4 @@ "uid": "jFsbpTH4k", "version": 4, "weekStart": "" -} \ No newline at end of file +} diff --git a/doc/dashboards/HMCi - Power System Energy.json b/doc/dashboards/HMCi - Power System Energy.json index 3e0de1f..c72f86f 100644 --- a/doc/dashboards/HMCi - Power System Energy.json +++ b/doc/dashboards/HMCi - Power System Energy.json @@ -2,7 +2,7 @@ "__inputs": [ { "name": "DS_HMCI", - "label": "hmci", + "label": "Database", "description": "", "type": "datasource", "pluginId": "influxdb", @@ -914,4 +914,4 @@ "uid": "oHcrgD1Mk", "version": 2, "weekStart": "" -} \ No newline at end of file +} diff --git a/doc/dashboards/HMCi - Power System Overview.json b/doc/dashboards/HMCi - Power System Overview.json index 69f68b5..bb35835 100644 --- a/doc/dashboards/HMCi - Power System Overview.json +++ b/doc/dashboards/HMCi - Power System Overview.json @@ -2,7 +2,7 @@ "__inputs": [ { "name": "DS_HMCI", - "label": "hmci", + "label": "Database", "description": "", "type": "datasource", "pluginId": "influxdb", @@ -1892,4 +1892,4 @@ "uid": "ClJhHPIGz", "version": 3, "weekStart": "" -} \ No newline at end of file +} diff --git a/doc/dashboards/HMCi - Power System Utilization.json b/doc/dashboards/HMCi - Power System Utilization.json index fa32e31..ba2d003 100644 --- a/doc/dashboards/HMCi - Power System Utilization.json +++ b/doc/dashboards/HMCi - Power System Utilization.json @@ -2,7 +2,7 @@ "__inputs": [ { "name": "DS_INFLUXDB", - "label": "InfluxDB", + "label": "Database", "description": "", "type": "datasource", "pluginId": "influxdb", diff --git a/doc/dashboards/HMCi - Power VIO Overview.json b/doc/dashboards/HMCi - Power VIO Overview.json index 4e0628b..262fc7c 100644 --- a/doc/dashboards/HMCi - Power VIO Overview.json +++ b/doc/dashboards/HMCi - Power VIO Overview.json @@ -2,7 +2,7 @@ "__inputs": [ { "name": "DS_HMCI", - "label": "hmci", + "label": "Database", "description": "", "type": "datasource", "pluginId": "influxdb", @@ -1788,4 +1788,4 @@ "uid": "DDNEv5vGz", "version": 2, "weekStart": "" -} \ No newline at end of file +} diff --git a/doc/dashboards/HMCi - Power VIO Utilization.json b/doc/dashboards/HMCi - Power VIO Utilization.json index d4c45e0..7d58bbc 100644 --- a/doc/dashboards/HMCi - Power VIO Utilization.json +++ b/doc/dashboards/HMCi - Power VIO Utilization.json @@ -2,7 +2,7 @@ "__inputs": [ { "name": "DS_INFLUXDB", - "label": "InfluxDB", + "label": "Database", "description": "", "type": "datasource", "pluginId": "influxdb", @@ -939,4 +939,4 @@ "uid": "DDNEv5vGy", "version": 10, "weekStart": "" -} \ No newline at end of file +} diff --git a/gradle.properties b/gradle.properties index d04555e..c374b2d 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,3 +1,3 @@ projectId = hmci projectGroup = biz.nellemann.hmci -projectVersion = 1.4.0 +projectVersion = 1.4.1 diff --git a/src/main/java/biz/nellemann/hmci/InfluxClient.java b/src/main/java/biz/nellemann/hmci/InfluxClient.java index 9df6124..97d0345 100644 --- a/src/main/java/biz/nellemann/hmci/InfluxClient.java +++ b/src/main/java/biz/nellemann/hmci/InfluxClient.java @@ -97,54 +97,45 @@ public final class InfluxClient { } - public void write(List measurements, Instant timestamp, String measurement) { - log.debug("write() - measurement: {} {}", measurement, measurements.size()); - processMeasurementMap(measurements, timestamp, measurement).forEach( (point) -> { influxDB.write(point); }); + public void write(List measurements, Instant timestamp, String name) { + log.debug("write() - measurement: {} {}", name, measurements.size()); + processMeasurementMap(measurements, timestamp, name).forEach( (point) -> { influxDB.write(point); }); } - private List processMeasurementMap(List measurements, Instant timestamp, String measurement) { + public void write(List measurements, String name) { + log.debug("write() - measurement: {} {}", name, measurements.size()); + processMeasurementMap(measurements, name).forEach( (point) -> { influxDB.write(point); }); + } + + + private List processMeasurementMap(List measurements, Instant timestamp, String name) { List listOfPoints = new ArrayList<>(); measurements.forEach( (m) -> { - Point.Builder builder = Point.measurement(measurement) + Point.Builder builder = Point.measurement(name) .time(timestamp.toEpochMilli(), TimeUnit.MILLISECONDS) .tag(m.tags) .fields(m.fields); -/* - // Iterate fields - m.fields.forEach((fieldName, fieldValue) -> { - - log.info("processMeasurementMap() {} - fieldName: {}, fieldValue: {}", measurement, fieldName, fieldValue); - if(fieldValue instanceof Number) { - Number num = (Number) fieldValue; - builder.addField(fieldName, num); - } else if(fieldValue instanceof Boolean) { - Boolean bol = (Boolean) fieldValue; - builder.addField(fieldName, bol); - } else { - String str = (String) fieldValue; - builder.addField(fieldName, str); - } - }); - - // Iterate sorted tags - Map sortedTags = new TreeMap<>(m.tags); - sortedTags.forEach((tagName, tagValue) -> { - log.info("processMeasurementMap() {} - tagName: {}, tagValue: {}", measurement, tagName, tagValue); - builder.tag(tagName, tagValue); - }); -*/ - /* - if(m.fields.size() > 0 && m.tags.size() > 0) { - listOfPoints.add(builderbuilder.build()); - }*/ - listOfPoints.add(builder.build()); }); return listOfPoints; } + + private List processMeasurementMap(List measurements, String name) { + List listOfPoints = new ArrayList<>(); + measurements.forEach( (m) -> { + log.trace("processMeasurementMap() - timestamp: {}, tags: {}, fields: {}", m.timestamp, m.tags, m.fields); + Point.Builder builder = Point.measurement(name) + .time(m.timestamp.toEpochMilli(), TimeUnit.MILLISECONDS) + .tag(m.tags) + .fields(m.fields); + listOfPoints.add(builder.build()); + }); + return listOfPoints; + } + } diff --git a/src/main/java/biz/nellemann/hmci/LogicalPartition.java b/src/main/java/biz/nellemann/hmci/LogicalPartition.java index 463ef63..de2a3cf 100644 --- a/src/main/java/biz/nellemann/hmci/LogicalPartition.java +++ b/src/main/java/biz/nellemann/hmci/LogicalPartition.java @@ -36,8 +36,10 @@ class LogicalPartition extends Resource { private final static Logger log = LoggerFactory.getLogger(LogicalPartition.class); private final RestClient restClient; + private final InfluxClient influxClient; private final ManagedSystem managedSystem; + protected String id; protected String name; protected LogicalPartitionEntry entry; @@ -45,9 +47,10 @@ class LogicalPartition extends Resource { private String uriPath; - public LogicalPartition(RestClient restClient, String href, ManagedSystem managedSystem) throws URISyntaxException { + public LogicalPartition(RestClient restClient, InfluxClient influxClient, String href, ManagedSystem managedSystem) throws URISyntaxException { log.debug("LogicalPartition() - {}", href); this.restClient = restClient; + this.influxClient = influxClient; this.managedSystem = managedSystem; try { URI uri = new URI(href); @@ -99,9 +102,9 @@ class LogicalPartition extends Resource { public void refresh() { - log.debug("refresh()"); + log.debug("refresh() - {}", name); try { - String xml = restClient.getRequest(String.format("/rest/api/pcm/ManagedSystem/%s/LogicalPartition/%s/ProcessedMetrics?NoOfSamples=1", managedSystem.id, id)); + String xml = restClient.getRequest(String.format("/rest/api/pcm/ManagedSystem/%s/LogicalPartition/%s/ProcessedMetrics?NoOfSamples=%d", managedSystem.id, id, currentNumberOfSamples)); // Do not try to parse empty response if(xml == null || xml.length() <= 1) { @@ -134,9 +137,22 @@ class LogicalPartition extends Resource { } + @Override + public void process(int sample) { + log.debug("process() - {} - sample: {}", name, sample); + + influxClient.write(getDetails(sample),"lpar_details"); + influxClient.write(getMemoryMetrics(sample),"lpar_memory"); + influxClient.write(getProcessorMetrics(sample),"lpar_processor"); + influxClient.write(getSriovLogicalPorts(sample),"lpar_net_sriov"); + influxClient.write(getVirtualEthernetAdapterMetrics(sample),"lpar_net_virtual"); + influxClient.write(getVirtualGenericAdapterMetrics(sample),"lpar_storage_virtual"); + influxClient.write(getVirtualFibreChannelAdapterMetrics(sample),"lpar_storage_vFC"); + } + // LPAR Details - List getDetails() { + List getDetails(int sample) { List list = new ArrayList<>(); @@ -148,14 +164,14 @@ class LogicalPartition extends Resource { tagsMap.put("lparname", entry.getName()); log.trace("getDetails() - tags: " + tagsMap); - fieldsMap.put("id", metric.getSample().lparsUtil.id); - fieldsMap.put("type", metric.getSample().lparsUtil.type); - fieldsMap.put("state", metric.getSample().lparsUtil.state); - fieldsMap.put("osType", metric.getSample().lparsUtil.osType); - fieldsMap.put("affinityScore", metric.getSample().lparsUtil.affinityScore); + fieldsMap.put("id", metric.getSample(sample).lparsUtil.id); + fieldsMap.put("type", metric.getSample(sample).lparsUtil.type); + fieldsMap.put("state", metric.getSample(sample).lparsUtil.state); + fieldsMap.put("osType", metric.getSample(sample).lparsUtil.osType); + fieldsMap.put("affinityScore", metric.getSample(sample).lparsUtil.affinityScore); log.trace("getDetails() - fields: " + fieldsMap); - list.add(new Measurement(tagsMap, fieldsMap)); + list.add(new Measurement(getTimestamp(sample), tagsMap, fieldsMap)); } catch (Exception e) { log.warn("getDetails() - error: {}", e.getMessage()); } @@ -165,7 +181,7 @@ class LogicalPartition extends Resource { // LPAR Memory - List getMemoryMetrics() { + List getMemoryMetrics(int sample) { List list = new ArrayList<>(); @@ -177,11 +193,11 @@ class LogicalPartition extends Resource { tagsMap.put("lparname", entry.getName()); log.trace("getMemoryMetrics() - tags: " + tagsMap); - fieldsMap.put("logicalMem", metric.getSample().lparsUtil.memory.logicalMem); - fieldsMap.put("backedPhysicalMem", metric.getSample().lparsUtil.memory.backedPhysicalMem); + fieldsMap.put("logicalMem", metric.getSample(sample).lparsUtil.memory.logicalMem); + fieldsMap.put("backedPhysicalMem", metric.getSample(sample).lparsUtil.memory.backedPhysicalMem); log.trace("getMemoryMetrics() - fields: " + fieldsMap); - list.add(new Measurement(tagsMap, fieldsMap)); + list.add(new Measurement(getTimestamp(sample), tagsMap, fieldsMap)); } catch (Exception e) { log.warn("getMemoryMetrics() - error: {}", e.getMessage()); } @@ -190,7 +206,7 @@ class LogicalPartition extends Resource { // LPAR Processor - List getProcessorMetrics() { + List getProcessorMetrics(int sample) { List list = new ArrayList<>(); @@ -202,23 +218,23 @@ class LogicalPartition extends Resource { tagsMap.put("lparname", entry.getName()); log.trace("getProcessorMetrics() - tags: " + tagsMap); - fieldsMap.put("utilizedProcUnits", metric.getSample().lparsUtil.processor.utilizedProcUnits); - fieldsMap.put("entitledProcUnits", metric.getSample().lparsUtil.processor.entitledProcUnits); - fieldsMap.put("donatedProcUnits", metric.getSample().lparsUtil.processor.donatedProcUnits); - fieldsMap.put("idleProcUnits", metric.getSample().lparsUtil.processor.idleProcUnits); - fieldsMap.put("maxProcUnits", metric.getSample().lparsUtil.processor.maxProcUnits); - fieldsMap.put("maxVirtualProcessors", metric.getSample().lparsUtil.processor.maxVirtualProcessors); - fieldsMap.put("currentVirtualProcessors", metric.getSample().lparsUtil.processor.currentVirtualProcessors); - fieldsMap.put("utilizedCappedProcUnits", metric.getSample().lparsUtil.processor.utilizedCappedProcUnits); - fieldsMap.put("utilizedUncappedProcUnits", metric.getSample().lparsUtil.processor.utilizedUncappedProcUnits); - fieldsMap.put("timePerInstructionExecution", metric.getSample().lparsUtil.processor.timeSpentWaitingForDispatch); - fieldsMap.put("timeSpentWaitingForDispatch", metric.getSample().lparsUtil.processor.timePerInstructionExecution); - fieldsMap.put("mode", metric.getSample().lparsUtil.processor.mode); - fieldsMap.put("weight", metric.getSample().lparsUtil.processor.weight); - fieldsMap.put("poolId", metric.getSample().lparsUtil.processor.poolId); + fieldsMap.put("utilizedProcUnits", metric.getSample(sample).lparsUtil.processor.utilizedProcUnits); + fieldsMap.put("entitledProcUnits", metric.getSample(sample).lparsUtil.processor.entitledProcUnits); + fieldsMap.put("donatedProcUnits", metric.getSample(sample).lparsUtil.processor.donatedProcUnits); + fieldsMap.put("idleProcUnits", metric.getSample(sample).lparsUtil.processor.idleProcUnits); + fieldsMap.put("maxProcUnits", metric.getSample(sample).lparsUtil.processor.maxProcUnits); + fieldsMap.put("maxVirtualProcessors", metric.getSample(sample).lparsUtil.processor.maxVirtualProcessors); + fieldsMap.put("currentVirtualProcessors", metric.getSample(sample).lparsUtil.processor.currentVirtualProcessors); + fieldsMap.put("utilizedCappedProcUnits", metric.getSample(sample).lparsUtil.processor.utilizedCappedProcUnits); + fieldsMap.put("utilizedUncappedProcUnits", metric.getSample(sample).lparsUtil.processor.utilizedUncappedProcUnits); + fieldsMap.put("timePerInstructionExecution", metric.getSample(sample).lparsUtil.processor.timeSpentWaitingForDispatch); + fieldsMap.put("timeSpentWaitingForDispatch", metric.getSample(sample).lparsUtil.processor.timePerInstructionExecution); + fieldsMap.put("mode", metric.getSample(sample).lparsUtil.processor.mode); + fieldsMap.put("weight", metric.getSample(sample).lparsUtil.processor.weight); + fieldsMap.put("poolId", metric.getSample(sample).lparsUtil.processor.poolId); log.trace("getProcessorMetrics() - fields: " + fieldsMap); - list.add(new Measurement(tagsMap, fieldsMap)); + list.add(new Measurement(getTimestamp(sample), tagsMap, fieldsMap)); } catch (Exception e) { log.warn("getProcessorMetrics() - error: {}", e.getMessage()); } @@ -228,12 +244,12 @@ class LogicalPartition extends Resource { // LPAR Network - Virtual - List getVirtualEthernetAdapterMetrics() { + List getVirtualEthernetAdapterMetrics(int sample) { List list = new ArrayList<>(); try { - metric.getSample().lparsUtil.network.virtualEthernetAdapters.forEach(adapter -> { + metric.getSample(sample).lparsUtil.network.virtualEthernetAdapters.forEach(adapter -> { HashMap tagsMap = new HashMap<>(); HashMap fieldsMap = new HashMap<>(); @@ -262,7 +278,7 @@ class LogicalPartition extends Resource { fieldsMap.put("sharedEthernetAdapterId", adapter.sharedEthernetAdapterId); log.trace("getVirtualEthernetAdapterMetrics() - fields: " + fieldsMap); - list.add(new Measurement(tagsMap, fieldsMap)); + list.add(new Measurement(getTimestamp(sample), tagsMap, fieldsMap)); }); } catch (Exception e) { log.warn("getVirtualEthernetAdapterMetrics() - error: {}", e.getMessage()); @@ -273,12 +289,12 @@ class LogicalPartition extends Resource { // LPAR Storage - Virtual Generic - List getVirtualGenericAdapterMetrics() { + List getVirtualGenericAdapterMetrics(int sample) { List list = new ArrayList<>(); try { - metric.getSample().lparsUtil.storage.genericVirtualAdapters.forEach(adapter -> { + metric.getSample(sample).lparsUtil.storage.genericVirtualAdapters.forEach(adapter -> { HashMap tagsMap = new HashMap<>(); HashMap fieldsMap = new HashMap<>(); @@ -297,7 +313,7 @@ class LogicalPartition extends Resource { fieldsMap.put("type", adapter.type); log.trace("getVirtualGenericAdapterMetrics() - fields: " + fieldsMap); - list.add(new Measurement(tagsMap, fieldsMap)); + list.add(new Measurement(getTimestamp(sample), tagsMap, fieldsMap)); }); } catch (Exception e) { log.warn("getVirtualGenericAdapterMetrics() - error: {}", e.getMessage()); @@ -308,12 +324,12 @@ class LogicalPartition extends Resource { } // LPAR Storage - Virtual FC - List getVirtualFibreChannelAdapterMetrics() { + List getVirtualFibreChannelAdapterMetrics(int sample) { List list = new ArrayList<>(); try { - metric.getSample().lparsUtil.storage.virtualFiberChannelAdapters.forEach(adapter -> { + metric.getSample(sample).lparsUtil.storage.virtualFiberChannelAdapters.forEach(adapter -> { HashMap tagsMap = new HashMap<>(); HashMap fieldsMap = new HashMap<>(); @@ -330,10 +346,9 @@ class LogicalPartition extends Resource { fieldsMap.put("readBytes", adapter.readBytes); fieldsMap.put("runningSpeed", adapter.runningSpeed); fieldsMap.put("transmittedBytes", adapter.transmittedBytes); - fieldsMap.put("transferredByte", adapter.transmittedBytes); // TODO: Must be error in dashboard, remove when checked. log.trace("getVirtualFibreChannelAdapterMetrics() - fields: " + fieldsMap); - list.add(new Measurement(tagsMap, fieldsMap)); + list.add(new Measurement(getTimestamp(sample), tagsMap, fieldsMap)); }); } catch (Exception e) { log.warn("getVirtualFibreChannelAdapterMetrics() - error: {}", e.getMessage()); @@ -344,12 +359,12 @@ class LogicalPartition extends Resource { // LPAR Network - SR-IOV Logical Ports - List getSriovLogicalPorts() { + List getSriovLogicalPorts(int sample) { List list = new ArrayList<>(); try { - metric.getSample().lparsUtil.network.sriovLogicalPorts.forEach(port -> { + metric.getSample(sample).lparsUtil.network.sriovLogicalPorts.forEach(port -> { HashMap tagsMap = new HashMap<>(); HashMap fieldsMap = new HashMap<>(); @@ -370,7 +385,7 @@ class LogicalPartition extends Resource { fieldsMap.put("errorOut", port.errorOut); log.trace("getSriovLogicalPorts() - fields: " + fieldsMap); - list.add(new Measurement(tagsMap, fieldsMap)); + list.add(new Measurement(getTimestamp(sample), tagsMap, fieldsMap)); }); } catch (Exception e) { log.warn("getSriovLogicalPorts() - error: {}", e.getMessage()); @@ -378,4 +393,6 @@ class LogicalPartition extends Resource { return list; } + + } diff --git a/src/main/java/biz/nellemann/hmci/ManagedSystem.java b/src/main/java/biz/nellemann/hmci/ManagedSystem.java index 4c2758f..b1b99ad 100644 --- a/src/main/java/biz/nellemann/hmci/ManagedSystem.java +++ b/src/main/java/biz/nellemann/hmci/ManagedSystem.java @@ -17,8 +17,6 @@ package biz.nellemann.hmci; import biz.nellemann.hmci.dto.xml.*; import com.fasterxml.jackson.core.JsonParseException; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.databind.SerializationFeature; import com.fasterxml.jackson.dataformat.xml.XmlMapper; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -39,6 +37,8 @@ class ManagedSystem extends Resource { private List includePartitions = new ArrayList<>(); private final RestClient restClient; + private final InfluxClient influxClient; + protected ManagedSystemEntry entry; @@ -52,9 +52,10 @@ class ManagedSystem extends Resource { public String id; - public ManagedSystem(RestClient restClient, String href) { + public ManagedSystem(RestClient restClient, InfluxClient influxClient, String href) { log.debug("ManagedSystem() - {}", href); this.restClient = restClient; + this.influxClient = influxClient; try { URI uri = new URI(href); uriPath = uri.getPath(); @@ -89,6 +90,7 @@ class ManagedSystem extends Resource { setPcmPreference(); } + systemEnergy = new SystemEnergy(restClient, influxClient, this); } @@ -122,7 +124,7 @@ class ManagedSystem extends Resource { logicalPartitions.clear(); for (Link link : this.entry.getAssociatedLogicalPartitions()) { - LogicalPartition logicalPartition = new LogicalPartition(restClient, link.getHref(), this); + LogicalPartition logicalPartition = new LogicalPartition(restClient, influxClient, link.getHref(), this); logicalPartition.discover(); if(Objects.equals(logicalPartition.entry.partitionState, "running")) { // Check exclude / include @@ -152,9 +154,9 @@ class ManagedSystem extends Resource { public void refresh() { - log.debug("refresh()"); + log.debug("refresh() - {}", name); try { - String xml = restClient.getRequest(String.format("/rest/api/pcm/ManagedSystem/%s/ProcessedMetrics?NoOfSamples=1", id)); + String xml = restClient.getRequest(String.format("/rest/api/pcm/ManagedSystem/%s/ProcessedMetrics?NoOfSamples=%d", id, currentNumberOfSamples)); // Do not try to parse empty response if(xml == null || xml.length() <= 1) { @@ -180,6 +182,12 @@ class ManagedSystem extends Resource { } }); + if(systemEnergy != null) { + systemEnergy.refresh(); + } + + logicalPartitions.forEach(LogicalPartition::refresh); + } catch (JsonParseException e) { log.warn("refresh() - parse error for: {}", name); metric = null; @@ -190,6 +198,38 @@ class ManagedSystem extends Resource { } + + @Override + public void process(int sample) { + + log.debug("process() - {} - sample: {}", name, sample); + + influxClient.write(getDetails(sample),"server_details"); + influxClient.write(getMemoryMetrics(sample),"server_memory"); + influxClient.write(getProcessorMetrics(sample), "server_processor"); + influxClient.write(getPhysicalProcessorPool(sample),"server_physicalProcessorPool"); + influxClient.write(getSharedProcessorPools(sample),"server_sharedProcessorPool"); + if(systemEnergy != null) { + systemEnergy.process(); + } + + influxClient.write(getVioDetails(sample),"vios_details"); + influxClient.write(getVioProcessorMetrics(sample),"vios_processor"); + influxClient.write(getVioMemoryMetrics(sample),"vios_memory"); + influxClient.write(getVioNetworkLpars(sample),"vios_network_lpars"); + influxClient.write(getVioNetworkVirtualAdapters(sample),"vios_network_virtual"); + influxClient.write(getVioNetworkSharedAdapters(sample),"vios_network_shared"); + influxClient.write(getVioNetworkGenericAdapters(sample),"vios_network_generic"); + influxClient.write(getVioStorageLpars(sample),"vios_storage_lpars"); + influxClient.write(getVioStorageFiberChannelAdapters(sample),"vios_storage_FC"); + influxClient.write(getVioStorageVirtualAdapters(sample),"vios_storage_vFC"); + influxClient.write(getVioStoragePhysicalAdapters(sample),"vios_storage_physical"); + // Missing: vios_storage_SSP + + logicalPartitions.forEach(Resource::process); + } + + public void setPcmPreference() { log.info("setPcmPreference()"); @@ -250,10 +290,9 @@ class ManagedSystem extends Resource { // System details - List getDetails() { + List getDetails(int sample) { List list = new ArrayList<>(); - try { Map tagsMap = new TreeMap<>(); Map fieldsMap = new TreeMap<>(); @@ -271,11 +310,12 @@ class ManagedSystem extends Resource { fieldsMap.put("frequency", metric.getUtilInfo().frequency); fieldsMap.put("nextract", "HMCi"); fieldsMap.put("name", entry.getName()); - fieldsMap.put("utilizedProcUnits", metric.getSample().systemFirmwareUtil.utilizedProcUnits); - fieldsMap.put("assignedMem", metric.getSample().systemFirmwareUtil.assignedMem); + fieldsMap.put("utilizedProcUnits", metric.getSample(sample).systemFirmwareUtil.utilizedProcUnits); + fieldsMap.put("assignedMem", metric.getSample(sample).systemFirmwareUtil.assignedMem); log.trace("getDetails() - fields: " + fieldsMap); - list.add(new Measurement(tagsMap, fieldsMap)); + + list.add(new Measurement(getTimestamp(sample), tagsMap, fieldsMap)); } catch (Exception e) { log.warn("getDetails() - error: {}", e.getMessage()); } @@ -285,10 +325,9 @@ class ManagedSystem extends Resource { // System Memory - List getMemoryMetrics() { + List getMemoryMetrics(int sample) { List list = new ArrayList<>(); - try { HashMap tagsMap = new HashMap<>(); Map fieldsMap = new HashMap<>(); @@ -296,14 +335,14 @@ class ManagedSystem extends Resource { tagsMap.put("servername", entry.getName()); log.trace("getMemoryMetrics() - tags: " + tagsMap); - fieldsMap.put("totalMem", metric.getSample().serverUtil.memory.totalMem); - fieldsMap.put("availableMem", metric.getSample().serverUtil.memory.availableMem); - fieldsMap.put("configurableMem", metric.getSample().serverUtil.memory.configurableMem); - fieldsMap.put("assignedMemToLpars", metric.getSample().serverUtil.memory.assignedMemToLpars); - fieldsMap.put("virtualPersistentMem", metric.getSample().serverUtil.memory.virtualPersistentMem); + fieldsMap.put("totalMem", metric.getSample(sample).serverUtil.memory.totalMem); + fieldsMap.put("availableMem", metric.getSample(sample).serverUtil.memory.availableMem); + fieldsMap.put("configurableMem", metric.getSample(sample).serverUtil.memory.configurableMem); + fieldsMap.put("assignedMemToLpars", metric.getSample(sample).serverUtil.memory.assignedMemToLpars); + fieldsMap.put("virtualPersistentMem", metric.getSample(sample).serverUtil.memory.virtualPersistentMem); log.trace("getMemoryMetrics() - fields: " + fieldsMap); - list.add(new Measurement(tagsMap, fieldsMap)); + list.add(new Measurement(getTimestamp(sample), tagsMap, fieldsMap)); } catch (Exception e) { log.warn("getMemoryMetrics() - error: {}", e.getMessage()); } @@ -313,10 +352,9 @@ class ManagedSystem extends Resource { // System Processor - List getProcessorMetrics() { + List getProcessorMetrics(int sample) { List list = new ArrayList<>(); - try { HashMap tagsMap = new HashMap<>(); HashMap fieldsMap = new HashMap<>(); @@ -324,13 +362,13 @@ class ManagedSystem extends Resource { tagsMap.put("servername", entry.getName()); log.trace("getProcessorMetrics() - tags: " + tagsMap); - fieldsMap.put("totalProcUnits", metric.getSample().serverUtil.processor.totalProcUnits); - fieldsMap.put("utilizedProcUnits", metric.getSample().serverUtil.processor.utilizedProcUnits); - fieldsMap.put("availableProcUnits", metric.getSample().serverUtil.processor.availableProcUnits); - fieldsMap.put("configurableProcUnits", metric.getSample().serverUtil.processor.configurableProcUnits); + fieldsMap.put("totalProcUnits", metric.getSample(sample).serverUtil.processor.totalProcUnits); + fieldsMap.put("utilizedProcUnits", metric.getSample(sample).serverUtil.processor.utilizedProcUnits); + fieldsMap.put("availableProcUnits", metric.getSample(sample).serverUtil.processor.availableProcUnits); + fieldsMap.put("configurableProcUnits", metric.getSample(sample).serverUtil.processor.configurableProcUnits); log.trace("getProcessorMetrics() - fields: " + fieldsMap); - list.add(new Measurement(tagsMap, fieldsMap)); + list.add(new Measurement(getTimestamp(sample), tagsMap, fieldsMap)); } catch (Exception e) { log.warn("getProcessorMetrics() - error: {}", e.getMessage()); } @@ -339,12 +377,11 @@ class ManagedSystem extends Resource { } // Sytem Shared ProcessorPools - List getSharedProcessorPools() { + List getSharedProcessorPools(int sample) { List list = new ArrayList<>(); try { - - metric.getSample().serverUtil.sharedProcessorPool.forEach(sharedProcessorPool -> { + metric.getSample(sample).serverUtil.sharedProcessorPool.forEach(sharedProcessorPool -> { HashMap tagsMap = new HashMap<>(); HashMap fieldsMap = new HashMap<>(); @@ -360,7 +397,7 @@ class ManagedSystem extends Resource { fieldsMap.put("configuredProcUnits", sharedProcessorPool.configuredProcUnits); log.trace("getSharedProcessorPools() - fields: " + fieldsMap); - list.add(new Measurement(tagsMap, fieldsMap)); + list.add(new Measurement(getTimestamp(sample), tagsMap, fieldsMap)); }); } catch (Exception e) { log.warn("getSharedProcessorPools() - error: {}", e.getMessage()); @@ -371,10 +408,9 @@ class ManagedSystem extends Resource { } // System Physical ProcessorPool - List getPhysicalProcessorPool() { + List getPhysicalProcessorPool(int sample) { List list = new ArrayList<>(); - try { HashMap tagsMap = new HashMap<>(); HashMap fieldsMap = new HashMap<>(); @@ -382,14 +418,14 @@ class ManagedSystem extends Resource { tagsMap.put("servername", entry.getName()); log.trace("getPhysicalProcessorPool() - tags: " + tagsMap); - fieldsMap.put("assignedProcUnits", metric.getSample().serverUtil.physicalProcessorPool.assignedProcUnits); - fieldsMap.put("availableProcUnits", metric.getSample().serverUtil.physicalProcessorPool.availableProcUnits); - fieldsMap.put("utilizedProcUnits", metric.getSample().serverUtil.physicalProcessorPool.utilizedProcUnits); - fieldsMap.put("configuredProcUnits", metric.getSample().serverUtil.physicalProcessorPool.configuredProcUnits); - fieldsMap.put("borrowedProcUnits", metric.getSample().serverUtil.physicalProcessorPool.borrowedProcUnits); + fieldsMap.put("assignedProcUnits", metric.getSample(sample).serverUtil.physicalProcessorPool.assignedProcUnits); + fieldsMap.put("availableProcUnits", metric.getSample(sample).serverUtil.physicalProcessorPool.availableProcUnits); + fieldsMap.put("utilizedProcUnits", metric.getSample(sample).serverUtil.physicalProcessorPool.utilizedProcUnits); + fieldsMap.put("configuredProcUnits", metric.getSample(sample).serverUtil.physicalProcessorPool.configuredProcUnits); + fieldsMap.put("borrowedProcUnits", metric.getSample(sample).serverUtil.physicalProcessorPool.borrowedProcUnits); log.trace("getPhysicalProcessorPool() - fields: " + fieldsMap); - list.add(new Measurement(tagsMap, fieldsMap)); + list.add(new Measurement(getTimestamp(sample), tagsMap, fieldsMap)); } catch (Exception e) { log.warn("getPhysicalProcessorPool() - error: {}", e.getMessage()); } @@ -404,12 +440,11 @@ class ManagedSystem extends Resource { // VIO Details - List getVioDetails() { + List getVioDetails(int sample) { List list = new ArrayList<>(); - try { - metric.getSample().viosUtil.forEach(vio -> { + metric.getSample(sample).viosUtil.forEach(vio -> { HashMap tagsMap = new HashMap<>(); HashMap fieldsMap = new HashMap<>(); @@ -424,7 +459,7 @@ class ManagedSystem extends Resource { fieldsMap.put("affinityScore", vio.affinityScore); log.trace("getVioDetails() - fields: " + fieldsMap); - list.add(new Measurement(tagsMap, fieldsMap)); + list.add(new Measurement(getTimestamp(sample), tagsMap, fieldsMap)); }); } catch (Exception e) { log.warn("getVioDetails() - error: {}", e.getMessage()); @@ -435,11 +470,11 @@ class ManagedSystem extends Resource { // VIO Memory - List getVioMemoryMetrics() { + List getVioMemoryMetrics(int sample) { List list = new ArrayList<>(); try { - metric.getSample().viosUtil.forEach(vio -> { + metric.getSample(sample).viosUtil.forEach(vio -> { HashMap tagsMap = new HashMap<>(); HashMap fieldsMap = new HashMap<>(); @@ -456,7 +491,7 @@ class ManagedSystem extends Resource { fieldsMap.put("utilizedPct", usedMemPct.floatValue()); log.trace("getVioMemoryMetrics() - fields: " + fieldsMap); - list.add(new Measurement(tagsMap, fieldsMap)); + list.add(new Measurement(getTimestamp(sample), tagsMap, fieldsMap)); }); } catch (Exception e) { log.warn("getVioMemoryMetrics() - error: {}", e.getMessage()); @@ -467,11 +502,11 @@ class ManagedSystem extends Resource { // VIO Processor - List getVioProcessorMetrics() { + List getVioProcessorMetrics(int sample) { List list = new ArrayList<>(); try { - metric.getSample().viosUtil.forEach(vio -> { + metric.getSample(sample).viosUtil.forEach(vio -> { HashMap tagsMap = new HashMap<>(); HashMap fieldsMap = new HashMap<>(); @@ -495,7 +530,7 @@ class ManagedSystem extends Resource { fieldsMap.put("mode", vio.processor.mode); log.trace("getVioProcessorMetrics() - fields: " + fieldsMap); - list.add(new Measurement(tagsMap, fieldsMap)); + list.add(new Measurement(getTimestamp(sample), tagsMap, fieldsMap)); }); } catch (Exception e) { log.warn("getVioProcessorMetrics() - error: {}", e.getMessage()); @@ -506,11 +541,11 @@ class ManagedSystem extends Resource { // VIOs - Network - List getVioNetworkLpars() { + List getVioNetworkLpars(int sample) { List list = new ArrayList<>(); try { - metric.getSample().viosUtil.forEach(vio -> { + metric.getSample(sample).viosUtil.forEach(vio -> { HashMap tagsMap = new HashMap<>(); HashMap fieldsMap = new HashMap<>(); @@ -522,7 +557,7 @@ class ManagedSystem extends Resource { fieldsMap.put("clientlpars", vio.network.clientLpars.size()); log.trace("getVioNetworkLpars() - fields: " + fieldsMap); - list.add(new Measurement(tagsMap, fieldsMap)); + list.add(new Measurement(getTimestamp(sample), tagsMap, fieldsMap)); }); } catch (Exception e) { @@ -534,11 +569,11 @@ class ManagedSystem extends Resource { // VIO Network - Shared - List getVioNetworkSharedAdapters() { + List getVioNetworkSharedAdapters(int sample) { List list = new ArrayList<>(); try { - metric.getSample().viosUtil.forEach(vio -> { + metric.getSample(sample).viosUtil.forEach(vio -> { vio.network.sharedAdapters.forEach(adapter -> { HashMap tagsMap = new HashMap<>(); HashMap fieldsMap = new HashMap<>(); @@ -559,7 +594,7 @@ class ManagedSystem extends Resource { fieldsMap.put("transferredBytes", adapter.transferredBytes); log.trace("getVioNetworkSharedAdapters() - fields: " + fieldsMap); - list.add(new Measurement(tagsMap, fieldsMap)); + list.add(new Measurement(getTimestamp(sample), tagsMap, fieldsMap)); }); }); } catch (Exception e) { @@ -571,12 +606,11 @@ class ManagedSystem extends Resource { // VIO Network - Virtual - List getVioNetworkVirtualAdapters() { + List getVioNetworkVirtualAdapters(int sample) { List list = new ArrayList<>(); - try { - metric.getSample().viosUtil.forEach( vio -> { + metric.getSample(sample).viosUtil.forEach( vio -> { vio.network.virtualEthernetAdapters.forEach( adapter -> { HashMap tagsMap = new HashMap<>(); @@ -604,7 +638,7 @@ class ManagedSystem extends Resource { fieldsMap.put("transferredPhysicalBytes", adapter.transferredPhysicalBytes); log.trace("getVioNetworkVirtualAdapters() - fields: " + fieldsMap); - list.add(new Measurement(tagsMap, fieldsMap)); + list.add(new Measurement(getTimestamp(sample), tagsMap, fieldsMap)); }); }); } catch (Exception e) { @@ -616,11 +650,11 @@ class ManagedSystem extends Resource { // VIO Network - Generic - List getVioNetworkGenericAdapters() { + List getVioNetworkGenericAdapters(int sample) { List list = new ArrayList<>(); try { - metric.getSample().viosUtil.forEach( vio -> { + metric.getSample(sample).viosUtil.forEach( vio -> { vio.network.genericAdapters.forEach( adapter -> { HashMap tagsMap = new HashMap<>(); @@ -640,7 +674,7 @@ class ManagedSystem extends Resource { fieldsMap.put("transferredBytes", adapter.transferredBytes); log.trace("getVioNetworkGenericAdapters() - fields: " + fieldsMap); - list.add(new Measurement(tagsMap, fieldsMap)); + list.add(new Measurement(getTimestamp(sample), tagsMap, fieldsMap)); }); }); } catch (Exception e) { @@ -651,11 +685,11 @@ class ManagedSystem extends Resource { } // VIOs - Storage - List getVioStorageLpars() { + List getVioStorageLpars(int sample) { List list = new ArrayList<>(); try { - metric.getSample().viosUtil.forEach(vio -> { + metric.getSample(sample).viosUtil.forEach(vio -> { HashMap tagsMap = new HashMap<>(); HashMap fieldsMap = new HashMap<>(); @@ -667,7 +701,7 @@ class ManagedSystem extends Resource { fieldsMap.put("clientlpars", vio.storage.clientLpars.size()); log.trace("getVioStorageLpars() - fields: " + fieldsMap); - list.add(new Measurement(tagsMap, fieldsMap)); + list.add(new Measurement(getTimestamp(sample), tagsMap, fieldsMap)); }); } catch (Exception e) { log.warn("getVioStorageLpars() - error: {}", e.getMessage()); @@ -677,11 +711,11 @@ class ManagedSystem extends Resource { } // VIO Storage FC - List getVioStorageFiberChannelAdapters() { + List getVioStorageFiberChannelAdapters(int sample) { List list = new ArrayList<>(); try { - metric.getSample().viosUtil.forEach( vio -> { + metric.getSample(sample).viosUtil.forEach( vio -> { log.trace("getVioStorageFiberChannelAdapters() - VIO: " + vio.name); vio.storage.fiberChannelAdapters.forEach( adapter -> { @@ -702,7 +736,7 @@ class ManagedSystem extends Resource { fieldsMap.put("transmittedBytes", adapter.transmittedBytes); log.trace("getVioStorageFiberChannelAdapters() - fields: " + fieldsMap); - list.add(new Measurement(tagsMap, fieldsMap)); + list.add(new Measurement(getTimestamp(sample), tagsMap, fieldsMap)); }); }); @@ -716,11 +750,11 @@ class ManagedSystem extends Resource { // VIO Storage - Physical - List getVioStoragePhysicalAdapters() { + List getVioStoragePhysicalAdapters(int sample) { List list = new ArrayList<>(); try { - metric.getSample().viosUtil.forEach( vio -> { + metric.getSample(sample).viosUtil.forEach( vio -> { log.trace("getVioStoragePhysicalAdapters() - VIO: " + vio.name); vio.storage.genericPhysicalAdapters.forEach( adapter -> { @@ -742,7 +776,7 @@ class ManagedSystem extends Resource { fieldsMap.put("type", adapter.type); log.trace("getVioStoragePhysicalAdapters() - fields: " + fieldsMap); - list.add(new Measurement(tagsMap, fieldsMap)); + list.add(new Measurement(getTimestamp(sample), tagsMap, fieldsMap)); }); }); } catch (Exception e) { @@ -754,11 +788,11 @@ class ManagedSystem extends Resource { // VIO Storage - Virtual - List getVioStorageVirtualAdapters() { + List getVioStorageVirtualAdapters(int sample) { List list = new ArrayList<>(); try { - metric.getSample().viosUtil.forEach( (vio) -> { + metric.getSample(sample).viosUtil.forEach( (vio) -> { vio.storage.genericVirtualAdapters.forEach( (adapter) -> { HashMap tagsMap = new HashMap<>(); HashMap fieldsMap = new HashMap<>(); @@ -777,7 +811,7 @@ class ManagedSystem extends Resource { fieldsMap.put("type", adapter.type); log.debug("getVioStorageVirtualAdapters() - fields: " + fieldsMap); - list.add(new Measurement(tagsMap, fieldsMap)); + list.add(new Measurement(getTimestamp(sample), tagsMap, fieldsMap)); }); }); } catch (Exception e) { @@ -790,10 +824,10 @@ class ManagedSystem extends Resource { /* // VIO Storage SSP TODO - List getViosStorageSharedStoragePools() { + List getViosStorageSharedStoragePools(int sample) { List list = new ArrayList<>(); - metrics.systemUtil.sample.viosUtil.forEach( vios -> { + metrics.systemUtil.getSample(sample).viosUtil.forEach( vios -> { vios.storage.fiberChannelAdapters.forEach( adapter -> { @@ -813,7 +847,7 @@ class ManagedSystem extends Resource { fieldsMap.put("physicalLocation", adapter.physicalLocation); log.trace("getViosStorageSharedStoragePools() - fields: " + fieldsMap.toString()); - list.add(new Measurement(tagsMap, fieldsMap)); + list.add(new Measurement(getTimestamp(sample), tagsMap, fieldsMap)); }); log.trace("getViosStorageSharedStoragePools() - VIOS: " + vios.name); diff --git a/src/main/java/biz/nellemann/hmci/ManagementConsole.java b/src/main/java/biz/nellemann/hmci/ManagementConsole.java index 20b5f0e..af6163f 100644 --- a/src/main/java/biz/nellemann/hmci/ManagementConsole.java +++ b/src/main/java/biz/nellemann/hmci/ManagementConsole.java @@ -61,19 +61,6 @@ class ManagementConsole implements Runnable { this.influxClient = influxClient; restClient = new RestClient(configuration.url, configuration.username, configuration.password, configuration.trust); - if(configuration.trace != null) { - try { - File traceDir = new File(configuration.trace); - traceDir.mkdirs(); - if(traceDir.canWrite()) { - Boolean doTrace = true; - } else { - log.warn("ManagementConsole() - can't write to trace dir: " + traceDir.toString()); - } - } catch (Exception e) { - log.error("ManagementConsole() - trace error: " + e.getMessage()); - } - } this.excludeSystems = configuration.excludeSystems; this.includeSystems = configuration.includeSystems; this.excludePartitions = configuration.excludePartitions; @@ -160,7 +147,7 @@ class ManagementConsole implements Runnable { managedSystems.clear(); for (Link link : entry.getAssociatedManagedSystems()) { - ManagedSystem managedSystem = new ManagedSystem(restClient, link.getHref()); + ManagedSystem managedSystem = new ManagedSystem(restClient, influxClient, link.getHref()); managedSystem.setExcludePartitions(excludePartitions); managedSystem.setIncludePartitions(includePartitions); managedSystem.discover(); @@ -202,63 +189,10 @@ class ManagementConsole implements Runnable { } system.refresh(); - influxClient.write(system.getDetails(), system.getTimestamp(),"server_details"); - influxClient.write(system.getMemoryMetrics(), system.getTimestamp(),"server_memory"); - influxClient.write(system.getProcessorMetrics(), system.getTimestamp(),"server_processor"); - influxClient.write(system.getPhysicalProcessorPool(), system.getTimestamp(),"server_physicalProcessorPool"); - influxClient.write(system.getSharedProcessorPools(), system.getTimestamp(),"server_sharedProcessorPool"); - - if(system.systemEnergy != null) { - system.systemEnergy.refresh(); - if(system.systemEnergy.metric != null) { - influxClient.write(system.systemEnergy.getPowerMetrics(), system.getTimestamp(), "server_energy_power"); - influxClient.write(system.systemEnergy.getThermalMetrics(), system.getTimestamp(), "server_energy_thermal"); - } - } - - influxClient.write(system.getVioDetails(), system.getTimestamp(),"vios_details"); - influxClient.write(system.getVioProcessorMetrics(), system.getTimestamp(),"vios_processor"); - influxClient.write(system.getVioMemoryMetrics(), system.getTimestamp(),"vios_memory"); - influxClient.write(system.getVioNetworkLpars(), system.getTimestamp(),"vios_network_lpars"); - influxClient.write(system.getVioNetworkVirtualAdapters(), system.getTimestamp(),"vios_network_virtual"); - influxClient.write(system.getVioNetworkSharedAdapters(), system.getTimestamp(),"vios_network_shared"); - influxClient.write(system.getVioNetworkGenericAdapters(), system.getTimestamp(),"vios_network_generic"); - influxClient.write(system.getVioStorageLpars(), system.getTimestamp(),"vios_storage_lpars"); - influxClient.write(system.getVioStorageFiberChannelAdapters(), system.getTimestamp(),"vios_storage_FC"); - influxClient.write(system.getVioStorageVirtualAdapters(), system.getTimestamp(),"vios_storage_vFC"); - influxClient.write(system.getVioStoragePhysicalAdapters(), system.getTimestamp(),"vios_storage_physical"); - // Missing: vios_storage_SSP - - system.logicalPartitions.forEach( (partition) -> { - partition.refresh(); - influxClient.write(partition.getDetails(), partition.getTimestamp(),"lpar_details"); - influxClient.write(partition.getMemoryMetrics(), partition.getTimestamp(),"lpar_memory"); - influxClient.write(partition.getProcessorMetrics(), partition.getTimestamp(),"lpar_processor"); - influxClient.write(partition.getSriovLogicalPorts(), partition.getTimestamp(),"lpar_net_sriov"); - influxClient.write(partition.getVirtualEthernetAdapterMetrics(), partition.getTimestamp(),"lpar_net_virtual"); - influxClient.write(partition.getVirtualGenericAdapterMetrics(), partition.getTimestamp(),"lpar_storage_virtual"); - influxClient.write(partition.getVirtualFibreChannelAdapterMetrics(), partition.getTimestamp(),"lpar_storage_vFC"); - }); + system.process(); }); } - - /* - private void writeTraceFile(String id, String json) { - - String fileName = String.format("%s-%s.json", id, Instant.now().toString()); - try { - log.debug("Writing trace file: " + fileName); - File traceFile = new File(traceDir, fileName); - BufferedWriter writer = new BufferedWriter(new FileWriter(traceFile)); - writer.write(json); - writer.close(); - } catch (IOException e) { - log.warn("writeTraceFile() - " + e.getMessage()); - } - } - */ - } diff --git a/src/main/java/biz/nellemann/hmci/Measurement.java b/src/main/java/biz/nellemann/hmci/Measurement.java index 5bbfbfb..763bbb8 100644 --- a/src/main/java/biz/nellemann/hmci/Measurement.java +++ b/src/main/java/biz/nellemann/hmci/Measurement.java @@ -15,14 +15,23 @@ */ package biz.nellemann.hmci; +import java.time.Instant; import java.util.Map; public class Measurement { + final Instant timestamp; final Map tags; final Map fields; Measurement(Map tags, Map fields) { + this.timestamp = Instant.now(); + this.tags = tags; + this.fields = fields; + } + + Measurement(Instant timestamp, Map tags, Map fields) { + this.timestamp = timestamp; this.tags = tags; this.fields = fields; } diff --git a/src/main/java/biz/nellemann/hmci/Resource.java b/src/main/java/biz/nellemann/hmci/Resource.java index b603cc4..3dfc9b4 100644 --- a/src/main/java/biz/nellemann/hmci/Resource.java +++ b/src/main/java/biz/nellemann/hmci/Resource.java @@ -2,6 +2,7 @@ package biz.nellemann.hmci; import biz.nellemann.hmci.dto.json.ProcessedMetrics; import biz.nellemann.hmci.dto.json.SystemUtil; +import biz.nellemann.hmci.dto.json.UtilSample; import com.fasterxml.jackson.databind.DeserializationFeature; import com.fasterxml.jackson.databind.ObjectMapper; import org.slf4j.Logger; @@ -10,14 +11,20 @@ import org.slf4j.LoggerFactory; import java.time.Instant; import java.time.format.DateTimeFormatter; import java.time.format.DateTimeParseException; +import java.util.ArrayList; -public class Resource { +public abstract class Resource { private final static Logger log = LoggerFactory.getLogger(Resource.class); private final ObjectMapper objectMapper = new ObjectMapper(); + private final ArrayList sampleHistory = new ArrayList<>(); protected SystemUtil metric; + protected final int maxNumberOfSamples = 120; + protected final int minNumberOfSamples = 5; + protected int currentNumberOfSamples = 15; + Resource() { @@ -35,6 +42,7 @@ public class Resource { try { ProcessedMetrics processedMetrics = objectMapper.readValue(json, ProcessedMetrics.class); metric = processedMetrics.systemUtil; + log.trace("deserialize() - samples: {}", metric.samples.size()); } catch (Exception e) { log.error("deserialize() - error: {}", e.getMessage()); } @@ -61,4 +69,66 @@ public class Resource { return instant; } + + Instant getTimestamp(int sampleNumber) { + Instant instant = Instant.now(); + + if (metric == null) { + return instant; + } + + String timestamp = metric.getSample(sampleNumber).sampleInfo.timestamp; + try { + log.trace("getTimeStamp() - PMC Timestamp: {}", timestamp); + DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ss[XXX][X]"); + instant = Instant.from(dateTimeFormatter.parse(timestamp)); + log.trace("getTimestamp() - Instant: {}", instant.toString()); + } catch(DateTimeParseException e) { + log.warn("getTimestamp() - parse error: {}", timestamp); + } + + return instant; + } + + + public void process() { + + if(metric == null) { + return; + } + + int samples = metric.samples.size(); + //log.info("process() - Samples to process: {}, Samples in History: {}, Current Counter: {}", samples, sampleHistory.size(), currentNumberOfSamples); + for(int i = 0; i minNumberOfSamples) { + currentNumberOfSamples--; + } + + } + + public abstract void process(int sample); + } diff --git a/src/main/java/biz/nellemann/hmci/RestClient.java b/src/main/java/biz/nellemann/hmci/RestClient.java index 560ed3c..0230f0d 100644 --- a/src/main/java/biz/nellemann/hmci/RestClient.java +++ b/src/main/java/biz/nellemann/hmci/RestClient.java @@ -29,9 +29,9 @@ public class RestClient { protected OkHttpClient httpClient; // OkHttpClient timeouts - private final static int CONNECT_TIMEOUT = 30; - private final static int WRITE_TIMEOUT = 30; - private final static int READ_TIMEOUT = 180; + private final static int CONNECT_TIMEOUT_SEC = 10; + private final static int WRITE_TIMEOUT_SEC = 30; + private final static int READ_TIMEOUT_SEC = 180; protected String authToken; protected final String baseUrl; @@ -48,6 +48,21 @@ public class RestClient { } else { this.httpClient = getSafeOkHttpClient(); } + + /* + if(configuration.trace != null) { + try { + File traceDir = new File(configuration.trace); + traceDir.mkdirs(); + if(traceDir.canWrite()) { + Boolean doTrace = true; + } else { + log.warn("ManagementConsole() - can't write to trace dir: " + traceDir.toString()); + } + } catch (Exception e) { + log.error("ManagementConsole() - trace error: " + e.getMessage()); + } + }*/ } @@ -150,7 +165,7 @@ public class RestClient { */ public synchronized String getRequest(URL url) throws IOException { - log.trace("getRequest() - URL: {}", url.toString()); + log.debug("getRequest() - URL: {}", url.toString()); Request request = new Request.Builder() .url(url) @@ -196,7 +211,7 @@ public class RestClient { String responseBody = null; try (Response responseRetry = httpClient.newCall(request).execute()) { if(responseRetry.isSuccessful()) { - responseBody = responseRetry.body().string(); + responseBody = Objects.requireNonNull(responseRetry.body()).string(); } } return responseBody; @@ -205,10 +220,6 @@ public class RestClient { /** * Send a POST request with a payload (can be null) to the HMC - * @param url - * @param payload - * @return - * @throws IOException */ public synchronized String postRequest(URL url, String payload) throws IOException { @@ -276,9 +287,9 @@ public class RestClient { OkHttpClient.Builder builder = new OkHttpClient.Builder(); builder.sslSocketFactory(sslSocketFactory, (X509TrustManager)trustAllCerts[0]); builder.hostnameVerifier((hostname, session) -> true); - builder.connectTimeout(CONNECT_TIMEOUT, TimeUnit.SECONDS); - builder.writeTimeout(WRITE_TIMEOUT, TimeUnit.SECONDS); - builder.readTimeout(READ_TIMEOUT, TimeUnit.SECONDS); + builder.connectTimeout(CONNECT_TIMEOUT_SEC, TimeUnit.SECONDS); + builder.writeTimeout(WRITE_TIMEOUT_SEC, TimeUnit.SECONDS); + builder.readTimeout(READ_TIMEOUT_SEC, TimeUnit.SECONDS); return builder.build(); } catch (KeyManagementException | NoSuchAlgorithmException e) { @@ -293,11 +304,28 @@ public class RestClient { */ private static OkHttpClient getSafeOkHttpClient() { OkHttpClient.Builder builder = new OkHttpClient.Builder(); - builder.connectTimeout(CONNECT_TIMEOUT, TimeUnit.SECONDS); - builder.writeTimeout(WRITE_TIMEOUT, TimeUnit.SECONDS); - builder.readTimeout(READ_TIMEOUT, TimeUnit.SECONDS); + builder.connectTimeout(CONNECT_TIMEOUT_SEC, TimeUnit.SECONDS); + builder.writeTimeout(WRITE_TIMEOUT_SEC, TimeUnit.SECONDS); + builder.readTimeout(READ_TIMEOUT_SEC, TimeUnit.SECONDS); return builder.build(); } + + /* + private void writeTraceFile(String id, String json) { + + String fileName = String.format("%s-%s.json", id, Instant.now().toString()); + try { + log.debug("Writing trace file: " + fileName); + File traceFile = new File(traceDir, fileName); + BufferedWriter writer = new BufferedWriter(new FileWriter(traceFile)); + writer.write(json); + writer.close(); + } catch (IOException e) { + log.warn("writeTraceFile() - " + e.getMessage()); + } + } + */ + } diff --git a/src/main/java/biz/nellemann/hmci/SystemEnergy.java b/src/main/java/biz/nellemann/hmci/SystemEnergy.java index 8e7c0b5..bd57706 100644 --- a/src/main/java/biz/nellemann/hmci/SystemEnergy.java +++ b/src/main/java/biz/nellemann/hmci/SystemEnergy.java @@ -15,15 +15,17 @@ class SystemEnergy extends Resource { private final static Logger log = LoggerFactory.getLogger(SystemEnergy.class); private final RestClient restClient; + private final InfluxClient influxClient; private final ManagedSystem managedSystem; protected String id; protected String name; - public SystemEnergy(RestClient restClient, ManagedSystem managedSystem) { + public SystemEnergy(RestClient restClient, InfluxClient influxClient, ManagedSystem managedSystem) { log.debug("SystemEnergy()"); this.restClient = restClient; + this.influxClient = influxClient; this.managedSystem = managedSystem; } @@ -32,7 +34,7 @@ class SystemEnergy extends Resource { log.debug("refresh()"); try { - String xml = restClient.getRequest(String.format("/rest/api/pcm/ManagedSystem/%s/ProcessedMetrics?Type=Energy&NoOfSamples=1", managedSystem.id)); + String xml = restClient.getRequest(String.format("/rest/api/pcm/ManagedSystem/%s/ProcessedMetrics?Type=Energy&NoOfSamples=%d", managedSystem.id, currentNumberOfSamples)); // Do not try to parse empty response if(xml == null || xml.length() <= 1) { @@ -66,8 +68,17 @@ class SystemEnergy extends Resource { + @Override + public void process(int sample) { + if(metric != null) { + log.debug("process() - sample: {}", sample); + influxClient.write(getPowerMetrics(sample), "server_energy_power"); + influxClient.write(getThermalMetrics(sample), "server_energy_thermal"); + } + } - List getPowerMetrics() { + + List getPowerMetrics(int sample) { List list = new ArrayList<>(); try { @@ -77,10 +88,10 @@ class SystemEnergy extends Resource { tagsMap.put("servername", managedSystem.name); log.trace("getPowerMetrics() - tags: {}", tagsMap); - fieldsMap.put("powerReading", metric.getSample().energyUtil.powerUtil.powerReading); + fieldsMap.put("powerReading", metric.getSample(sample).energyUtil.powerUtil.powerReading); log.trace("getPowerMetrics() - fields: {}", fieldsMap); - list.add(new Measurement(tagsMap, fieldsMap)); + list.add(new Measurement(getTimestamp(sample), tagsMap, fieldsMap)); } catch (Exception e) { log.warn("getPowerMetrics() - error: {}", e.getMessage()); } @@ -89,7 +100,7 @@ class SystemEnergy extends Resource { } - List getThermalMetrics() { + List getThermalMetrics(int sample) { List list = new ArrayList<>(); try { @@ -99,11 +110,11 @@ class SystemEnergy extends Resource { tagsMap.put("servername", managedSystem.name); log.trace("getThermalMetrics() - tags: {}", tagsMap); - metric.getSample().energyUtil.thermalUtil.cpuTemperatures.forEach((t) -> { + metric.getSample(sample).energyUtil.thermalUtil.cpuTemperatures.forEach((t) -> { fieldsMap.put("cpuTemperature_" + t.entityInstance, t.temperatureReading); }); - metric.getSample().energyUtil.thermalUtil.inletTemperatures.forEach((t) -> { + metric.getSample(sample).energyUtil.thermalUtil.inletTemperatures.forEach((t) -> { fieldsMap.put("inletTemperature_" + t.entityInstance, t.temperatureReading); }); @@ -114,7 +125,7 @@ class SystemEnergy extends Resource { log.trace("getThermalMetrics() - fields: {}", fieldsMap); - list.add(new Measurement(tagsMap, fieldsMap)); + list.add(new Measurement(getTimestamp(sample), tagsMap, fieldsMap)); } catch (Exception e) { log.warn("getThermalMetrics() - error: {}", e.getMessage()); diff --git a/src/main/java/biz/nellemann/hmci/dto/json/SampleInfo.java b/src/main/java/biz/nellemann/hmci/dto/json/SampleInfo.java index e9576e6..b0c0930 100644 --- a/src/main/java/biz/nellemann/hmci/dto/json/SampleInfo.java +++ b/src/main/java/biz/nellemann/hmci/dto/json/SampleInfo.java @@ -8,12 +8,12 @@ import java.util.List; public final class SampleInfo { @JsonProperty("timeStamp") - public String timestamp ; + public String timestamp; public String getTimeStamp() { return timestamp; } - public Integer status ; + public Integer status; @JsonProperty("errorInfo") public List errors; diff --git a/src/main/java/biz/nellemann/hmci/dto/json/SystemUtil.java b/src/main/java/biz/nellemann/hmci/dto/json/SystemUtil.java index ed24092..7a16012 100644 --- a/src/main/java/biz/nellemann/hmci/dto/json/SystemUtil.java +++ b/src/main/java/biz/nellemann/hmci/dto/json/SystemUtil.java @@ -17,6 +17,10 @@ public final class SystemUtil { @JsonProperty("utilSamples") public List samples; + public UtilSample getSample(int n) { + return samples.size() > n ? samples.get(n) : new UtilSample(); + } + public UtilSample getSample() { return samples.size() > 0 ? samples.get(0) : new UtilSample(); } diff --git a/src/main/java/biz/nellemann/hmci/dto/toml/HmcConfiguration.java b/src/main/java/biz/nellemann/hmci/dto/toml/HmcConfiguration.java index e64d2de..de3d69f 100644 --- a/src/main/java/biz/nellemann/hmci/dto/toml/HmcConfiguration.java +++ b/src/main/java/biz/nellemann/hmci/dto/toml/HmcConfiguration.java @@ -13,7 +13,7 @@ public class HmcConfiguration { public String username; public String password; - public Integer refresh = 30; + public Integer refresh = 60; public Integer discover = 120; public String trace; diff --git a/src/test/groovy/biz/nellemann/hmci/LogicalPartitionTest.groovy b/src/test/groovy/biz/nellemann/hmci/LogicalPartitionTest.groovy index 5bedd67..6367cfc 100644 --- a/src/test/groovy/biz/nellemann/hmci/LogicalPartitionTest.groovy +++ b/src/test/groovy/biz/nellemann/hmci/LogicalPartitionTest.groovy @@ -19,6 +19,9 @@ class LogicalPartitionTest extends Specification { @Shared private RestClient serviceClient + @Shared + private InfluxClient influxClient + @Shared private ManagedSystem managedSystem @@ -39,7 +42,7 @@ class LogicalPartitionTest extends Specification { MockResponses.prepareClientResponseForLogicalPartition(mockServer) serviceClient.login() - managedSystem = new ManagedSystem(serviceClient, String.format("%s/rest/api/uom/ManagementConsole/2c6b6620-e3e3-3294-aaf5-38e546ff672b/ManagedSystem/b597e4da-2aab-3f52-8616-341d62153559", serviceClient.baseUrl)); + managedSystem = new ManagedSystem(serviceClient, influxClient, String.format("%s/rest/api/uom/ManagementConsole/2c6b6620-e3e3-3294-aaf5-38e546ff672b/ManagedSystem/b597e4da-2aab-3f52-8616-341d62153559", serviceClient.baseUrl)); managedSystem.discover() logicalPartition = managedSystem.logicalPartitions.first() @@ -77,6 +80,7 @@ class LogicalPartitionTest extends Specification { then: logicalPartition.metric != null + logicalPartition.metric.samples.size() == 6; } @@ -85,9 +89,9 @@ class LogicalPartitionTest extends Specification { logicalPartition.deserialize(metricsFile.getText('UTF-8')) then: - logicalPartition.metric.getSample().lparsUtil.memory.logicalMem == 8192.000 - logicalPartition.metric.getSample().lparsUtil.processor.utilizedProcUnits == 0.001 - logicalPartition.metric.getSample().lparsUtil.network.virtualEthernetAdapters.first().receivedBytes == 276.467 + logicalPartition.metric.getSample().lparsUtil.memory.logicalMem == 16384.000 + logicalPartition.metric.getSample().lparsUtil.processor.utilizedProcUnits == 0.00793 + logicalPartition.metric.getSample().lparsUtil.network.virtualEthernetAdapters.first().receivedBytes == 54.0 } @@ -95,15 +99,13 @@ class LogicalPartitionTest extends Specification { when: logicalPartition.deserialize(metricsFile.getText('UTF-8')) - List listOfMeasurements = logicalPartition.getDetails() + List listOfMeasurements = logicalPartition.getDetails(0) then: listOfMeasurements.size() == 1 listOfMeasurements.first().fields['affinityScore'] == 100.0 - listOfMeasurements.first().fields['osType'] == 'Linux' - listOfMeasurements.first().fields['type'] == 'AIX/Linux' - listOfMeasurements.first().tags['lparname'] == 'rhel8-ocp-helper' - + listOfMeasurements.first().fields['osType'] == 'IBM i' + listOfMeasurements.first().fields['type'] == 'IBMi' } @@ -111,11 +113,11 @@ class LogicalPartitionTest extends Specification { when: logicalPartition.deserialize(metricsFile.getText('UTF-8')) - List listOfMeasurements = logicalPartition.getMemoryMetrics() + List listOfMeasurements = logicalPartition.getMemoryMetrics(0) then: listOfMeasurements.size() == 1 - listOfMeasurements.first().fields['logicalMem'] == 8192.000 + listOfMeasurements.first().fields['logicalMem'] == 16384.0 listOfMeasurements.first().tags['lparname'] == 'rhel8-ocp-helper' } @@ -125,11 +127,11 @@ class LogicalPartitionTest extends Specification { when: logicalPartition.deserialize(metricsFile.getText('UTF-8')) - List listOfMeasurements = logicalPartition.getProcessorMetrics() + List listOfMeasurements = logicalPartition.getProcessorMetrics(0) then: listOfMeasurements.size() == 1 - listOfMeasurements.first().fields['utilizedProcUnits'] == 0.001 + listOfMeasurements.first().fields['utilizedProcUnits'] == 0.00793 listOfMeasurements.first().tags['lparname'] == 'rhel8-ocp-helper' } @@ -139,12 +141,12 @@ class LogicalPartitionTest extends Specification { when: logicalPartition.deserialize(metricsFile.getText('UTF-8')) - List listOfMeasurements = logicalPartition.getVirtualEthernetAdapterMetrics() + List listOfMeasurements = logicalPartition.getVirtualEthernetAdapterMetrics(0) then: listOfMeasurements.size() == 1 - listOfMeasurements.first().fields['receivedBytes'] == 276.467 - listOfMeasurements.first().tags['location'] == 'U9009.42A.21F64EV-V13-C32' + listOfMeasurements.first().fields['receivedBytes'] == 54.0 + listOfMeasurements.first().tags['location'] == 'U9009.42A.21F64EV-V11-C7' } @@ -152,25 +154,13 @@ class LogicalPartitionTest extends Specification { when: logicalPartition.deserialize(metricsFile.getText('UTF-8')) - List listOfMeasurements = logicalPartition.getVirtualFibreChannelAdapterMetrics() + List listOfMeasurements = logicalPartition.getVirtualFibreChannelAdapterMetrics(0) then: - listOfMeasurements.size() == 4 - listOfMeasurements.first().fields['writeBytes'] == 6690.133 + listOfMeasurements.size() == 2 + listOfMeasurements.first().fields['writeBytes'] == 4454.4 listOfMeasurements.first().tags['viosId'] == '1' } - - void "test getVirtualGenericAdapterMetrics"() { - - when: - logicalPartition.deserialize(metricsFile.getText('UTF-8')) - List listOfMeasurements = logicalPartition.getVirtualGenericAdapterMetrics() - - then: - listOfMeasurements.size() == 1 - listOfMeasurements.first().fields['readBytes'] == 0.0 - } - } diff --git a/src/test/groovy/biz/nellemann/hmci/ManagedSystemTest.groovy b/src/test/groovy/biz/nellemann/hmci/ManagedSystemTest.groovy index 0f9c473..88f1cdc 100644 --- a/src/test/groovy/biz/nellemann/hmci/ManagedSystemTest.groovy +++ b/src/test/groovy/biz/nellemann/hmci/ManagedSystemTest.groovy @@ -17,6 +17,9 @@ class ManagedSystemTest extends Specification { @Shared private RestClient serviceClient + @Shared + private InfluxClient influxClient + @Shared private ManagedSystem managedSystem @@ -33,7 +36,7 @@ class ManagedSystemTest extends Specification { MockResponses.prepareClientResponseForVirtualIOServer(mockServer) MockResponses.prepareClientResponseForLogicalPartition(mockServer) serviceClient.login() - managedSystem = new ManagedSystem(serviceClient, String.format("%s/rest/api/uom/ManagementConsole/2c6b6620-e3e3-3294-aaf5-38e546ff672b/ManagedSystem/b597e4da-2aab-3f52-8616-341d62153559", serviceClient.baseUrl)); + managedSystem = new ManagedSystem(serviceClient, influxClient, String.format("%s/rest/api/uom/ManagementConsole/2c6b6620-e3e3-3294-aaf5-38e546ff672b/ManagedSystem/b597e4da-2aab-3f52-8616-341d62153559", serviceClient.baseUrl)); managedSystem.discover() metricsFile = new File(getClass().getResource('/2-managed-system-perf-data2.json').toURI()) } @@ -55,7 +58,7 @@ class ManagedSystemTest extends Specification { when: managedSystem.deserialize(metricsFile.getText('UTF-8')) - List listOfMeasurements = managedSystem.getDetails() + List listOfMeasurements = managedSystem.getDetails(0) then: listOfMeasurements.size() == 1 @@ -68,7 +71,7 @@ class ManagedSystemTest extends Specification { when: managedSystem.deserialize(metricsFile.getText('UTF-8')) - List listOfMeasurements = managedSystem.getMemoryMetrics() + List listOfMeasurements = managedSystem.getMemoryMetrics(0) then: listOfMeasurements.size() == 1 @@ -79,7 +82,7 @@ class ManagedSystemTest extends Specification { when: managedSystem.deserialize(metricsFile.getText('UTF-8')) - List listOfMeasurements = managedSystem.getProcessorMetrics() + List listOfMeasurements = managedSystem.getProcessorMetrics(0) then: listOfMeasurements.size() == 1 @@ -90,7 +93,7 @@ class ManagedSystemTest extends Specification { when: managedSystem.deserialize(metricsFile.getText('UTF-8')) - List listOfMeasurements = managedSystem.getSharedProcessorPools() + List listOfMeasurements = managedSystem.getSharedProcessorPools(0) then: listOfMeasurements.size() == 4 @@ -100,7 +103,7 @@ class ManagedSystemTest extends Specification { void "test getPhysicalProcessorPool"() { when: managedSystem.deserialize(metricsFile.getText('UTF-8')) - List listOfMeasurements = managedSystem.getPhysicalProcessorPool() + List listOfMeasurements = managedSystem.getPhysicalProcessorPool(0) then: listOfMeasurements.size() == 1 diff --git a/src/test/resources/2-managed-system-perf-data.json b/src/test/resources/2-managed-system-perf-data.json index 53dc5a8..0e75340 100644 --- a/src/test/resources/2-managed-system-perf-data.json +++ b/src/test/resources/2-managed-system-perf-data.json @@ -1,805 +1,6319 @@ { - "systemUtil": { - "utilInfo": { - "version": "1.3.0", - "metricType": "Processed", - "frequency": 30, - "startTimeStamp": "2020-08-10T21:10:30+0200", - "endTimeStamp": "2020-08-10T21:10:30+0200", - "mtms": "8247-22L*213C1BA", - "name": "S822L-8247-213C1BA", - "uuid": "e09834d1-c930-3883-bdad-405d8e26e166", - "metricArrayOrder": [ - "AVG" - ] - }, - "utilSamples": [ + "systemUtil": { + "utilInfo": { + "version": "1.3.0", + "metricType": "Processed", + "frequency": 30, + "startTimeStamp": "2022-12-02T07:44:00+0100", + "endTimeStamp": "2022-12-02T07:46:00+0100", + "mtms": "9009-42A*21F64EV", + "name": "Server-9009-42A-SN21F64EV", + "uuid": "b597e4da-2aab-3f52-8616-341d62153559", + "metricArrayOrder": [ + "AVG" + ] + }, + "utilSamples": [ + { + "sampleType": "ManagedSystem", + "sampleInfo": { + "timeStamp": "2022-12-02T07:44:00+0100", + "status": 2, + "errorInfo": [ { - "sampleType": "ManagedSystem", - "sampleInfo": { - "timeStamp": "2020-08-10T21:10:30+0200", - "status": 0 - }, - "systemFirmwareUtil": { - "utilizedProcUnits": [ - 0.000 - ], - "assignedMem": [ - 5632.000 - ] - }, - "serverUtil": { - "processor": { - "totalProcUnits": [ - 24.000 - ], - "utilizedProcUnits": [ - 0.027 - ], - "availableProcUnits": [ - 16.000 - ], - "configurableProcUnits": [ - 24.000 - ] - }, - "memory": { - "totalMem": [ - 1048576.000 - ], - "availableMem": [ - 1001984.000 - ], - "configurableMem": [ - 1048576.000 - ], - "assignedMemToLpars": [ - 40960.000 - ] - }, - "physicalProcessorPool": { - "assignedProcUnits": [ - 23.767 - ], - "utilizedProcUnits": [ - 0.007 - ], - "availableProcUnits": [ - 23.760 - ], - "configuredProcUnits": [ - 0.000 - ], - "borrowedProcUnits": [ - 16.000 - ] - }, - "sharedProcessorPool": [ - { - "id": 0, - "name": "DefaultPool", - "assignedProcUnits": [ - 23.767 - ], - "utilizedProcUnits": [ - 0.006 - ], - "availableProcUnits": [ - 23.761 - ], - "configuredProcUnits": [ - 6.000 - ], - "borrowedProcUnits": [ - 16.000 - ] - } - ] - }, - "viosUtil": [ - { - "id": 1, - "uuid": "2F30379A-860B-4661-A24E-CD8E449C81AC", - "name": "VIOS1", - "state": "Running", - "affinityScore": 100, - "memory": { - "assignedMem": [ - 8192.000 - ], - "utilizedMem": [ - 2093.000 - ] - }, - "processor": { - "weight": 0, - "mode": "share_idle_procs_active", - "maxVirtualProcessors": [ - 2.000 - ], - "currentVirtualProcessors": [ - 0.000 - ], - "maxProcUnits": [ - 2.000 - ], - "entitledProcUnits": [ - 1.000 - ], - "utilizedProcUnits": [ - 0.011 - ], - "utilizedCappedProcUnits": [ - 0.120 - ], - "utilizedUncappedProcUnits": [ - 0.000 - ], - "idleProcUnits": [ - 0.109 - ], - "donatedProcUnits": [ - 0.880 - ], - "timeSpentWaitingForDispatch": [ - 0.000 - ], - "timePerInstructionExecution": [ - 50.000 - ] - }, - "network": { - "clientLpars": [ - "62F4D488-C838-41E2-B83B-E68E004E3B63" - ], - "genericAdapters": [ - { - "id": "ent2", - "type": "physical", - "physicalLocation": "U78CB.001.WZS0BYF-P1-C10-T3", - "receivedPackets": [ - 13.100 - ], - "sentPackets": [ - 8.700 - ], - "droppedPackets": [ - 0.000 - ], - "sentBytes": [ - 3511.833 - ], - "receivedBytes": [ - 1614.567 - ], - "transferredBytes": [ - 5126.400 - ] - }, - { - "id": "ent6", - "type": "virtual", - "physicalLocation": "U8247.22L.213C1BA-V1-C3-T1", - "receivedPackets": [ - 5.733 - ], - "sentPackets": [ - 1.600 - ], - "droppedPackets": [ - 0.000 - ], - "sentBytes": [ - 1378.267 - ], - "receivedBytes": [ - 490.500 - ], - "transferredBytes": [ - 1868.767 - ] - }, - { - "id": "ent4", - "type": "virtual", - "physicalLocation": "U8247.22L.213C1BA-V1-C2-T1", - "receivedPackets": [ - 9.700 - ], - "sentPackets": [ - 17.200 - ], - "droppedPackets": [ - 0.000 - ], - "sentBytes": [ - 4835.967 - ], - "receivedBytes": [ - 4217.833 - ], - "transferredBytes": [ - 9053.800 - ] - } - ], - "sharedAdapters": [ - { - "id": "ent5", - "type": "sea", - "physicalLocation": "U8247.22L.213C1BA-V1-C2-T1", - "receivedPackets": [ - 22.800 - ], - "sentPackets": [ - 25.900 - ], - "droppedPackets": [ - 0.000 - ], - "sentBytes": [ - 8347.800 - ], - "receivedBytes": [ - 5832.400 - ], - "transferredBytes": [ - 14180.200 - ], - "bridgedAdapters": [ - "ent2", - "ent4", - "ent4" - ] - } - ], - "virtualEthernetAdapters": [ - { - "physicalLocation": "U8247.22L.213C1BA-V1-C2", - "vlanId": 1, - "vswitchId": 0, - "isPortVlanId": true, - "receivedPackets": [ - 16.167 - ], - "sentPackets": [ - 20.133 - ], - "droppedPackets": [ - 0.000 - ], - "sentBytes": [ - 3155.500 - ], - "receivedBytes": [ - 5089.900 - ], - "receivedPhysicalPackets": [ - 0.000 - ], - "sentPhysicalPackets": [ - 0.000 - ], - "droppedPhysicalPackets": [ - 0.000 - ], - "sentPhysicalBytes": [ - 0.000 - ], - "receivedPhysicalBytes": [ - 0.000 - ], - "transferredBytes": [ - 8245.400 - ], - "transferredPhysicalBytes": [ - 0.000 - ] - }, - { - "physicalLocation": "U8247.22L.213C1BA-V1-C3", - "vlanId": 1, - "vswitchId": 0, - "isPortVlanId": true, - "receivedPackets": [ - 8.800 - ], - "sentPackets": [ - 4.567 - ], - "droppedPackets": [ - 0.000 - ], - "sentBytes": [ - 2086.400 - ], - "receivedBytes": [ - 1169.400 - ], - "receivedPhysicalPackets": [ - 8.800 - ], - "sentPhysicalPackets": [ - 4.567 - ], - "droppedPhysicalPackets": [ - 0.000 - ], - "sentPhysicalBytes": [ - 2086.400 - ], - "receivedPhysicalBytes": [ - 1169.400 - ], - "transferredBytes": [ - 3255.800 - ], - "transferredPhysicalBytes": [ - 3255.800 - ] - } - ] - }, - "storage": { - "clientLpars": [ - "62F4D488-C838-41E2-B83B-E68E004E3B63" - ], - "genericPhysicalAdapters": [ - { - "id": "sissas0", - "type": "sas", - "physicalLocation": "U78CB.001.WZS0BYF-P1-C14-T1", - "numOfReads": [ - 0.000 - ], - "numOfWrites": [ - 19.467 - ], - "readBytes": [ - 0.000 - ], - "writeBytes": [ - 9966.933 - ], - "transmittedBytes": [ - 9966.933 - ] - } - ], - "genericVirtualAdapters": [ - { - "id": "vhost1", - "type": "virtual", - "physicalLocation": "U8247.22L.213C1BA-V1-C6", - "numOfReads": [ - 0.000 - ], - "numOfWrites": [ - 0.000 - ], - "readBytes": [ - 0.000 - ], - "writeBytes": [ - 0.000 - ], - "transmittedBytes": [ - 0.000 - ] - }, - { - "id": "vhost0", - "type": "virtual", - "physicalLocation": "U8247.22L.213C1BA-V1-C5", - "numOfReads": [ - 0.467 - ], - "numOfWrites": [ - 0.467 - ], - "readBytes": [ - 238.933 - ], - "writeBytes": [ - 238.933 - ], - "transmittedBytes": [ - 477.866 - ] - }, - { - "id": "vhost2", - "type": "virtual", - "physicalLocation": "U8247.22L.213C1BA-V1-C7", - "numOfReads": [ - 0.000 - ], - "numOfWrites": [ - 0.000 - ], - "readBytes": [ - 0.000 - ], - "writeBytes": [ - 0.000 - ], - "transmittedBytes": [ - 0.000 - ] - } - ], - "fiberChannelAdapters": [ - { - "id": "fcs0", - "wwpn": "10000090faba5108", - "physicalLocation": "U78CB.001.WZS0BYF-P1-C12-T1", - "numOfPorts": 3, - "numOfReads": [ - 0.000 - ], - "numOfWrites": [ - 0.067 - ], - "readBytes": [ - 0.000 - ], - "writeBytes": [ - 4369.067 - ], - "runningSpeed": [ - 8.000 - ], - "transmittedBytes": [ - 4369.067 - ] - }, - { - "id": "fcs1", - "wwpn": "10000090faba5109", - "physicalLocation": "U78CB.001.WZS0BYF-P1-C12-T2", - "numOfPorts": 0, - "numOfReads": [ - 0.000 - ], - "numOfWrites": [ - 0.000 - ], - "readBytes": [ - 0.000 - ], - "writeBytes": [ - 0.000 - ], - "runningSpeed": [ - 0.000 - ], - "transmittedBytes": [ - 0.000 - ] - } - ] - } - }, - { - "id": 2, - "uuid": "2BA128CE-38E4-4522-B823-7471633C2717", - "name": "VIOS2", - "state": "Running", - "affinityScore": 100, - "memory": { - "assignedMem": [ - 8192.000 - ], - "utilizedMem": [ - 2116.000 - ] - }, - "processor": { - "weight": 0, - "mode": "share_idle_procs_active", - "maxVirtualProcessors": [ - 2.000 - ], - "currentVirtualProcessors": [ - 0.000 - ], - "maxProcUnits": [ - 2.000 - ], - "entitledProcUnits": [ - 1.000 - ], - "utilizedProcUnits": [ - 0.009 - ], - "utilizedCappedProcUnits": [ - 0.113 - ], - "utilizedUncappedProcUnits": [ - 0.000 - ], - "idleProcUnits": [ - 0.104 - ], - "donatedProcUnits": [ - 0.887 - ], - "timeSpentWaitingForDispatch": [ - 0.000 - ], - "timePerInstructionExecution": [ - 51.000 - ] - }, - "network": { - "genericAdapters": [ - { - "id": "ent6", - "type": "virtual", - "physicalLocation": "U8247.22L.213C1BA-V2-C3-T1", - "receivedPackets": [ - 5.967 - ], - "sentPackets": [ - 1.967 - ], - "droppedPackets": [ - 0.000 - ], - "sentBytes": [ - 1340.100 - ], - "receivedBytes": [ - 536.100 - ], - "transferredBytes": [ - 1876.200 - ] - }, - { - "id": "ent4", - "type": "virtual", - "physicalLocation": "U8247.22L.213C1BA-V2-C2-T1", - "receivedPackets": [ - 4.667 - ], - "sentPackets": [ - 1.000 - ], - "droppedPackets": [ - 0.000 - ], - "sentBytes": [ - 706.000 - ], - "receivedBytes": [ - 3294.667 - ], - "transferredBytes": [ - 4000.667 - ] - }, - { - "id": "ent2", - "type": "physical", - "physicalLocation": "U78CB.001.WZS0BYF-P1-C6-T3", - "receivedPackets": [ - 6.000 - ], - "sentPackets": [ - 0.000 - ], - "droppedPackets": [ - 0.000 - ], - "sentBytes": [ - 0.000 - ], - "receivedBytes": [ - 420.167 - ], - "transferredBytes": [ - 420.167 - ] - } - ], - "sharedAdapters": [ - { - "id": "ent5", - "type": "sea", - "physicalLocation": "U8247.22L.213C1BA-V2-C2-T1", - "receivedPackets": [ - 10.667 - ], - "sentPackets": [ - 1.000 - ], - "droppedPackets": [ - 0.000 - ], - "sentBytes": [ - 706.000 - ], - "receivedBytes": [ - 3714.833 - ], - "transferredBytes": [ - 4420.833 - ], - "bridgedAdapters": [ - "ent2", - "ent4", - "ent4" - ] - } - ], - "virtualEthernetAdapters": [ - { - "physicalLocation": "U8247.22L.213C1BA-V2-C2", - "vlanId": 1, - "vswitchId": 0, - "isPortVlanId": true, - "receivedPackets": [ - 0.000 - ], - "sentPackets": [ - 0.000 - ], - "droppedPackets": [ - 0.000 - ], - "sentBytes": [ - 0.000 - ], - "receivedBytes": [ - 0.000 - ], - "receivedPhysicalPackets": [ - 0.000 - ], - "sentPhysicalPackets": [ - 0.000 - ], - "droppedPhysicalPackets": [ - 0.000 - ], - "sentPhysicalBytes": [ - 0.000 - ], - "receivedPhysicalBytes": [ - 0.000 - ], - "transferredBytes": [ - 0.000 - ], - "transferredPhysicalBytes": [ - 0.000 - ] - }, - { - "physicalLocation": "U8247.22L.213C1BA-V2-C3", - "vlanId": 1, - "vswitchId": 0, - "isPortVlanId": true, - "receivedPackets": [ - 8.467 - ], - "sentPackets": [ - 4.333 - ], - "droppedPackets": [ - 0.000 - ], - "sentBytes": [ - 1849.500 - ], - "receivedBytes": [ - 1100.000 - ], - "receivedPhysicalPackets": [ - 8.467 - ], - "sentPhysicalPackets": [ - 4.333 - ], - "droppedPhysicalPackets": [ - 0.000 - ], - "sentPhysicalBytes": [ - 1849.500 - ], - "receivedPhysicalBytes": [ - 1100.000 - ], - "transferredBytes": [ - 2949.500 - ], - "transferredPhysicalBytes": [ - 2949.500 - ] - } - ] - }, - "storage": { - "clientLpars": [ - "62F4D488-C838-41E2-B83B-E68E004E3B63" - ], - "genericPhysicalAdapters": [ - { - "id": "sissas1", - "type": "sas", - "physicalLocation": "U78CB.001.WZS0BYF-P1-C15-T1", - "numOfReads": [ - 0.000 - ], - "numOfWrites": [ - 12.000 - ], - "readBytes": [ - 0.000 - ], - "writeBytes": [ - 6144.000 - ], - "transmittedBytes": [ - 6144.000 - ] - } - ], - "fiberChannelAdapters": [ - { - "id": "fcs1", - "wwpn": "10000090fab674d7", - "physicalLocation": "U78CB.001.WZS0BYF-P1-C2-T2", - "numOfPorts": 0, - "numOfReads": [ - 0.000 - ], - "numOfWrites": [ - 0.000 - ], - "readBytes": [ - 0.000 - ], - "writeBytes": [ - 0.000 - ], - "runningSpeed": [ - 0.000 - ], - "transmittedBytes": [ - 0.000 - ] - }, - { - "id": "fcs0", - "wwpn": "10000090fab674d6", - "physicalLocation": "U78CB.001.WZS0BYF-P1-C2-T1", - "numOfPorts": 3, - "numOfReads": [ - 0.000 - ], - "numOfWrites": [ - 0.067 - ], - "readBytes": [ - 0.000 - ], - "writeBytes": [ - 4369.067 - ], - "runningSpeed": [ - 8.000 - ], - "transmittedBytes": [ - 4369.067 - ] - } - ] - } - } - ] + "errId": "4002", + "errMsg": "vios: 2 is not in running state on Managed System: 9009-42A*21F64EV", + "uuid": "19D6097E-763E-4B64-A48A-A285B21E1D0C", + "reportedBy": "VirtualIOServer", + "occurrenceCount": 1 } + ] + }, + "systemFirmwareUtil": { + "utilizedProcUnits": [ + 0.00314 + ], + "assignedMem": [ + 40448 + ] + }, + "serverUtil": { + "processor": { + "totalProcUnits": [ + 24 + ], + "utilizedProcUnits": [ + 1.10585 + ], + "availableProcUnits": [ + 4.15 + ], + "configurableProcUnits": [ + 24 + ] + }, + "memory": { + "totalMem": [ + 1048576 + ], + "availableMem": [ + 66048 + ], + "configurableMem": [ + 1048576 + ], + "assignedMemToLpars": [ + 942080 + ], + "virtualPersistentMem": [ + 0 + ] + }, + "physicalProcessorPool": { + "assignedProcUnits": [ + 21 + ], + "utilizedProcUnits": [ + 0.08316 + ], + "availableProcUnits": [ + 20.91684 + ], + "configuredProcUnits": [ + 0 + ], + "borrowedProcUnits": [ + 4 + ] + }, + "sharedProcessorPool": [ + { + "id": 0, + "name": "DefaultPool", + "assignedProcUnits": [ + 21 + ], + "utilizedProcUnits": [ + 0.04451 + ], + "availableProcUnits": [ + 20.95549 + ], + "configuredProcUnits": [ + 13.85 + ], + "borrowedProcUnits": [ + 4 + ] + }, + { + "id": 1, + "name": "SharedPool01", + "assignedProcUnits": [ + 4 + ], + "utilizedProcUnits": [ + 0 + ], + "availableProcUnits": [ + 4 + ] + }, + { + "id": 2, + "name": "SharedPool02", + "assignedProcUnits": [ + 4 + ], + "utilizedProcUnits": [ + 0 + ], + "availableProcUnits": [ + 4 + ] + }, + { + "id": 3, + "name": "SharedPool03", + "assignedProcUnits": [ + 1 + ], + "utilizedProcUnits": [ + 0 + ], + "availableProcUnits": [ + 1 + ], + "configuredProcUnits": [ + 1 + ] + } + ], + "network": { + "sriovAdapters": [ + { + "drcIndex": "553779219", + "physicalPorts": [ + { + "id": 3, + "physicalLocation": "U78D2.001.WZS0B5H-P1-C11-T4", + "receivedPackets": [ + 0 + ], + "sentPackets": [ + 0 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 0 + ], + "receivedBytes": [ + 0 + ], + "errorIn": [ + 0 + ], + "errorOut": [ + 0 + ], + "transferredBytes": [ + 0 + ] + }, + { + "id": 2, + "physicalLocation": "U78D2.001.WZS0B5H-P1-C11-T3", + "receivedPackets": [ + 0 + ], + "sentPackets": [ + 0 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 0 + ], + "receivedBytes": [ + 0 + ], + "errorIn": [ + 0 + ], + "errorOut": [ + 0 + ], + "transferredBytes": [ + 0 + ] + }, + { + "id": 1, + "physicalLocation": "U78D2.001.WZS0B5H-P1-C11-T2", + "receivedPackets": [ + 0 + ], + "sentPackets": [ + 0 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 0 + ], + "receivedBytes": [ + 0 + ], + "errorIn": [ + 0 + ], + "errorOut": [ + 0 + ], + "transferredBytes": [ + 0 + ] + }, + { + "id": 0, + "physicalLocation": "U78D2.001.WZS0B5H-P1-C11-T1", + "receivedPackets": [ + 0 + ], + "sentPackets": [ + 0 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 0 + ], + "receivedBytes": [ + 0 + ], + "errorIn": [ + 0 + ], + "errorOut": [ + 0 + ], + "transferredBytes": [ + 0 + ] + } + ] + }, + { + "drcIndex": "553713688", + "physicalPorts": [ + { + "id": 0, + "physicalLocation": "U78D2.001.WZS0B5H-P1-C8-T1", + "receivedPackets": [ + 0 + ], + "sentPackets": [ + 0 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 0 + ], + "receivedBytes": [ + 0 + ], + "errorIn": [ + 0 + ], + "errorOut": [ + 0 + ], + "transferredBytes": [ + 0 + ] + }, + { + "id": 1, + "physicalLocation": "U78D2.001.WZS0B5H-P1-C8-T2", + "receivedPackets": [ + 0 + ], + "sentPackets": [ + 0 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 0 + ], + "receivedBytes": [ + 0 + ], + "errorIn": [ + 0 + ], + "errorOut": [ + 0 + ], + "transferredBytes": [ + 0 + ] + }, + { + "id": 2, + "physicalLocation": "U78D2.001.WZS0B5H-P1-C8-T3", + "receivedPackets": [ + 0 + ], + "sentPackets": [ + 0 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 0 + ], + "receivedBytes": [ + 0 + ], + "errorIn": [ + 0 + ], + "errorOut": [ + 0 + ], + "transferredBytes": [ + 0 + ] + }, + { + "id": 3, + "physicalLocation": "U78D2.001.WZS0B5H-P1-C8-T4", + "receivedPackets": [ + 0 + ], + "sentPackets": [ + 0 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 0 + ], + "receivedBytes": [ + 0 + ], + "errorIn": [ + 0 + ], + "errorOut": [ + 0 + ], + "transferredBytes": [ + 0 + ] + } + ] + } + ] + } + }, + "viosUtil": [ + { + "id": 1, + "uuid": "6B1BF965-26DE-42F1-83AC-58C2A95D221C", + "name": "P924VIO1", + "state": "Running", + "affinityScore": 100, + "memory": { + "assignedMem": [ + 4096 + ], + "utilizedMem": [ + 3089 + ], + "virtualPersistentMem": [ + 0 + ] + }, + "processor": { + "weight": 0, + "mode": "share_idle_procs", + "maxVirtualProcessors": [ + 2 + ], + "currentVirtualProcessors": [ + 0 + ], + "maxProcUnits": [ + 2 + ], + "entitledProcUnits": [ + 1 + ], + "utilizedProcUnits": [ + 0.01338 + ], + "utilizedCappedProcUnits": [ + 1 + ], + "utilizedUncappedProcUnits": [ + 0 + ], + "idleProcUnits": [ + 0.98662 + ], + "donatedProcUnits": [ + 0 + ], + "timeSpentWaitingForDispatch": [ + 0 + ], + "timePerInstructionExecution": [ + 2 + ] + }, + "network": { + "clientLpars": [ + "07F4342319494029801548C492523860", + "0ADFFB82-B765-4B24-BE35-38D9EE1E3E81", + "396117F4-A59F-44E1-945C-B8B9EE9ABD29", + "2C1D43AF-C6EC-49E5-AF8E-FE3A5879D356", + "07F43423-1949-4029-8015-48C492523860" + ], + "genericAdapters": [ + { + "id": "ent8", + "type": "physical", + "physicalLocation": "U78D2.001.WZS0B5H-P1-C7-T2", + "receivedPackets": [ + 1.9 + ], + "sentPackets": [ + 1.133 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 763.933 + ], + "receivedBytes": [ + 253.833 + ], + "transferredBytes": [ + 1017.766 + ] + }, + { + "id": "ent4", + "type": "virtual", + "physicalLocation": "U9009.42A.21F64EV-V1-C2-T1", + "receivedPackets": [ + 1.433 + ], + "sentPackets": [ + 7.833 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 4106.967 + ], + "receivedBytes": [ + 470.833 + ], + "transferredBytes": [ + 4577.8 + ] + }, + { + "id": "ent7", + "type": "physical", + "physicalLocation": "U78D2.001.WZS0B5H-P1-C7-T1", + "receivedPackets": [ + 2.8 + ], + "sentPackets": [ + 1.433 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 426.8 + ], + "receivedBytes": [ + 243.5 + ], + "transferredBytes": [ + 670.3 + ] + } + ], + "sharedAdapters": [ + { + "id": "ent5", + "type": "sea", + "physicalLocation": "U9009.42A.21F64EV-V1-C2-T1", + "receivedPackets": [ + 4.233 + ], + "sentPackets": [ + 9.267 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 4533.767 + ], + "receivedBytes": [ + 714.333 + ], + "transferredBytes": [ + 5248.1 + ], + "bridgedAdapters": [ + "ent7", + "ent4", + "ent4" + ] + } + ], + "virtualEthernetAdapters": [ + { + "physicalLocation": "U9009.42A.21F64EV-V1-C2", + "vlanId": 1, + "vswitchId": 0, + "isPortVlanId": true, + "receivedPackets": [ + 1.133 + ], + "sentPackets": [ + 1.8 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 158.633 + ], + "receivedBytes": [ + 434.2 + ], + "receivedPhysicalPackets": [ + 0 + ], + "sentPhysicalPackets": [ + 0 + ], + "droppedPhysicalPackets": [ + 0 + ], + "sentPhysicalBytes": [ + 0 + ], + "receivedPhysicalBytes": [ + 0 + ], + "transferredBytes": [ + 592.833 + ], + "transferredPhysicalBytes": [ + 0 + ] + } + ], + "sriovLogicalPorts": [ + { + "drcIndex": "654327812", + "physicalLocation": "U78D2.001.WZS0B5H-P1-C8-T1-S4", + "physicalDrcIndex": "553713688", + "physicalPortId": 0, + "clientPartitionUUID": "07F4342319494029801548C492523860", + "vnicDeviceMode": "NonVNIC", + "configurationType": "Ethernet", + "receivedPackets": [ + 0 + ], + "sentPackets": [ + 0 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 0 + ], + "receivedBytes": [ + 0 + ], + "errorIn": [ + 0 + ], + "errorOut": [ + 0 + ], + "transferredBytes": [ + 0 + ] + }, + { + "drcIndex": "654344195", + "physicalLocation": "U78D2.001.WZS0B5H-P1-C11-T1-S3", + "physicalDrcIndex": "553779219", + "physicalPortId": 0, + "clientPartitionUUID": "07F4342319494029801548C492523860", + "vnicDeviceMode": "NonVNIC", + "configurationType": "Ethernet", + "receivedPackets": [ + 0 + ], + "sentPackets": [ + 0 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 0 + ], + "receivedBytes": [ + 0 + ], + "errorIn": [ + 0 + ], + "errorOut": [ + 0 + ], + "transferredBytes": [ + 0 + ] + }, + { + "drcIndex": "654327809", + "physicalLocation": "U78D2.001.WZS0B5H-P1-C8-T2-S1", + "physicalDrcIndex": "553713688", + "physicalPortId": 1, + "clientPartitionUUID": "07F4342319494029801548C492523860", + "vnicDeviceMode": "NonVNIC", + "configurationType": "Ethernet", + "receivedPackets": [ + 0 + ], + "sentPackets": [ + 0 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 0 + ], + "receivedBytes": [ + 0 + ], + "errorIn": [ + 0 + ], + "errorOut": [ + 0 + ], + "transferredBytes": [ + 0 + ] + } + ] + }, + "storage": { + "clientLpars": [ + "0ADFFB82-B765-4B24-BE35-38D9EE1E3E81", + "396117F4-A59F-44E1-945C-B8B9EE9ABD29", + "2C1D43AF-C6EC-49E5-AF8E-FE3A5879D356", + "07F43423-1949-4029-8015-48C492523860" + ], + "genericPhysicalAdapters": [ + { + "id": "usbhc0", + "type": "sas", + "physicalLocation": "U78D2.001.WZS0B5H-P1", + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + }, + { + "id": "nvme0", + "type": "sas", + "physicalLocation": "U78D2.001.WZS0B5H-P1-C50-C1", + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 1.067 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 546.133 + ], + "transmittedBytes": [ + 546.133 + ] + } + ], + "genericVirtualAdapters": [ + { + "id": "vhost0", + "type": "virtual", + "physicalLocation": "U9009.42A.21F64EV-V1-C3", + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + }, + { + "id": "vhost9", + "type": "virtual", + "physicalLocation": "U9009.42A.21F64EV-V1-C26", + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + }, + { + "id": "vhost18", + "type": "virtual", + "physicalLocation": "U9009.42A.21F64EV-V1-C48", + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + }, + { + "id": "vhost6", + "type": "virtual", + "physicalLocation": "U9009.42A.21F64EV-V1-C15", + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + }, + { + "id": "vhost5", + "type": "virtual", + "physicalLocation": "U9009.42A.21F64EV-V1-C8", + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + }, + { + "id": "vhost1", + "type": "virtual", + "physicalLocation": "U9009.42A.21F64EV-V1-C4", + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + }, + { + "id": "vhost2", + "type": "virtual", + "physicalLocation": "U9009.42A.21F64EV-V1-C5", + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + }, + { + "id": "vhost3", + "type": "virtual", + "physicalLocation": "U9009.42A.21F64EV-V1-C6", + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + }, + { + "id": "vhost4", + "type": "virtual", + "physicalLocation": "U9009.42A.21F64EV-V1-C7", + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + }, + { + "id": "vhost16", + "type": "virtual", + "physicalLocation": "U9009.42A.21F64EV-V1-C47", + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + }, + { + "id": "vhost11", + "type": "virtual", + "physicalLocation": "U9009.42A.21F64EV-V1-C14", + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + }, + { + "id": "vhost8", + "type": "virtual", + "physicalLocation": "U9009.42A.21F64EV-V1-C11", + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + }, + { + "id": "vhost12", + "type": "virtual", + "physicalLocation": "U9009.42A.21F64EV-V1-C34", + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + }, + { + "id": "vhost7", + "type": "virtual", + "physicalLocation": "U9009.42A.21F64EV-V1-C12", + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + }, + { + "id": "vhost17", + "type": "virtual", + "physicalLocation": "U9009.42A.21F64EV-V1-C95", + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + } + ], + "fiberChannelAdapters": [ + { + "id": "fcs0", + "wwpn": "100000109b89aca8", + "physicalLocation": "U78D2.001.WZS0B5H-P1-C2-T1", + "numOfPorts": 5, + "numOfReads": [ + 0.067 + ], + "numOfWrites": [ + 1.1 + ], + "readBytes": [ + 170.667 + ], + "writeBytes": [ + 5085.867 + ], + "runningSpeed": [ + 17 + ], + "transmittedBytes": [ + 5256.534 + ] + }, + { + "id": "fcs1", + "wwpn": "100000109b89aca9", + "physicalLocation": "U78D2.001.WZS0B5H-P1-C2-T2", + "numOfPorts": 5, + "numOfReads": [ + 0.067 + ], + "numOfWrites": [ + 0.9 + ], + "readBytes": [ + 170.667 + ], + "writeBytes": [ + 4181.333 + ], + "runningSpeed": [ + 17 + ], + "transmittedBytes": [ + 4352 + ] + }, + { + "id": "fcs2", + "wwpn": "0000000000000000", + "physicalLocation": "U78D2.001.WZS0B5H-P1-C2-T2", + "numOfPorts": 0, + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "runningSpeed": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + } + ] + } + }, + { + "id": 2, + "uuid": "19D6097E-763E-4B64-A48A-A285B21E1D0C", + "name": "P924VIO2", + "state": "Open Firmware", + "affinityScore": 100, + "memory": { + "assignedMem": [ + 4096 + ], + "utilizedMem": [ + 0 + ], + "virtualPersistentMem": [ + 0 + ] + }, + "processor": { + "weight": 0, + "mode": "share_idle_procs", + "maxVirtualProcessors": [ + 2 + ], + "currentVirtualProcessors": [ + 0 + ], + "maxProcUnits": [ + 2 + ], + "entitledProcUnits": [ + 1 + ], + "utilizedProcUnits": [ + 1 + ], + "utilizedCappedProcUnits": [ + 1 + ], + "utilizedUncappedProcUnits": [ + 0 + ], + "idleProcUnits": [ + 0 + ], + "donatedProcUnits": [ + 0 + ], + "timeSpentWaitingForDispatch": [ + 0 + ], + "timePerInstructionExecution": [ + 0 + ] + }, + "network": { + "clientLpars": [ + "07F4342319494029801548C492523860" + ], + "virtualEthernetAdapters": [ + { + "physicalLocation": "U9009.42A.21F64EV-V2-C2", + "vlanId": 1, + "vswitchId": 0, + "isPortVlanId": true, + "receivedPackets": [ + 0 + ], + "sentPackets": [ + 0 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 0 + ], + "receivedBytes": [ + 0 + ], + "receivedPhysicalPackets": [ + 0 + ], + "sentPhysicalPackets": [ + 0 + ], + "droppedPhysicalPackets": [ + 0 + ], + "sentPhysicalBytes": [ + 0 + ], + "receivedPhysicalBytes": [ + 0 + ], + "transferredBytes": [ + 0 + ], + "transferredPhysicalBytes": [ + 0 + ] + } + ], + "sriovLogicalPorts": [ + { + "drcIndex": "654344193", + "physicalLocation": "U78D2.001.WZS0B5H-P1-C11-T2-S1", + "physicalDrcIndex": "553779219", + "physicalPortId": 1, + "clientPartitionUUID": "07F4342319494029801548C492523860", + "vnicDeviceMode": "NonVNIC", + "configurationType": "Ethernet", + "receivedPackets": [ + 0 + ], + "sentPackets": [ + 0 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 0 + ], + "receivedBytes": [ + 0 + ], + "errorIn": [ + 0 + ], + "errorOut": [ + 0 + ], + "transferredBytes": [ + 0 + ] + } + ] + }, + "storage": { + "clientLpars": [ + "0ADFFB82-B765-4B24-BE35-38D9EE1E3E81", + "396117F4-A59F-44E1-945C-B8B9EE9ABD29", + "2C1D43AF-C6EC-49E5-AF8E-FE3A5879D356", + "07F43423-1949-4029-8015-48C492523860" + ] + } + } ] - } + }, + { + "sampleType": "ManagedSystem", + "sampleInfo": { + "timeStamp": "2022-12-02T07:44:30+0100", + "status": 2, + "errorInfo": [ + { + "errId": "4002", + "errMsg": "vios: 2 is not in running state on Managed System: 9009-42A*21F64EV", + "uuid": "19D6097E-763E-4B64-A48A-A285B21E1D0C", + "reportedBy": "VirtualIOServer", + "occurrenceCount": 1 + } + ] + }, + "systemFirmwareUtil": { + "utilizedProcUnits": [ + 0.00318 + ], + "assignedMem": [ + 40448 + ] + }, + "serverUtil": { + "processor": { + "totalProcUnits": [ + 24 + ], + "utilizedProcUnits": [ + 1.12488 + ], + "availableProcUnits": [ + 4.15 + ], + "configurableProcUnits": [ + 24 + ] + }, + "memory": { + "totalMem": [ + 1048576 + ], + "availableMem": [ + 66048 + ], + "configurableMem": [ + 1048576 + ], + "assignedMemToLpars": [ + 942080 + ], + "virtualPersistentMem": [ + 0 + ] + }, + "physicalProcessorPool": { + "assignedProcUnits": [ + 21 + ], + "utilizedProcUnits": [ + 0.08774 + ], + "availableProcUnits": [ + 20.91226 + ], + "configuredProcUnits": [ + 0 + ], + "borrowedProcUnits": [ + 4 + ] + }, + "sharedProcessorPool": [ + { + "id": 0, + "name": "DefaultPool", + "assignedProcUnits": [ + 20.99999 + ], + "utilizedProcUnits": [ + 0.04924 + ], + "availableProcUnits": [ + 20.95075 + ], + "configuredProcUnits": [ + 13.85 + ], + "borrowedProcUnits": [ + 4 + ] + }, + { + "id": 1, + "name": "SharedPool01", + "assignedProcUnits": [ + 4 + ], + "utilizedProcUnits": [ + 0 + ], + "availableProcUnits": [ + 4 + ] + }, + { + "id": 2, + "name": "SharedPool02", + "assignedProcUnits": [ + 4 + ], + "utilizedProcUnits": [ + 0 + ], + "availableProcUnits": [ + 4 + ] + }, + { + "id": 3, + "name": "SharedPool03", + "assignedProcUnits": [ + 1 + ], + "utilizedProcUnits": [ + 0 + ], + "availableProcUnits": [ + 1 + ], + "configuredProcUnits": [ + 1 + ] + } + ], + "network": { + "sriovAdapters": [ + { + "drcIndex": "553779219", + "physicalPorts": [ + { + "id": 3, + "physicalLocation": "U78D2.001.WZS0B5H-P1-C11-T4", + "receivedPackets": [ + 0 + ], + "sentPackets": [ + 0 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 0 + ], + "receivedBytes": [ + 0 + ], + "errorIn": [ + 0 + ], + "errorOut": [ + 0 + ], + "transferredBytes": [ + 0 + ] + }, + { + "id": 2, + "physicalLocation": "U78D2.001.WZS0B5H-P1-C11-T3", + "receivedPackets": [ + 0 + ], + "sentPackets": [ + 0 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 0 + ], + "receivedBytes": [ + 0 + ], + "errorIn": [ + 0 + ], + "errorOut": [ + 0 + ], + "transferredBytes": [ + 0 + ] + }, + { + "id": 1, + "physicalLocation": "U78D2.001.WZS0B5H-P1-C11-T2", + "receivedPackets": [ + 0 + ], + "sentPackets": [ + 0 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 0 + ], + "receivedBytes": [ + 0 + ], + "errorIn": [ + 0 + ], + "errorOut": [ + 0 + ], + "transferredBytes": [ + 0 + ] + }, + { + "id": 0, + "physicalLocation": "U78D2.001.WZS0B5H-P1-C11-T1", + "receivedPackets": [ + 0 + ], + "sentPackets": [ + 0 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 0 + ], + "receivedBytes": [ + 0 + ], + "errorIn": [ + 0 + ], + "errorOut": [ + 0 + ], + "transferredBytes": [ + 0 + ] + } + ] + }, + { + "drcIndex": "553713688", + "physicalPorts": [ + { + "id": 0, + "physicalLocation": "U78D2.001.WZS0B5H-P1-C8-T1", + "receivedPackets": [ + 0 + ], + "sentPackets": [ + 0 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 0 + ], + "receivedBytes": [ + 0 + ], + "errorIn": [ + 0 + ], + "errorOut": [ + 0 + ], + "transferredBytes": [ + 0 + ] + }, + { + "id": 1, + "physicalLocation": "U78D2.001.WZS0B5H-P1-C8-T2", + "receivedPackets": [ + 0 + ], + "sentPackets": [ + 0 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 0 + ], + "receivedBytes": [ + 0 + ], + "errorIn": [ + 0 + ], + "errorOut": [ + 0 + ], + "transferredBytes": [ + 0 + ] + }, + { + "id": 2, + "physicalLocation": "U78D2.001.WZS0B5H-P1-C8-T3", + "receivedPackets": [ + 0 + ], + "sentPackets": [ + 0 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 0 + ], + "receivedBytes": [ + 0 + ], + "errorIn": [ + 0 + ], + "errorOut": [ + 0 + ], + "transferredBytes": [ + 0 + ] + }, + { + "id": 3, + "physicalLocation": "U78D2.001.WZS0B5H-P1-C8-T4", + "receivedPackets": [ + 0 + ], + "sentPackets": [ + 0 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 0 + ], + "receivedBytes": [ + 0 + ], + "errorIn": [ + 0 + ], + "errorOut": [ + 0 + ], + "transferredBytes": [ + 0 + ] + } + ] + } + ] + } + }, + "viosUtil": [ + { + "id": 1, + "uuid": "6B1BF965-26DE-42F1-83AC-58C2A95D221C", + "name": "P924VIO1", + "state": "Running", + "affinityScore": 100, + "memory": { + "assignedMem": [ + 4096 + ], + "utilizedMem": [ + 3089 + ], + "virtualPersistentMem": [ + 0 + ] + }, + "processor": { + "weight": 0, + "mode": "share_idle_procs", + "maxVirtualProcessors": [ + 2 + ], + "currentVirtualProcessors": [ + 0 + ], + "maxProcUnits": [ + 2 + ], + "entitledProcUnits": [ + 1 + ], + "utilizedProcUnits": [ + 0.02993 + ], + "utilizedCappedProcUnits": [ + 1 + ], + "utilizedUncappedProcUnits": [ + 0 + ], + "idleProcUnits": [ + 0.97007 + ], + "donatedProcUnits": [ + 0 + ], + "timeSpentWaitingForDispatch": [ + 0 + ], + "timePerInstructionExecution": [ + 2 + ] + }, + "network": { + "clientLpars": [ + "07F4342319494029801548C492523860", + "0ADFFB82-B765-4B24-BE35-38D9EE1E3E81", + "396117F4-A59F-44E1-945C-B8B9EE9ABD29", + "2C1D43AF-C6EC-49E5-AF8E-FE3A5879D356", + "07F43423-1949-4029-8015-48C492523860" + ], + "genericAdapters": [ + { + "id": "ent8", + "type": "physical", + "physicalLocation": "U78D2.001.WZS0B5H-P1-C7-T2", + "receivedPackets": [ + 2 + ], + "sentPackets": [ + 1.2 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 781.533 + ], + "receivedBytes": [ + 266.6 + ], + "transferredBytes": [ + 1048.133 + ] + }, + { + "id": "ent4", + "type": "virtual", + "physicalLocation": "U9009.42A.21F64EV-V1-C2-T1", + "receivedPackets": [ + 1.133 + ], + "sentPackets": [ + 7.833 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 4224.367 + ], + "receivedBytes": [ + 434.2 + ], + "transferredBytes": [ + 4658.567 + ] + }, + { + "id": "ent7", + "type": "physical", + "physicalLocation": "U78D2.001.WZS0B5H-P1-C7-T1", + "receivedPackets": [ + 2.633 + ], + "sentPackets": [ + 1.133 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 384.667 + ], + "receivedBytes": [ + 208.633 + ], + "transferredBytes": [ + 593.3 + ] + } + ], + "sharedAdapters": [ + { + "id": "ent5", + "type": "sea", + "physicalLocation": "U9009.42A.21F64EV-V1-C2-T1", + "receivedPackets": [ + 3.767 + ], + "sentPackets": [ + 8.967 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 4609.033 + ], + "receivedBytes": [ + 642.833 + ], + "transferredBytes": [ + 5251.866 + ], + "bridgedAdapters": [ + "ent7", + "ent4", + "ent4" + ] + } + ], + "virtualEthernetAdapters": [ + { + "physicalLocation": "U9009.42A.21F64EV-V1-C2", + "vlanId": 1, + "vswitchId": 0, + "isPortVlanId": true, + "receivedPackets": [ + 1.467 + ], + "sentPackets": [ + 2.533 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 212.433 + ], + "receivedBytes": [ + 475.033 + ], + "receivedPhysicalPackets": [ + 0 + ], + "sentPhysicalPackets": [ + 0 + ], + "droppedPhysicalPackets": [ + 0 + ], + "sentPhysicalBytes": [ + 0 + ], + "receivedPhysicalBytes": [ + 0 + ], + "transferredBytes": [ + 687.466 + ], + "transferredPhysicalBytes": [ + 0 + ] + } + ], + "sriovLogicalPorts": [ + { + "drcIndex": "654327812", + "physicalLocation": "U78D2.001.WZS0B5H-P1-C8-T1-S4", + "physicalDrcIndex": "553713688", + "physicalPortId": 0, + "clientPartitionUUID": "07F4342319494029801548C492523860", + "vnicDeviceMode": "NonVNIC", + "configurationType": "Ethernet", + "receivedPackets": [ + 0 + ], + "sentPackets": [ + 0 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 0 + ], + "receivedBytes": [ + 0 + ], + "errorIn": [ + 0 + ], + "errorOut": [ + 0 + ], + "transferredBytes": [ + 0 + ] + }, + { + "drcIndex": "654344195", + "physicalLocation": "U78D2.001.WZS0B5H-P1-C11-T1-S3", + "physicalDrcIndex": "553779219", + "physicalPortId": 0, + "clientPartitionUUID": "07F4342319494029801548C492523860", + "vnicDeviceMode": "NonVNIC", + "configurationType": "Ethernet", + "receivedPackets": [ + 0 + ], + "sentPackets": [ + 0 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 0 + ], + "receivedBytes": [ + 0 + ], + "errorIn": [ + 0 + ], + "errorOut": [ + 0 + ], + "transferredBytes": [ + 0 + ] + }, + { + "drcIndex": "654327809", + "physicalLocation": "U78D2.001.WZS0B5H-P1-C8-T2-S1", + "physicalDrcIndex": "553713688", + "physicalPortId": 1, + "clientPartitionUUID": "07F4342319494029801548C492523860", + "vnicDeviceMode": "NonVNIC", + "configurationType": "Ethernet", + "receivedPackets": [ + 0 + ], + "sentPackets": [ + 0 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 0 + ], + "receivedBytes": [ + 0 + ], + "errorIn": [ + 0 + ], + "errorOut": [ + 0 + ], + "transferredBytes": [ + 0 + ] + } + ] + }, + "storage": { + "clientLpars": [ + "0ADFFB82-B765-4B24-BE35-38D9EE1E3E81", + "396117F4-A59F-44E1-945C-B8B9EE9ABD29", + "2C1D43AF-C6EC-49E5-AF8E-FE3A5879D356", + "07F43423-1949-4029-8015-48C492523860" + ], + "genericPhysicalAdapters": [ + { + "id": "usbhc0", + "type": "sas", + "physicalLocation": "U78D2.001.WZS0B5H-P1", + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + }, + { + "id": "nvme0", + "type": "sas", + "physicalLocation": "U78D2.001.WZS0B5H-P1-C50-C1", + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 24.533 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 12561.067 + ], + "transmittedBytes": [ + 12561.067 + ] + } + ], + "genericVirtualAdapters": [ + { + "id": "vhost0", + "type": "virtual", + "physicalLocation": "U9009.42A.21F64EV-V1-C3", + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + }, + { + "id": "vhost9", + "type": "virtual", + "physicalLocation": "U9009.42A.21F64EV-V1-C26", + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + }, + { + "id": "vhost18", + "type": "virtual", + "physicalLocation": "U9009.42A.21F64EV-V1-C48", + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + }, + { + "id": "vhost6", + "type": "virtual", + "physicalLocation": "U9009.42A.21F64EV-V1-C15", + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + }, + { + "id": "vhost5", + "type": "virtual", + "physicalLocation": "U9009.42A.21F64EV-V1-C8", + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + }, + { + "id": "vhost1", + "type": "virtual", + "physicalLocation": "U9009.42A.21F64EV-V1-C4", + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + }, + { + "id": "vhost2", + "type": "virtual", + "physicalLocation": "U9009.42A.21F64EV-V1-C5", + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + }, + { + "id": "vhost3", + "type": "virtual", + "physicalLocation": "U9009.42A.21F64EV-V1-C6", + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + }, + { + "id": "vhost4", + "type": "virtual", + "physicalLocation": "U9009.42A.21F64EV-V1-C7", + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + }, + { + "id": "vhost16", + "type": "virtual", + "physicalLocation": "U9009.42A.21F64EV-V1-C47", + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + }, + { + "id": "vhost11", + "type": "virtual", + "physicalLocation": "U9009.42A.21F64EV-V1-C14", + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + }, + { + "id": "vhost8", + "type": "virtual", + "physicalLocation": "U9009.42A.21F64EV-V1-C11", + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + }, + { + "id": "vhost12", + "type": "virtual", + "physicalLocation": "U9009.42A.21F64EV-V1-C34", + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + }, + { + "id": "vhost7", + "type": "virtual", + "physicalLocation": "U9009.42A.21F64EV-V1-C12", + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + }, + { + "id": "vhost17", + "type": "virtual", + "physicalLocation": "U9009.42A.21F64EV-V1-C95", + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + } + ], + "fiberChannelAdapters": [ + { + "id": "fcs0", + "wwpn": "100000109b89aca8", + "physicalLocation": "U78D2.001.WZS0B5H-P1-C2-T1", + "numOfPorts": 5, + "numOfReads": [ + 0.067 + ], + "numOfWrites": [ + 1.367 + ], + "readBytes": [ + 170.667 + ], + "writeBytes": [ + 6263.467 + ], + "runningSpeed": [ + 17 + ], + "transmittedBytes": [ + 6434.134 + ] + }, + { + "id": "fcs1", + "wwpn": "100000109b89aca9", + "physicalLocation": "U78D2.001.WZS0B5H-P1-C2-T2", + "numOfPorts": 5, + "numOfReads": [ + 0.067 + ], + "numOfWrites": [ + 1.167 + ], + "readBytes": [ + 170.667 + ], + "writeBytes": [ + 5478.4 + ], + "runningSpeed": [ + 17 + ], + "transmittedBytes": [ + 5649.067 + ] + }, + { + "id": "fcs2", + "wwpn": "0000000000000000", + "physicalLocation": "U78D2.001.WZS0B5H-P1-C2-T2", + "numOfPorts": 0, + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "runningSpeed": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + } + ] + } + }, + { + "id": 2, + "uuid": "19D6097E-763E-4B64-A48A-A285B21E1D0C", + "name": "P924VIO2", + "state": "Open Firmware", + "affinityScore": 100, + "memory": { + "assignedMem": [ + 4096 + ], + "utilizedMem": [ + 0 + ], + "virtualPersistentMem": [ + 0 + ] + }, + "processor": { + "weight": 0, + "mode": "share_idle_procs", + "maxVirtualProcessors": [ + 2 + ], + "currentVirtualProcessors": [ + 0 + ], + "maxProcUnits": [ + 2 + ], + "entitledProcUnits": [ + 1 + ], + "utilizedProcUnits": [ + 1 + ], + "utilizedCappedProcUnits": [ + 1 + ], + "utilizedUncappedProcUnits": [ + 0 + ], + "idleProcUnits": [ + 0 + ], + "donatedProcUnits": [ + 0 + ], + "timeSpentWaitingForDispatch": [ + 0 + ], + "timePerInstructionExecution": [ + 0 + ] + }, + "network": { + "clientLpars": [ + "07F4342319494029801548C492523860" + ], + "virtualEthernetAdapters": [ + { + "physicalLocation": "U9009.42A.21F64EV-V2-C2", + "vlanId": 1, + "vswitchId": 0, + "isPortVlanId": true, + "receivedPackets": [ + 0 + ], + "sentPackets": [ + 0 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 0 + ], + "receivedBytes": [ + 0 + ], + "receivedPhysicalPackets": [ + 0 + ], + "sentPhysicalPackets": [ + 0 + ], + "droppedPhysicalPackets": [ + 0 + ], + "sentPhysicalBytes": [ + 0 + ], + "receivedPhysicalBytes": [ + 0 + ], + "transferredBytes": [ + 0 + ], + "transferredPhysicalBytes": [ + 0 + ] + } + ], + "sriovLogicalPorts": [ + { + "drcIndex": "654344193", + "physicalLocation": "U78D2.001.WZS0B5H-P1-C11-T2-S1", + "physicalDrcIndex": "553779219", + "physicalPortId": 1, + "clientPartitionUUID": "07F4342319494029801548C492523860", + "vnicDeviceMode": "NonVNIC", + "configurationType": "Ethernet", + "receivedPackets": [ + 0 + ], + "sentPackets": [ + 0 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 0 + ], + "receivedBytes": [ + 0 + ], + "errorIn": [ + 0 + ], + "errorOut": [ + 0 + ], + "transferredBytes": [ + 0 + ] + } + ] + }, + "storage": { + "clientLpars": [ + "0ADFFB82-B765-4B24-BE35-38D9EE1E3E81", + "396117F4-A59F-44E1-945C-B8B9EE9ABD29", + "2C1D43AF-C6EC-49E5-AF8E-FE3A5879D356", + "07F43423-1949-4029-8015-48C492523860" + ] + } + } + ] + }, + { + "sampleType": "ManagedSystem", + "sampleInfo": { + "timeStamp": "2022-12-02T07:45:00+0100", + "status": 2, + "errorInfo": [ + { + "errId": "4002", + "errMsg": "vios: 2 is not in running state on Managed System: 9009-42A*21F64EV", + "uuid": "19D6097E-763E-4B64-A48A-A285B21E1D0C", + "reportedBy": "VirtualIOServer", + "occurrenceCount": 1 + } + ] + }, + "systemFirmwareUtil": { + "utilizedProcUnits": [ + 0.00358 + ], + "assignedMem": [ + 40448 + ] + }, + "serverUtil": { + "processor": { + "totalProcUnits": [ + 24 + ], + "utilizedProcUnits": [ + 1.10705 + ], + "availableProcUnits": [ + 4.15 + ], + "configurableProcUnits": [ + 24 + ] + }, + "memory": { + "totalMem": [ + 1048576 + ], + "availableMem": [ + 66048 + ], + "configurableMem": [ + 1048576 + ], + "assignedMemToLpars": [ + 942080 + ], + "virtualPersistentMem": [ + 0 + ] + }, + "physicalProcessorPool": { + "assignedProcUnits": [ + 21 + ], + "utilizedProcUnits": [ + 0.08314 + ], + "availableProcUnits": [ + 20.91686 + ], + "configuredProcUnits": [ + 0 + ], + "borrowedProcUnits": [ + 4 + ] + }, + "sharedProcessorPool": [ + { + "id": 0, + "name": "DefaultPool", + "assignedProcUnits": [ + 21 + ], + "utilizedProcUnits": [ + 0.04429 + ], + "availableProcUnits": [ + 20.95571 + ], + "configuredProcUnits": [ + 13.85 + ], + "borrowedProcUnits": [ + 4 + ] + }, + { + "id": 1, + "name": "SharedPool01", + "assignedProcUnits": [ + 4 + ], + "utilizedProcUnits": [ + 0 + ], + "availableProcUnits": [ + 4 + ] + }, + { + "id": 2, + "name": "SharedPool02", + "assignedProcUnits": [ + 4 + ], + "utilizedProcUnits": [ + 0 + ], + "availableProcUnits": [ + 4 + ] + }, + { + "id": 3, + "name": "SharedPool03", + "assignedProcUnits": [ + 1 + ], + "utilizedProcUnits": [ + 0 + ], + "availableProcUnits": [ + 1 + ], + "configuredProcUnits": [ + 1 + ] + } + ], + "network": { + "sriovAdapters": [ + { + "drcIndex": "553779219", + "physicalPorts": [ + { + "id": 3, + "physicalLocation": "U78D2.001.WZS0B5H-P1-C11-T4", + "receivedPackets": [ + 0 + ], + "sentPackets": [ + 0 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 0 + ], + "receivedBytes": [ + 0 + ], + "errorIn": [ + 0 + ], + "errorOut": [ + 0 + ], + "transferredBytes": [ + 0 + ] + }, + { + "id": 2, + "physicalLocation": "U78D2.001.WZS0B5H-P1-C11-T3", + "receivedPackets": [ + 0 + ], + "sentPackets": [ + 0 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 0 + ], + "receivedBytes": [ + 0 + ], + "errorIn": [ + 0 + ], + "errorOut": [ + 0 + ], + "transferredBytes": [ + 0 + ] + }, + { + "id": 1, + "physicalLocation": "U78D2.001.WZS0B5H-P1-C11-T2", + "receivedPackets": [ + 0 + ], + "sentPackets": [ + 0 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 0 + ], + "receivedBytes": [ + 0 + ], + "errorIn": [ + 0 + ], + "errorOut": [ + 0 + ], + "transferredBytes": [ + 0 + ] + }, + { + "id": 0, + "physicalLocation": "U78D2.001.WZS0B5H-P1-C11-T1", + "receivedPackets": [ + 0 + ], + "sentPackets": [ + 0 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 0 + ], + "receivedBytes": [ + 0 + ], + "errorIn": [ + 0 + ], + "errorOut": [ + 0 + ], + "transferredBytes": [ + 0 + ] + } + ] + }, + { + "drcIndex": "553713688", + "physicalPorts": [ + { + "id": 0, + "physicalLocation": "U78D2.001.WZS0B5H-P1-C8-T1", + "receivedPackets": [ + 0 + ], + "sentPackets": [ + 0 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 0 + ], + "receivedBytes": [ + 0 + ], + "errorIn": [ + 0 + ], + "errorOut": [ + 0 + ], + "transferredBytes": [ + 0 + ] + }, + { + "id": 1, + "physicalLocation": "U78D2.001.WZS0B5H-P1-C8-T2", + "receivedPackets": [ + 0 + ], + "sentPackets": [ + 0 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 0 + ], + "receivedBytes": [ + 0 + ], + "errorIn": [ + 0 + ], + "errorOut": [ + 0 + ], + "transferredBytes": [ + 0 + ] + }, + { + "id": 2, + "physicalLocation": "U78D2.001.WZS0B5H-P1-C8-T3", + "receivedPackets": [ + 0 + ], + "sentPackets": [ + 0 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 0 + ], + "receivedBytes": [ + 0 + ], + "errorIn": [ + 0 + ], + "errorOut": [ + 0 + ], + "transferredBytes": [ + 0 + ] + }, + { + "id": 3, + "physicalLocation": "U78D2.001.WZS0B5H-P1-C8-T4", + "receivedPackets": [ + 0 + ], + "sentPackets": [ + 0 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 0 + ], + "receivedBytes": [ + 0 + ], + "errorIn": [ + 0 + ], + "errorOut": [ + 0 + ], + "transferredBytes": [ + 0 + ] + } + ] + } + ] + } + }, + "viosUtil": [ + { + "id": 1, + "uuid": "6B1BF965-26DE-42F1-83AC-58C2A95D221C", + "name": "P924VIO1", + "state": "Running", + "affinityScore": 100, + "memory": { + "assignedMem": [ + 4096 + ], + "utilizedMem": [ + 3089 + ], + "virtualPersistentMem": [ + 0 + ] + }, + "processor": { + "weight": 0, + "mode": "share_idle_procs", + "maxVirtualProcessors": [ + 2 + ], + "currentVirtualProcessors": [ + 0 + ], + "maxProcUnits": [ + 2 + ], + "entitledProcUnits": [ + 1 + ], + "utilizedProcUnits": [ + 0.01452 + ], + "utilizedCappedProcUnits": [ + 1 + ], + "utilizedUncappedProcUnits": [ + 0 + ], + "idleProcUnits": [ + 0.98548 + ], + "donatedProcUnits": [ + 0 + ], + "timeSpentWaitingForDispatch": [ + 0 + ], + "timePerInstructionExecution": [ + 2 + ] + }, + "network": { + "clientLpars": [ + "07F4342319494029801548C492523860", + "0ADFFB82-B765-4B24-BE35-38D9EE1E3E81", + "396117F4-A59F-44E1-945C-B8B9EE9ABD29", + "2C1D43AF-C6EC-49E5-AF8E-FE3A5879D356", + "07F43423-1949-4029-8015-48C492523860" + ], + "genericAdapters": [ + { + "id": "ent8", + "type": "physical", + "physicalLocation": "U78D2.001.WZS0B5H-P1-C7-T2", + "receivedPackets": [ + 1.9 + ], + "sentPackets": [ + 1 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 702.533 + ], + "receivedBytes": [ + 219.367 + ], + "transferredBytes": [ + 921.9 + ] + }, + { + "id": "ent4", + "type": "virtual", + "physicalLocation": "U9009.42A.21F64EV-V1-C2-T1", + "receivedPackets": [ + 1.4 + ], + "sentPackets": [ + 8 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 4113.967 + ], + "receivedBytes": [ + 470.033 + ], + "transferredBytes": [ + 4584 + ] + }, + { + "id": "ent7", + "type": "physical", + "physicalLocation": "U78D2.001.WZS0B5H-P1-C7-T1", + "receivedPackets": [ + 3 + ], + "sentPackets": [ + 1.4 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 418.333 + ], + "receivedBytes": [ + 252.5 + ], + "transferredBytes": [ + 670.833 + ] + } + ], + "sharedAdapters": [ + { + "id": "ent5", + "type": "sea", + "physicalLocation": "U9009.42A.21F64EV-V1-C2-T1", + "receivedPackets": [ + 4.4 + ], + "sentPackets": [ + 9.4 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 4532.3 + ], + "receivedBytes": [ + 722.533 + ], + "transferredBytes": [ + 5254.833 + ], + "bridgedAdapters": [ + "ent7", + "ent4", + "ent4" + ] + } + ], + "virtualEthernetAdapters": [ + { + "physicalLocation": "U9009.42A.21F64EV-V1-C2", + "vlanId": 1, + "vswitchId": 0, + "isPortVlanId": true, + "receivedPackets": [ + 1.167 + ], + "sentPackets": [ + 2 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 182.6 + ], + "receivedBytes": [ + 437.267 + ], + "receivedPhysicalPackets": [ + 0 + ], + "sentPhysicalPackets": [ + 0 + ], + "droppedPhysicalPackets": [ + 0 + ], + "sentPhysicalBytes": [ + 0 + ], + "receivedPhysicalBytes": [ + 0 + ], + "transferredBytes": [ + 619.867 + ], + "transferredPhysicalBytes": [ + 0 + ] + } + ], + "sriovLogicalPorts": [ + { + "drcIndex": "654327812", + "physicalLocation": "U78D2.001.WZS0B5H-P1-C8-T1-S4", + "physicalDrcIndex": "553713688", + "physicalPortId": 0, + "clientPartitionUUID": "07F4342319494029801548C492523860", + "vnicDeviceMode": "NonVNIC", + "configurationType": "Ethernet", + "receivedPackets": [ + 0 + ], + "sentPackets": [ + 0 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 0 + ], + "receivedBytes": [ + 0 + ], + "errorIn": [ + 0 + ], + "errorOut": [ + 0 + ], + "transferredBytes": [ + 0 + ] + }, + { + "drcIndex": "654344195", + "physicalLocation": "U78D2.001.WZS0B5H-P1-C11-T1-S3", + "physicalDrcIndex": "553779219", + "physicalPortId": 0, + "clientPartitionUUID": "07F4342319494029801548C492523860", + "vnicDeviceMode": "NonVNIC", + "configurationType": "Ethernet", + "receivedPackets": [ + 0 + ], + "sentPackets": [ + 0 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 0 + ], + "receivedBytes": [ + 0 + ], + "errorIn": [ + 0 + ], + "errorOut": [ + 0 + ], + "transferredBytes": [ + 0 + ] + }, + { + "drcIndex": "654327809", + "physicalLocation": "U78D2.001.WZS0B5H-P1-C8-T2-S1", + "physicalDrcIndex": "553713688", + "physicalPortId": 1, + "clientPartitionUUID": "07F4342319494029801548C492523860", + "vnicDeviceMode": "NonVNIC", + "configurationType": "Ethernet", + "receivedPackets": [ + 0 + ], + "sentPackets": [ + 0 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 0 + ], + "receivedBytes": [ + 0 + ], + "errorIn": [ + 0 + ], + "errorOut": [ + 0 + ], + "transferredBytes": [ + 0 + ] + } + ] + }, + "storage": { + "clientLpars": [ + "0ADFFB82-B765-4B24-BE35-38D9EE1E3E81", + "396117F4-A59F-44E1-945C-B8B9EE9ABD29", + "2C1D43AF-C6EC-49E5-AF8E-FE3A5879D356", + "07F43423-1949-4029-8015-48C492523860" + ], + "genericPhysicalAdapters": [ + { + "id": "usbhc0", + "type": "sas", + "physicalLocation": "U78D2.001.WZS0B5H-P1", + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + }, + { + "id": "nvme0", + "type": "sas", + "physicalLocation": "U78D2.001.WZS0B5H-P1-C50-C1", + "numOfReads": [ + 4680 + ], + "numOfWrites": [ + 8.8 + ], + "readBytes": [ + 2396160 + ], + "writeBytes": [ + 4505.6 + ], + "transmittedBytes": [ + 2400665.6 + ] + } + ], + "genericVirtualAdapters": [ + { + "id": "vhost0", + "type": "virtual", + "physicalLocation": "U9009.42A.21F64EV-V1-C3", + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + }, + { + "id": "vhost9", + "type": "virtual", + "physicalLocation": "U9009.42A.21F64EV-V1-C26", + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + }, + { + "id": "vhost18", + "type": "virtual", + "physicalLocation": "U9009.42A.21F64EV-V1-C48", + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + }, + { + "id": "vhost6", + "type": "virtual", + "physicalLocation": "U9009.42A.21F64EV-V1-C15", + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + }, + { + "id": "vhost5", + "type": "virtual", + "physicalLocation": "U9009.42A.21F64EV-V1-C8", + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + }, + { + "id": "vhost1", + "type": "virtual", + "physicalLocation": "U9009.42A.21F64EV-V1-C4", + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + }, + { + "id": "vhost2", + "type": "virtual", + "physicalLocation": "U9009.42A.21F64EV-V1-C5", + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + }, + { + "id": "vhost3", + "type": "virtual", + "physicalLocation": "U9009.42A.21F64EV-V1-C6", + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + }, + { + "id": "vhost4", + "type": "virtual", + "physicalLocation": "U9009.42A.21F64EV-V1-C7", + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + }, + { + "id": "vhost16", + "type": "virtual", + "physicalLocation": "U9009.42A.21F64EV-V1-C47", + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + }, + { + "id": "vhost11", + "type": "virtual", + "physicalLocation": "U9009.42A.21F64EV-V1-C14", + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + }, + { + "id": "vhost8", + "type": "virtual", + "physicalLocation": "U9009.42A.21F64EV-V1-C11", + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + }, + { + "id": "vhost12", + "type": "virtual", + "physicalLocation": "U9009.42A.21F64EV-V1-C34", + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + }, + { + "id": "vhost7", + "type": "virtual", + "physicalLocation": "U9009.42A.21F64EV-V1-C12", + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + }, + { + "id": "vhost17", + "type": "virtual", + "physicalLocation": "U9009.42A.21F64EV-V1-C95", + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + } + ], + "fiberChannelAdapters": [ + { + "id": "fcs0", + "wwpn": "100000109b89aca8", + "physicalLocation": "U78D2.001.WZS0B5H-P1-C2-T1", + "numOfPorts": 5, + "numOfReads": [ + 0.067 + ], + "numOfWrites": [ + 0.433 + ], + "readBytes": [ + 170.667 + ], + "writeBytes": [ + 1928.533 + ], + "runningSpeed": [ + 17 + ], + "transmittedBytes": [ + 2099.2 + ] + }, + { + "id": "fcs1", + "wwpn": "100000109b89aca9", + "physicalLocation": "U78D2.001.WZS0B5H-P1-C2-T2", + "numOfPorts": 5, + "numOfReads": [ + 0.067 + ], + "numOfWrites": [ + 0.633 + ], + "readBytes": [ + 170.667 + ], + "writeBytes": [ + 2969.6 + ], + "runningSpeed": [ + 17 + ], + "transmittedBytes": [ + 3140.267 + ] + }, + { + "id": "fcs2", + "wwpn": "0000000000000000", + "physicalLocation": "U78D2.001.WZS0B5H-P1-C2-T2", + "numOfPorts": 0, + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "runningSpeed": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + } + ] + } + }, + { + "id": 2, + "uuid": "19D6097E-763E-4B64-A48A-A285B21E1D0C", + "name": "P924VIO2", + "state": "Open Firmware", + "affinityScore": 100, + "memory": { + "assignedMem": [ + 4096 + ], + "utilizedMem": [ + 0 + ], + "virtualPersistentMem": [ + 0 + ] + }, + "processor": { + "weight": 0, + "mode": "share_idle_procs", + "maxVirtualProcessors": [ + 2 + ], + "currentVirtualProcessors": [ + 0 + ], + "maxProcUnits": [ + 2 + ], + "entitledProcUnits": [ + 1 + ], + "utilizedProcUnits": [ + 1 + ], + "utilizedCappedProcUnits": [ + 1 + ], + "utilizedUncappedProcUnits": [ + 0 + ], + "idleProcUnits": [ + 0 + ], + "donatedProcUnits": [ + 0 + ], + "timeSpentWaitingForDispatch": [ + 0 + ], + "timePerInstructionExecution": [ + 0 + ] + }, + "network": { + "clientLpars": [ + "07F4342319494029801548C492523860" + ], + "virtualEthernetAdapters": [ + { + "physicalLocation": "U9009.42A.21F64EV-V2-C2", + "vlanId": 1, + "vswitchId": 0, + "isPortVlanId": true, + "receivedPackets": [ + 0 + ], + "sentPackets": [ + 0 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 0 + ], + "receivedBytes": [ + 0 + ], + "receivedPhysicalPackets": [ + 0 + ], + "sentPhysicalPackets": [ + 0 + ], + "droppedPhysicalPackets": [ + 0 + ], + "sentPhysicalBytes": [ + 0 + ], + "receivedPhysicalBytes": [ + 0 + ], + "transferredBytes": [ + 0 + ], + "transferredPhysicalBytes": [ + 0 + ] + } + ], + "sriovLogicalPorts": [ + { + "drcIndex": "654344193", + "physicalLocation": "U78D2.001.WZS0B5H-P1-C11-T2-S1", + "physicalDrcIndex": "553779219", + "physicalPortId": 1, + "clientPartitionUUID": "07F4342319494029801548C492523860", + "vnicDeviceMode": "NonVNIC", + "configurationType": "Ethernet", + "receivedPackets": [ + 0 + ], + "sentPackets": [ + 0 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 0 + ], + "receivedBytes": [ + 0 + ], + "errorIn": [ + 0 + ], + "errorOut": [ + 0 + ], + "transferredBytes": [ + 0 + ] + } + ] + }, + "storage": { + "clientLpars": [ + "0ADFFB82-B765-4B24-BE35-38D9EE1E3E81", + "396117F4-A59F-44E1-945C-B8B9EE9ABD29", + "2C1D43AF-C6EC-49E5-AF8E-FE3A5879D356", + "07F43423-1949-4029-8015-48C492523860" + ] + } + } + ] + }, + { + "sampleType": "ManagedSystem", + "sampleInfo": { + "timeStamp": "2022-12-02T07:45:30+0100", + "status": 2, + "errorInfo": [ + { + "errId": "4002", + "errMsg": "vios: 2 is not in running state on Managed System: 9009-42A*21F64EV", + "uuid": "19D6097E-763E-4B64-A48A-A285B21E1D0C", + "reportedBy": "VirtualIOServer", + "occurrenceCount": 1 + } + ] + }, + "systemFirmwareUtil": { + "utilizedProcUnits": [ + 0.00413 + ], + "assignedMem": [ + 40448 + ] + }, + "serverUtil": { + "processor": { + "totalProcUnits": [ + 24 + ], + "utilizedProcUnits": [ + 1.1266 + ], + "availableProcUnits": [ + 4.15 + ], + "configurableProcUnits": [ + 24 + ] + }, + "memory": { + "totalMem": [ + 1048576 + ], + "availableMem": [ + 66048 + ], + "configurableMem": [ + 1048576 + ], + "assignedMemToLpars": [ + 942080 + ], + "virtualPersistentMem": [ + 0 + ] + }, + "physicalProcessorPool": { + "assignedProcUnits": [ + 21 + ], + "utilizedProcUnits": [ + 0.09028 + ], + "availableProcUnits": [ + 20.90972 + ], + "configuredProcUnits": [ + 0 + ], + "borrowedProcUnits": [ + 4 + ] + }, + "sharedProcessorPool": [ + { + "id": 0, + "name": "DefaultPool", + "assignedProcUnits": [ + 21.00001 + ], + "utilizedProcUnits": [ + 0.05042 + ], + "availableProcUnits": [ + 20.94959 + ], + "configuredProcUnits": [ + 13.85 + ], + "borrowedProcUnits": [ + 4 + ] + }, + { + "id": 1, + "name": "SharedPool01", + "assignedProcUnits": [ + 4 + ], + "utilizedProcUnits": [ + 0 + ], + "availableProcUnits": [ + 4 + ] + }, + { + "id": 2, + "name": "SharedPool02", + "assignedProcUnits": [ + 4 + ], + "utilizedProcUnits": [ + 0 + ], + "availableProcUnits": [ + 4 + ] + }, + { + "id": 3, + "name": "SharedPool03", + "assignedProcUnits": [ + 1 + ], + "utilizedProcUnits": [ + 0 + ], + "availableProcUnits": [ + 1 + ], + "configuredProcUnits": [ + 1 + ] + } + ], + "network": { + "sriovAdapters": [ + { + "drcIndex": "553779219", + "physicalPorts": [ + { + "id": 3, + "physicalLocation": "U78D2.001.WZS0B5H-P1-C11-T4", + "receivedPackets": [ + 0 + ], + "sentPackets": [ + 0 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 0 + ], + "receivedBytes": [ + 0 + ], + "errorIn": [ + 0 + ], + "errorOut": [ + 0 + ], + "transferredBytes": [ + 0 + ] + }, + { + "id": 2, + "physicalLocation": "U78D2.001.WZS0B5H-P1-C11-T3", + "receivedPackets": [ + 0 + ], + "sentPackets": [ + 0 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 0 + ], + "receivedBytes": [ + 0 + ], + "errorIn": [ + 0 + ], + "errorOut": [ + 0 + ], + "transferredBytes": [ + 0 + ] + }, + { + "id": 1, + "physicalLocation": "U78D2.001.WZS0B5H-P1-C11-T2", + "receivedPackets": [ + 0 + ], + "sentPackets": [ + 0 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 0 + ], + "receivedBytes": [ + 0 + ], + "errorIn": [ + 0 + ], + "errorOut": [ + 0 + ], + "transferredBytes": [ + 0 + ] + }, + { + "id": 0, + "physicalLocation": "U78D2.001.WZS0B5H-P1-C11-T1", + "receivedPackets": [ + 0 + ], + "sentPackets": [ + 0 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 0 + ], + "receivedBytes": [ + 0 + ], + "errorIn": [ + 0 + ], + "errorOut": [ + 0 + ], + "transferredBytes": [ + 0 + ] + } + ] + }, + { + "drcIndex": "553713688", + "physicalPorts": [ + { + "id": 0, + "physicalLocation": "U78D2.001.WZS0B5H-P1-C8-T1", + "receivedPackets": [ + 0 + ], + "sentPackets": [ + 0 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 0 + ], + "receivedBytes": [ + 0 + ], + "errorIn": [ + 0 + ], + "errorOut": [ + 0 + ], + "transferredBytes": [ + 0 + ] + }, + { + "id": 1, + "physicalLocation": "U78D2.001.WZS0B5H-P1-C8-T2", + "receivedPackets": [ + 0 + ], + "sentPackets": [ + 0 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 0 + ], + "receivedBytes": [ + 0 + ], + "errorIn": [ + 0 + ], + "errorOut": [ + 0 + ], + "transferredBytes": [ + 0 + ] + }, + { + "id": 2, + "physicalLocation": "U78D2.001.WZS0B5H-P1-C8-T3", + "receivedPackets": [ + 0 + ], + "sentPackets": [ + 0 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 0 + ], + "receivedBytes": [ + 0 + ], + "errorIn": [ + 0 + ], + "errorOut": [ + 0 + ], + "transferredBytes": [ + 0 + ] + }, + { + "id": 3, + "physicalLocation": "U78D2.001.WZS0B5H-P1-C8-T4", + "receivedPackets": [ + 0 + ], + "sentPackets": [ + 0 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 0 + ], + "receivedBytes": [ + 0 + ], + "errorIn": [ + 0 + ], + "errorOut": [ + 0 + ], + "transferredBytes": [ + 0 + ] + } + ] + } + ] + } + }, + "viosUtil": [ + { + "id": 1, + "uuid": "6B1BF965-26DE-42F1-83AC-58C2A95D221C", + "name": "P924VIO1", + "state": "Running", + "affinityScore": 100, + "memory": { + "assignedMem": [ + 4096 + ], + "utilizedMem": [ + 3089 + ], + "virtualPersistentMem": [ + 0 + ] + }, + "processor": { + "weight": 0, + "mode": "share_idle_procs", + "maxVirtualProcessors": [ + 2 + ], + "currentVirtualProcessors": [ + 0 + ], + "maxProcUnits": [ + 2 + ], + "entitledProcUnits": [ + 1 + ], + "utilizedProcUnits": [ + 0.02904 + ], + "utilizedCappedProcUnits": [ + 1 + ], + "utilizedUncappedProcUnits": [ + 0 + ], + "idleProcUnits": [ + 0.97096 + ], + "donatedProcUnits": [ + 0 + ], + "timeSpentWaitingForDispatch": [ + 0 + ], + "timePerInstructionExecution": [ + 2 + ] + }, + "network": { + "clientLpars": [ + "07F4342319494029801548C492523860", + "0ADFFB82-B765-4B24-BE35-38D9EE1E3E81", + "396117F4-A59F-44E1-945C-B8B9EE9ABD29", + "2C1D43AF-C6EC-49E5-AF8E-FE3A5879D356", + "07F43423-1949-4029-8015-48C492523860" + ], + "genericAdapters": [ + { + "id": "ent8", + "type": "physical", + "physicalLocation": "U78D2.001.WZS0B5H-P1-C7-T2", + "receivedPackets": [ + 2.033 + ], + "sentPackets": [ + 1.267 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 740.733 + ], + "receivedBytes": [ + 240.733 + ], + "transferredBytes": [ + 981.466 + ] + }, + { + "id": "ent4", + "type": "virtual", + "physicalLocation": "U9009.42A.21F64EV-V1-C2-T1", + "receivedPackets": [ + 1.2 + ], + "sentPackets": [ + 7.7 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 4057.067 + ], + "receivedBytes": [ + 440.267 + ], + "transferredBytes": [ + 4497.334 + ] + }, + { + "id": "ent7", + "type": "physical", + "physicalLocation": "U78D2.001.WZS0B5H-P1-C7-T1", + "receivedPackets": [ + 2.733 + ], + "sentPackets": [ + 1.2 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 382.633 + ], + "receivedBytes": [ + 227.6 + ], + "transferredBytes": [ + 610.233 + ] + } + ], + "sharedAdapters": [ + { + "id": "ent5", + "type": "sea", + "physicalLocation": "U9009.42A.21F64EV-V1-C2-T1", + "receivedPackets": [ + 3.933 + ], + "sentPackets": [ + 8.9 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 4439.7 + ], + "receivedBytes": [ + 667.867 + ], + "transferredBytes": [ + 5107.567 + ], + "bridgedAdapters": [ + "ent7", + "ent4", + "ent4" + ] + } + ], + "virtualEthernetAdapters": [ + { + "physicalLocation": "U9009.42A.21F64EV-V1-C2", + "vlanId": 1, + "vswitchId": 0, + "isPortVlanId": true, + "receivedPackets": [ + 1.133 + ], + "sentPackets": [ + 2.1 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 180.9 + ], + "receivedBytes": [ + 451.133 + ], + "receivedPhysicalPackets": [ + 0 + ], + "sentPhysicalPackets": [ + 0 + ], + "droppedPhysicalPackets": [ + 0 + ], + "sentPhysicalBytes": [ + 0 + ], + "receivedPhysicalBytes": [ + 0 + ], + "transferredBytes": [ + 632.033 + ], + "transferredPhysicalBytes": [ + 0 + ] + } + ], + "sriovLogicalPorts": [ + { + "drcIndex": "654327812", + "physicalLocation": "U78D2.001.WZS0B5H-P1-C8-T1-S4", + "physicalDrcIndex": "553713688", + "physicalPortId": 0, + "clientPartitionUUID": "07F4342319494029801548C492523860", + "vnicDeviceMode": "NonVNIC", + "configurationType": "Ethernet", + "receivedPackets": [ + 0 + ], + "sentPackets": [ + 0 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 0 + ], + "receivedBytes": [ + 0 + ], + "errorIn": [ + 0 + ], + "errorOut": [ + 0 + ], + "transferredBytes": [ + 0 + ] + }, + { + "drcIndex": "654344195", + "physicalLocation": "U78D2.001.WZS0B5H-P1-C11-T1-S3", + "physicalDrcIndex": "553779219", + "physicalPortId": 0, + "clientPartitionUUID": "07F4342319494029801548C492523860", + "vnicDeviceMode": "NonVNIC", + "configurationType": "Ethernet", + "receivedPackets": [ + 0 + ], + "sentPackets": [ + 0 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 0 + ], + "receivedBytes": [ + 0 + ], + "errorIn": [ + 0 + ], + "errorOut": [ + 0 + ], + "transferredBytes": [ + 0 + ] + }, + { + "drcIndex": "654327809", + "physicalLocation": "U78D2.001.WZS0B5H-P1-C8-T2-S1", + "physicalDrcIndex": "553713688", + "physicalPortId": 1, + "clientPartitionUUID": "07F4342319494029801548C492523860", + "vnicDeviceMode": "NonVNIC", + "configurationType": "Ethernet", + "receivedPackets": [ + 0 + ], + "sentPackets": [ + 0 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 0 + ], + "receivedBytes": [ + 0 + ], + "errorIn": [ + 0 + ], + "errorOut": [ + 0 + ], + "transferredBytes": [ + 0 + ] + } + ] + }, + "storage": { + "clientLpars": [ + "0ADFFB82-B765-4B24-BE35-38D9EE1E3E81", + "396117F4-A59F-44E1-945C-B8B9EE9ABD29", + "2C1D43AF-C6EC-49E5-AF8E-FE3A5879D356", + "07F43423-1949-4029-8015-48C492523860" + ], + "genericPhysicalAdapters": [ + { + "id": "usbhc0", + "type": "sas", + "physicalLocation": "U78D2.001.WZS0B5H-P1", + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + }, + { + "id": "nvme0", + "type": "sas", + "physicalLocation": "U78D2.001.WZS0B5H-P1-C50-C1", + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 50.667 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 25941.333 + ], + "transmittedBytes": [ + 25941.333 + ] + } + ], + "genericVirtualAdapters": [ + { + "id": "vhost0", + "type": "virtual", + "physicalLocation": "U9009.42A.21F64EV-V1-C3", + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + }, + { + "id": "vhost9", + "type": "virtual", + "physicalLocation": "U9009.42A.21F64EV-V1-C26", + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + }, + { + "id": "vhost18", + "type": "virtual", + "physicalLocation": "U9009.42A.21F64EV-V1-C48", + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + }, + { + "id": "vhost6", + "type": "virtual", + "physicalLocation": "U9009.42A.21F64EV-V1-C15", + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + }, + { + "id": "vhost5", + "type": "virtual", + "physicalLocation": "U9009.42A.21F64EV-V1-C8", + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + }, + { + "id": "vhost1", + "type": "virtual", + "physicalLocation": "U9009.42A.21F64EV-V1-C4", + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + }, + { + "id": "vhost2", + "type": "virtual", + "physicalLocation": "U9009.42A.21F64EV-V1-C5", + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + }, + { + "id": "vhost3", + "type": "virtual", + "physicalLocation": "U9009.42A.21F64EV-V1-C6", + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + }, + { + "id": "vhost4", + "type": "virtual", + "physicalLocation": "U9009.42A.21F64EV-V1-C7", + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + }, + { + "id": "vhost16", + "type": "virtual", + "physicalLocation": "U9009.42A.21F64EV-V1-C47", + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + }, + { + "id": "vhost11", + "type": "virtual", + "physicalLocation": "U9009.42A.21F64EV-V1-C14", + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + }, + { + "id": "vhost8", + "type": "virtual", + "physicalLocation": "U9009.42A.21F64EV-V1-C11", + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + }, + { + "id": "vhost12", + "type": "virtual", + "physicalLocation": "U9009.42A.21F64EV-V1-C34", + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + }, + { + "id": "vhost7", + "type": "virtual", + "physicalLocation": "U9009.42A.21F64EV-V1-C12", + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + }, + { + "id": "vhost17", + "type": "virtual", + "physicalLocation": "U9009.42A.21F64EV-V1-C95", + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + } + ], + "fiberChannelAdapters": [ + { + "id": "fcs0", + "wwpn": "100000109b89aca8", + "physicalLocation": "U78D2.001.WZS0B5H-P1-C2-T1", + "numOfPorts": 5, + "numOfReads": [ + 0.067 + ], + "numOfWrites": [ + 0.733 + ], + "readBytes": [ + 170.667 + ], + "writeBytes": [ + 5222.4 + ], + "runningSpeed": [ + 17 + ], + "transmittedBytes": [ + 5393.067 + ] + }, + { + "id": "fcs1", + "wwpn": "100000109b89aca9", + "physicalLocation": "U78D2.001.WZS0B5H-P1-C2-T2", + "numOfPorts": 5, + "numOfReads": [ + 0.067 + ], + "numOfWrites": [ + 0.767 + ], + "readBytes": [ + 170.667 + ], + "writeBytes": [ + 4130.133 + ], + "runningSpeed": [ + 17 + ], + "transmittedBytes": [ + 4300.8 + ] + }, + { + "id": "fcs2", + "wwpn": "0000000000000000", + "physicalLocation": "U78D2.001.WZS0B5H-P1-C2-T2", + "numOfPorts": 0, + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "runningSpeed": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + } + ] + } + }, + { + "id": 2, + "uuid": "19D6097E-763E-4B64-A48A-A285B21E1D0C", + "name": "P924VIO2", + "state": "Open Firmware", + "affinityScore": 100, + "memory": { + "assignedMem": [ + 4096 + ], + "utilizedMem": [ + 0 + ], + "virtualPersistentMem": [ + 0 + ] + }, + "processor": { + "weight": 0, + "mode": "share_idle_procs", + "maxVirtualProcessors": [ + 2 + ], + "currentVirtualProcessors": [ + 0 + ], + "maxProcUnits": [ + 2 + ], + "entitledProcUnits": [ + 1 + ], + "utilizedProcUnits": [ + 1 + ], + "utilizedCappedProcUnits": [ + 1 + ], + "utilizedUncappedProcUnits": [ + 0 + ], + "idleProcUnits": [ + 0 + ], + "donatedProcUnits": [ + 0 + ], + "timeSpentWaitingForDispatch": [ + 0 + ], + "timePerInstructionExecution": [ + 0 + ] + }, + "network": { + "clientLpars": [ + "07F4342319494029801548C492523860" + ], + "virtualEthernetAdapters": [ + { + "physicalLocation": "U9009.42A.21F64EV-V2-C2", + "vlanId": 1, + "vswitchId": 0, + "isPortVlanId": true, + "receivedPackets": [ + 0 + ], + "sentPackets": [ + 0 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 0 + ], + "receivedBytes": [ + 0 + ], + "receivedPhysicalPackets": [ + 0 + ], + "sentPhysicalPackets": [ + 0 + ], + "droppedPhysicalPackets": [ + 0 + ], + "sentPhysicalBytes": [ + 0 + ], + "receivedPhysicalBytes": [ + 0 + ], + "transferredBytes": [ + 0 + ], + "transferredPhysicalBytes": [ + 0 + ] + } + ], + "sriovLogicalPorts": [ + { + "drcIndex": "654344193", + "physicalLocation": "U78D2.001.WZS0B5H-P1-C11-T2-S1", + "physicalDrcIndex": "553779219", + "physicalPortId": 1, + "clientPartitionUUID": "07F4342319494029801548C492523860", + "vnicDeviceMode": "NonVNIC", + "configurationType": "Ethernet", + "receivedPackets": [ + 0 + ], + "sentPackets": [ + 0 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 0 + ], + "receivedBytes": [ + 0 + ], + "errorIn": [ + 0 + ], + "errorOut": [ + 0 + ], + "transferredBytes": [ + 0 + ] + } + ] + }, + "storage": { + "clientLpars": [ + "0ADFFB82-B765-4B24-BE35-38D9EE1E3E81", + "396117F4-A59F-44E1-945C-B8B9EE9ABD29", + "2C1D43AF-C6EC-49E5-AF8E-FE3A5879D356", + "07F43423-1949-4029-8015-48C492523860" + ] + } + } + ] + }, + { + "sampleType": "ManagedSystem", + "sampleInfo": { + "timeStamp": "2022-12-02T07:46:00+0100", + "status": 2, + "errorInfo": [ + { + "errId": "4002", + "errMsg": "vios: 2 is not in running state on Managed System: 9009-42A*21F64EV", + "uuid": "19D6097E-763E-4B64-A48A-A285B21E1D0C", + "reportedBy": "VirtualIOServer", + "occurrenceCount": 1 + } + ] + }, + "systemFirmwareUtil": { + "utilizedProcUnits": [ + 0.00315 + ], + "assignedMem": [ + 40448 + ] + }, + "serverUtil": { + "processor": { + "totalProcUnits": [ + 24 + ], + "utilizedProcUnits": [ + 1.10589 + ], + "availableProcUnits": [ + 4.15 + ], + "configurableProcUnits": [ + 24 + ] + }, + "memory": { + "totalMem": [ + 1048576 + ], + "availableMem": [ + 66048 + ], + "configurableMem": [ + 1048576 + ], + "assignedMemToLpars": [ + 942080 + ], + "virtualPersistentMem": [ + 0 + ] + }, + "physicalProcessorPool": { + "assignedProcUnits": [ + 21 + ], + "utilizedProcUnits": [ + 0.0828 + ], + "availableProcUnits": [ + 20.9172 + ], + "configuredProcUnits": [ + 0 + ], + "borrowedProcUnits": [ + 4 + ] + }, + "sharedProcessorPool": [ + { + "id": 0, + "name": "DefaultPool", + "assignedProcUnits": [ + 21 + ], + "utilizedProcUnits": [ + 0.04442 + ], + "availableProcUnits": [ + 20.95558 + ], + "configuredProcUnits": [ + 13.85 + ], + "borrowedProcUnits": [ + 4 + ] + }, + { + "id": 1, + "name": "SharedPool01", + "assignedProcUnits": [ + 4 + ], + "utilizedProcUnits": [ + 0 + ], + "availableProcUnits": [ + 4 + ] + }, + { + "id": 2, + "name": "SharedPool02", + "assignedProcUnits": [ + 4 + ], + "utilizedProcUnits": [ + 0 + ], + "availableProcUnits": [ + 4 + ] + }, + { + "id": 3, + "name": "SharedPool03", + "assignedProcUnits": [ + 1 + ], + "utilizedProcUnits": [ + 0 + ], + "availableProcUnits": [ + 1 + ], + "configuredProcUnits": [ + 1 + ] + } + ], + "network": { + "sriovAdapters": [ + { + "drcIndex": "553779219", + "physicalPorts": [ + { + "id": 3, + "physicalLocation": "U78D2.001.WZS0B5H-P1-C11-T4", + "receivedPackets": [ + 0 + ], + "sentPackets": [ + 0 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 0 + ], + "receivedBytes": [ + 0 + ], + "errorIn": [ + 0 + ], + "errorOut": [ + 0 + ], + "transferredBytes": [ + 0 + ] + }, + { + "id": 2, + "physicalLocation": "U78D2.001.WZS0B5H-P1-C11-T3", + "receivedPackets": [ + 0 + ], + "sentPackets": [ + 0 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 0 + ], + "receivedBytes": [ + 0 + ], + "errorIn": [ + 0 + ], + "errorOut": [ + 0 + ], + "transferredBytes": [ + 0 + ] + }, + { + "id": 1, + "physicalLocation": "U78D2.001.WZS0B5H-P1-C11-T2", + "receivedPackets": [ + 0 + ], + "sentPackets": [ + 0 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 0 + ], + "receivedBytes": [ + 0 + ], + "errorIn": [ + 0 + ], + "errorOut": [ + 0 + ], + "transferredBytes": [ + 0 + ] + }, + { + "id": 0, + "physicalLocation": "U78D2.001.WZS0B5H-P1-C11-T1", + "receivedPackets": [ + 0 + ], + "sentPackets": [ + 0 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 0 + ], + "receivedBytes": [ + 0 + ], + "errorIn": [ + 0 + ], + "errorOut": [ + 0 + ], + "transferredBytes": [ + 0 + ] + } + ] + }, + { + "drcIndex": "553713688", + "physicalPorts": [ + { + "id": 0, + "physicalLocation": "U78D2.001.WZS0B5H-P1-C8-T1", + "receivedPackets": [ + 0 + ], + "sentPackets": [ + 0 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 0 + ], + "receivedBytes": [ + 0 + ], + "errorIn": [ + 0 + ], + "errorOut": [ + 0 + ], + "transferredBytes": [ + 0 + ] + }, + { + "id": 1, + "physicalLocation": "U78D2.001.WZS0B5H-P1-C8-T2", + "receivedPackets": [ + 0 + ], + "sentPackets": [ + 0 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 0 + ], + "receivedBytes": [ + 0 + ], + "errorIn": [ + 0 + ], + "errorOut": [ + 0 + ], + "transferredBytes": [ + 0 + ] + }, + { + "id": 2, + "physicalLocation": "U78D2.001.WZS0B5H-P1-C8-T3", + "receivedPackets": [ + 0 + ], + "sentPackets": [ + 0 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 0 + ], + "receivedBytes": [ + 0 + ], + "errorIn": [ + 0 + ], + "errorOut": [ + 0 + ], + "transferredBytes": [ + 0 + ] + }, + { + "id": 3, + "physicalLocation": "U78D2.001.WZS0B5H-P1-C8-T4", + "receivedPackets": [ + 0 + ], + "sentPackets": [ + 0 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 0 + ], + "receivedBytes": [ + 0 + ], + "errorIn": [ + 0 + ], + "errorOut": [ + 0 + ], + "transferredBytes": [ + 0 + ] + } + ] + } + ] + } + }, + "viosUtil": [ + { + "id": 1, + "uuid": "6B1BF965-26DE-42F1-83AC-58C2A95D221C", + "name": "P924VIO1", + "state": "Running", + "affinityScore": 100, + "memory": { + "assignedMem": [ + 4096 + ], + "utilizedMem": [ + 3089 + ], + "virtualPersistentMem": [ + 0 + ] + }, + "processor": { + "weight": 0, + "mode": "share_idle_procs", + "maxVirtualProcessors": [ + 2 + ], + "currentVirtualProcessors": [ + 0 + ], + "maxProcUnits": [ + 2 + ], + "entitledProcUnits": [ + 1 + ], + "utilizedProcUnits": [ + 0.0136 + ], + "utilizedCappedProcUnits": [ + 1 + ], + "utilizedUncappedProcUnits": [ + 0 + ], + "idleProcUnits": [ + 0.9864 + ], + "donatedProcUnits": [ + 0 + ], + "timeSpentWaitingForDispatch": [ + 0 + ], + "timePerInstructionExecution": [ + 2 + ] + }, + "network": { + "clientLpars": [ + "07F4342319494029801548C492523860", + "0ADFFB82-B765-4B24-BE35-38D9EE1E3E81", + "396117F4-A59F-44E1-945C-B8B9EE9ABD29", + "2C1D43AF-C6EC-49E5-AF8E-FE3A5879D356", + "07F43423-1949-4029-8015-48C492523860" + ], + "genericAdapters": [ + { + "id": "ent8", + "type": "physical", + "physicalLocation": "U78D2.001.WZS0B5H-P1-C7-T2", + "receivedPackets": [ + 5.9 + ], + "sentPackets": [ + 5.033 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 1706.8 + ], + "receivedBytes": [ + 1028.933 + ], + "transferredBytes": [ + 2735.733 + ] + }, + { + "id": "ent4", + "type": "virtual", + "physicalLocation": "U9009.42A.21F64EV-V1-C2-T1", + "receivedPackets": [ + 1.167 + ], + "sentPackets": [ + 7.767 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 4160.033 + ], + "receivedBytes": [ + 453.133 + ], + "transferredBytes": [ + 4613.166 + ] + }, + { + "id": "ent7", + "type": "physical", + "physicalLocation": "U78D2.001.WZS0B5H-P1-C7-T1", + "receivedPackets": [ + 2.667 + ], + "sentPackets": [ + 1.167 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 401.8 + ], + "receivedBytes": [ + 227.967 + ], + "transferredBytes": [ + 629.767 + ] + } + ], + "sharedAdapters": [ + { + "id": "ent5", + "type": "sea", + "physicalLocation": "U9009.42A.21F64EV-V1-C2-T1", + "receivedPackets": [ + 3.833 + ], + "sentPackets": [ + 8.933 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 4561.833 + ], + "receivedBytes": [ + 681.1 + ], + "transferredBytes": [ + 5242.933 + ], + "bridgedAdapters": [ + "ent7", + "ent4", + "ent4" + ] + } + ], + "virtualEthernetAdapters": [ + { + "physicalLocation": "U9009.42A.21F64EV-V1-C2", + "vlanId": 1, + "vswitchId": 0, + "isPortVlanId": true, + "receivedPackets": [ + 1.333 + ], + "sentPackets": [ + 1.967 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 169.7 + ], + "receivedBytes": [ + 449.5 + ], + "receivedPhysicalPackets": [ + 0 + ], + "sentPhysicalPackets": [ + 0 + ], + "droppedPhysicalPackets": [ + 0 + ], + "sentPhysicalBytes": [ + 0 + ], + "receivedPhysicalBytes": [ + 0 + ], + "transferredBytes": [ + 619.2 + ], + "transferredPhysicalBytes": [ + 0 + ] + } + ], + "sriovLogicalPorts": [ + { + "drcIndex": "654327812", + "physicalLocation": "U78D2.001.WZS0B5H-P1-C8-T1-S4", + "physicalDrcIndex": "553713688", + "physicalPortId": 0, + "clientPartitionUUID": "07F4342319494029801548C492523860", + "vnicDeviceMode": "NonVNIC", + "configurationType": "Ethernet", + "receivedPackets": [ + 0 + ], + "sentPackets": [ + 0 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 0 + ], + "receivedBytes": [ + 0 + ], + "errorIn": [ + 0 + ], + "errorOut": [ + 0 + ], + "transferredBytes": [ + 0 + ] + }, + { + "drcIndex": "654344195", + "physicalLocation": "U78D2.001.WZS0B5H-P1-C11-T1-S3", + "physicalDrcIndex": "553779219", + "physicalPortId": 0, + "clientPartitionUUID": "07F4342319494029801548C492523860", + "vnicDeviceMode": "NonVNIC", + "configurationType": "Ethernet", + "receivedPackets": [ + 0 + ], + "sentPackets": [ + 0 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 0 + ], + "receivedBytes": [ + 0 + ], + "errorIn": [ + 0 + ], + "errorOut": [ + 0 + ], + "transferredBytes": [ + 0 + ] + }, + { + "drcIndex": "654327809", + "physicalLocation": "U78D2.001.WZS0B5H-P1-C8-T2-S1", + "physicalDrcIndex": "553713688", + "physicalPortId": 1, + "clientPartitionUUID": "07F4342319494029801548C492523860", + "vnicDeviceMode": "NonVNIC", + "configurationType": "Ethernet", + "receivedPackets": [ + 0 + ], + "sentPackets": [ + 0 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 0 + ], + "receivedBytes": [ + 0 + ], + "errorIn": [ + 0 + ], + "errorOut": [ + 0 + ], + "transferredBytes": [ + 0 + ] + } + ] + }, + "storage": { + "clientLpars": [ + "0ADFFB82-B765-4B24-BE35-38D9EE1E3E81", + "396117F4-A59F-44E1-945C-B8B9EE9ABD29", + "2C1D43AF-C6EC-49E5-AF8E-FE3A5879D356", + "07F43423-1949-4029-8015-48C492523860" + ], + "genericPhysicalAdapters": [ + { + "id": "usbhc0", + "type": "sas", + "physicalLocation": "U78D2.001.WZS0B5H-P1", + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + }, + { + "id": "nvme0", + "type": "sas", + "physicalLocation": "U78D2.001.WZS0B5H-P1-C50-C1", + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 10.4 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 5324.8 + ], + "transmittedBytes": [ + 5324.8 + ] + } + ], + "genericVirtualAdapters": [ + { + "id": "vhost0", + "type": "virtual", + "physicalLocation": "U9009.42A.21F64EV-V1-C3", + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + }, + { + "id": "vhost9", + "type": "virtual", + "physicalLocation": "U9009.42A.21F64EV-V1-C26", + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + }, + { + "id": "vhost18", + "type": "virtual", + "physicalLocation": "U9009.42A.21F64EV-V1-C48", + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + }, + { + "id": "vhost6", + "type": "virtual", + "physicalLocation": "U9009.42A.21F64EV-V1-C15", + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + }, + { + "id": "vhost5", + "type": "virtual", + "physicalLocation": "U9009.42A.21F64EV-V1-C8", + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + }, + { + "id": "vhost1", + "type": "virtual", + "physicalLocation": "U9009.42A.21F64EV-V1-C4", + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + }, + { + "id": "vhost2", + "type": "virtual", + "physicalLocation": "U9009.42A.21F64EV-V1-C5", + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + }, + { + "id": "vhost3", + "type": "virtual", + "physicalLocation": "U9009.42A.21F64EV-V1-C6", + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + }, + { + "id": "vhost4", + "type": "virtual", + "physicalLocation": "U9009.42A.21F64EV-V1-C7", + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + }, + { + "id": "vhost16", + "type": "virtual", + "physicalLocation": "U9009.42A.21F64EV-V1-C47", + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + }, + { + "id": "vhost11", + "type": "virtual", + "physicalLocation": "U9009.42A.21F64EV-V1-C14", + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + }, + { + "id": "vhost8", + "type": "virtual", + "physicalLocation": "U9009.42A.21F64EV-V1-C11", + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + }, + { + "id": "vhost12", + "type": "virtual", + "physicalLocation": "U9009.42A.21F64EV-V1-C34", + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + }, + { + "id": "vhost7", + "type": "virtual", + "physicalLocation": "U9009.42A.21F64EV-V1-C12", + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + }, + { + "id": "vhost17", + "type": "virtual", + "physicalLocation": "U9009.42A.21F64EV-V1-C95", + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + } + ], + "fiberChannelAdapters": [ + { + "id": "fcs0", + "wwpn": "100000109b89aca8", + "physicalLocation": "U78D2.001.WZS0B5H-P1-C2-T1", + "numOfPorts": 5, + "numOfReads": [ + 0.067 + ], + "numOfWrites": [ + 3.167 + ], + "readBytes": [ + 170.667 + ], + "writeBytes": [ + 16298.667 + ], + "runningSpeed": [ + 17 + ], + "transmittedBytes": [ + 16469.334 + ] + }, + { + "id": "fcs1", + "wwpn": "100000109b89aca9", + "physicalLocation": "U78D2.001.WZS0B5H-P1-C2-T2", + "numOfPorts": 5, + "numOfReads": [ + 0.067 + ], + "numOfWrites": [ + 2.5 + ], + "readBytes": [ + 170.667 + ], + "writeBytes": [ + 11827.2 + ], + "runningSpeed": [ + 17 + ], + "transmittedBytes": [ + 11997.867 + ] + }, + { + "id": "fcs2", + "wwpn": "0000000000000000", + "physicalLocation": "U78D2.001.WZS0B5H-P1-C2-T2", + "numOfPorts": 0, + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 0 + ], + "runningSpeed": [ + 0 + ], + "transmittedBytes": [ + 0 + ] + } + ] + } + }, + { + "id": 2, + "uuid": "19D6097E-763E-4B64-A48A-A285B21E1D0C", + "name": "P924VIO2", + "state": "Open Firmware", + "affinityScore": 100, + "memory": { + "assignedMem": [ + 4096 + ], + "utilizedMem": [ + 0 + ], + "virtualPersistentMem": [ + 0 + ] + }, + "processor": { + "weight": 0, + "mode": "share_idle_procs", + "maxVirtualProcessors": [ + 2 + ], + "currentVirtualProcessors": [ + 0 + ], + "maxProcUnits": [ + 2 + ], + "entitledProcUnits": [ + 1 + ], + "utilizedProcUnits": [ + 1 + ], + "utilizedCappedProcUnits": [ + 1 + ], + "utilizedUncappedProcUnits": [ + 0 + ], + "idleProcUnits": [ + 0 + ], + "donatedProcUnits": [ + 0 + ], + "timeSpentWaitingForDispatch": [ + 0 + ], + "timePerInstructionExecution": [ + 0 + ] + }, + "network": { + "clientLpars": [ + "07F4342319494029801548C492523860" + ], + "virtualEthernetAdapters": [ + { + "physicalLocation": "U9009.42A.21F64EV-V2-C2", + "vlanId": 1, + "vswitchId": 0, + "isPortVlanId": true, + "receivedPackets": [ + 0 + ], + "sentPackets": [ + 0 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 0 + ], + "receivedBytes": [ + 0 + ], + "receivedPhysicalPackets": [ + 0 + ], + "sentPhysicalPackets": [ + 0 + ], + "droppedPhysicalPackets": [ + 0 + ], + "sentPhysicalBytes": [ + 0 + ], + "receivedPhysicalBytes": [ + 0 + ], + "transferredBytes": [ + 0 + ], + "transferredPhysicalBytes": [ + 0 + ] + } + ], + "sriovLogicalPorts": [ + { + "drcIndex": "654344193", + "physicalLocation": "U78D2.001.WZS0B5H-P1-C11-T2-S1", + "physicalDrcIndex": "553779219", + "physicalPortId": 1, + "clientPartitionUUID": "07F4342319494029801548C492523860", + "vnicDeviceMode": "NonVNIC", + "configurationType": "Ethernet", + "receivedPackets": [ + 0 + ], + "sentPackets": [ + 0 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 0 + ], + "receivedBytes": [ + 0 + ], + "errorIn": [ + 0 + ], + "errorOut": [ + 0 + ], + "transferredBytes": [ + 0 + ] + } + ] + }, + "storage": { + "clientLpars": [ + "0ADFFB82-B765-4B24-BE35-38D9EE1E3E81", + "396117F4-A59F-44E1-945C-B8B9EE9ABD29", + "2C1D43AF-C6EC-49E5-AF8E-FE3A5879D356", + "07F43423-1949-4029-8015-48C492523860" + ] + } + } + ] + } + ] + } } diff --git a/src/test/resources/3-logical-partition-perf-data.json b/src/test/resources/3-logical-partition-perf-data.json index b26fbaa..a8ca9a3 100644 --- a/src/test/resources/3-logical-partition-perf-data.json +++ b/src/test/resources/3-logical-partition-perf-data.json @@ -1,274 +1,1093 @@ { - "systemUtil": { - "utilInfo": { - "version": "1.3.0", - "metricType": "Processed", - "frequency": 30, - "startTimeStamp": "2020-08-10T21:06:30+0200", - "endTimeStamp": "2020-08-10T21:06:30+0200", - "mtms": "9009-42A*21F64EV", - "name": "Server-9009-42A-SN21F64EV", - "uuid": "b597e4da-2aab-3f52-8616-341d62153559", - "metricArrayOrder": [ - "AVG" - ] - }, - "utilSamples": [ + "systemUtil": { + "utilInfo": { + "version": "1.3.0", + "metricType": "Processed", + "frequency": 30, + "startTimeStamp": "2022-12-02T12:59:30+0100", + "endTimeStamp": "2022-12-02T13:02:00+0100", + "mtms": "9009-42A*21F64EV", + "name": "Server-9009-42A-SN21F64EV", + "uuid": "b597e4da-2aab-3f52-8616-341d62153559", + "metricArrayOrder": [ + "AVG" + ] + }, + "utilSamples": [ + { + "sampleType": "LogicalPartition", + "sampleInfo": { + "timeStamp": "2022-12-02T12:59:30+0100", + "status": 2, + "errorInfo": [ { - "sampleType": "LogicalPartition", - "sampleInfo": { - "timeStamp": "2020-08-10T21:06:30+0200", - "status": 2, - "errorInfo": [ - { - "errId": "3004", - "errMsg": "Failed to fetch SRIOV adapter physical port statistics due to a technical error.", - "uuid": "b597e4da-2aab-3f52-8616-341d62153559", - "reportedBy": "ManagedSystem", - "occurrenceCount": 1 - }, - { - "errId": "3004", - "errMsg": "Failed to fetch SRIOV adapter physical port statistics due to a technical error.", - "uuid": "b597e4da-2aab-3f52-8616-341d62153559", - "reportedBy": "ManagedSystem", - "occurrenceCount": 1 - } - ] - }, - "lparsUtil": [ - { - "id": 13, - "uuid": "6B7D14D3-BBD2-475B-8284-70FADBFC37FB", - "name": "ubuntu-bionic-a02af293-00000006", - "state": "Running", - "type": "AIX/Linux", - "osType": "Linux", - "affinityScore": 100, - "memory": { - "logicalMem": [ - 8192.000 - ], - "backedPhysicalMem": [ - 8192.000 - ] - }, - "processor": { - "poolId": 0, - "weight": 128, - "mode": "uncap", - "maxVirtualProcessors": [ - 2.000 - ], - "currentVirtualProcessors": [ - 2.000 - ], - "maxProcUnits": [ - 2.000 - ], - "entitledProcUnits": [ - 1.000 - ], - "utilizedProcUnits": [ - 0.001 - ], - "utilizedCappedProcUnits": [ - 0.001 - ], - "utilizedUncappedProcUnits": [ - 0.000 - ], - "idleProcUnits": [ - 0.001 - ], - "donatedProcUnits": [ - 0.000 - ], - "timeSpentWaitingForDispatch": [ - 0.000 - ], - "timePerInstructionExecution": [ - 0.000 - ] - }, - "network": { - "virtualEthernetAdapters": [ - { - "physicalLocation": "U9009.42A.21F64EV-V13-C32", - "vlanId": 1, - "vswitchId": 0, - "isPortVlanId": true, - "viosId": 1, - "sharedEthernetAdapterId": "ent5", - "receivedPackets": [ - 3.867 - ], - "sentPackets": [ - 0.233 - ], - "droppedPackets": [ - 0.000 - ], - "sentBytes": [ - 35.667 - ], - "receivedBytes": [ - 276.467 - ], - "receivedPhysicalPackets": [ - 3.867 - ], - "sentPhysicalPackets": [ - 0.233 - ], - "droppedPhysicalPackets": [ - 0.000 - ], - "sentPhysicalBytes": [ - 35.667 - ], - "receivedPhysicalBytes": [ - 276.467 - ], - "transferredBytes": [ - 312.134 - ], - "transferredPhysicalBytes": [ - 312.134 - ] - } - ] - }, - "storage": { - "genericVirtualAdapters": [ - { - "id": "vhost7", - "type": "virtual", - "viosId": 1, - "physicalLocation": "U9009.42A.21F64EV-V13-C3", - "numOfReads": [ - 0.000 - ], - "numOfWrites": [ - 0.000 - ], - "readBytes": [ - 0.000 - ], - "writeBytes": [ - 0.000 - ], - "transmittedBytes": [ - null - ] - } - ], - "virtualFiberChannelAdapters": [ - { - "wwpn": "c050760b1d10005c", - "wwpn2": "c050760b1d10005d", - "physicalLocation": "U9009.42A.21F64EV-V13-C6", - "physicalPortWWPN": "100000109b89aca9", - "viosId": 1, - "numOfReads": [ - 0.000 - ], - "numOfWrites": [ - 0.100 - ], - "readBytes": [ - 0.000 - ], - "writeBytes": [ - 6690.133 - ], - "runningSpeed": [ - 8.000 - ], - "transmittedBytes": [ - 0.000 - ] - }, - { - "wwpn": "c050760b1d100056", - "wwpn2": "c050760b1d100057", - "physicalLocation": "U9009.42A.21F64EV-V13-C2", - "physicalPortWWPN": "100000109b7db96a", - "viosId": 2, - "numOfReads": [ - 0.000 - ], - "numOfWrites": [ - 0.100 - ], - "readBytes": [ - 0.000 - ], - "writeBytes": [ - 546.133 - ], - "runningSpeed": [ - 8.000 - ], - "transmittedBytes": [ - 0.000 - ] - }, - { - "wwpn": "c050760b1d100058", - "wwpn2": "c050760b1d100059", - "physicalLocation": "U9009.42A.21F64EV-V13-C4", - "physicalPortWWPN": "100000109b89aca8", - "viosId": 1, - "numOfReads": [ - 0.000 - ], - "numOfWrites": [ - 0.100 - ], - "readBytes": [ - 0.000 - ], - "writeBytes": [ - 6690.133 - ], - "runningSpeed": [ - 8.000 - ], - "transmittedBytes": [ - 0.000 - ] - }, - { - "wwpn": "c050760b1d10005a", - "wwpn2": "c050760b1d10005b", - "physicalLocation": "U9009.42A.21F64EV-V13-C5", - "physicalPortWWPN": "100000109b7db969", - "viosId": 2, - "numOfReads": [ - 0.000 - ], - "numOfWrites": [ - 0.100 - ], - "readBytes": [ - 0.000 - ], - "writeBytes": [ - 546.133 - ], - "runningSpeed": [ - 8.000 - ], - "transmittedBytes": [ - 0.000 - ] - } - ] - } - } - ] + "errId": "4002", + "errMsg": "vios: 2 is not in running state on Managed System: 9009-42A*21F64EV", + "uuid": "19D6097E-763E-4B64-A48A-A285B21E1D0C", + "reportedBy": "VirtualIOServer", + "occurrenceCount": 1 } + ] + }, + "lparsUtil": [ + { + "id": 11, + "uuid": "07F43423-1949-4029-8015-48C492523860", + "name": "ibmi75-5feffab3-00000003", + "state": "Running", + "type": "IBMi", + "osType": "IBM i", + "virtualSerialNumber": "", + "affinityScore": 100, + "memory": { + "logicalMem": [ + 16384 + ], + "backedPhysicalMem": [ + 16384 + ], + "virtualPersistentMem": [ + 0 + ] + }, + "processor": { + "poolId": 0, + "weight": 128, + "mode": "uncap", + "maxVirtualProcessors": [ + 4 + ], + "currentVirtualProcessors": [ + 4 + ], + "maxProcUnits": [ + 4 + ], + "entitledProcUnits": [ + 2 + ], + "utilizedProcUnits": [ + 0.00793 + ], + "utilizedCappedProcUnits": [ + 0.00793 + ], + "utilizedUncappedProcUnits": [ + 0 + ], + "idleProcUnits": [ + 0.00482 + ], + "donatedProcUnits": [ + 0 + ], + "timeSpentWaitingForDispatch": [ + 0 + ], + "timePerInstructionExecution": [ + 0 + ] + }, + "network": { + "virtualEthernetAdapters": [ + { + "physicalLocation": "U9009.42A.21F64EV-V11-C7", + "vlanId": 1, + "vswitchId": 0, + "isPortVlanId": true, + "viosId": 1, + "sharedEthernetAdapterId": "ent5", + "receivedPackets": [ + 0.9 + ], + "sentPackets": [ + 0.033 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 3.033 + ], + "receivedBytes": [ + 54 + ], + "receivedPhysicalPackets": [ + 0.9 + ], + "sentPhysicalPackets": [ + 0.033 + ], + "droppedPhysicalPackets": [ + 0 + ], + "sentPhysicalBytes": [ + 3.033 + ], + "receivedPhysicalBytes": [ + 54 + ], + "transferredBytes": [ + 57.033 + ], + "transferredPhysicalBytes": [ + 57.033 + ] + } + ] + }, + "storage": { + "virtualFiberChannelAdapters": [ + { + "wwpn": "c050760b1d100240", + "wwpn2": "c050760b1d100241", + "physicalLocation": "U9009.42A.21F64EV-V11-C3", + "physicalPortWWPN": "100000109b89aca8", + "viosId": 1, + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0.9 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 4454.4 + ], + "runningSpeed": [ + 17 + ], + "transmittedBytes": [ + 0 + ] + }, + { + "wwpn": "c050760b1d100244", + "wwpn2": "c050760b1d100245", + "physicalLocation": "U9009.42A.21F64EV-V11-C5", + "physicalPortWWPN": "100000109b89aca9", + "viosId": 1, + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0.7 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 3532.8 + ], + "runningSpeed": [ + 17 + ], + "transmittedBytes": [ + 0 + ] + } + ] + } + } ] - } + }, + { + "sampleType": "LogicalPartition", + "sampleInfo": { + "timeStamp": "2022-12-02T13:00:00+0100", + "status": 2, + "errorInfo": [ + { + "errId": "4002", + "errMsg": "vios: 2 is not in running state on Managed System: 9009-42A*21F64EV", + "uuid": "19D6097E-763E-4B64-A48A-A285B21E1D0C", + "reportedBy": "VirtualIOServer", + "occurrenceCount": 1 + } + ] + }, + "lparsUtil": [ + { + "id": 11, + "uuid": "07F43423-1949-4029-8015-48C492523860", + "name": "ibmi75-5feffab3-00000003", + "state": "Running", + "type": "IBMi", + "osType": "IBM i", + "virtualSerialNumber": "", + "affinityScore": 100, + "memory": { + "logicalMem": [ + 16384 + ], + "backedPhysicalMem": [ + 16384 + ], + "virtualPersistentMem": [ + 0 + ] + }, + "processor": { + "poolId": 0, + "weight": 128, + "mode": "uncap", + "maxVirtualProcessors": [ + 4 + ], + "currentVirtualProcessors": [ + 4 + ], + "maxProcUnits": [ + 4 + ], + "entitledProcUnits": [ + 2 + ], + "utilizedProcUnits": [ + 0.01198 + ], + "utilizedCappedProcUnits": [ + 0.01198 + ], + "utilizedUncappedProcUnits": [ + 0 + ], + "idleProcUnits": [ + 0.00765 + ], + "donatedProcUnits": [ + 0 + ], + "timeSpentWaitingForDispatch": [ + 0 + ], + "timePerInstructionExecution": [ + 0 + ] + }, + "network": { + "virtualEthernetAdapters": [ + { + "physicalLocation": "U9009.42A.21F64EV-V11-C7", + "vlanId": 1, + "vswitchId": 0, + "isPortVlanId": true, + "viosId": 1, + "sharedEthernetAdapterId": "ent5", + "receivedPackets": [ + 0.667 + ], + "sentPackets": [ + 0 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 0 + ], + "receivedBytes": [ + 40 + ], + "receivedPhysicalPackets": [ + 0.667 + ], + "sentPhysicalPackets": [ + 0 + ], + "droppedPhysicalPackets": [ + 0 + ], + "sentPhysicalBytes": [ + 0 + ], + "receivedPhysicalBytes": [ + 40 + ], + "transferredBytes": [ + 40 + ], + "transferredPhysicalBytes": [ + 40 + ] + } + ] + }, + "storage": { + "virtualFiberChannelAdapters": [ + { + "wwpn": "c050760b1d100240", + "wwpn2": "c050760b1d100241", + "physicalLocation": "U9009.42A.21F64EV-V11-C3", + "physicalPortWWPN": "100000109b89aca8", + "viosId": 1, + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 1.167 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 5683.2 + ], + "runningSpeed": [ + 17 + ], + "transmittedBytes": [ + 0 + ] + }, + { + "wwpn": "c050760b1d100244", + "wwpn2": "c050760b1d100245", + "physicalLocation": "U9009.42A.21F64EV-V11-C5", + "physicalPortWWPN": "100000109b89aca9", + "viosId": 1, + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0.833 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 3993.6 + ], + "runningSpeed": [ + 17 + ], + "transmittedBytes": [ + 0 + ] + } + ] + } + } + ] + }, + { + "sampleType": "LogicalPartition", + "sampleInfo": { + "timeStamp": "2022-12-02T13:00:30+0100", + "status": 2, + "errorInfo": [ + { + "errId": "4002", + "errMsg": "vios: 2 is not in running state on Managed System: 9009-42A*21F64EV", + "uuid": "19D6097E-763E-4B64-A48A-A285B21E1D0C", + "reportedBy": "VirtualIOServer", + "occurrenceCount": 1 + } + ] + }, + "lparsUtil": [ + { + "id": 11, + "uuid": "07F43423-1949-4029-8015-48C492523860", + "name": "ibmi75-5feffab3-00000003", + "state": "Running", + "type": "IBMi", + "osType": "IBM i", + "virtualSerialNumber": "", + "affinityScore": 100, + "memory": { + "logicalMem": [ + 16384 + ], + "backedPhysicalMem": [ + 16384 + ], + "virtualPersistentMem": [ + 0 + ] + }, + "processor": { + "poolId": 0, + "weight": 128, + "mode": "uncap", + "maxVirtualProcessors": [ + 4 + ], + "currentVirtualProcessors": [ + 4 + ], + "maxProcUnits": [ + 4 + ], + "entitledProcUnits": [ + 2 + ], + "utilizedProcUnits": [ + 0.00816 + ], + "utilizedCappedProcUnits": [ + 0.00816 + ], + "utilizedUncappedProcUnits": [ + 0 + ], + "idleProcUnits": [ + 0.00498 + ], + "donatedProcUnits": [ + 0 + ], + "timeSpentWaitingForDispatch": [ + 0 + ], + "timePerInstructionExecution": [ + 0 + ] + }, + "network": { + "virtualEthernetAdapters": [ + { + "physicalLocation": "U9009.42A.21F64EV-V11-C7", + "vlanId": 1, + "vswitchId": 0, + "isPortVlanId": true, + "viosId": 1, + "sharedEthernetAdapterId": "ent5", + "receivedPackets": [ + 0.9 + ], + "sentPackets": [ + 0 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 0 + ], + "receivedBytes": [ + 54 + ], + "receivedPhysicalPackets": [ + 0.9 + ], + "sentPhysicalPackets": [ + 0 + ], + "droppedPhysicalPackets": [ + 0 + ], + "sentPhysicalBytes": [ + 0 + ], + "receivedPhysicalBytes": [ + 54 + ], + "transferredBytes": [ + 54 + ], + "transferredPhysicalBytes": [ + 54 + ] + } + ] + }, + "storage": { + "virtualFiberChannelAdapters": [ + { + "wwpn": "c050760b1d100240", + "wwpn2": "c050760b1d100241", + "physicalLocation": "U9009.42A.21F64EV-V11-C3", + "physicalPortWWPN": "100000109b89aca8", + "viosId": 1, + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0.667 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 3686.4 + ], + "runningSpeed": [ + 17 + ], + "transmittedBytes": [ + 0 + ] + }, + { + "wwpn": "c050760b1d100244", + "wwpn2": "c050760b1d100245", + "physicalLocation": "U9009.42A.21F64EV-V11-C5", + "physicalPortWWPN": "100000109b89aca9", + "viosId": 1, + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0.7 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 3225.6 + ], + "runningSpeed": [ + 17 + ], + "transmittedBytes": [ + 0 + ] + } + ] + } + } + ] + }, + { + "sampleType": "LogicalPartition", + "sampleInfo": { + "timeStamp": "2022-12-02T13:01:00+0100", + "status": 2, + "errorInfo": [ + { + "errId": "4002", + "errMsg": "vios: 2 is not in running state on Managed System: 9009-42A*21F64EV", + "uuid": "19D6097E-763E-4B64-A48A-A285B21E1D0C", + "reportedBy": "VirtualIOServer", + "occurrenceCount": 1 + } + ] + }, + "lparsUtil": [ + { + "id": 11, + "uuid": "07F43423-1949-4029-8015-48C492523860", + "name": "ibmi75-5feffab3-00000003", + "state": "Running", + "type": "IBMi", + "osType": "IBM i", + "virtualSerialNumber": "", + "affinityScore": 100, + "memory": { + "logicalMem": [ + 16384 + ], + "backedPhysicalMem": [ + 16384 + ], + "virtualPersistentMem": [ + 0 + ] + }, + "processor": { + "poolId": 0, + "weight": 128, + "mode": "uncap", + "maxVirtualProcessors": [ + 4 + ], + "currentVirtualProcessors": [ + 4 + ], + "maxProcUnits": [ + 4 + ], + "entitledProcUnits": [ + 2 + ], + "utilizedProcUnits": [ + 0.01209 + ], + "utilizedCappedProcUnits": [ + 0.01209 + ], + "utilizedUncappedProcUnits": [ + 0 + ], + "idleProcUnits": [ + 0.00769 + ], + "donatedProcUnits": [ + 0 + ], + "timeSpentWaitingForDispatch": [ + 0 + ], + "timePerInstructionExecution": [ + 0 + ] + }, + "network": { + "virtualEthernetAdapters": [ + { + "physicalLocation": "U9009.42A.21F64EV-V11-C7", + "vlanId": 1, + "vswitchId": 0, + "isPortVlanId": true, + "viosId": 1, + "sharedEthernetAdapterId": "ent5", + "receivedPackets": [ + 0.7 + ], + "sentPackets": [ + 0 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 0 + ], + "receivedBytes": [ + 42 + ], + "receivedPhysicalPackets": [ + 0.7 + ], + "sentPhysicalPackets": [ + 0 + ], + "droppedPhysicalPackets": [ + 0 + ], + "sentPhysicalBytes": [ + 0 + ], + "receivedPhysicalBytes": [ + 42 + ], + "transferredBytes": [ + 42 + ], + "transferredPhysicalBytes": [ + 42 + ] + } + ] + }, + "storage": { + "virtualFiberChannelAdapters": [ + { + "wwpn": "c050760b1d100240", + "wwpn2": "c050760b1d100241", + "physicalLocation": "U9009.42A.21F64EV-V11-C3", + "physicalPortWWPN": "100000109b89aca8", + "viosId": 1, + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0.967 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 5683.2 + ], + "runningSpeed": [ + 17 + ], + "transmittedBytes": [ + 0 + ] + }, + { + "wwpn": "c050760b1d100244", + "wwpn2": "c050760b1d100245", + "physicalLocation": "U9009.42A.21F64EV-V11-C5", + "physicalPortWWPN": "100000109b89aca9", + "viosId": 1, + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0.9 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 7219.2 + ], + "runningSpeed": [ + 17 + ], + "transmittedBytes": [ + 0 + ] + } + ] + } + } + ] + }, + { + "sampleType": "LogicalPartition", + "sampleInfo": { + "timeStamp": "2022-12-02T13:01:30+0100", + "status": 2, + "errorInfo": [ + { + "errId": "4002", + "errMsg": "vios: 2 is not in running state on Managed System: 9009-42A*21F64EV", + "uuid": "19D6097E-763E-4B64-A48A-A285B21E1D0C", + "reportedBy": "VirtualIOServer", + "occurrenceCount": 1 + } + ] + }, + "lparsUtil": [ + { + "id": 11, + "uuid": "07F43423-1949-4029-8015-48C492523860", + "name": "ibmi75-5feffab3-00000003", + "state": "Running", + "type": "IBMi", + "osType": "IBM i", + "virtualSerialNumber": "", + "affinityScore": 100, + "memory": { + "logicalMem": [ + 16384 + ], + "backedPhysicalMem": [ + 16384 + ], + "virtualPersistentMem": [ + 0 + ] + }, + "processor": { + "poolId": 0, + "weight": 128, + "mode": "uncap", + "maxVirtualProcessors": [ + 4 + ], + "currentVirtualProcessors": [ + 4 + ], + "maxProcUnits": [ + 4 + ], + "entitledProcUnits": [ + 2 + ], + "utilizedProcUnits": [ + 0.00813 + ], + "utilizedCappedProcUnits": [ + 0.00813 + ], + "utilizedUncappedProcUnits": [ + 0 + ], + "idleProcUnits": [ + 0.00495 + ], + "donatedProcUnits": [ + 0 + ], + "timeSpentWaitingForDispatch": [ + 0 + ], + "timePerInstructionExecution": [ + 0 + ] + }, + "network": { + "virtualEthernetAdapters": [ + { + "physicalLocation": "U9009.42A.21F64EV-V11-C7", + "vlanId": 1, + "vswitchId": 0, + "isPortVlanId": true, + "viosId": 1, + "sharedEthernetAdapterId": "ent5", + "receivedPackets": [ + 0.967 + ], + "sentPackets": [ + 0 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 0 + ], + "receivedBytes": [ + 74.2 + ], + "receivedPhysicalPackets": [ + 0.967 + ], + "sentPhysicalPackets": [ + 0 + ], + "droppedPhysicalPackets": [ + 0 + ], + "sentPhysicalBytes": [ + 0 + ], + "receivedPhysicalBytes": [ + 74.2 + ], + "transferredBytes": [ + 74.2 + ], + "transferredPhysicalBytes": [ + 74.2 + ] + } + ] + }, + "storage": { + "virtualFiberChannelAdapters": [ + { + "wwpn": "c050760b1d100240", + "wwpn2": "c050760b1d100241", + "physicalLocation": "U9009.42A.21F64EV-V11-C3", + "physicalPortWWPN": "100000109b89aca8", + "viosId": 1, + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0.667 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 3225.6 + ], + "runningSpeed": [ + 17 + ], + "transmittedBytes": [ + 0 + ] + }, + { + "wwpn": "c050760b1d100244", + "wwpn2": "c050760b1d100245", + "physicalLocation": "U9009.42A.21F64EV-V11-C5", + "physicalPortWWPN": "100000109b89aca9", + "viosId": 1, + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0.667 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 3225.6 + ], + "runningSpeed": [ + 17 + ], + "transmittedBytes": [ + 0 + ] + } + ] + } + } + ] + }, + { + "sampleType": "LogicalPartition", + "sampleInfo": { + "timeStamp": "2022-12-02T13:02:00+0100", + "status": 2, + "errorInfo": [ + { + "errId": "4002", + "errMsg": "vios: 2 is not in running state on Managed System: 9009-42A*21F64EV", + "uuid": "19D6097E-763E-4B64-A48A-A285B21E1D0C", + "reportedBy": "VirtualIOServer", + "occurrenceCount": 1 + } + ] + }, + "lparsUtil": [ + { + "id": 11, + "uuid": "07F43423-1949-4029-8015-48C492523860", + "name": "ibmi75-5feffab3-00000003", + "state": "Running", + "type": "IBMi", + "osType": "IBM i", + "virtualSerialNumber": "", + "affinityScore": 100, + "memory": { + "logicalMem": [ + 16384 + ], + "backedPhysicalMem": [ + 16384 + ], + "virtualPersistentMem": [ + 0 + ] + }, + "processor": { + "poolId": 0, + "weight": 128, + "mode": "uncap", + "maxVirtualProcessors": [ + 4 + ], + "currentVirtualProcessors": [ + 4 + ], + "maxProcUnits": [ + 4 + ], + "entitledProcUnits": [ + 2 + ], + "utilizedProcUnits": [ + 0.01218 + ], + "utilizedCappedProcUnits": [ + 0.01218 + ], + "utilizedUncappedProcUnits": [ + 0 + ], + "idleProcUnits": [ + 0.0078 + ], + "donatedProcUnits": [ + 0 + ], + "timeSpentWaitingForDispatch": [ + 0 + ], + "timePerInstructionExecution": [ + 0 + ] + }, + "network": { + "virtualEthernetAdapters": [ + { + "physicalLocation": "U9009.42A.21F64EV-V11-C7", + "vlanId": 1, + "vswitchId": 0, + "isPortVlanId": true, + "viosId": 1, + "sharedEthernetAdapterId": "ent5", + "receivedPackets": [ + 0.633 + ], + "sentPackets": [ + 0 + ], + "droppedPackets": [ + 0 + ], + "sentBytes": [ + 0 + ], + "receivedBytes": [ + 38 + ], + "receivedPhysicalPackets": [ + 0.633 + ], + "sentPhysicalPackets": [ + 0 + ], + "droppedPhysicalPackets": [ + 0 + ], + "sentPhysicalBytes": [ + 0 + ], + "receivedPhysicalBytes": [ + 38 + ], + "transferredBytes": [ + 38 + ], + "transferredPhysicalBytes": [ + 38 + ] + } + ] + }, + "storage": { + "virtualFiberChannelAdapters": [ + { + "wwpn": "c050760b1d100240", + "wwpn2": "c050760b1d100241", + "physicalLocation": "U9009.42A.21F64EV-V11-C3", + "physicalPortWWPN": "100000109b89aca8", + "viosId": 1, + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0.533 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 2457.6 + ], + "runningSpeed": [ + 17 + ], + "transmittedBytes": [ + 0 + ] + }, + { + "wwpn": "c050760b1d100244", + "wwpn2": "c050760b1d100245", + "physicalLocation": "U9009.42A.21F64EV-V11-C5", + "physicalPortWWPN": "100000109b89aca9", + "viosId": 1, + "numOfReads": [ + 0 + ], + "numOfWrites": [ + 0.433 + ], + "readBytes": [ + 0 + ], + "writeBytes": [ + 2304 + ], + "runningSpeed": [ + 17 + ], + "transmittedBytes": [ + 0 + ] + } + ] + } + } + ] + } + ] + } }