Adding upstream version 1.34.4.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
e393c3af3f
commit
4978089aab
4963 changed files with 677545 additions and 0 deletions
166
plugins/inputs/redfish/README.md
Normal file
166
plugins/inputs/redfish/README.md
Normal file
|
@ -0,0 +1,166 @@
|
|||
# Redfish Input Plugin
|
||||
|
||||
The `redfish` plugin gathers metrics and status information about CPU
|
||||
temperature, fanspeed, Powersupply, voltage, hostname and Location details
|
||||
(datacenter, placement, rack and room) of hardware servers for which [DMTF's
|
||||
Redfish](https://redfish.dmtf.org/) is enabled.
|
||||
|
||||
Telegraf minimum version: Telegraf 1.15.0
|
||||
|
||||
## Global configuration options <!-- @/docs/includes/plugin_config.md -->
|
||||
|
||||
In addition to the plugin-specific configuration settings, plugins support
|
||||
additional global and plugin configuration settings. These settings are used to
|
||||
modify metrics, tags, and field or create aliases and configure ordering, etc.
|
||||
See the [CONFIGURATION.md][CONFIGURATION.md] for more details.
|
||||
|
||||
[CONFIGURATION.md]: ../../../docs/CONFIGURATION.md#plugins
|
||||
|
||||
## Secret-store support
|
||||
|
||||
This plugin supports secrets from secret-stores for the `username` and
|
||||
`password` options. See the [secret-store documentation][SECRETSTORE] for more
|
||||
details on how to use them.
|
||||
|
||||
[SECRETSTORE]: ../../../docs/CONFIGURATION.md#secret-store-secrets
|
||||
|
||||
## Configuration
|
||||
|
||||
```toml @sample.conf
|
||||
# Read CPU, Fans, Powersupply and Voltage metrics of hardware server through redfish APIs
|
||||
[[inputs.redfish]]
|
||||
## Redfish API Base URL.
|
||||
address = "https://127.0.0.1:5000"
|
||||
|
||||
## Credentials for the Redfish API. Can also use secrets.
|
||||
username = "root"
|
||||
password = "password123456"
|
||||
|
||||
## System Id to collect data for in Redfish APIs.
|
||||
computer_system_id="System.Embedded.1"
|
||||
|
||||
## Metrics to collect
|
||||
## The metric collects to gather. Choose from "power" and "thermal".
|
||||
# include_metrics = ["power", "thermal"]
|
||||
|
||||
## Tag sets allow you to include redfish OData link parent data
|
||||
## For Example.
|
||||
## Thermal data is an OData link with parent Chassis which has a link of Location.
|
||||
## For more info see the Redfish Resource and Schema Guide at DMTFs website.
|
||||
## Available sets are: "chassis.location" and "chassis"
|
||||
# include_tag_sets = ["chassis.location"]
|
||||
|
||||
## Workarounds
|
||||
## Defines workarounds for certain hardware vendors. Choose from:
|
||||
## * ilo4-thermal - Do not pass 0Data-Version header to Thermal endpoint
|
||||
# workarounds = []
|
||||
|
||||
## Amount of time allowed to complete the HTTP request
|
||||
# timeout = "5s"
|
||||
|
||||
## Optional TLS Config
|
||||
# tls_ca = "/etc/telegraf/ca.pem"
|
||||
# tls_cert = "/etc/telegraf/cert.pem"
|
||||
# tls_key = "/etc/telegraf/key.pem"
|
||||
## Use TLS but skip chain & host verification
|
||||
# insecure_skip_verify = false
|
||||
```
|
||||
|
||||
## Metrics
|
||||
|
||||
- redfish_thermal_temperatures
|
||||
- tags:
|
||||
- source
|
||||
- member_id
|
||||
- address
|
||||
- name
|
||||
- state
|
||||
- health
|
||||
- fields:
|
||||
- reading_celsius
|
||||
- upper_threshold_critical
|
||||
- upper_threshold_fatal
|
||||
- lower_threshold_critical
|
||||
- lower_threshold_fatal
|
||||
|
||||
- redfish_thermal_fans
|
||||
- tags:
|
||||
- source
|
||||
- member_id
|
||||
- address
|
||||
- name
|
||||
- state
|
||||
- health
|
||||
- fields:
|
||||
- reading_rpm (or) reading_percent
|
||||
- upper_threshold_critical
|
||||
- upper_threshold_fatal
|
||||
- lower_threshold_critical
|
||||
- lower_threshold_fatal
|
||||
|
||||
- redfish_power_powersupplies
|
||||
- tags:
|
||||
- source
|
||||
- member_id
|
||||
- address
|
||||
- name
|
||||
- state
|
||||
- health
|
||||
- fields:
|
||||
- last_power_output_watts
|
||||
- line_input_voltage
|
||||
- power_capacity_watts
|
||||
- power_input_watts
|
||||
- power_output_watts
|
||||
|
||||
- redfish_power_voltages (available only if voltage data is found)
|
||||
- tags:
|
||||
- source
|
||||
- member_id
|
||||
- address
|
||||
- name
|
||||
- state
|
||||
- health
|
||||
- fields:
|
||||
- reading_volts
|
||||
- upper_threshold_critical
|
||||
- upper_threshold_fatal
|
||||
- lower_threshold_critical
|
||||
- lower_threshold_fatal
|
||||
|
||||
## Tag Sets
|
||||
|
||||
- chassis.location
|
||||
- tags:
|
||||
- datacenter (available only if location data is found)
|
||||
- rack (available only if location data is found)
|
||||
- room (available only if location data is found)
|
||||
- row (available only if location data is found)
|
||||
|
||||
- chassis
|
||||
- tags:
|
||||
- chassis_chassistype
|
||||
- chassis_manufacturer
|
||||
- chassis_model
|
||||
- chassis_partnumber
|
||||
- chassis_powerstate
|
||||
- chassis_sku
|
||||
- chassis_serialnumber
|
||||
- chassis_state
|
||||
- chassis_health
|
||||
|
||||
## Example Output
|
||||
|
||||
```text
|
||||
redfish_thermal_temperatures,address=127.0.0.1,chassis_chassistype=RackMount,chassis_health=OK,chassis_manufacturer=Contoso,chassis_model=3500RX,chassis_partnumber=224071-J23,chassis_powerstate=On,chassis_serialnumber=437XR1138R2,chassis_sku=8675309,chassis_state=Enabled,health=OK,member_id=0,name=CPU1\ Temp,rack=WEB43,row=North,source=web483,state=Enabled reading_celsius=41,upper_threshold_critical=45,upper_threshold_fatal=48 1691270160000000000
|
||||
redfish_thermal_temperatures,address=127.0.0.1,chassis_chassistype=RackMount,chassis_health=OK,chassis_manufacturer=Contoso,chassis_model=3500RX,chassis_partnumber=224071-J23,chassis_powerstate=On,chassis_serialnumber=437XR1138R2,chassis_sku=8675309,chassis_state=Enabled,member_id=1,name=CPU2\ Temp,rack=WEB43,row=North,source=web483,state=Disabled upper_threshold_critical=45,upper_threshold_fatal=48 1691270160000000000
|
||||
redfish_thermal_temperatures,address=127.0.0.1,chassis_chassistype=RackMount,chassis_health=OK,chassis_manufacturer=Contoso,chassis_model=3500RX,chassis_partnumber=224071-J23,chassis_powerstate=On,chassis_serialnumber=437XR1138R2,chassis_sku=8675309,chassis_state=Enabled,health=OK,member_id=2,name=Chassis\ Intake\ Temp,rack=WEB43,row=North,source=web483,state=Enabled upper_threshold_critical=40,upper_threshold_fatal=50,lower_threshold_critical=5,lower_threshold_fatal=0,reading_celsius=25 1691270160000000000
|
||||
redfish_thermal_fans,address=127.0.0.1,chassis_chassistype=RackMount,chassis_health=OK,chassis_manufacturer=Contoso,chassis_model=3500RX,chassis_partnumber=224071-J23,chassis_powerstate=On,chassis_serialnumber=437XR1138R2,chassis_sku=8675309,chassis_state=Enabled,health=OK,member_id=0,name=BaseBoard\ System\ Fan,rack=WEB43,row=North,source=web483,state=Enabled lower_threshold_fatal=0i,reading_rpm=2100i 1691270160000000000
|
||||
redfish_thermal_fans,address=127.0.0.1,chassis_chassistype=RackMount,chassis_health=OK,chassis_manufacturer=Contoso,chassis_model=3500RX,chassis_partnumber=224071-J23,chassis_powerstate=On,chassis_serialnumber=437XR1138R2,chassis_sku=8675309,chassis_state=Enabled,health=OK,member_id=1,name=BaseBoard\ System\ Fan\ Backup,rack=WEB43,row=North,source=web483,state=Enabled lower_threshold_fatal=0i,reading_rpm=2050i 1691270160000000000
|
||||
redfish_power_powersupplies,address=127.0.0.1,chassis_chassistype=RackMount,chassis_health=OK,chassis_manufacturer=Contoso,chassis_model=3500RX,chassis_partnumber=224071-J23,chassis_powerstate=On,chassis_serialnumber=437XR1138R2,chassis_sku=8675309,chassis_state=Enabled,health=Warning,member_id=0,name=Power\ Supply\ Bay,rack=WEB43,row=North,source=web483,state=Enabled line_input_voltage=120,last_power_output_watts=325,power_capacity_watts=800 1691270160000000000
|
||||
redfish_power_voltages,address=127.0.0.1,chassis_chassistype=RackMount,chassis_health=OK,chassis_manufacturer=Contoso,chassis_model=3500RX,chassis_partnumber=224071-J23,chassis_powerstate=On,chassis_serialnumber=437XR1138R2,chassis_sku=8675309,chassis_state=Enabled,health=OK,member_id=0,name=VRM1\ Voltage,rack=WEB43,row=North,source=web483,state=Enabled upper_threshold_fatal=15,lower_threshold_critical=11,lower_threshold_fatal=10,reading_volts=12,upper_threshold_critical=13 1691270160000000000
|
||||
redfish_power_voltages,address=127.0.0.1,chassis_chassistype=RackMount,chassis_health=OK,chassis_manufacturer=Contoso,chassis_model=3500RX,chassis_partnumber=224071-J23,chassis_powerstate=On,chassis_serialnumber=437XR1138R2,chassis_sku=8675309,chassis_state=Enabled,health=OK,member_id=1,name=VRM2\ Voltage,rack=WEB43,row=North,source=web483,state=Enabled reading_volts=5,upper_threshold_critical=7,lower_threshold_critical=4.5 1691270160000000000
|
||||
redfish_thermal_temperatures,address=127.0.0.1,chassis_chassistype=RackMount,chassis_health=OK,chassis_manufacturer=Contoso,chassis_model=3500RX,chassis_partnumber=224071-J23,chassis_powerstate=On,chassis_serialnumber=437XR1138R2,chassis_sku=8675309,chassis_state=Enabled,health=OK,member_id=0,name=CPU1\ Temp,rack=WEB43,row=North,source=web483,state=Enabled upper_threshold_critical=45,upper_threshold_fatal=48,reading_celsius=41 1691270170000000000
|
||||
redfish_thermal_temperatures,address=127.0.0.1,chassis_chassistype=RackMount,chassis_health=OK,chassis_manufacturer=Contoso,chassis_model=3500RX,chassis_partnumber=224071-J23,chassis_powerstate=On,chassis_serialnumber=437XR1138R2,chassis_sku=8675309,chassis_state=Enabled,member_id=1,name=CPU2\ Temp,rack=WEB43,row=North,source=web483,state=Disabled upper_threshold_critical=45,upper_threshold_fatal=48 1691270170000000000
|
||||
redfish_thermal_temperatures,address=127.0.0.1,chassis_chassistype=RackMount,chassis_health=OK,chassis_manufacturer=Contoso,chassis_model=3500RX,chassis_partnumber=224071-J23,chassis_powerstate=On,chassis_serialnumber=437XR1138R2,chassis_sku=8675309,chassis_state=Enabled,health=OK,member_id=2,name=Chassis\ Intake\ Temp,rack=WEB43,row=North,source=web483,state=Enabled lower_threshold_critical=5,lower_threshold_fatal=0,reading_celsius=25,upper_threshold_critical=40,upper_threshold_fatal=50 1691270170000000000
|
||||
```
|
536
plugins/inputs/redfish/redfish.go
Normal file
536
plugins/inputs/redfish/redfish.go
Normal file
|
@ -0,0 +1,536 @@
|
|||
//go:generate ../../../tools/readme_config_includer/generator
|
||||
package redfish
|
||||
|
||||
import (
|
||||
_ "embed"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
"io"
|
||||
"net"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"path"
|
||||
"slices"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/influxdata/telegraf"
|
||||
"github.com/influxdata/telegraf/config"
|
||||
"github.com/influxdata/telegraf/plugins/common/tls"
|
||||
"github.com/influxdata/telegraf/plugins/inputs"
|
||||
)
|
||||
|
||||
//go:embed sample.conf
|
||||
var sampleConfig string
|
||||
|
||||
const (
|
||||
// tag sets used for including redfish OData link parent data
|
||||
tagSetChassisLocation = "chassis.location"
|
||||
tagSetChassis = "chassis"
|
||||
)
|
||||
|
||||
type Redfish struct {
|
||||
Address string `toml:"address"`
|
||||
Username config.Secret `toml:"username"`
|
||||
Password config.Secret `toml:"password"`
|
||||
ComputerSystemID string `toml:"computer_system_id"`
|
||||
IncludeMetrics []string `toml:"include_metrics"`
|
||||
IncludeTagSets []string `toml:"include_tag_sets"`
|
||||
Workarounds []string `toml:"workarounds"`
|
||||
Timeout config.Duration `toml:"timeout"`
|
||||
|
||||
tagSet map[string]bool
|
||||
client http.Client
|
||||
tls.ClientConfig
|
||||
baseURL *url.URL
|
||||
}
|
||||
|
||||
type system struct {
|
||||
Hostname string `json:"hostname"`
|
||||
Links struct {
|
||||
Chassis []struct {
|
||||
Ref string `json:"@odata.id"`
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
type chassis struct {
|
||||
ChassisType string
|
||||
Location *location
|
||||
Manufacturer string
|
||||
Model string
|
||||
PartNumber string
|
||||
Power struct {
|
||||
Ref string `json:"@odata.id"`
|
||||
}
|
||||
PowerState string
|
||||
SKU string
|
||||
SerialNumber string
|
||||
Status status
|
||||
Thermal struct {
|
||||
Ref string `json:"@odata.id"`
|
||||
}
|
||||
}
|
||||
|
||||
type power struct {
|
||||
PowerControl []struct {
|
||||
Name string
|
||||
MemberID string
|
||||
PowerAllocatedWatts *float64
|
||||
PowerAvailableWatts *float64
|
||||
PowerCapacityWatts *float64
|
||||
PowerConsumedWatts *float64
|
||||
PowerRequestedWatts *float64
|
||||
PowerMetrics struct {
|
||||
AverageConsumedWatts *float64
|
||||
IntervalInMin int
|
||||
MaxConsumedWatts *float64
|
||||
MinConsumedWatts *float64
|
||||
}
|
||||
}
|
||||
PowerSupplies []struct {
|
||||
Name string
|
||||
MemberID string
|
||||
PowerInputWatts *float64
|
||||
PowerCapacityWatts *float64
|
||||
PowerOutputWatts *float64
|
||||
LastPowerOutputWatts *float64
|
||||
Status status
|
||||
LineInputVoltage *float64
|
||||
}
|
||||
Voltages []struct {
|
||||
Name string
|
||||
MemberID string
|
||||
ReadingVolts *float64
|
||||
UpperThresholdCritical *float64
|
||||
UpperThresholdFatal *float64
|
||||
LowerThresholdCritical *float64
|
||||
LowerThresholdFatal *float64
|
||||
Status status
|
||||
}
|
||||
}
|
||||
|
||||
type thermal struct {
|
||||
Fans []struct {
|
||||
Name string
|
||||
MemberID string
|
||||
FanName string
|
||||
CurrentReading *int64
|
||||
Reading *int64
|
||||
ReadingUnits *string
|
||||
UpperThresholdCritical *int64
|
||||
UpperThresholdFatal *int64
|
||||
LowerThresholdCritical *int64
|
||||
LowerThresholdFatal *int64
|
||||
Status status
|
||||
}
|
||||
Temperatures []struct {
|
||||
Name string
|
||||
MemberID string
|
||||
ReadingCelsius *float64
|
||||
UpperThresholdCritical *float64
|
||||
UpperThresholdFatal *float64
|
||||
LowerThresholdCritical *float64
|
||||
LowerThresholdFatal *float64
|
||||
Status status
|
||||
}
|
||||
}
|
||||
|
||||
type location struct {
|
||||
PostalAddress struct {
|
||||
DataCenter string
|
||||
Room string
|
||||
}
|
||||
Placement struct {
|
||||
Rack string
|
||||
Row string
|
||||
}
|
||||
}
|
||||
|
||||
type status struct {
|
||||
State string
|
||||
Health string
|
||||
}
|
||||
|
||||
func (*Redfish) SampleConfig() string {
|
||||
return sampleConfig
|
||||
}
|
||||
|
||||
func (r *Redfish) Init() error {
|
||||
if r.Address == "" {
|
||||
return errors.New("did not provide IP")
|
||||
}
|
||||
|
||||
if r.Username.Empty() && r.Password.Empty() {
|
||||
return errors.New("did not provide username and password")
|
||||
}
|
||||
|
||||
if r.ComputerSystemID == "" {
|
||||
return errors.New("did not provide the computer system ID of the resource")
|
||||
}
|
||||
|
||||
if len(r.IncludeMetrics) == 0 {
|
||||
return errors.New("no metrics specified to collect")
|
||||
}
|
||||
for _, metric := range r.IncludeMetrics {
|
||||
switch metric {
|
||||
case "thermal", "power":
|
||||
default:
|
||||
return fmt.Errorf("unknown metric requested: %s", metric)
|
||||
}
|
||||
}
|
||||
|
||||
for _, workaround := range r.Workarounds {
|
||||
switch workaround {
|
||||
case "ilo4-thermal":
|
||||
default:
|
||||
return fmt.Errorf("unknown workaround requested: %s", workaround)
|
||||
}
|
||||
}
|
||||
r.tagSet = make(map[string]bool, len(r.IncludeTagSets))
|
||||
for _, setLabel := range r.IncludeTagSets {
|
||||
r.tagSet[setLabel] = true
|
||||
}
|
||||
|
||||
var err error
|
||||
r.baseURL, err = url.Parse(r.Address)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
tlsCfg, err := r.ClientConfig.TLSConfig()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
r.client = http.Client{
|
||||
Transport: &http.Transport{
|
||||
TLSClientConfig: tlsCfg,
|
||||
Proxy: http.ProxyFromEnvironment,
|
||||
},
|
||||
Timeout: time.Duration(r.Timeout),
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func (r *Redfish) Gather(acc telegraf.Accumulator) error {
|
||||
address, _, err := net.SplitHostPort(r.baseURL.Host)
|
||||
if err != nil {
|
||||
address = r.baseURL.Host
|
||||
}
|
||||
|
||||
system, err := r.getComputerSystem(r.ComputerSystemID)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
for _, link := range system.Links.Chassis {
|
||||
chassis, err := r.getChassis(link.Ref)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
for _, metric := range r.IncludeMetrics {
|
||||
var err error
|
||||
switch metric {
|
||||
case "thermal":
|
||||
err = r.gatherThermal(acc, address, system, chassis)
|
||||
case "power":
|
||||
err = r.gatherPower(acc, address, system, chassis)
|
||||
default:
|
||||
return fmt.Errorf("unknown metric requested: %s", metric)
|
||||
}
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (r *Redfish) getData(address string, payload interface{}) error {
|
||||
req, err := http.NewRequest("GET", address, nil)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
username, err := r.Username.Get()
|
||||
if err != nil {
|
||||
return fmt.Errorf("getting username failed: %w", err)
|
||||
}
|
||||
user := username.String()
|
||||
username.Destroy()
|
||||
|
||||
password, err := r.Password.Get()
|
||||
if err != nil {
|
||||
return fmt.Errorf("getting password failed: %w", err)
|
||||
}
|
||||
pass := password.String()
|
||||
password.Destroy()
|
||||
|
||||
req.SetBasicAuth(user, pass)
|
||||
req.Header.Set("Accept", "application/json")
|
||||
req.Header.Set("Content-Type", "application/json")
|
||||
req.Header.Set("OData-Version", "4.0")
|
||||
|
||||
// workaround for iLO4 thermal data
|
||||
if slices.Contains(r.Workarounds, "ilo4-thermal") && strings.Contains(address, "/Thermal") {
|
||||
req.Header.Del("OData-Version")
|
||||
}
|
||||
|
||||
resp, err := r.client.Do(req)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer resp.Body.Close()
|
||||
|
||||
if resp.StatusCode != 200 {
|
||||
return fmt.Errorf("received status code %d (%s) for address %s, expected 200",
|
||||
resp.StatusCode,
|
||||
http.StatusText(resp.StatusCode),
|
||||
r.Address)
|
||||
}
|
||||
|
||||
body, err := io.ReadAll(resp.Body)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
err = json.Unmarshal(body, &payload)
|
||||
if err != nil {
|
||||
return fmt.Errorf("error parsing input: %w", err)
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func (r *Redfish) getComputerSystem(id string) (*system, error) {
|
||||
loc := r.baseURL.ResolveReference(&url.URL{Path: path.Join("/redfish/v1/Systems/", id)})
|
||||
system := &system{}
|
||||
err := r.getData(loc.String(), system)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return system, nil
|
||||
}
|
||||
|
||||
func (r *Redfish) getChassis(ref string) (*chassis, error) {
|
||||
loc := r.baseURL.ResolveReference(&url.URL{Path: ref})
|
||||
chassis := &chassis{}
|
||||
err := r.getData(loc.String(), chassis)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return chassis, nil
|
||||
}
|
||||
|
||||
func (r *Redfish) getPower(ref string) (*power, error) {
|
||||
loc := r.baseURL.ResolveReference(&url.URL{Path: ref})
|
||||
power := &power{}
|
||||
err := r.getData(loc.String(), power)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return power, nil
|
||||
}
|
||||
|
||||
func (r *Redfish) getThermal(ref string) (*thermal, error) {
|
||||
loc := r.baseURL.ResolveReference(&url.URL{Path: ref})
|
||||
thermal := &thermal{}
|
||||
err := r.getData(loc.String(), thermal)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return thermal, nil
|
||||
}
|
||||
|
||||
func setChassisTags(chassis *chassis, tags map[string]string) {
|
||||
tags["chassis_chassistype"] = chassis.ChassisType
|
||||
tags["chassis_manufacturer"] = chassis.Manufacturer
|
||||
tags["chassis_model"] = chassis.Model
|
||||
tags["chassis_partnumber"] = chassis.PartNumber
|
||||
tags["chassis_powerstate"] = chassis.PowerState
|
||||
tags["chassis_sku"] = chassis.SKU
|
||||
tags["chassis_serialnumber"] = chassis.SerialNumber
|
||||
tags["chassis_state"] = chassis.Status.State
|
||||
tags["chassis_health"] = chassis.Status.Health
|
||||
}
|
||||
|
||||
func (r *Redfish) gatherThermal(acc telegraf.Accumulator, address string, system *system, chassis *chassis) error {
|
||||
thermal, err := r.getThermal(chassis.Thermal.Ref)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
for _, j := range thermal.Temperatures {
|
||||
tags := make(map[string]string, 19)
|
||||
tags["member_id"] = j.MemberID
|
||||
tags["address"] = address
|
||||
tags["name"] = j.Name
|
||||
tags["source"] = system.Hostname
|
||||
tags["state"] = j.Status.State
|
||||
tags["health"] = j.Status.Health
|
||||
if _, ok := r.tagSet[tagSetChassisLocation]; ok && chassis.Location != nil {
|
||||
tags["datacenter"] = chassis.Location.PostalAddress.DataCenter
|
||||
tags["room"] = chassis.Location.PostalAddress.Room
|
||||
tags["rack"] = chassis.Location.Placement.Rack
|
||||
tags["row"] = chassis.Location.Placement.Row
|
||||
}
|
||||
if _, ok := r.tagSet[tagSetChassis]; ok {
|
||||
setChassisTags(chassis, tags)
|
||||
}
|
||||
|
||||
fields := make(map[string]interface{})
|
||||
fields["reading_celsius"] = j.ReadingCelsius
|
||||
fields["upper_threshold_critical"] = j.UpperThresholdCritical
|
||||
fields["upper_threshold_fatal"] = j.UpperThresholdFatal
|
||||
fields["lower_threshold_critical"] = j.LowerThresholdCritical
|
||||
fields["lower_threshold_fatal"] = j.LowerThresholdFatal
|
||||
acc.AddFields("redfish_thermal_temperatures", fields, tags)
|
||||
}
|
||||
|
||||
for _, j := range thermal.Fans {
|
||||
tags := make(map[string]string, 20)
|
||||
fields := make(map[string]interface{}, 5)
|
||||
tags["member_id"] = j.MemberID
|
||||
tags["address"] = address
|
||||
tags["name"] = j.Name
|
||||
if j.FanName != "" {
|
||||
tags["name"] = j.FanName
|
||||
}
|
||||
tags["source"] = system.Hostname
|
||||
tags["state"] = j.Status.State
|
||||
tags["health"] = j.Status.Health
|
||||
if _, ok := r.tagSet[tagSetChassisLocation]; ok && chassis.Location != nil {
|
||||
tags["datacenter"] = chassis.Location.PostalAddress.DataCenter
|
||||
tags["room"] = chassis.Location.PostalAddress.Room
|
||||
tags["rack"] = chassis.Location.Placement.Rack
|
||||
tags["row"] = chassis.Location.Placement.Row
|
||||
}
|
||||
if _, ok := r.tagSet[tagSetChassis]; ok {
|
||||
setChassisTags(chassis, tags)
|
||||
}
|
||||
|
||||
if j.ReadingUnits != nil && *j.ReadingUnits == "RPM" {
|
||||
fields["upper_threshold_critical"] = j.UpperThresholdCritical
|
||||
fields["upper_threshold_fatal"] = j.UpperThresholdFatal
|
||||
fields["lower_threshold_critical"] = j.LowerThresholdCritical
|
||||
fields["lower_threshold_fatal"] = j.LowerThresholdFatal
|
||||
fields["reading_rpm"] = j.Reading
|
||||
} else if j.CurrentReading != nil {
|
||||
fields["reading_percent"] = j.CurrentReading
|
||||
} else {
|
||||
fields["reading_percent"] = j.Reading
|
||||
}
|
||||
acc.AddFields("redfish_thermal_fans", fields, tags)
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func (r *Redfish) gatherPower(acc telegraf.Accumulator, address string, system *system, chassis *chassis) error {
|
||||
power, err := r.getPower(chassis.Power.Ref)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
for _, j := range power.PowerControl {
|
||||
tags := map[string]string{
|
||||
"member_id": j.MemberID,
|
||||
"address": address,
|
||||
"name": j.Name,
|
||||
"source": system.Hostname,
|
||||
}
|
||||
if _, ok := r.tagSet[tagSetChassisLocation]; ok && chassis.Location != nil {
|
||||
tags["datacenter"] = chassis.Location.PostalAddress.DataCenter
|
||||
tags["room"] = chassis.Location.PostalAddress.Room
|
||||
tags["rack"] = chassis.Location.Placement.Rack
|
||||
tags["row"] = chassis.Location.Placement.Row
|
||||
}
|
||||
if _, ok := r.tagSet[tagSetChassis]; ok {
|
||||
setChassisTags(chassis, tags)
|
||||
}
|
||||
|
||||
fields := map[string]interface{}{
|
||||
"power_allocated_watts": j.PowerAllocatedWatts,
|
||||
"power_available_watts": j.PowerAvailableWatts,
|
||||
"power_capacity_watts": j.PowerCapacityWatts,
|
||||
"power_consumed_watts": j.PowerConsumedWatts,
|
||||
"power_requested_watts": j.PowerRequestedWatts,
|
||||
"average_consumed_watts": j.PowerMetrics.AverageConsumedWatts,
|
||||
"interval_in_min": j.PowerMetrics.IntervalInMin,
|
||||
"max_consumed_watts": j.PowerMetrics.MaxConsumedWatts,
|
||||
"min_consumed_watts": j.PowerMetrics.MinConsumedWatts,
|
||||
}
|
||||
|
||||
acc.AddFields("redfish_power_powercontrol", fields, tags)
|
||||
}
|
||||
|
||||
for _, j := range power.PowerSupplies {
|
||||
tags := make(map[string]string, 19)
|
||||
tags["member_id"] = j.MemberID
|
||||
tags["address"] = address
|
||||
tags["name"] = j.Name
|
||||
tags["source"] = system.Hostname
|
||||
tags["state"] = j.Status.State
|
||||
tags["health"] = j.Status.Health
|
||||
if _, ok := r.tagSet[tagSetChassisLocation]; ok && chassis.Location != nil {
|
||||
tags["datacenter"] = chassis.Location.PostalAddress.DataCenter
|
||||
tags["room"] = chassis.Location.PostalAddress.Room
|
||||
tags["rack"] = chassis.Location.Placement.Rack
|
||||
tags["row"] = chassis.Location.Placement.Row
|
||||
}
|
||||
if _, ok := r.tagSet[tagSetChassis]; ok {
|
||||
setChassisTags(chassis, tags)
|
||||
}
|
||||
|
||||
fields := make(map[string]interface{})
|
||||
fields["power_input_watts"] = j.PowerInputWatts
|
||||
fields["power_output_watts"] = j.PowerOutputWatts
|
||||
fields["line_input_voltage"] = j.LineInputVoltage
|
||||
fields["last_power_output_watts"] = j.LastPowerOutputWatts
|
||||
fields["power_capacity_watts"] = j.PowerCapacityWatts
|
||||
acc.AddFields("redfish_power_powersupplies", fields, tags)
|
||||
}
|
||||
|
||||
for _, j := range power.Voltages {
|
||||
tags := make(map[string]string, 19)
|
||||
tags["member_id"] = j.MemberID
|
||||
tags["address"] = address
|
||||
tags["name"] = j.Name
|
||||
tags["source"] = system.Hostname
|
||||
tags["state"] = j.Status.State
|
||||
tags["health"] = j.Status.Health
|
||||
if _, ok := r.tagSet[tagSetChassisLocation]; ok && chassis.Location != nil {
|
||||
tags["datacenter"] = chassis.Location.PostalAddress.DataCenter
|
||||
tags["room"] = chassis.Location.PostalAddress.Room
|
||||
tags["rack"] = chassis.Location.Placement.Rack
|
||||
tags["row"] = chassis.Location.Placement.Row
|
||||
}
|
||||
if _, ok := r.tagSet[tagSetChassis]; ok {
|
||||
setChassisTags(chassis, tags)
|
||||
}
|
||||
|
||||
fields := make(map[string]interface{})
|
||||
fields["reading_volts"] = j.ReadingVolts
|
||||
fields["upper_threshold_critical"] = j.UpperThresholdCritical
|
||||
fields["upper_threshold_fatal"] = j.UpperThresholdFatal
|
||||
fields["lower_threshold_critical"] = j.LowerThresholdCritical
|
||||
fields["lower_threshold_fatal"] = j.LowerThresholdFatal
|
||||
acc.AddFields("redfish_power_voltages", fields, tags)
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
inputs.Add("redfish", func() telegraf.Input {
|
||||
return &Redfish{
|
||||
// default tag set of chassis.location required for backwards compatibility
|
||||
IncludeTagSets: []string{tagSetChassisLocation},
|
||||
IncludeMetrics: []string{"power", "thermal"},
|
||||
}
|
||||
})
|
||||
}
|
1214
plugins/inputs/redfish/redfish_test.go
Normal file
1214
plugins/inputs/redfish/redfish_test.go
Normal file
File diff suppressed because it is too large
Load diff
37
plugins/inputs/redfish/sample.conf
Normal file
37
plugins/inputs/redfish/sample.conf
Normal file
|
@ -0,0 +1,37 @@
|
|||
# Read CPU, Fans, Powersupply and Voltage metrics of hardware server through redfish APIs
|
||||
[[inputs.redfish]]
|
||||
## Redfish API Base URL.
|
||||
address = "https://127.0.0.1:5000"
|
||||
|
||||
## Credentials for the Redfish API. Can also use secrets.
|
||||
username = "root"
|
||||
password = "password123456"
|
||||
|
||||
## System Id to collect data for in Redfish APIs.
|
||||
computer_system_id="System.Embedded.1"
|
||||
|
||||
## Metrics to collect
|
||||
## The metric collects to gather. Choose from "power" and "thermal".
|
||||
# include_metrics = ["power", "thermal"]
|
||||
|
||||
## Tag sets allow you to include redfish OData link parent data
|
||||
## For Example.
|
||||
## Thermal data is an OData link with parent Chassis which has a link of Location.
|
||||
## For more info see the Redfish Resource and Schema Guide at DMTFs website.
|
||||
## Available sets are: "chassis.location" and "chassis"
|
||||
# include_tag_sets = ["chassis.location"]
|
||||
|
||||
## Workarounds
|
||||
## Defines workarounds for certain hardware vendors. Choose from:
|
||||
## * ilo4-thermal - Do not pass 0Data-Version header to Thermal endpoint
|
||||
# workarounds = []
|
||||
|
||||
## Amount of time allowed to complete the HTTP request
|
||||
# timeout = "5s"
|
||||
|
||||
## Optional TLS Config
|
||||
# tls_ca = "/etc/telegraf/ca.pem"
|
||||
# tls_cert = "/etc/telegraf/cert.pem"
|
||||
# tls_key = "/etc/telegraf/key.pem"
|
||||
## Use TLS but skip chain & host verification
|
||||
# insecure_skip_verify = false
|
187
plugins/inputs/redfish/testdata/dell_chassis.json
vendored
Normal file
187
plugins/inputs/redfish/testdata/dell_chassis.json
vendored
Normal file
|
@ -0,0 +1,187 @@
|
|||
{
|
||||
"@odata.context": "/redfish/v1/$metadata#Chassis.Chassis",
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1",
|
||||
"@odata.type": "#Chassis.v1_6_0.Chassis",
|
||||
"Actions": {
|
||||
"#Chassis.Reset": {
|
||||
"ResetType@Redfish.AllowableValues": [
|
||||
"On",
|
||||
"ForceOff"
|
||||
],
|
||||
"target": "/redfish/v1/Chassis/System.Embedded.1/Actions/Chassis.Reset"
|
||||
}
|
||||
},
|
||||
"Assembly": {
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Assembly"
|
||||
},
|
||||
"AssetTag": null,
|
||||
"ChassisType": "RackMount",
|
||||
"Description": "It represents the properties for physical components for any system.It represent racks, rackmount servers, blades, standalone, modular systems,enclosures, and all other containers.The non-cpu/device centric parts of the schema are all accessed either directly or indirectly through this resource.",
|
||||
"Id": "System.Embedded.1",
|
||||
"IndicatorLED": "Off",
|
||||
"Links": {
|
||||
"ComputerSystems": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1"
|
||||
}
|
||||
],
|
||||
"ComputerSystems@odata.count": 1,
|
||||
"Contains": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/Enclosure.Internal.0-1:RAID.Integrated.1-1"
|
||||
}
|
||||
],
|
||||
"Contains@odata.count": 1,
|
||||
"CooledBy": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.1A"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.1B"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.2A"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.2B"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.3A"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.3B"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.4A"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.4B"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.5A"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.5B"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.6A"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.6B"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.7A"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.7B"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.8A"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.8B"
|
||||
}
|
||||
],
|
||||
"CooledBy@odata.count": 16,
|
||||
"Drives": [],
|
||||
"Drives@odata.count": 0,
|
||||
"ManagedBy": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Managers/iDRAC.Embedded.1"
|
||||
}
|
||||
],
|
||||
"ManagedBy@odata.count": 1,
|
||||
"ManagersInChassis": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Managers/iDRAC.Embedded.1"
|
||||
}
|
||||
],
|
||||
"ManagersInChassis@odata.count": 1,
|
||||
"PCIeDevices": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeDevice/216-0"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeDevice/0-31"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeDevice/0-17"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeDevice/3-0"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeDevice/0-28"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeDevice/0-0"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeDevice/0-23"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeDevice/25-0"
|
||||
}
|
||||
],
|
||||
"PCIeDevices@odata.count": 8,
|
||||
"PoweredBy": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Power/PowerSupplies/PSU.Slot.1"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Power/PowerSupplies/PSU.Slot.2"
|
||||
}
|
||||
],
|
||||
"PoweredBy@odata.count": 2,
|
||||
"Storage": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/Storage/RAID.Integrated.1-1"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/Storage/AHCI.Embedded.1-1"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/Storage/AHCI.Embedded.2-1"
|
||||
}
|
||||
],
|
||||
"Storage@odata.count": 3
|
||||
},
|
||||
"Location": {
|
||||
"Info": ";;;;1",
|
||||
"InfoFormat": "DataCenter;RoomName;Aisle;RackName;RackSlot",
|
||||
"Placement": {
|
||||
"Rack": "",
|
||||
"Row": ""
|
||||
},
|
||||
"PostalAddress": {
|
||||
"Building": "",
|
||||
"Room": ""
|
||||
}
|
||||
},
|
||||
"Manufacturer": "Dell Inc.",
|
||||
"Model": "PowerEdge R640",
|
||||
"Name": "Computer System Chassis",
|
||||
"NetworkAdapters": {
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/NetworkAdapters"
|
||||
},
|
||||
"PartNumber": "0CRT1GA05",
|
||||
"PhysicalSecurity": {
|
||||
"IntrusionSensor": "Normal",
|
||||
"IntrusionSensorNumber": 115,
|
||||
"IntrusionSensorReArm": "Manual"
|
||||
},
|
||||
"Power": {
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Power"
|
||||
},
|
||||
"PowerState": "On",
|
||||
"SKU": "CLFV7M2",
|
||||
"SerialNumber": "CNIVC007CV0803",
|
||||
"Status": {
|
||||
"Health": "OK",
|
||||
"HealthRollup": "OK",
|
||||
"State": "Enabled"
|
||||
},
|
||||
"Thermal": {
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Thermal"
|
||||
}
|
||||
}
|
188
plugins/inputs/redfish/testdata/dell_chassisinvalid.json
vendored
Normal file
188
plugins/inputs/redfish/testdata/dell_chassisinvalid.json
vendored
Normal file
|
@ -0,0 +1,188 @@
|
|||
{
|
||||
"@odata.context": "/redfish/v1/$metadata#Chassis.Chassis",
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1",
|
||||
"@odata.type": "#Chassis.v1_6_0.Chassis",
|
||||
"Actions": {
|
||||
"#Chassis.Reset": {
|
||||
"ResetType@Redfish.AllowableValues": [
|
||||
"On",
|
||||
"ForceOff"
|
||||
],
|
||||
"target": "/redfish/v1/Chassis/System.Embedded.1/Actions/Chassis.Reset"
|
||||
}
|
||||
},
|
||||
"Assembly": {
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Assembly"
|
||||
},
|
||||
"AssetTag": null,
|
||||
"ChassisType": "RackMount",
|
||||
"Description": "It represents the properties for physical components for any system.It represent racks, rackmount servers, blades, standalone, modular systems,enclosures, and all other containers.The non-cpu/device centric parts of the schema are all accessed either directly or indirectly through this resource.",
|
||||
"Id": "System.Embedded.1",
|
||||
"IndicatorLED": "Off",
|
||||
"Links": {
|
||||
"ComputerSystems": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1"
|
||||
}
|
||||
],
|
||||
"ComputerSystems@odata.count": 1,
|
||||
"Contains": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/Enclosure.Internal.0-1:RAID.Integrated.1-1"
|
||||
}
|
||||
],
|
||||
"Contains@odata.count": 1,
|
||||
"CooledBy": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.1A"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.1B"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.2A"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.2B"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.3A"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.3B"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.4A"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.4B"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.5A"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.5B"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.6A"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.6B"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.7A"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.7B"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.8A"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.8B"
|
||||
}
|
||||
],
|
||||
"CooledBy@odata.count": 16,
|
||||
"Drives": [],
|
||||
"Drives@odata.count": 0,
|
||||
"ManagedBy": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Managers/iDRAC.Embedded.1"
|
||||
}
|
||||
],
|
||||
"ManagedBy@odata.count": 1,
|
||||
"ManagersInChassis": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Managers/iDRAC.Embedded.1"
|
||||
}
|
||||
],
|
||||
"ManagersInChassis@odata.count": 1,
|
||||
"PCIeDevices": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeDevice/216-0"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeDevice/0-31"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeDevice/0-17"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeDevice/3-0"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeDevice/0-28"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeDevice/0-0"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeDevice/0-23"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeDevice/25-0"
|
||||
}
|
||||
],
|
||||
"PCIeDevices@odata.count": 8,
|
||||
"PoweredBy": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Power/PowerSupplies/PSU.Slot.1"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Power/PowerSupplies/PSU.Slot.2"
|
||||
}
|
||||
],
|
||||
"PoweredBy@odata.count": 2,
|
||||
"Storage": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/Storage/RAID.Integrated.1-1"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/Storage/AHCI.Embedded.1-1"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/Storage/AHCI.Embedded.2-1"
|
||||
}
|
||||
],
|
||||
"Storage@odata.count": 3
|
||||
},
|
||||
"Location": {
|
||||
"Info": ";;;;1",
|
||||
"InfoFormat": "DataCenter;RoomName;Aisle;RackName;RackSlot",
|
||||
"Placement": {
|
||||
"Rack": "",
|
||||
"Row": ""
|
||||
},
|
||||
"PostalAddress": {
|
||||
"Building": "",
|
||||
"Room": ""
|
||||
}
|
||||
},
|
||||
"Manufacturer": "Dell Inc.",
|
||||
"Model": "PowerEdge R640",
|
||||
"Name": "Computer System Chassis",
|
||||
"NetworkAdapters": {
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/NetworkAdapters"
|
||||
},
|
||||
"PartNumber": "0CRT1GA05",
|
||||
"PhysicalSecurity": {
|
||||
"IntrusionSensor": "Normal",
|
||||
"IntrusionSensorNumber": 115,
|
||||
"IntrusionSensorReArm": "Manual"
|
||||
},
|
||||
"Power": {
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Power"
|
||||
},
|
||||
"PowerState": "On",
|
||||
"SKU": "CLFV7M2",
|
||||
"SerialNumber": "CNIVC007CV0803",
|
||||
"Status": {
|
||||
"Health": "OK",
|
||||
"HealthRollup": "OK",
|
||||
"State": "Enabled"
|
||||
},
|
||||
"Thermal": {
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Thermal"
|
||||
}
|
||||
}
|
||||
{
|
207
plugins/inputs/redfish/testdata/dell_power.json
vendored
Normal file
207
plugins/inputs/redfish/testdata/dell_power.json
vendored
Normal file
|
@ -0,0 +1,207 @@
|
|||
{
|
||||
"@odata.context": "/redfish/v1/$metadata#Power.Power",
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Power",
|
||||
"@odata.type": "#Power.v1_5_0.Power",
|
||||
"Description": "Power",
|
||||
"Id": "Power",
|
||||
"Name": "Power",
|
||||
"PowerControl": [
|
||||
{
|
||||
"@odata.context": "/redfish/v1/$metadata#Power.Power",
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Power/PowerControl",
|
||||
"@odata.type": "#Power.v1_4_0.PowerControl",
|
||||
"MemberId": "PowerControl",
|
||||
"Name": "System Power Control",
|
||||
"PowerAllocatedWatts": 1628,
|
||||
"PowerAvailableWatts": 0,
|
||||
"PowerCapacityWatts": 1628,
|
||||
"PowerConsumedWatts": 429,
|
||||
"PowerLimit": {
|
||||
"CorrectionInMs": 0,
|
||||
"LimitException": "HardPowerOff",
|
||||
"LimitInWatts": 348
|
||||
},
|
||||
"PowerMetrics": {
|
||||
"AverageConsumedWatts": 426,
|
||||
"IntervalInMin": 1,
|
||||
"MaxConsumedWatts": 436,
|
||||
"MinConsumedWatts": 425
|
||||
},
|
||||
"PowerRequestedWatts": 704,
|
||||
"RelatedItem": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1"
|
||||
}
|
||||
],
|
||||
"RelatedItem@odata.count": 2
|
||||
}
|
||||
],
|
||||
"PowerControl@odata.count": 1,
|
||||
"PowerSupplies": [
|
||||
{
|
||||
"@odata.context": "/redfish/v1/$metadata#Power.Power",
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Power/PowerSupplies/PSU.Slot.1",
|
||||
"@odata.type": "#Power.v1_5_0.PowerSupply",
|
||||
"Assembly": {
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Assembly"
|
||||
},
|
||||
"EfficiencyPercent": 0.9100000262260437,
|
||||
"FirmwareVersion": "00.1B.53",
|
||||
"HotPluggable": true,
|
||||
"InputRanges": [
|
||||
{
|
||||
"InputType": "AC",
|
||||
"MaximumFrequencyHz": 63,
|
||||
"MaximumVoltage": 264,
|
||||
"MinimumFrequencyHz": 47,
|
||||
"MinimumVoltage": 90,
|
||||
"OutputWattage": 750
|
||||
}
|
||||
],
|
||||
"InputRanges@odata.count": 1,
|
||||
"LastPowerOutputWatts": null,
|
||||
"LineInputVoltage": 206,
|
||||
"LineInputVoltageType": "AC240V",
|
||||
"Manufacturer": "Dell",
|
||||
"MemberId": "PSU.Slot.1",
|
||||
"Model": "PWR SPLY,750W,RDNT,ARTESYN ",
|
||||
"Name": "PS1 Status",
|
||||
"Oem": {
|
||||
"Dell": {
|
||||
"DellPowerSupply": {
|
||||
"@odata.context": "/redfish/v1/$metadata#DellPowerSupply.DellPowerSupply",
|
||||
"@odata.id": "/redfish/v1/Dell/Chassis/System.Embedded.1/Power/PowerSupplies/DellPowerSupply/PSU.Slot.1",
|
||||
"@odata.type": "#DellPowerSupply.v1_0_0.DellPowerSupply",
|
||||
"IsSwitchingSupply": true,
|
||||
"Links": {
|
||||
"DellPSNumericSensorCollection": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Dell/Systems/System.Embedded.1/DellPSNumericSensor/iDRAC.Embedded.1%23PS1Current1"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"DellPowerSupplyView": {
|
||||
"@odata.context": "/redfish/v1/$metadata#DellPowerSupplyView.DellPowerSupplyView",
|
||||
"@odata.id": "/redfish/v1/Dell/Chassis/System.Embedded.1/Power/PowerSupplies/DellPowerSupplyView/PSU.Slot.1",
|
||||
"@odata.type": "#DellPowerSupplyView.v1_0_0.DellPowerSupplyView",
|
||||
"DetailedState": "Presence Detected",
|
||||
"Range1MaxInputPowerWatts": 900
|
||||
}
|
||||
}
|
||||
},
|
||||
"PartNumber": "0PJMDNA01",
|
||||
"PowerCapacityWatts": 750,
|
||||
"PowerInputWatts": 900,
|
||||
"PowerOutputWatts": 203,
|
||||
"PowerSupplyType": "AC",
|
||||
"Redundancy": [],
|
||||
"Redundancy@odata.count": 0,
|
||||
"RelatedItem": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1"
|
||||
}
|
||||
],
|
||||
"RelatedItem@odata.count": 1,
|
||||
"SerialNumber": "PHARP0079G0049",
|
||||
"SparePartNumber": "0PJMDNA01",
|
||||
"Status": {
|
||||
"Health": "OK",
|
||||
"State": "Enabled"
|
||||
}
|
||||
}
|
||||
],
|
||||
"PowerSupplies@odata.count": 1,
|
||||
"Redundancy": [],
|
||||
"Redundancy@odata.count": 0,
|
||||
"Voltages": [
|
||||
{
|
||||
"@odata.context": "/redfish/v1/$metadata#Power.Power",
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Voltages/iDRAC.Embedded.1%23SystemBoardDIMMPG",
|
||||
"@odata.type": "#Power.v1_3_0.Voltage",
|
||||
"LowerThresholdCritical": null,
|
||||
"LowerThresholdFatal": null,
|
||||
"LowerThresholdNonCritical": null,
|
||||
"MaxReadingRange": 0,
|
||||
"MemberId": "iDRAC.Embedded.1#SystemBoardDIMMPG",
|
||||
"MinReadingRange": 0,
|
||||
"Name": "System Board DIMM PG",
|
||||
"PhysicalContext": "SystemBoard",
|
||||
"ReadingVolts": 1,
|
||||
"RelatedItem": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1"
|
||||
}
|
||||
],
|
||||
"RelatedItem@odata.count": 1,
|
||||
"SensorNumber": 7,
|
||||
"Status": {
|
||||
"Health": "OK",
|
||||
"State": "Enabled"
|
||||
},
|
||||
"UpperThresholdCritical": null,
|
||||
"UpperThresholdFatal": null,
|
||||
"UpperThresholdNonCritical": null
|
||||
},
|
||||
{
|
||||
"@odata.context": "/redfish/v1/$metadata#Power.Power",
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Voltages/iDRAC.Embedded.1%23SystemBoardNDCPG",
|
||||
"@odata.type": "#Power.v1_3_0.Voltage",
|
||||
"LowerThresholdCritical": null,
|
||||
"LowerThresholdFatal": null,
|
||||
"LowerThresholdNonCritical": null,
|
||||
"MaxReadingRange": 197,
|
||||
"MemberId": "iDRAC.Embedded.1#SystemBoardNDCPG",
|
||||
"MinReadingRange": 139,
|
||||
"Name": "System Board NDC PG",
|
||||
"PhysicalContext": "SystemBoard",
|
||||
"ReadingVolts": 1,
|
||||
"RelatedItem": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1"
|
||||
}
|
||||
],
|
||||
"RelatedItem@odata.count": 1,
|
||||
"SensorNumber": 8,
|
||||
"Status": {
|
||||
"Health": "OK",
|
||||
"State": "Enabled"
|
||||
},
|
||||
"UpperThresholdCritical": null,
|
||||
"UpperThresholdFatal": null,
|
||||
"UpperThresholdNonCritical": null
|
||||
},
|
||||
{
|
||||
"@odata.context": "/redfish/v1/$metadata#Power.Power",
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Voltages/iDRAC.Embedded.1%23SystemBoardPS1PGFAIL",
|
||||
"@odata.type": "#Power.v1_3_0.Voltage",
|
||||
"LowerThresholdCritical": null,
|
||||
"LowerThresholdFatal": null,
|
||||
"LowerThresholdNonCritical": null,
|
||||
"MaxReadingRange": 197,
|
||||
"MemberId": "iDRAC.Embedded.1#SystemBoardPS1PGFAIL",
|
||||
"MinReadingRange": 139,
|
||||
"Name": "System Board PS1 PG FAIL",
|
||||
"PhysicalContext": "SystemBoard",
|
||||
"ReadingVolts": 1,
|
||||
"RelatedItem": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1"
|
||||
}
|
||||
],
|
||||
"RelatedItem@odata.count": 1,
|
||||
"SensorNumber": 9,
|
||||
"Status": {
|
||||
"Health": "OK",
|
||||
"State": "Enabled"
|
||||
},
|
||||
"UpperThresholdCritical": null,
|
||||
"UpperThresholdFatal": null,
|
||||
"UpperThresholdNonCritical": null
|
||||
}
|
||||
],
|
||||
"Voltages@odata.count": 4
|
||||
}
|
207
plugins/inputs/redfish/testdata/dell_powerinvalid.json
vendored
Normal file
207
plugins/inputs/redfish/testdata/dell_powerinvalid.json
vendored
Normal file
|
@ -0,0 +1,207 @@
|
|||
{
|
||||
"@odata.context": "/redfish/v1/$metadata#Power.Power",
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Power",
|
||||
"@odata.type": "#Power.v1_5_0.Power",
|
||||
"Description": "Power",
|
||||
"Id": "Power",
|
||||
"Name": "Power",
|
||||
"PowerControl": [
|
||||
{
|
||||
"@odata.context": "/redfish/v1/$metadata#Power.Power",
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Power/PowerControl",
|
||||
"@odata.type": "#Power.v1_4_0.PowerControl",
|
||||
"MemberId": "PowerControl",
|
||||
"Name": "System Power Control",
|
||||
"PowerAllocatedWatts": 1628,
|
||||
"PowerAvailableWatts": 0,
|
||||
"PowerCapacityWatts": 1628,
|
||||
"PowerConsumedWatts": 429,
|
||||
"PowerLimit": {
|
||||
"CorrectionInMs": 0,
|
||||
"LimitException": "HardPowerOff",
|
||||
"LimitInWatts": 348
|
||||
},
|
||||
"PowerMetrics": {
|
||||
"AverageConsumedWatts": 426,
|
||||
"IntervalInMin": 1,
|
||||
"MaxConsumedWatts": 436,
|
||||
"MinConsumedWatts": 425
|
||||
},
|
||||
"PowerRequestedWatts": 704,
|
||||
"RelatedItem": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1"
|
||||
}
|
||||
],
|
||||
"RelatedItem@odata.count": 2
|
||||
}
|
||||
],
|
||||
"PowerControl@odata.count": 1,
|
||||
"PowerSupplies": [
|
||||
{
|
||||
"@odata.context": "/redfish/v1/$metadata#Power.Power",
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Power/PowerSupplies/PSU.Slot.1",
|
||||
"@odata.type": "#Power.v1_5_0.PowerSupply",
|
||||
"Assembly": {
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Assembly"
|
||||
},
|
||||
"EfficiencyPercent": 0.9100000262260437,
|
||||
"FirmwareVersion": "00.1B.53",
|
||||
"HotPluggable": true,
|
||||
"InputRanges": [
|
||||
{
|
||||
"InputType": "AC",
|
||||
"MaximumFrequencyHz": 63,
|
||||
"MaximumVoltage": 264,
|
||||
"MinimumFrequencyHz": 47,
|
||||
"MinimumVoltage": 90,
|
||||
"OutputWattage": 750
|
||||
}
|
||||
],
|
||||
"InputRanges@odata.count": 1,
|
||||
"LastPowerOutputWatts": null,
|
||||
"LineInputVoltage": 206,
|
||||
"LineInputVoltageType": "AC240V",
|
||||
"Manufacturer": "Dell",
|
||||
"MemberId": "PSU.Slot.1",
|
||||
"Model": "PWR SPLY,750W,RDNT,ARTESYN ",
|
||||
"Name": PS1 Status,
|
||||
"Oem": {
|
||||
"Dell": {
|
||||
"DellPowerSupply": {
|
||||
"@odata.context": "/redfish/v1/$metadata#DellPowerSupply.DellPowerSupply",
|
||||
"@odata.id": "/redfish/v1/Dell/Chassis/System.Embedded.1/Power/PowerSupplies/DellPowerSupply/PSU.Slot.1",
|
||||
"@odata.type": "#DellPowerSupply.v1_0_0.DellPowerSupply",
|
||||
"IsSwitchingSupply": true,
|
||||
"Links": {
|
||||
"DellPSNumericSensorCollection": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Dell/Systems/System.Embedded.1/DellPSNumericSensor/iDRAC.Embedded.1%23PS1Current1"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"DellPowerSupplyView": {
|
||||
"@odata.context": "/redfish/v1/$metadata#DellPowerSupplyView.DellPowerSupplyView",
|
||||
"@odata.id": "/redfish/v1/Dell/Chassis/System.Embedded.1/Power/PowerSupplies/DellPowerSupplyView/PSU.Slot.1",
|
||||
"@odata.type": "#DellPowerSupplyView.v1_0_0.DellPowerSupplyView",
|
||||
"DetailedState": "Presence Detected",
|
||||
"Range1MaxInputPowerWatts": 900
|
||||
}
|
||||
}
|
||||
},
|
||||
"PartNumber": "0PJMDNA01",
|
||||
"PowerCapacityWatts": 750,
|
||||
"PowerInputWatts": 900,
|
||||
"PowerOutputWatts": 203,
|
||||
"PowerSupplyType": "AC",
|
||||
"Redundancy": [],
|
||||
"Redundancy@odata.count": 0,
|
||||
"RelatedItem": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1"
|
||||
}
|
||||
],
|
||||
"RelatedItem@odata.count": 1,
|
||||
"SerialNumber": "PHARP0079G0049",
|
||||
"SparePartNumber": "0PJMDNA01",
|
||||
"Status": {
|
||||
"Health": "OK",
|
||||
"State": "Enabled"
|
||||
}
|
||||
}
|
||||
],
|
||||
"PowerSupplies@odata.count": 1,
|
||||
"Redundancy": [],
|
||||
"Redundancy@odata.count": 0,
|
||||
"Voltages": [
|
||||
{
|
||||
"@odata.context": "/redfish/v1/$metadata#Power.Power",
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Voltages/iDRAC.Embedded.1%23SystemBoardDIMMPG",
|
||||
"@odata.type": "#Power.v1_3_0.Voltage",
|
||||
"LowerThresholdCritical": null,
|
||||
"LowerThresholdFatal": null,
|
||||
"LowerThresholdNonCritical": null,
|
||||
"MaxReadingRange": 0,
|
||||
"MemberId": "iDRAC.Embedded.1#SystemBoardDIMMPG",
|
||||
"MinReadingRange": 0,
|
||||
"Name": "System Board DIMM PG",
|
||||
"PhysicalContext": "SystemBoard",
|
||||
"ReadingVolts": 1,
|
||||
"RelatedItem": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1"
|
||||
}
|
||||
],
|
||||
"RelatedItem@odata.count": 1,
|
||||
"SensorNumber": 7,
|
||||
"Status": {
|
||||
"Health": "OK",
|
||||
"State": "Enabled"
|
||||
},
|
||||
"UpperThresholdCritical": null,
|
||||
"UpperThresholdFatal": null,
|
||||
"UpperThresholdNonCritical": null
|
||||
},
|
||||
{
|
||||
"@odata.context": "/redfish/v1/$metadata#Power.Power",
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Voltages/iDRAC.Embedded.1%23SystemBoardNDCPG",
|
||||
"@odata.type": "#Power.v1_3_0.Voltage",
|
||||
"LowerThresholdCritical": null,
|
||||
"LowerThresholdFatal": null,
|
||||
"LowerThresholdNonCritical": null,
|
||||
"MaxReadingRange": 197,
|
||||
"MemberId": "iDRAC.Embedded.1#SystemBoardNDCPG",
|
||||
"MinReadingRange": 139,
|
||||
"Name": "System Board NDC PG",
|
||||
"PhysicalContext": "SystemBoard",
|
||||
"ReadingVolts": 1,
|
||||
"RelatedItem": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1"
|
||||
}
|
||||
],
|
||||
"RelatedItem@odata.count": 1,
|
||||
"SensorNumber": 8,
|
||||
"Status": {
|
||||
"Health": "OK",
|
||||
"State": "Enabled"
|
||||
},
|
||||
"UpperThresholdCritical": null,
|
||||
"UpperThresholdFatal": null,
|
||||
"UpperThresholdNonCritical": null
|
||||
},
|
||||
{
|
||||
"@odata.context": "/redfish/v1/$metadata#Power.Power",
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Voltages/iDRAC.Embedded.1%23SystemBoardPS1PGFAIL",
|
||||
"@odata.type": "#Power.v1_3_0.Voltage",
|
||||
"LowerThresholdCritical": null,
|
||||
"LowerThresholdFatal": null,
|
||||
"LowerThresholdNonCritical": null,
|
||||
"MaxReadingRange": 197,
|
||||
"MemberId": "iDRAC.Embedded.1#SystemBoardPS1PGFAIL",
|
||||
"MinReadingRange": 139,
|
||||
"Name": "System Board PS1 PG FAIL",
|
||||
"PhysicalContext": "SystemBoard",
|
||||
"ReadingVolts": 1,
|
||||
"RelatedItem": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1"
|
||||
}
|
||||
],
|
||||
"RelatedItem@odata.count": 1,
|
||||
"SensorNumber": 9,
|
||||
"Status": {
|
||||
"Health": "OK",
|
||||
"State": "Enabled"
|
||||
},
|
||||
"UpperThresholdCritical": null,
|
||||
"UpperThresholdFatal": null,
|
||||
"UpperThresholdNonCritical": null
|
||||
}
|
||||
],
|
||||
"Voltages@odata.count": 4
|
||||
}
|
329
plugins/inputs/redfish/testdata/dell_systems.json
vendored
Normal file
329
plugins/inputs/redfish/testdata/dell_systems.json
vendored
Normal file
|
@ -0,0 +1,329 @@
|
|||
{
|
||||
"@odata.context": "/redfish/v1/$metadata#ComputerSystem.ComputerSystem",
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1",
|
||||
"@odata.type": "#ComputerSystem.v1_5_0.ComputerSystem",
|
||||
"Actions": {
|
||||
"#ComputerSystem.Reset": {
|
||||
"ResetType@Redfish.AllowableValues": [
|
||||
"On",
|
||||
"ForceOff",
|
||||
"ForceRestart",
|
||||
"GracefulShutdown",
|
||||
"PushPowerButton",
|
||||
"Nmi"
|
||||
],
|
||||
"target": "/redfish/v1/Systems/System.Embedded.1/Actions/ComputerSystem.Reset"
|
||||
}
|
||||
},
|
||||
"AssetTag": "",
|
||||
"Bios": {
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/Bios"
|
||||
},
|
||||
"BiosVersion": "2.3.10",
|
||||
"Boot": {
|
||||
"BootOptions": {
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/BootOptions"
|
||||
},
|
||||
"BootOrder": [
|
||||
"Boot0002",
|
||||
"Boot0003",
|
||||
"Boot0005",
|
||||
"Boot0004"
|
||||
],
|
||||
"BootOrder@odata.count": 4,
|
||||
"BootSourceOverrideEnabled": "Once",
|
||||
"BootSourceOverrideMode": "UEFI",
|
||||
"BootSourceOverrideTarget": "None",
|
||||
"BootSourceOverrideTarget@Redfish.AllowableValues": [
|
||||
"None",
|
||||
"Pxe",
|
||||
"Floppy",
|
||||
"Cd",
|
||||
"Hdd",
|
||||
"BiosSetup",
|
||||
"Utilities",
|
||||
"UefiTarget",
|
||||
"SDCard",
|
||||
"UefiHttp"
|
||||
],
|
||||
"UefiTargetBootSourceOverride": ""
|
||||
},
|
||||
"Description": "Computer System which represents a machine (physical or virtual) and the local resources such as memory, cpu and other devices that can be accessed from that machine.",
|
||||
"EthernetInterfaces": {
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/EthernetInterfaces"
|
||||
},
|
||||
"HostName": "tpa-hostname",
|
||||
"HostWatchdogTimer": {
|
||||
"FunctionEnabled": true,
|
||||
"Status": {
|
||||
"State": "Enabled"
|
||||
},
|
||||
"TimeoutAction": "None"
|
||||
},
|
||||
"HostingRoles": [],
|
||||
"HostingRoles@odata.count": 0,
|
||||
"Id": "System.Embedded.1",
|
||||
"IndicatorLED": "Off",
|
||||
"Links": {
|
||||
"Chassis": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1"
|
||||
}
|
||||
],
|
||||
"Chassis@odata.count": 1,
|
||||
"CooledBy": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.1A"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.1B"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.2A"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.2B"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.3A"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.3B"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.4A"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.4B"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.5A"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.5B"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.6A"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.6B"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.7A"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.7B"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.8A"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.8B"
|
||||
}
|
||||
],
|
||||
"CooledBy@odata.count": 16,
|
||||
"ManagedBy": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Managers/iDRAC.Embedded.1"
|
||||
}
|
||||
],
|
||||
"ManagedBy@odata.count": 1,
|
||||
"Oem": {
|
||||
"Dell": {
|
||||
"BootOrder": {
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/BootSources"
|
||||
},
|
||||
"DellNumericSensorCollection": {
|
||||
"@odata.id": "/redfish/v1/Dell/Systems/System.Embedded.1/DellNumericSensorCollection"
|
||||
},
|
||||
"DellOSDeploymentService": {
|
||||
"@odata.id": "/redfish/v1/Dell/Systems/System.Embedded.1/DellOSDeploymentService"
|
||||
},
|
||||
"DellPresenceAndStatusSensorCollection": {
|
||||
"@odata.id": "/redfish/v1/Dell/Systems/System.Embedded.1/DellPresenceAndStatusSensorCollection"
|
||||
},
|
||||
"DellRaidService": {
|
||||
"@odata.id": "/redfish/v1/Dell/Systems/System.Embedded.1/DellRaidService"
|
||||
},
|
||||
"DellSensorCollection": {
|
||||
"@odata.id": "/redfish/v1/Dell/Systems/System.Embedded.1/DellSensorCollection"
|
||||
},
|
||||
"DellSoftwareInstallationService": {
|
||||
"@odata.id": "/redfish/v1/Dell/Systems/System.Embedded.1/DellSoftwareInstallationService"
|
||||
}
|
||||
}
|
||||
},
|
||||
"PoweredBy": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Power/PowerSupplies/PSU.Slot.1"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Power/PowerSupplies/PSU.Slot.2"
|
||||
}
|
||||
],
|
||||
"PoweredBy@odata.count": 2
|
||||
},
|
||||
"Manufacturer": "Dell Inc.",
|
||||
"Memory": {
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/Memory"
|
||||
},
|
||||
"MemorySummary": {
|
||||
"MemoryMirroring": "System",
|
||||
"Status": {
|
||||
"Health": "OK",
|
||||
"HealthRollup": "OK",
|
||||
"State": "Enabled"
|
||||
},
|
||||
"TotalSystemMemoryGiB": 476.837376
|
||||
},
|
||||
"Model": "PowerEdge R640",
|
||||
"Name": "System",
|
||||
"NetworkInterfaces": {
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/NetworkInterfaces"
|
||||
},
|
||||
"Oem": {
|
||||
"Dell": {
|
||||
"DellSystem": {
|
||||
"@odata.context": "/redfish/v1/$metadata#DellSystem.DellSystem",
|
||||
"@odata.id": "/redfish/v1/Dell/Systems/System.Embedded.1/DellSystem/System.Embedded.1",
|
||||
"@odata.type": "#DellSystem.v1_0_0.DellSystem",
|
||||
"BIOSReleaseDate": "08/15/2019",
|
||||
"BaseBoardChassisSlot": "NA",
|
||||
"BatteryRollupStatus": "OK",
|
||||
"BladeGeometry": "NotApplicable",
|
||||
"CMCIP": null,
|
||||
"CPURollupStatus": "OK",
|
||||
"ChassisServiceTag": "CLFV7M2",
|
||||
"ExpressServiceCode": "27417828170",
|
||||
"FanRollupStatus": "OK",
|
||||
"IntrusionRollupStatus": "OK",
|
||||
"LicensingRollupStatus": "OK",
|
||||
"MaxDIMMSlots": 24,
|
||||
"MaxPCIeSlots": 3,
|
||||
"NodeID": "CLFV7M2",
|
||||
"PSRollupStatus": "OK",
|
||||
"PowerCapEnabledState": "Disabled",
|
||||
"StorageRollupStatus": "OK",
|
||||
"SysMemPrimaryStatus": "OK",
|
||||
"SystemGeneration": "14G Monolithic",
|
||||
"SystemID": 1814,
|
||||
"TempRollupStatus": "OK",
|
||||
"UUID": "4c4c4544-004c-4610-8056-c3c04f374d32",
|
||||
"VoltRollupStatus": "OK"
|
||||
}
|
||||
}
|
||||
},
|
||||
"PCIeDevices": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeDevice/216-0"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeDevice/0-31"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeDevice/0-17"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeDevice/3-0"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeDevice/0-28"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeDevice/0-0"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeDevice/0-23"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeDevice/25-0"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeDevice/24-0"
|
||||
}
|
||||
],
|
||||
"PCIeDevices@odata.count": 9,
|
||||
"PCIeFunctions": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeFunction/216-0-0"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeFunction/216-0-1"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeFunction/0-31-4"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeFunction/0-17-5"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeFunction/0-31-0"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeFunction/3-0-0"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeFunction/0-28-0"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeFunction/0-0-0"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeFunction/0-23-0"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeFunction/0-28-4"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeFunction/25-0-1"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeFunction/25-0-0"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeFunction/24-0-0"
|
||||
}
|
||||
],
|
||||
"PCIeFunctions@odata.count": 13,
|
||||
"PartNumber": "0CRT1GA05",
|
||||
"PowerState": "On",
|
||||
"ProcessorSummary": {
|
||||
"Count": 2,
|
||||
"LogicalProcessorCount": 80,
|
||||
"Model": "Intel(R) Xeon(R) Gold 6138 CPU @ 2.00GHz",
|
||||
"Status": {
|
||||
"Health": "OK",
|
||||
"HealthRollup": "OK",
|
||||
"State": "Enabled"
|
||||
}
|
||||
},
|
||||
"Processors": {
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/Processors"
|
||||
},
|
||||
"SKU": "CLFV7M2",
|
||||
"SecureBoot": {
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/SecureBoot"
|
||||
},
|
||||
"SerialNumber": "CNIVC007CV0803",
|
||||
"SimpleStorage": {
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/SimpleStorage/Controllers"
|
||||
},
|
||||
"Status": {
|
||||
"Health": "OK",
|
||||
"HealthRollup": "OK",
|
||||
"State": "Enabled"
|
||||
},
|
||||
"Storage": {
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/Storage"
|
||||
},
|
||||
"SystemType": "Physical",
|
||||
"TrustedModules": [
|
||||
{
|
||||
"FirmwareVersion": "Unknown",
|
||||
"Status": {
|
||||
"State": "Disabled"
|
||||
}
|
||||
}
|
||||
],
|
||||
"UUID": "4c4c4544-004c-4610-8056-c3c04f374d32"
|
||||
}
|
329
plugins/inputs/redfish/testdata/dell_systemsinvalid.json
vendored
Normal file
329
plugins/inputs/redfish/testdata/dell_systemsinvalid.json
vendored
Normal file
|
@ -0,0 +1,329 @@
|
|||
{
|
||||
"@odata.context": "/redfish/v1/$metadata#ComputerSystem.ComputerSystem",
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1",
|
||||
"@odata.type": "#ComputerSystem.v1_5_0.ComputerSystem",
|
||||
"Actions": {
|
||||
"#ComputerSystem.Reset": {
|
||||
"ResetType@Redfish.AllowableValues": [
|
||||
"On",
|
||||
"ForceOff",
|
||||
"ForceRestart",
|
||||
"GracefulShutdown",
|
||||
"PushPowerButton",
|
||||
"Nmi"
|
||||
],
|
||||
"target": "/redfish/v1/Systems/System.Embedded.1/Actions/ComputerSystem.Reset"
|
||||
}
|
||||
},
|
||||
"AssetTag": "",
|
||||
"Bios": {
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/Bios"
|
||||
},
|
||||
"BiosVersion": "2.3.10",
|
||||
"Boot": {
|
||||
"BootOptions": {
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/BootOptions"
|
||||
},
|
||||
"BootOrder": [
|
||||
"Boot0002",
|
||||
"Boot0003",
|
||||
"Boot0005",
|
||||
"Boot0004"
|
||||
],
|
||||
"BootOrder@odata.count": 4,
|
||||
"BootSourceOverrideEnabled": "Once",
|
||||
"BootSourceOverrideMode": "UEFI",
|
||||
"BootSourceOverrideTarget": "None",
|
||||
"BootSourceOverrideTarget@Redfish.AllowableValues": [
|
||||
"None",
|
||||
"Pxe",
|
||||
"Floppy",
|
||||
"Cd",
|
||||
"Hdd",
|
||||
"BiosSetup",
|
||||
"Utilities",
|
||||
"UefiTarget",
|
||||
"SDCard",
|
||||
"UefiHttp"
|
||||
],
|
||||
"UefiTargetBootSourceOverride": ""
|
||||
},
|
||||
"Description": "Computer System which represents a machine (physical or virtual) and the local resources such as memory, cpu and other devices that can be accessed from that machine.",
|
||||
"EthernetInterfaces": {
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/EthernetInterfaces"
|
||||
}
|
||||
"HostName": "tpa-hostname",
|
||||
"HostWatchdogTimer": {
|
||||
"FunctionEnabled": true,
|
||||
"Status": {
|
||||
"State": "Enabled"
|
||||
},
|
||||
"TimeoutAction": "None"
|
||||
},
|
||||
"HostingRoles": [],
|
||||
"HostingRoles@odata.count": 0,
|
||||
"Id": "System.Embedded.1",
|
||||
"IndicatorLED": "Off",
|
||||
"Links": {
|
||||
"Chassis": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1"
|
||||
}
|
||||
],
|
||||
"Chassis@odata.count": 1,
|
||||
"CooledBy": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.1A"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.1B"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.2A"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.2B"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.3A"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.3B"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.4A"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.4B"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.5A"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.5B"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.6A"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.6B"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.7A"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.7B"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.8A"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.8B"
|
||||
}
|
||||
],
|
||||
"CooledBy@odata.count": 16,
|
||||
"ManagedBy": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Managers/iDRAC.Embedded.1"
|
||||
}
|
||||
],
|
||||
"ManagedBy@odata.count": 1,
|
||||
"Oem": {
|
||||
"Dell": {
|
||||
"BootOrder": {
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/BootSources"
|
||||
},
|
||||
"DellNumericSensorCollection": {
|
||||
"@odata.id": "/redfish/v1/Dell/Systems/System.Embedded.1/DellNumericSensorCollection"
|
||||
},
|
||||
"DellOSDeploymentService": {
|
||||
"@odata.id": "/redfish/v1/Dell/Systems/System.Embedded.1/DellOSDeploymentService"
|
||||
},
|
||||
"DellPresenceAndStatusSensorCollection": {
|
||||
"@odata.id": "/redfish/v1/Dell/Systems/System.Embedded.1/DellPresenceAndStatusSensorCollection"
|
||||
},
|
||||
"DellRaidService": {
|
||||
"@odata.id": "/redfish/v1/Dell/Systems/System.Embedded.1/DellRaidService"
|
||||
},
|
||||
"DellSensorCollection": {
|
||||
"@odata.id": "/redfish/v1/Dell/Systems/System.Embedded.1/DellSensorCollection"
|
||||
},
|
||||
"DellSoftwareInstallationService": {
|
||||
"@odata.id": "/redfish/v1/Dell/Systems/System.Embedded.1/DellSoftwareInstallationService"
|
||||
}
|
||||
}
|
||||
},
|
||||
"PoweredBy": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Power/PowerSupplies/PSU.Slot.1"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Power/PowerSupplies/PSU.Slot.2"
|
||||
}
|
||||
],
|
||||
"PoweredBy@odata.count": 2
|
||||
},
|
||||
"Manufacturer": "Dell Inc.",
|
||||
"Memory": {
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/Memory"
|
||||
},
|
||||
"MemorySummary": {
|
||||
"MemoryMirroring": "System",
|
||||
"Status": {
|
||||
"Health": "OK",
|
||||
"HealthRollup": "OK",
|
||||
"State": "Enabled"
|
||||
},
|
||||
"TotalSystemMemoryGiB": 476.837376
|
||||
},
|
||||
"Model": "PowerEdge R640",
|
||||
"Name": "System",
|
||||
"NetworkInterfaces": {
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/NetworkInterfaces"
|
||||
},
|
||||
"Oem": {
|
||||
"Dell": {
|
||||
"DellSystem": {
|
||||
"@odata.context": "/redfish/v1/$metadata#DellSystem.DellSystem",
|
||||
"@odata.id": "/redfish/v1/Dell/Systems/System.Embedded.1/DellSystem/System.Embedded.1",
|
||||
"@odata.type": "#DellSystem.v1_0_0.DellSystem",
|
||||
"BIOSReleaseDate": "08/15/2019",
|
||||
"BaseBoardChassisSlot": "NA",
|
||||
"BatteryRollupStatus": "OK",
|
||||
"BladeGeometry": "NotApplicable",
|
||||
"CMCIP": null,
|
||||
"CPURollupStatus": "OK",
|
||||
"ChassisServiceTag": "CLFV7M2",
|
||||
"ExpressServiceCode": "27417828170",
|
||||
"FanRollupStatus": "OK",
|
||||
"IntrusionRollupStatus": "OK",
|
||||
"LicensingRollupStatus": "OK",
|
||||
"MaxDIMMSlots": 24,
|
||||
"MaxPCIeSlots": 3,
|
||||
"NodeID": "CLFV7M2",
|
||||
"PSRollupStatus": "OK",
|
||||
"PowerCapEnabledState": "Disabled",
|
||||
"StorageRollupStatus": "OK",
|
||||
"SysMemPrimaryStatus": "OK",
|
||||
"SystemGeneration": "14G Monolithic",
|
||||
"SystemID": 1814,
|
||||
"TempRollupStatus": "OK",
|
||||
"UUID": "4c4c4544-004c-4610-8056-c3c04f374d32",
|
||||
"VoltRollupStatus": "OK"
|
||||
}
|
||||
}
|
||||
},
|
||||
"PCIeDevices": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeDevice/216-0"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeDevice/0-31"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeDevice/0-17"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeDevice/3-0"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeDevice/0-28"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeDevice/0-0"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeDevice/0-23"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeDevice/25-0"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeDevice/24-0"
|
||||
}
|
||||
],
|
||||
"PCIeDevices@odata.count": 9,
|
||||
"PCIeFunctions": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeFunction/216-0-0"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeFunction/216-0-1"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeFunction/0-31-4"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeFunction/0-17-5"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeFunction/0-31-0"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeFunction/3-0-0"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeFunction/0-28-0"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeFunction/0-0-0"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeFunction/0-23-0"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeFunction/0-28-4"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeFunction/25-0-1"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeFunction/25-0-0"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeFunction/24-0-0"
|
||||
}
|
||||
],
|
||||
"PCIeFunctions@odata.count": 13,
|
||||
"PartNumber": "0CRT1GA05",
|
||||
"PowerState": "On",
|
||||
"ProcessorSummary": {
|
||||
"Count": 2,
|
||||
"LogicalProcessorCount": 80,
|
||||
"Model": "Intel(R) Xeon(R) Gold 6138 CPU @ 2.00GHz",
|
||||
"Status": {
|
||||
"Health": "OK",
|
||||
"HealthRollup": "OK",
|
||||
"State": "Enabled"
|
||||
}
|
||||
},
|
||||
"Processors": {
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/Processors"
|
||||
},
|
||||
"SKU": "CLFV7M2",
|
||||
"SecureBoot": {
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/SecureBoot"
|
||||
},
|
||||
"SerialNumber": "CNIVC007CV0803",
|
||||
"SimpleStorage": {
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/SimpleStorage/Controllers"
|
||||
},
|
||||
"Status": {
|
||||
"Health": "OK",
|
||||
"HealthRollup": "OK",
|
||||
"State": "Enabled"
|
||||
},
|
||||
"Storage": {
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/Storage"
|
||||
},
|
||||
"SystemType": "Physical",
|
||||
"TrustedModules": [
|
||||
{
|
||||
"FirmwareVersion": "Unknown",
|
||||
"Status": {
|
||||
"State": "Disabled"
|
||||
}
|
||||
}
|
||||
],
|
||||
"UUID": "4c4c4544-004c-4610-8056-c3c04f374d32"
|
||||
}
|
589
plugins/inputs/redfish/testdata/dell_thermal.json
vendored
Normal file
589
plugins/inputs/redfish/testdata/dell_thermal.json
vendored
Normal file
|
@ -0,0 +1,589 @@
|
|||
{
|
||||
"@odata.context": "/redfish/v1/$metadata#Thermal.Thermal",
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Thermal",
|
||||
"@odata.type": "#Thermal.v1_4_0.Thermal",
|
||||
"Description": "Represents the properties for Temperature and Cooling",
|
||||
"Fans": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.1A",
|
||||
"@odata.type": "#Thermal.v1_4_0.Fan",
|
||||
"Assembly": {
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Assembly"
|
||||
},
|
||||
"FanName": "System Board Fan1A",
|
||||
"LowerThresholdCritical": 600,
|
||||
"LowerThresholdFatal": 600,
|
||||
"LowerThresholdNonCritical": 960,
|
||||
"MaxReadingRange": null,
|
||||
"MemberId": "0x17||Fan.Embedded.1A",
|
||||
"MinReadingRange": 600,
|
||||
"Name": "System Board Fan1A",
|
||||
"PhysicalContext": "SystemBoard",
|
||||
"Reading": 17760,
|
||||
"ReadingUnits": "RPM",
|
||||
"Redundancy": [],
|
||||
"Redundancy@odata.count": 0,
|
||||
"RelatedItem": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1"
|
||||
}
|
||||
],
|
||||
"RelatedItem@odata.count": 1,
|
||||
"Status": {
|
||||
"Health": "OK",
|
||||
"State": "Enabled"
|
||||
},
|
||||
"UpperThresholdCritical": null,
|
||||
"UpperThresholdFatal": null,
|
||||
"UpperThresholdNonCritical": null
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.1B",
|
||||
"@odata.type": "#Thermal.v1_4_0.Fan",
|
||||
"Assembly": {
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Assembly"
|
||||
},
|
||||
"FanName": "System Board Fan1B",
|
||||
"LowerThresholdCritical": 600,
|
||||
"LowerThresholdFatal": 600,
|
||||
"LowerThresholdNonCritical": 960,
|
||||
"MaxReadingRange": null,
|
||||
"MemberId": "0x17||Fan.Embedded.1B",
|
||||
"MinReadingRange": 600,
|
||||
"Name": "System Board Fan1B",
|
||||
"PhysicalContext": "SystemBoard",
|
||||
"Reading": 15360,
|
||||
"ReadingUnits": "RPM",
|
||||
"Redundancy": [],
|
||||
"Redundancy@odata.count": 0,
|
||||
"RelatedItem": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1"
|
||||
}
|
||||
],
|
||||
"RelatedItem@odata.count": 1,
|
||||
"Status": {
|
||||
"Health": "OK",
|
||||
"State": "Enabled"
|
||||
},
|
||||
"UpperThresholdCritical": null,
|
||||
"UpperThresholdFatal": null,
|
||||
"UpperThresholdNonCritical": null
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.2A",
|
||||
"@odata.type": "#Thermal.v1_4_0.Fan",
|
||||
"Assembly": {
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Assembly"
|
||||
},
|
||||
"FanName": "System Board Fan2A",
|
||||
"LowerThresholdCritical": 600,
|
||||
"LowerThresholdFatal": 600,
|
||||
"LowerThresholdNonCritical": 960,
|
||||
"MaxReadingRange": null,
|
||||
"MemberId": "0x17||Fan.Embedded.2A",
|
||||
"MinReadingRange": 600,
|
||||
"Name": "System Board Fan2A",
|
||||
"PhysicalContext": "SystemBoard",
|
||||
"Reading": 17880,
|
||||
"ReadingUnits": "RPM",
|
||||
"Redundancy": [],
|
||||
"Redundancy@odata.count": 0,
|
||||
"RelatedItem": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1"
|
||||
}
|
||||
],
|
||||
"RelatedItem@odata.count": 1,
|
||||
"Status": {
|
||||
"Health": "OK",
|
||||
"State": "Enabled"
|
||||
},
|
||||
"UpperThresholdCritical": null,
|
||||
"UpperThresholdFatal": null,
|
||||
"UpperThresholdNonCritical": null
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.2B",
|
||||
"@odata.type": "#Thermal.v1_4_0.Fan",
|
||||
"Assembly": {
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Assembly"
|
||||
},
|
||||
"FanName": "System Board Fan2B",
|
||||
"LowerThresholdCritical": 600,
|
||||
"LowerThresholdFatal": 600,
|
||||
"LowerThresholdNonCritical": 960,
|
||||
"MaxReadingRange": null,
|
||||
"MemberId": "0x17||Fan.Embedded.2B",
|
||||
"MinReadingRange": 600,
|
||||
"Name": "System Board Fan2B",
|
||||
"PhysicalContext": "SystemBoard",
|
||||
"Reading": 15120,
|
||||
"ReadingUnits": "RPM",
|
||||
"Redundancy": [],
|
||||
"Redundancy@odata.count": 0,
|
||||
"RelatedItem": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1"
|
||||
}
|
||||
],
|
||||
"RelatedItem@odata.count": 1,
|
||||
"Status": {
|
||||
"Health": "OK",
|
||||
"State": "Enabled"
|
||||
},
|
||||
"UpperThresholdCritical": null,
|
||||
"UpperThresholdFatal": null,
|
||||
"UpperThresholdNonCritical": null
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.3A",
|
||||
"@odata.type": "#Thermal.v1_4_0.Fan",
|
||||
"Assembly": {
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Assembly"
|
||||
},
|
||||
"FanName": "System Board Fan3A",
|
||||
"LowerThresholdCritical": 600,
|
||||
"LowerThresholdFatal": 600,
|
||||
"LowerThresholdNonCritical": 960,
|
||||
"MaxReadingRange": null,
|
||||
"MemberId": "0x17||Fan.Embedded.3A",
|
||||
"MinReadingRange": 600,
|
||||
"Name": "System Board Fan3A",
|
||||
"PhysicalContext": "SystemBoard",
|
||||
"Reading": 18000,
|
||||
"ReadingUnits": "RPM",
|
||||
"Redundancy": [],
|
||||
"Redundancy@odata.count": 0,
|
||||
"RelatedItem": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1"
|
||||
}
|
||||
],
|
||||
"RelatedItem@odata.count": 1,
|
||||
"Status": {
|
||||
"Health": "OK",
|
||||
"State": "Enabled"
|
||||
},
|
||||
"UpperThresholdCritical": null,
|
||||
"UpperThresholdFatal": null,
|
||||
"UpperThresholdNonCritical": null
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.3B",
|
||||
"@odata.type": "#Thermal.v1_4_0.Fan",
|
||||
"Assembly": {
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Assembly"
|
||||
},
|
||||
"FanName": "System Board Fan3B",
|
||||
"LowerThresholdCritical": 600,
|
||||
"LowerThresholdFatal": 600,
|
||||
"LowerThresholdNonCritical": 960,
|
||||
"MaxReadingRange": null,
|
||||
"MemberId": "0x17||Fan.Embedded.3B",
|
||||
"MinReadingRange": 600,
|
||||
"Name": "System Board Fan3B",
|
||||
"PhysicalContext": "SystemBoard",
|
||||
"Reading": 15600,
|
||||
"ReadingUnits": "RPM",
|
||||
"Redundancy": [],
|
||||
"Redundancy@odata.count": 0,
|
||||
"RelatedItem": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1"
|
||||
}
|
||||
],
|
||||
"RelatedItem@odata.count": 1,
|
||||
"Status": {
|
||||
"Health": "OK",
|
||||
"State": "Enabled"
|
||||
},
|
||||
"UpperThresholdCritical": null,
|
||||
"UpperThresholdFatal": null,
|
||||
"UpperThresholdNonCritical": null
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.4A",
|
||||
"@odata.type": "#Thermal.v1_4_0.Fan",
|
||||
"Assembly": {
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Assembly"
|
||||
},
|
||||
"FanName": "System Board Fan4A",
|
||||
"LowerThresholdCritical": 600,
|
||||
"LowerThresholdFatal": 600,
|
||||
"LowerThresholdNonCritical": 960,
|
||||
"MaxReadingRange": null,
|
||||
"MemberId": "0x17||Fan.Embedded.4A",
|
||||
"MinReadingRange": 600,
|
||||
"Name": "System Board Fan4A",
|
||||
"PhysicalContext": "SystemBoard",
|
||||
"Reading": 17280,
|
||||
"ReadingUnits": "RPM",
|
||||
"Redundancy": [],
|
||||
"Redundancy@odata.count": 0,
|
||||
"RelatedItem": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1"
|
||||
}
|
||||
],
|
||||
"RelatedItem@odata.count": 1,
|
||||
"Status": {
|
||||
"Health": "OK",
|
||||
"State": "Enabled"
|
||||
},
|
||||
"UpperThresholdCritical": null,
|
||||
"UpperThresholdFatal": null,
|
||||
"UpperThresholdNonCritical": null
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.4B",
|
||||
"@odata.type": "#Thermal.v1_4_0.Fan",
|
||||
"Assembly": {
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Assembly"
|
||||
},
|
||||
"FanName": "System Board Fan4B",
|
||||
"LowerThresholdCritical": 600,
|
||||
"LowerThresholdFatal": 600,
|
||||
"LowerThresholdNonCritical": 960,
|
||||
"MaxReadingRange": null,
|
||||
"MemberId": "0x17||Fan.Embedded.4B",
|
||||
"MinReadingRange": 600,
|
||||
"Name": "System Board Fan4B",
|
||||
"PhysicalContext": "SystemBoard",
|
||||
"Reading": 15360,
|
||||
"ReadingUnits": "RPM",
|
||||
"Redundancy": [],
|
||||
"Redundancy@odata.count": 0,
|
||||
"RelatedItem": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1"
|
||||
}
|
||||
],
|
||||
"RelatedItem@odata.count": 1,
|
||||
"Status": {
|
||||
"Health": "OK",
|
||||
"State": "Enabled"
|
||||
},
|
||||
"UpperThresholdCritical": null,
|
||||
"UpperThresholdFatal": null,
|
||||
"UpperThresholdNonCritical": null
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.5A",
|
||||
"@odata.type": "#Thermal.v1_4_0.Fan",
|
||||
"Assembly": {
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Assembly"
|
||||
},
|
||||
"FanName": "System Board Fan5A",
|
||||
"LowerThresholdCritical": 600,
|
||||
"LowerThresholdFatal": 600,
|
||||
"LowerThresholdNonCritical": 960,
|
||||
"MaxReadingRange": null,
|
||||
"MemberId": "0x17||Fan.Embedded.5A",
|
||||
"MinReadingRange": 600,
|
||||
"Name": "System Board Fan5A",
|
||||
"PhysicalContext": "SystemBoard",
|
||||
"Reading": 17640,
|
||||
"ReadingUnits": "RPM",
|
||||
"Redundancy": [],
|
||||
"Redundancy@odata.count": 0,
|
||||
"RelatedItem": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1"
|
||||
}
|
||||
],
|
||||
"RelatedItem@odata.count": 1,
|
||||
"Status": {
|
||||
"Health": "OK",
|
||||
"State": "Enabled"
|
||||
},
|
||||
"UpperThresholdCritical": null,
|
||||
"UpperThresholdFatal": null,
|
||||
"UpperThresholdNonCritical": null
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.5B",
|
||||
"@odata.type": "#Thermal.v1_4_0.Fan",
|
||||
"Assembly": {
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Assembly"
|
||||
},
|
||||
"FanName": "System Board Fan5B",
|
||||
"LowerThresholdCritical": 600,
|
||||
"LowerThresholdFatal": 600,
|
||||
"LowerThresholdNonCritical": 960,
|
||||
"MaxReadingRange": null,
|
||||
"MemberId": "0x17||Fan.Embedded.5B",
|
||||
"MinReadingRange": 600,
|
||||
"Name": "System Board Fan5B",
|
||||
"PhysicalContext": "SystemBoard",
|
||||
"Reading": 15600,
|
||||
"ReadingUnits": "RPM",
|
||||
"Redundancy": [],
|
||||
"Redundancy@odata.count": 0,
|
||||
"RelatedItem": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1"
|
||||
}
|
||||
],
|
||||
"RelatedItem@odata.count": 1,
|
||||
"Status": {
|
||||
"Health": "OK",
|
||||
"State": "Enabled"
|
||||
},
|
||||
"UpperThresholdCritical": null,
|
||||
"UpperThresholdFatal": null,
|
||||
"UpperThresholdNonCritical": null
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.6A",
|
||||
"@odata.type": "#Thermal.v1_4_0.Fan",
|
||||
"Assembly": {
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Assembly"
|
||||
},
|
||||
"FanName": "System Board Fan6A",
|
||||
"LowerThresholdCritical": 600,
|
||||
"LowerThresholdFatal": 600,
|
||||
"LowerThresholdNonCritical": 960,
|
||||
"MaxReadingRange": null,
|
||||
"MemberId": "0x17||Fan.Embedded.6A",
|
||||
"MinReadingRange": 600,
|
||||
"Name": "System Board Fan6A",
|
||||
"PhysicalContext": "SystemBoard",
|
||||
"Reading": 17760,
|
||||
"ReadingUnits": "RPM",
|
||||
"Redundancy": [],
|
||||
"Redundancy@odata.count": 0,
|
||||
"RelatedItem": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1"
|
||||
}
|
||||
],
|
||||
"RelatedItem@odata.count": 1,
|
||||
"Status": {
|
||||
"Health": "OK",
|
||||
"State": "Enabled"
|
||||
},
|
||||
"UpperThresholdCritical": null,
|
||||
"UpperThresholdFatal": null,
|
||||
"UpperThresholdNonCritical": null
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.6B",
|
||||
"@odata.type": "#Thermal.v1_4_0.Fan",
|
||||
"Assembly": {
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Assembly"
|
||||
},
|
||||
"FanName": "System Board Fan6B",
|
||||
"LowerThresholdCritical": 600,
|
||||
"LowerThresholdFatal": 600,
|
||||
"LowerThresholdNonCritical": 960,
|
||||
"MaxReadingRange": null,
|
||||
"MemberId": "0x17||Fan.Embedded.6B",
|
||||
"MinReadingRange": 600,
|
||||
"Name": "System Board Fan6B",
|
||||
"PhysicalContext": "SystemBoard",
|
||||
"Reading": 15600,
|
||||
"ReadingUnits": "RPM",
|
||||
"Redundancy": [],
|
||||
"Redundancy@odata.count": 0,
|
||||
"RelatedItem": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1"
|
||||
}
|
||||
],
|
||||
"RelatedItem@odata.count": 1,
|
||||
"Status": {
|
||||
"Health": "OK",
|
||||
"State": "Enabled"
|
||||
},
|
||||
"UpperThresholdCritical": null,
|
||||
"UpperThresholdFatal": null,
|
||||
"UpperThresholdNonCritical": null
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.7A",
|
||||
"@odata.type": "#Thermal.v1_4_0.Fan",
|
||||
"Assembly": {
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Assembly"
|
||||
},
|
||||
"FanName": "System Board Fan7A",
|
||||
"LowerThresholdCritical": 600,
|
||||
"LowerThresholdFatal": 600,
|
||||
"LowerThresholdNonCritical": 960,
|
||||
"MaxReadingRange": null,
|
||||
"MemberId": "0x17||Fan.Embedded.7A",
|
||||
"MinReadingRange": 600,
|
||||
"Name": "System Board Fan7A",
|
||||
"PhysicalContext": "SystemBoard",
|
||||
"Reading": 17400,
|
||||
"ReadingUnits": "RPM",
|
||||
"Redundancy": [],
|
||||
"Redundancy@odata.count": 0,
|
||||
"RelatedItem": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1"
|
||||
}
|
||||
],
|
||||
"RelatedItem@odata.count": 1,
|
||||
"Status": {
|
||||
"Health": "OK",
|
||||
"State": "Enabled"
|
||||
},
|
||||
"UpperThresholdCritical": null,
|
||||
"UpperThresholdFatal": null,
|
||||
"UpperThresholdNonCritical": null
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.7B",
|
||||
"@odata.type": "#Thermal.v1_4_0.Fan",
|
||||
"Assembly": {
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Assembly"
|
||||
},
|
||||
"FanName": "System Board Fan7B",
|
||||
"LowerThresholdCritical": 600,
|
||||
"LowerThresholdFatal": 600,
|
||||
"LowerThresholdNonCritical": 960,
|
||||
"MaxReadingRange": null,
|
||||
"MemberId": "0x17||Fan.Embedded.7B",
|
||||
"MinReadingRange": 600,
|
||||
"Name": "System Board Fan7B",
|
||||
"PhysicalContext": "SystemBoard",
|
||||
"Reading": 15720,
|
||||
"ReadingUnits": "RPM",
|
||||
"Redundancy": [],
|
||||
"Redundancy@odata.count": 0,
|
||||
"RelatedItem": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1"
|
||||
}
|
||||
],
|
||||
"RelatedItem@odata.count": 1,
|
||||
"Status": {
|
||||
"Health": "OK",
|
||||
"State": "Enabled"
|
||||
},
|
||||
"UpperThresholdCritical": null,
|
||||
"UpperThresholdFatal": null,
|
||||
"UpperThresholdNonCritical": null
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.8A",
|
||||
"@odata.type": "#Thermal.v1_4_0.Fan",
|
||||
"Assembly": {
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Assembly"
|
||||
},
|
||||
"FanName": "System Board Fan8A",
|
||||
"LowerThresholdCritical": 600,
|
||||
"LowerThresholdFatal": 600,
|
||||
"LowerThresholdNonCritical": 960,
|
||||
"MaxReadingRange": null,
|
||||
"MemberId": "0x17||Fan.Embedded.8A",
|
||||
"MinReadingRange": 600,
|
||||
"Name": "System Board Fan8A",
|
||||
"PhysicalContext": "SystemBoard",
|
||||
"Reading": 18000,
|
||||
"ReadingUnits": "RPM",
|
||||
"Redundancy": [],
|
||||
"Redundancy@odata.count": 0,
|
||||
"RelatedItem": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1"
|
||||
}
|
||||
],
|
||||
"RelatedItem@odata.count": 1,
|
||||
"Status": {
|
||||
"Health": "OK",
|
||||
"State": "Enabled"
|
||||
},
|
||||
"UpperThresholdCritical": null,
|
||||
"UpperThresholdFatal": null,
|
||||
"UpperThresholdNonCritical": null
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.8B",
|
||||
"@odata.type": "#Thermal.v1_4_0.Fan",
|
||||
"Assembly": {
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Assembly"
|
||||
},
|
||||
"FanName": "System Board Fan8B",
|
||||
"LowerThresholdCritical": 600,
|
||||
"LowerThresholdFatal": 600,
|
||||
"LowerThresholdNonCritical": 960,
|
||||
"MaxReadingRange": null,
|
||||
"MemberId": "0x17||Fan.Embedded.8B",
|
||||
"MinReadingRange": 600,
|
||||
"Name": "System Board Fan8B",
|
||||
"PhysicalContext": "SystemBoard",
|
||||
"Reading": 15840,
|
||||
"ReadingUnits": "RPM",
|
||||
"Redundancy": [],
|
||||
"Redundancy@odata.count": 0,
|
||||
"RelatedItem": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1"
|
||||
}
|
||||
],
|
||||
"RelatedItem@odata.count": 1,
|
||||
"Status": {
|
||||
"Health": "OK",
|
||||
"State": "Enabled"
|
||||
},
|
||||
"UpperThresholdCritical": null,
|
||||
"UpperThresholdFatal": null,
|
||||
"UpperThresholdNonCritical": null
|
||||
}
|
||||
],
|
||||
"Fans@odata.count": 16,
|
||||
"Id": "Thermal",
|
||||
"Name": "Thermal",
|
||||
"Redundancy": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Thermal/Redundancy/iDRAC.Embedded.1%23SystemBoardFanRedundancy",
|
||||
"@odata.type": "#Redundancy.v1_3_0.Redundancy",
|
||||
"MaxNumSupported": 0,
|
||||
"MemberId": "iDRAC.Embedded.1#SystemBoardFanRedundancy",
|
||||
"MinNumNeeded": 0,
|
||||
"Mode": "N+m",
|
||||
"Name": "System Board Fan Redundancy",
|
||||
"RedundancyEnabled": true,
|
||||
"RedundancySet": [],
|
||||
"RedundancySet@odata.count": 0,
|
||||
"Status": {
|
||||
"Health": "OK",
|
||||
"State": "Enabled"
|
||||
}
|
||||
}
|
||||
],
|
||||
"Redundancy@odata.count": 1,
|
||||
"Temperatures": [
|
||||
{
|
||||
"@odata.context": "/redfish/v1/$metadata#Thermal.Thermal",
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Temperatures/iDRAC.Embedded.1%23CPU1Temp",
|
||||
"@odata.type": "#Thermal.v1_4_0.Temperature",
|
||||
"LowerThresholdCritical": 3,
|
||||
"LowerThresholdFatal": 3,
|
||||
"LowerThresholdNonCritical": null,
|
||||
"MaxReadingRangeTemp": 93,
|
||||
"MemberId": "iDRAC.Embedded.1#CPU1Temp",
|
||||
"MinReadingRangeTemp": 3,
|
||||
"Name": "CPU1 Temp",
|
||||
"PhysicalContext": "CPU",
|
||||
"ReadingCelsius": 40,
|
||||
"RelatedItem": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/Processors/CPU.Socket.1"
|
||||
}
|
||||
],
|
||||
"RelatedItem@odata.count": 1,
|
||||
"SensorNumber": 1,
|
||||
"Status": {
|
||||
"Health": "OK",
|
||||
"State": "Enabled"
|
||||
},
|
||||
"UpperThresholdCritical": 93,
|
||||
"UpperThresholdFatal": 93,
|
||||
"UpperThresholdNonCritical": null
|
||||
}
|
||||
],
|
||||
"Temperatures@odata.count": 4
|
||||
}
|
589
plugins/inputs/redfish/testdata/dell_thermalinvalid.json
vendored
Normal file
589
plugins/inputs/redfish/testdata/dell_thermalinvalid.json
vendored
Normal file
|
@ -0,0 +1,589 @@
|
|||
{
|
||||
"@odata.context": "/redfish/v1/$metadata#Thermal.Thermal",
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Thermal",
|
||||
"@odata.type": "#Thermal.v1_4_0.Thermal",
|
||||
"Description": "Represents the properties for Temperature and Cooling",
|
||||
"Fans": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.1A",
|
||||
"@odata.type": "#Thermal.v1_4_0.Fan",
|
||||
"Assembly": {
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Assembly"
|
||||
},
|
||||
"FanName": "System Board Fan1A",
|
||||
"LowerThresholdCritical": 600,
|
||||
"LowerThresholdFatal": 600,
|
||||
"LowerThresholdNonCritical": 960,
|
||||
"MaxReadingRange": null,
|
||||
"MemberId": "0x17||Fan.Embedded.1A",
|
||||
"MinReadingRange": 600,
|
||||
"Name": System Board Fan1A,
|
||||
"PhysicalContext": "SystemBoard",
|
||||
"Reading": 17760,
|
||||
"ReadingUnits": "RPM",
|
||||
"Redundancy": [],
|
||||
"Redundancy@odata.count": 0,
|
||||
"RelatedItem": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1"
|
||||
}
|
||||
],
|
||||
"RelatedItem@odata.count": 1,
|
||||
"Status": {
|
||||
"Health": "OK",
|
||||
"State": "Enabled"
|
||||
},
|
||||
"UpperThresholdCritical": null,
|
||||
"UpperThresholdFatal": null,
|
||||
"UpperThresholdNonCritical": null
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.1B",
|
||||
"@odata.type": "#Thermal.v1_4_0.Fan",
|
||||
"Assembly": {
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Assembly"
|
||||
},
|
||||
"FanName": "System Board Fan1B",
|
||||
"LowerThresholdCritical": 600,
|
||||
"LowerThresholdFatal": 600,
|
||||
"LowerThresholdNonCritical": 960,
|
||||
"MaxReadingRange": null,
|
||||
"MemberId": "0x17||Fan.Embedded.1B",
|
||||
"MinReadingRange": 600,
|
||||
"Name": "System Board Fan1B",
|
||||
"PhysicalContext": "SystemBoard",
|
||||
"Reading": 15360,
|
||||
"ReadingUnits": "RPM",
|
||||
"Redundancy": [],
|
||||
"Redundancy@odata.count": 0,
|
||||
"RelatedItem": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1"
|
||||
}
|
||||
],
|
||||
"RelatedItem@odata.count": 1,
|
||||
"Status": {
|
||||
"Health": "OK",
|
||||
"State": "Enabled"
|
||||
},
|
||||
"UpperThresholdCritical": null,
|
||||
"UpperThresholdFatal": null,
|
||||
"UpperThresholdNonCritical": null
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.2A",
|
||||
"@odata.type": "#Thermal.v1_4_0.Fan",
|
||||
"Assembly": {
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Assembly"
|
||||
},
|
||||
"FanName": "System Board Fan2A",
|
||||
"LowerThresholdCritical": 600,
|
||||
"LowerThresholdFatal": 600,
|
||||
"LowerThresholdNonCritical": 960,
|
||||
"MaxReadingRange": null,
|
||||
"MemberId": "0x17||Fan.Embedded.2A",
|
||||
"MinReadingRange": 600,
|
||||
"Name": "System Board Fan2A",
|
||||
"PhysicalContext": "SystemBoard",
|
||||
"Reading": 17880,
|
||||
"ReadingUnits": "RPM",
|
||||
"Redundancy": [],
|
||||
"Redundancy@odata.count": 0,
|
||||
"RelatedItem": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1"
|
||||
}
|
||||
],
|
||||
"RelatedItem@odata.count": 1,
|
||||
"Status": {
|
||||
"Health": "OK",
|
||||
"State": "Enabled"
|
||||
},
|
||||
"UpperThresholdCritical": null,
|
||||
"UpperThresholdFatal": null,
|
||||
"UpperThresholdNonCritical": null
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.2B",
|
||||
"@odata.type": "#Thermal.v1_4_0.Fan",
|
||||
"Assembly": {
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Assembly"
|
||||
},
|
||||
"FanName": "System Board Fan2B",
|
||||
"LowerThresholdCritical": 600,
|
||||
"LowerThresholdFatal": 600,
|
||||
"LowerThresholdNonCritical": 960,
|
||||
"MaxReadingRange": null,
|
||||
"MemberId": "0x17||Fan.Embedded.2B",
|
||||
"MinReadingRange": 600,
|
||||
"Name": "System Board Fan2B",
|
||||
"PhysicalContext": "SystemBoard",
|
||||
"Reading": 15120,
|
||||
"ReadingUnits": "RPM",
|
||||
"Redundancy": [],
|
||||
"Redundancy@odata.count": 0,
|
||||
"RelatedItem": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1"
|
||||
}
|
||||
],
|
||||
"RelatedItem@odata.count": 1,
|
||||
"Status": {
|
||||
"Health": "OK",
|
||||
"State": "Enabled"
|
||||
},
|
||||
"UpperThresholdCritical": null,
|
||||
"UpperThresholdFatal": null,
|
||||
"UpperThresholdNonCritical": null
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.3A",
|
||||
"@odata.type": "#Thermal.v1_4_0.Fan",
|
||||
"Assembly": {
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Assembly"
|
||||
},
|
||||
"FanName": "System Board Fan3A",
|
||||
"LowerThresholdCritical": 600,
|
||||
"LowerThresholdFatal": 600,
|
||||
"LowerThresholdNonCritical": 960,
|
||||
"MaxReadingRange": null,
|
||||
"MemberId": "0x17||Fan.Embedded.3A",
|
||||
"MinReadingRange": 600,
|
||||
"Name": "System Board Fan3A",
|
||||
"PhysicalContext": "SystemBoard",
|
||||
"Reading": 18000,
|
||||
"ReadingUnits": "RPM",
|
||||
"Redundancy": [],
|
||||
"Redundancy@odata.count": 0,
|
||||
"RelatedItem": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1"
|
||||
}
|
||||
],
|
||||
"RelatedItem@odata.count": 1,
|
||||
"Status": {
|
||||
"Health": "OK",
|
||||
"State": "Enabled"
|
||||
},
|
||||
"UpperThresholdCritical": null,
|
||||
"UpperThresholdFatal": null,
|
||||
"UpperThresholdNonCritical": null
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.3B",
|
||||
"@odata.type": "#Thermal.v1_4_0.Fan",
|
||||
"Assembly": {
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Assembly"
|
||||
},
|
||||
"FanName": "System Board Fan3B",
|
||||
"LowerThresholdCritical": 600,
|
||||
"LowerThresholdFatal": 600,
|
||||
"LowerThresholdNonCritical": 960,
|
||||
"MaxReadingRange": null,
|
||||
"MemberId": "0x17||Fan.Embedded.3B",
|
||||
"MinReadingRange": 600,
|
||||
"Name": "System Board Fan3B",
|
||||
"PhysicalContext": "SystemBoard",
|
||||
"Reading": 15600,
|
||||
"ReadingUnits": "RPM",
|
||||
"Redundancy": [],
|
||||
"Redundancy@odata.count": 0,
|
||||
"RelatedItem": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1"
|
||||
}
|
||||
],
|
||||
"RelatedItem@odata.count": 1,
|
||||
"Status": {
|
||||
"Health": "OK",
|
||||
"State": "Enabled"
|
||||
},
|
||||
"UpperThresholdCritical": null,
|
||||
"UpperThresholdFatal": null,
|
||||
"UpperThresholdNonCritical": null
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.4A",
|
||||
"@odata.type": "#Thermal.v1_4_0.Fan",
|
||||
"Assembly": {
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Assembly"
|
||||
},
|
||||
"FanName": "System Board Fan4A",
|
||||
"LowerThresholdCritical": 600,
|
||||
"LowerThresholdFatal": 600,
|
||||
"LowerThresholdNonCritical": 960,
|
||||
"MaxReadingRange": null,
|
||||
"MemberId": "0x17||Fan.Embedded.4A",
|
||||
"MinReadingRange": 600,
|
||||
"Name": "System Board Fan4A",
|
||||
"PhysicalContext": "SystemBoard",
|
||||
"Reading": 17280,
|
||||
"ReadingUnits": "RPM",
|
||||
"Redundancy": [],
|
||||
"Redundancy@odata.count": 0,
|
||||
"RelatedItem": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1"
|
||||
}
|
||||
],
|
||||
"RelatedItem@odata.count": 1,
|
||||
"Status": {
|
||||
"Health": "OK",
|
||||
"State": "Enabled"
|
||||
},
|
||||
"UpperThresholdCritical": null,
|
||||
"UpperThresholdFatal": null,
|
||||
"UpperThresholdNonCritical": null
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.4B",
|
||||
"@odata.type": "#Thermal.v1_4_0.Fan",
|
||||
"Assembly": {
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Assembly"
|
||||
},
|
||||
"FanName": "System Board Fan4B",
|
||||
"LowerThresholdCritical": 600,
|
||||
"LowerThresholdFatal": 600,
|
||||
"LowerThresholdNonCritical": 960,
|
||||
"MaxReadingRange": null,
|
||||
"MemberId": "0x17||Fan.Embedded.4B",
|
||||
"MinReadingRange": 600,
|
||||
"Name": "System Board Fan4B",
|
||||
"PhysicalContext": "SystemBoard",
|
||||
"Reading": 15360,
|
||||
"ReadingUnits": "RPM",
|
||||
"Redundancy": [],
|
||||
"Redundancy@odata.count": 0,
|
||||
"RelatedItem": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1"
|
||||
}
|
||||
],
|
||||
"RelatedItem@odata.count": 1,
|
||||
"Status": {
|
||||
"Health": "OK",
|
||||
"State": "Enabled"
|
||||
},
|
||||
"UpperThresholdCritical": null,
|
||||
"UpperThresholdFatal": null,
|
||||
"UpperThresholdNonCritical": null
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.5A",
|
||||
"@odata.type": "#Thermal.v1_4_0.Fan",
|
||||
"Assembly": {
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Assembly"
|
||||
},
|
||||
"FanName": "System Board Fan5A",
|
||||
"LowerThresholdCritical": 600,
|
||||
"LowerThresholdFatal": 600,
|
||||
"LowerThresholdNonCritical": 960,
|
||||
"MaxReadingRange": null,
|
||||
"MemberId": "0x17||Fan.Embedded.5A",
|
||||
"MinReadingRange": 600,
|
||||
"Name": "System Board Fan5A",
|
||||
"PhysicalContext": "SystemBoard",
|
||||
"Reading": 17640,
|
||||
"ReadingUnits": "RPM",
|
||||
"Redundancy": [],
|
||||
"Redundancy@odata.count": 0,
|
||||
"RelatedItem": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1"
|
||||
}
|
||||
],
|
||||
"RelatedItem@odata.count": 1,
|
||||
"Status": {
|
||||
"Health": "OK",
|
||||
"State": "Enabled"
|
||||
},
|
||||
"UpperThresholdCritical": null,
|
||||
"UpperThresholdFatal": null,
|
||||
"UpperThresholdNonCritical": null
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.5B",
|
||||
"@odata.type": "#Thermal.v1_4_0.Fan",
|
||||
"Assembly": {
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Assembly"
|
||||
},
|
||||
"FanName": "System Board Fan5B",
|
||||
"LowerThresholdCritical": 600,
|
||||
"LowerThresholdFatal": 600,
|
||||
"LowerThresholdNonCritical": 960,
|
||||
"MaxReadingRange": null,
|
||||
"MemberId": "0x17||Fan.Embedded.5B",
|
||||
"MinReadingRange": 600,
|
||||
"Name": "System Board Fan5B",
|
||||
"PhysicalContext": "SystemBoard",
|
||||
"Reading": 15600,
|
||||
"ReadingUnits": "RPM",
|
||||
"Redundancy": [],
|
||||
"Redundancy@odata.count": 0,
|
||||
"RelatedItem": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1"
|
||||
}
|
||||
],
|
||||
"RelatedItem@odata.count": 1,
|
||||
"Status": {
|
||||
"Health": "OK",
|
||||
"State": "Enabled"
|
||||
},
|
||||
"UpperThresholdCritical": null,
|
||||
"UpperThresholdFatal": null,
|
||||
"UpperThresholdNonCritical": null
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.6A",
|
||||
"@odata.type": "#Thermal.v1_4_0.Fan",
|
||||
"Assembly": {
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Assembly"
|
||||
},
|
||||
"FanName": "System Board Fan6A",
|
||||
"LowerThresholdCritical": 600,
|
||||
"LowerThresholdFatal": 600,
|
||||
"LowerThresholdNonCritical": 960,
|
||||
"MaxReadingRange": null,
|
||||
"MemberId": "0x17||Fan.Embedded.6A",
|
||||
"MinReadingRange": 600,
|
||||
"Name": "System Board Fan6A",
|
||||
"PhysicalContext": "SystemBoard",
|
||||
"Reading": 17760,
|
||||
"ReadingUnits": "RPM",
|
||||
"Redundancy": [],
|
||||
"Redundancy@odata.count": 0,
|
||||
"RelatedItem": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1"
|
||||
}
|
||||
],
|
||||
"RelatedItem@odata.count": 1,
|
||||
"Status": {
|
||||
"Health": "OK",
|
||||
"State": "Enabled"
|
||||
},
|
||||
"UpperThresholdCritical": null,
|
||||
"UpperThresholdFatal": null,
|
||||
"UpperThresholdNonCritical": null
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.6B",
|
||||
"@odata.type": "#Thermal.v1_4_0.Fan",
|
||||
"Assembly": {
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Assembly"
|
||||
},
|
||||
"FanName": "System Board Fan6B",
|
||||
"LowerThresholdCritical": 600,
|
||||
"LowerThresholdFatal": 600,
|
||||
"LowerThresholdNonCritical": 960,
|
||||
"MaxReadingRange": null,
|
||||
"MemberId": "0x17||Fan.Embedded.6B",
|
||||
"MinReadingRange": 600,
|
||||
"Name": "System Board Fan6B",
|
||||
"PhysicalContext": "SystemBoard",
|
||||
"Reading": 15600,
|
||||
"ReadingUnits": "RPM",
|
||||
"Redundancy": [],
|
||||
"Redundancy@odata.count": 0,
|
||||
"RelatedItem": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1"
|
||||
}
|
||||
],
|
||||
"RelatedItem@odata.count": 1,
|
||||
"Status": {
|
||||
"Health": "OK",
|
||||
"State": "Enabled"
|
||||
},
|
||||
"UpperThresholdCritical": null,
|
||||
"UpperThresholdFatal": null,
|
||||
"UpperThresholdNonCritical": null
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.7A",
|
||||
"@odata.type": "#Thermal.v1_4_0.Fan",
|
||||
"Assembly": {
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Assembly"
|
||||
},
|
||||
"FanName": "System Board Fan7A",
|
||||
"LowerThresholdCritical": 600,
|
||||
"LowerThresholdFatal": 600,
|
||||
"LowerThresholdNonCritical": 960,
|
||||
"MaxReadingRange": null,
|
||||
"MemberId": "0x17||Fan.Embedded.7A",
|
||||
"MinReadingRange": 600,
|
||||
"Name": "System Board Fan7A",
|
||||
"PhysicalContext": "SystemBoard",
|
||||
"Reading": 17400,
|
||||
"ReadingUnits": "RPM",
|
||||
"Redundancy": [],
|
||||
"Redundancy@odata.count": 0,
|
||||
"RelatedItem": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1"
|
||||
}
|
||||
],
|
||||
"RelatedItem@odata.count": 1,
|
||||
"Status": {
|
||||
"Health": "OK",
|
||||
"State": "Enabled"
|
||||
},
|
||||
"UpperThresholdCritical": null,
|
||||
"UpperThresholdFatal": null,
|
||||
"UpperThresholdNonCritical": null
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.7B",
|
||||
"@odata.type": "#Thermal.v1_4_0.Fan",
|
||||
"Assembly": {
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Assembly"
|
||||
},
|
||||
"FanName": "System Board Fan7B",
|
||||
"LowerThresholdCritical": 600,
|
||||
"LowerThresholdFatal": 600,
|
||||
"LowerThresholdNonCritical": 960,
|
||||
"MaxReadingRange": null,
|
||||
"MemberId": "0x17||Fan.Embedded.7B",
|
||||
"MinReadingRange": 600,
|
||||
"Name": "System Board Fan7B",
|
||||
"PhysicalContext": "SystemBoard",
|
||||
"Reading": 15720,
|
||||
"ReadingUnits": "RPM",
|
||||
"Redundancy": [],
|
||||
"Redundancy@odata.count": 0,
|
||||
"RelatedItem": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1"
|
||||
}
|
||||
],
|
||||
"RelatedItem@odata.count": 1,
|
||||
"Status": {
|
||||
"Health": "OK",
|
||||
"State": "Enabled"
|
||||
},
|
||||
"UpperThresholdCritical": null,
|
||||
"UpperThresholdFatal": null,
|
||||
"UpperThresholdNonCritical": null
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.8A",
|
||||
"@odata.type": "#Thermal.v1_4_0.Fan",
|
||||
"Assembly": {
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Assembly"
|
||||
},
|
||||
"FanName": "System Board Fan8A",
|
||||
"LowerThresholdCritical": 600,
|
||||
"LowerThresholdFatal": 600,
|
||||
"LowerThresholdNonCritical": 960,
|
||||
"MaxReadingRange": null,
|
||||
"MemberId": "0x17||Fan.Embedded.8A",
|
||||
"MinReadingRange": 600,
|
||||
"Name": "System Board Fan8A",
|
||||
"PhysicalContext": "SystemBoard",
|
||||
"Reading": 18000,
|
||||
"ReadingUnits": "RPM",
|
||||
"Redundancy": [],
|
||||
"Redundancy@odata.count": 0,
|
||||
"RelatedItem": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1"
|
||||
}
|
||||
],
|
||||
"RelatedItem@odata.count": 1,
|
||||
"Status": {
|
||||
"Health": "OK",
|
||||
"State": "Enabled"
|
||||
},
|
||||
"UpperThresholdCritical": null,
|
||||
"UpperThresholdFatal": null,
|
||||
"UpperThresholdNonCritical": null
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.8B",
|
||||
"@odata.type": "#Thermal.v1_4_0.Fan",
|
||||
"Assembly": {
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Assembly"
|
||||
},
|
||||
"FanName": "System Board Fan8B",
|
||||
"LowerThresholdCritical": 600,
|
||||
"LowerThresholdFatal": 600,
|
||||
"LowerThresholdNonCritical": 960,
|
||||
"MaxReadingRange": null,
|
||||
"MemberId": "0x17||Fan.Embedded.8B",
|
||||
"MinReadingRange": 600,
|
||||
"Name": "System Board Fan8B",
|
||||
"PhysicalContext": "SystemBoard",
|
||||
"Reading": 15840,
|
||||
"ReadingUnits": "RPM",
|
||||
"Redundancy": [],
|
||||
"Redundancy@odata.count": 0,
|
||||
"RelatedItem": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1"
|
||||
}
|
||||
],
|
||||
"RelatedItem@odata.count": 1,
|
||||
"Status": {
|
||||
"Health": "OK",
|
||||
"State": "Enabled"
|
||||
},
|
||||
"UpperThresholdCritical": null,
|
||||
"UpperThresholdFatal": null,
|
||||
"UpperThresholdNonCritical": null
|
||||
}
|
||||
],
|
||||
"Fans@odata.count": 16,
|
||||
"Id": "Thermal",
|
||||
"Name": "Thermal",
|
||||
"Redundancy": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Thermal/Redundancy/iDRAC.Embedded.1%23SystemBoardFanRedundancy",
|
||||
"@odata.type": "#Redundancy.v1_3_0.Redundancy",
|
||||
"MaxNumSupported": 0,
|
||||
"MemberId": "iDRAC.Embedded.1#SystemBoardFanRedundancy",
|
||||
"MinNumNeeded": 0,
|
||||
"Mode": "N+m",
|
||||
"Name": "System Board Fan Redundancy",
|
||||
"RedundancyEnabled": true,
|
||||
"RedundancySet": [],
|
||||
"RedundancySet@odata.count": 0,
|
||||
"Status": {
|
||||
"Health": "OK",
|
||||
"State": "Enabled"
|
||||
}
|
||||
}
|
||||
],
|
||||
"Redundancy@odata.count": 1,
|
||||
"Temperatures": [
|
||||
{
|
||||
"@odata.context": "/redfish/v1/$metadata#Thermal.Thermal",
|
||||
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Temperatures/iDRAC.Embedded.1%23CPU1Temp",
|
||||
"@odata.type": "#Thermal.v1_4_0.Temperature",
|
||||
"LowerThresholdCritical": 3,
|
||||
"LowerThresholdFatal": 3,
|
||||
"LowerThresholdNonCritical": null,
|
||||
"MaxReadingRangeTemp": 93,
|
||||
"MemberId": "iDRAC.Embedded.1#CPU1Temp",
|
||||
"MinReadingRangeTemp": 3,
|
||||
"Name": "CPU1 Temp",
|
||||
"PhysicalContext": "CPU",
|
||||
"ReadingCelsius": 40,
|
||||
"RelatedItem": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/Processors/CPU.Socket.1"
|
||||
}
|
||||
],
|
||||
"RelatedItem@odata.count": 1,
|
||||
"SensorNumber": 1,
|
||||
"Status": {
|
||||
"Health": "OK",
|
||||
"State": "Enabled"
|
||||
},
|
||||
"UpperThresholdCritical": 93,
|
||||
"UpperThresholdFatal": 93,
|
||||
"UpperThresholdNonCritical": null
|
||||
}
|
||||
],
|
||||
"Temperatures@odata.count": 4
|
||||
}
|
31
plugins/inputs/redfish/testdata/hp_chassis.json
vendored
Normal file
31
plugins/inputs/redfish/testdata/hp_chassis.json
vendored
Normal file
|
@ -0,0 +1,31 @@
|
|||
{
|
||||
"ChassisType": "RackMount",
|
||||
"Location": {
|
||||
"Info": ";;;;1",
|
||||
"InfoFormat": "DataCenter;RoomName;Aisle;RackName;RackSlot",
|
||||
"Placement": {
|
||||
"Rack": "",
|
||||
"Row": ""
|
||||
},
|
||||
"PostalAddress": {
|
||||
"Building": "",
|
||||
"Room": ""
|
||||
}
|
||||
},
|
||||
"Manufacturer": "HP",
|
||||
"Model": "Proliant Gen10",
|
||||
"PartNumber": "CT6NWPYZ",
|
||||
"Power": {
|
||||
"@odata.id": "/redfish/v1/Chassis/1/Power"
|
||||
},
|
||||
"PowerState": "On",
|
||||
"SKU": "CLFYTTWP",
|
||||
"SerialNumber": "QWEVC007C99803",
|
||||
"Status": {
|
||||
"Health": "OK",
|
||||
"State": "Enabled"
|
||||
},
|
||||
"Thermal": {
|
||||
"@odata.id": "/redfish/v1/Chassis/1/Thermal"
|
||||
}
|
||||
}
|
144
plugins/inputs/redfish/testdata/hp_power.json
vendored
Normal file
144
plugins/inputs/redfish/testdata/hp_power.json
vendored
Normal file
|
@ -0,0 +1,144 @@
|
|||
{
|
||||
"@odata.context": "/redfish/v1/$metadata#Power.Power",
|
||||
"@odata.etag": "W/\"2E43EED0\"",
|
||||
"@odata.id": "/redfish/v1/Chassis/1/Power",
|
||||
"@odata.type": "#Power.v1_3_0.Power",
|
||||
"Id": "Power",
|
||||
"Name": "PowerMetrics",
|
||||
"Oem": {
|
||||
"Hpe": {
|
||||
"@odata.context": "/redfish/v1/$metadata#HpePowerMetricsExt.HpePowerMetricsExt",
|
||||
"@odata.type": "#HpePowerMetricsExt.v2_2_0.HpePowerMetricsExt",
|
||||
"BrownoutRecoveryEnabled": true,
|
||||
"HasCpuPowerMetering": true,
|
||||
"HasDimmPowerMetering": true,
|
||||
"HasGpuPowerMetering": false,
|
||||
"HasPowerMetering": true,
|
||||
"HighEfficiencyMode": "Balanced",
|
||||
"Links": {
|
||||
"PowerMeter": {
|
||||
"@odata.id": "/redfish/v1/Chassis/1/Power/PowerMeter"
|
||||
},
|
||||
"FastPowerMeter": {
|
||||
"@odata.id": "/redfish/v1/Chassis/1/Power/FastPowerMeter"
|
||||
},
|
||||
"FederatedGroupCapping": {
|
||||
"@odata.id": "/redfish/v1/Chassis/1/Power/FederatedGroupCapping"
|
||||
}
|
||||
},
|
||||
"MinimumSafelyAchievableCap": null,
|
||||
"MinimumSafelyAchievableCapValid": false,
|
||||
"SNMPPowerThresholdAlert": {
|
||||
"DurationInMin": 0,
|
||||
"ThresholdWatts": 0,
|
||||
"Trigger": "Disabled"
|
||||
}
|
||||
}
|
||||
},
|
||||
"PowerControl": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/1/Power#PowerControl/0",
|
||||
"MemberId": "0",
|
||||
"PowerCapacityWatts": 1600,
|
||||
"PowerConsumedWatts": 221,
|
||||
"PowerMetrics": {
|
||||
"AverageConsumedWatts": 221,
|
||||
"IntervalInMin": 20,
|
||||
"MaxConsumedWatts": 252,
|
||||
"MinConsumedWatts": 220
|
||||
}
|
||||
}
|
||||
],
|
||||
"PowerSupplies": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/1/Power#PowerSupplies/0",
|
||||
"FirmwareVersion": "1.02",
|
||||
"LastPowerOutputWatts": 0,
|
||||
"LineInputVoltage": 205,
|
||||
"LineInputVoltageType": "ACHighLine",
|
||||
"Manufacturer": "CHCNY",
|
||||
"MemberId": "0",
|
||||
"Model": "865414-B21",
|
||||
"Name": "HpeServerPowerSupply",
|
||||
"Oem": {
|
||||
"Hpe": {
|
||||
"@odata.context": "/redfish/v1/$metadata#HpeServerPowerSupply.HpeServerPowerSupply",
|
||||
"@odata.type": "#HpeServerPowerSupply.v2_0_0.HpeServerPowerSupply",
|
||||
"AveragePowerOutputWatts": 0,
|
||||
"BayNumber": 1,
|
||||
"HotplugCapable": true,
|
||||
"MaxPowerOutputWatts": 143,
|
||||
"Mismatched": false,
|
||||
"PowerSupplyStatus": {
|
||||
"State": "Ok"
|
||||
},
|
||||
"iPDUCapable": false
|
||||
}
|
||||
},
|
||||
"PowerCapacityWatts": 800,
|
||||
"PowerSupplyType": "AC",
|
||||
"SerialNumber": "5WEBP0B8JAQ2K9",
|
||||
"SparePartNumber": "866730-001",
|
||||
"Status": {
|
||||
"Health": "OK",
|
||||
"State": "Enabled"
|
||||
}
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/1/Power#PowerSupplies/1",
|
||||
"FirmwareVersion": "1.02",
|
||||
"LastPowerOutputWatts": 90,
|
||||
"LineInputVoltage": 205,
|
||||
"LineInputVoltageType": "ACHighLine",
|
||||
"Manufacturer": "CHCNY",
|
||||
"MemberId": "1",
|
||||
"Model": "865414-B21",
|
||||
"Name": "HpeServerPowerSupply",
|
||||
"Oem": {
|
||||
"Hpe": {
|
||||
"@odata.context": "/redfish/v1/$metadata#HpeServerPowerSupply.HpeServerPowerSupply",
|
||||
"@odata.type": "#HpeServerPowerSupply.v2_0_0.HpeServerPowerSupply",
|
||||
"AveragePowerOutputWatts": 90,
|
||||
"BayNumber": 2,
|
||||
"HotplugCapable": true,
|
||||
"MaxPowerOutputWatts": 99,
|
||||
"Mismatched": false,
|
||||
"PowerSupplyStatus": {
|
||||
"State": "Ok"
|
||||
},
|
||||
"iPDUCapable": false
|
||||
}
|
||||
},
|
||||
"PowerCapacityWatts": 800,
|
||||
"PowerSupplyType": "AC",
|
||||
"SerialNumber": "5WEBP0B8JAQ2KL",
|
||||
"SparePartNumber": "866730-001",
|
||||
"Status": {
|
||||
"Health": "OK",
|
||||
"State": "Enabled"
|
||||
}
|
||||
}
|
||||
],
|
||||
"Redundancy": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/1/Power#Redundancy/0",
|
||||
"MaxNumSupported": 2,
|
||||
"MemberId": "0",
|
||||
"MinNumNeeded": 2,
|
||||
"Mode": "Failover",
|
||||
"Name": "PowerSupply Redundancy Group 1",
|
||||
"RedundancySet": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/1/Power#PowerSupplies/0"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/1/Power#PowerSupplies/1"
|
||||
}
|
||||
],
|
||||
"Status": {
|
||||
"Health": "OK",
|
||||
"State": "Enabled"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
145
plugins/inputs/redfish/testdata/hp_powerinvalid.json
vendored
Normal file
145
plugins/inputs/redfish/testdata/hp_powerinvalid.json
vendored
Normal file
|
@ -0,0 +1,145 @@
|
|||
{
|
||||
"@odata.context": "/redfish/v1/$metadata#Power.Power",
|
||||
"@odata.etag": "W/\"2E43EED0\"",
|
||||
"@odata.id": "/redfish/v1/Chassis/1/Power",
|
||||
"@odata.type": "#Power.v1_3_0.Power",
|
||||
"Id": "Power",
|
||||
"Name": "PowerMetrics",
|
||||
"Oem": {
|
||||
"Hpe": {
|
||||
"@odata.context": "/redfish/v1/$metadata#HpePowerMetricsExt.HpePowerMetricsExt",
|
||||
"@odata.type": "#HpePowerMetricsExt.v2_2_0.HpePowerMetricsExt",
|
||||
"BrownoutRecoveryEnabled": true,
|
||||
"HasCpuPowerMetering": true,
|
||||
"HasDimmPowerMetering": true,
|
||||
"HasGpuPowerMetering": false,
|
||||
"HasPowerMetering": true,
|
||||
"HighEfficiencyMode": "Balanced",
|
||||
"Links": {
|
||||
"PowerMeter": {
|
||||
"@odata.id": "/redfish/v1/Chassis/1/Power/PowerMeter"
|
||||
},
|
||||
"FastPowerMeter": {
|
||||
"@odata.id": "/redfish/v1/Chassis/1/Power/FastPowerMeter"
|
||||
},
|
||||
"FederatedGroupCapping": {
|
||||
"@odata.id": "/redfish/v1/Chassis/1/Power/FederatedGroupCapping"
|
||||
}
|
||||
},
|
||||
"MinimumSafelyAchievableCap": null,
|
||||
"MinimumSafelyAchievableCapValid": false,
|
||||
"SNMPPowerThresholdAlert": {
|
||||
"DurationInMin": 0,
|
||||
"ThresholdWatts": 0,
|
||||
"Trigger": "Disabled"
|
||||
}
|
||||
}
|
||||
},
|
||||
"PowerControl": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/1/Power#PowerControl/0",
|
||||
"MemberId": "0",
|
||||
"PowerCapacityWatts": 1600,
|
||||
"PowerConsumedWatts": 221,
|
||||
"PowerMetrics": {
|
||||
"AverageConsumedWatts": 221,
|
||||
"IntervalInMin": 20,
|
||||
"MaxConsumedWatts": 252,
|
||||
"MinConsumedWatts": 220
|
||||
}
|
||||
}
|
||||
],
|
||||
"PowerSupplies": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/1/Power#PowerSupplies/0",
|
||||
"FirmwareVersion": "1.02",
|
||||
"LastPowerOutputWatts": 0,
|
||||
"LineInputVoltage": 205,
|
||||
"LineInputVoltageType": "ACHighLine",
|
||||
"Manufacturer": "CHCNY",
|
||||
"MemberId": "0",
|
||||
"Model": "865414-B21",
|
||||
"Name": "HpeServerPowerSupply",
|
||||
"Oem": {
|
||||
"Hpe": {
|
||||
"@odata.context": "/redfish/v1/$metadata#HpeServerPowerSupply.HpeServerPowerSupply",
|
||||
"@odata.type": "#HpeServerPowerSupply.v2_0_0.HpeServerPowerSupply",
|
||||
"AveragePowerOutputWatts": 0,
|
||||
"BayNumber": 1,
|
||||
"HotplugCapable": true,
|
||||
"MaxPowerOutputWatts": 143,
|
||||
"Mismatched": false,
|
||||
"PowerSupplyStatus": {
|
||||
"State": "Ok"
|
||||
},
|
||||
"iPDUCapable": false
|
||||
}
|
||||
},
|
||||
"PowerCapacityWatts": 800,
|
||||
"PowerSupplyType": "AC",
|
||||
"SerialNumber": "5WEBP0B8JAQ2K9",
|
||||
"SparePartNumber": "866730-001",
|
||||
"Status": {
|
||||
"Health": "OK",
|
||||
"State": "Enabled"
|
||||
}
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/1/Power#PowerSupplies/1",
|
||||
"FirmwareVersion": "1.02",
|
||||
"LastPowerOutputWatts": 90,
|
||||
"LineInputVoltage": 205,
|
||||
"LineInputVoltageType": "ACHighLine",
|
||||
"Manufacturer": "CHCNY",
|
||||
"MemberId": "1",
|
||||
"Model": "865414-B21",
|
||||
"Name": "HpeServerPowerSupply",
|
||||
"Oem": {
|
||||
"Hpe": {
|
||||
"@odata.context": "/redfish/v1/$metadata#HpeServerPowerSupply.HpeServerPowerSupply",
|
||||
"@odata.type": "#HpeServerPowerSupply.v2_0_0.HpeServerPowerSupply",
|
||||
"AveragePowerOutputWatts": 90,
|
||||
"BayNumber": 2,
|
||||
"HotplugCapable": true,
|
||||
"MaxPowerOutputWatts": 99,
|
||||
"Mismatched": false,
|
||||
"PowerSupplyStatus": {
|
||||
"State": "Ok"
|
||||
},
|
||||
"iPDUCapable": false
|
||||
}
|
||||
},
|
||||
"PowerCapacityWatts": 800,
|
||||
"PowerSupplyType": "AC",
|
||||
"SerialNumber": "5WEBP0B8JAQ2KL",
|
||||
"SparePartNumber": "866730-001",
|
||||
"Status": {
|
||||
"Health": "OK",
|
||||
"State": "Enabled"
|
||||
}
|
||||
}
|
||||
],
|
||||
"Redundancy": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/1/Power#Redundancy/0",
|
||||
"MaxNumSupported": 2,
|
||||
"MemberId": "0",
|
||||
"MinNumNeeded": 2,
|
||||
"Mode": "Failover",
|
||||
"Name": "PowerSupply Redundancy Group 1",
|
||||
"RedundancySet": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/1/Power#PowerSupplies/0"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/1/Power#PowerSupplies/1"
|
||||
}
|
||||
],
|
||||
"Status": {
|
||||
"Health": "OK",
|
||||
"State": "Enabled"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
{
|
319
plugins/inputs/redfish/testdata/hp_systems.json
vendored
Normal file
319
plugins/inputs/redfish/testdata/hp_systems.json
vendored
Normal file
|
@ -0,0 +1,319 @@
|
|||
{
|
||||
"@odata.context": "/redfish/v1/$metadata#ComputerSystem.ComputerSystem",
|
||||
"@odata.etag": "W/\"43E302D1\"",
|
||||
"@odata.id": "/redfish/v1/Systems/1/",
|
||||
"@odata.type": "#ComputerSystem.v1_4_0.ComputerSystem",
|
||||
"Id": "1",
|
||||
"Actions": {
|
||||
"#ComputerSystem.Reset": {
|
||||
"ResetType@Redfish.AllowableValues": [
|
||||
"On",
|
||||
"ForceOff",
|
||||
"ForceRestart",
|
||||
"Nmi",
|
||||
"PushPowerButton"
|
||||
],
|
||||
"target": "/redfish/v1/Systems/1/Actions/ComputerSystem.Reset/"
|
||||
}
|
||||
},
|
||||
"AssetTag": "",
|
||||
"Bios": {
|
||||
"@odata.id": "/redfish/v1/systems/1/bios/"
|
||||
},
|
||||
"BiosVersion": "U32 v2.10 (05/21/2019)",
|
||||
"Boot": {
|
||||
"BootSourceOverrideEnabled": "Disabled",
|
||||
"BootSourceOverrideMode": "UEFI",
|
||||
"BootSourceOverrideTarget": "None",
|
||||
"BootSourceOverrideTarget@Redfish.AllowableValues": [
|
||||
"None",
|
||||
"Cd",
|
||||
"Hdd",
|
||||
"Usb",
|
||||
"SDCard",
|
||||
"Utilities",
|
||||
"Diags",
|
||||
"BiosSetup",
|
||||
"Pxe",
|
||||
"UefiShell",
|
||||
"UefiHttp",
|
||||
"UefiTarget"
|
||||
],
|
||||
"UefiTargetBootSourceOverride": "None",
|
||||
"UefiTargetBootSourceOverride@Redfish.AllowableValues": [
|
||||
"HD(1,GPT,0E3A0969-7AFC-4B55-8B24-AEFA09F33D2D,0x800,0x12C000)/\\EFI\\redhat\\shimx64.efi",
|
||||
"UsbClass(0xFFFF,0xFFFF,0xFF,0xFF,0xFF)",
|
||||
"PciRoot(0x0)/Pci(0x1C,0x0)/Pci(0x0,0x0)/MAC(8030E0421B1C,0x1)/IPv4(0.0.0.0)/Uri()",
|
||||
"PciRoot(0x0)/Pci(0x1C,0x0)/Pci(0x0,0x0)/MAC(8030E0421B1C,0x1)/IPv4(0.0.0.0)",
|
||||
"PciRoot(0x3)/Pci(0x2,0x0)/Pci(0x0,0x0)/MAC(48DF37959430,0x1)/IPv4(0.0.0.0)/Uri()",
|
||||
"PciRoot(0x3)/Pci(0x2,0x0)/Pci(0x0,0x0)/MAC(48DF37959430,0x1)/IPv4(0.0.0.0)",
|
||||
"PciRoot(0x0)/Pci(0x1C,0x0)/Pci(0x0,0x0)/MAC(8030E0421B1C,0x1)/IPv6(0000:0000:0000:0000:0000:0000:0000:0000)/Uri()",
|
||||
"PciRoot(0x3)/Pci(0x2,0x0)/Pci(0x0,0x0)/MAC(48DF37959430,0x1)/IPv6(0000:0000:0000:0000:0000:0000:0000:0000)/Uri()",
|
||||
"PciRoot(0x3)/Pci(0x2,0x0)/Pci(0x0,0x0)/MAC(48DF37959430,0x1)/IPv6(0000:0000:0000:0000:0000:0000:0000:0000)",
|
||||
"PciRoot(0x0)/Pci(0x1C,0x0)/Pci(0x0,0x0)/MAC(8030E0421B1C,0x1)/IPv6(0000:0000:0000:0000:0000:0000:0000:0000)",
|
||||
"PciRoot(0x9)/Pci(0x0,0x0)/Pci(0x0,0x0)/MAC(B88303866AE8,0x1)/IPv4(0.0.0.0)/Uri()",
|
||||
"PciRoot(0x9)/Pci(0x0,0x0)/Pci(0x0,0x0)/MAC(B88303866AE8,0x1)/IPv4(0.0.0.0)",
|
||||
"PciRoot(0x9)/Pci(0x0,0x0)/Pci(0x0,0x0)/MAC(B88303866AE8,0x1)/IPv6(0000:0000:0000:0000:0000:0000:0000:0000)/Uri()",
|
||||
"PciRoot(0x9)/Pci(0x0,0x0)/Pci(0x0,0x0)/MAC(B88303866AE8,0x1)/IPv6(0000:0000:0000:0000:0000:0000:0000:0000)",
|
||||
"PciRoot(0x0)/Pci(0x14,0x0)/USB(0x13,0x0)",
|
||||
"PciRoot(0x3)/Pci(0x0,0x0)/Pci(0x0,0x0)/Scsi(0x0,0x0)"
|
||||
]
|
||||
},
|
||||
"EthernetInterfaces": {
|
||||
"@odata.id": "/redfish/v1/Systems/1/EthernetInterfaces/"
|
||||
},
|
||||
"HostName": "tpa-hostname",
|
||||
"IndicatorLED": "Off",
|
||||
"Links": {
|
||||
"ManagedBy": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Managers/1/"
|
||||
}
|
||||
],
|
||||
"Chassis": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/1/"
|
||||
}
|
||||
]
|
||||
},
|
||||
"LogServices": {
|
||||
"@odata.id": "/redfish/v1/Systems/1/LogServices/"
|
||||
},
|
||||
"Manufacturer": "HPE",
|
||||
"Memory": {
|
||||
"@odata.id": "/redfish/v1/Systems/1/Memory/"
|
||||
},
|
||||
"MemoryDomains": {
|
||||
"@odata.id": "/redfish/v1/Systems/1/MemoryDomains/"
|
||||
},
|
||||
"MemorySummary": {
|
||||
"Status": {
|
||||
"HealthRollup": "OK"
|
||||
},
|
||||
"TotalSystemMemoryGiB": 384,
|
||||
"TotalSystemPersistentMemoryGiB": 0
|
||||
},
|
||||
"Model": "ProLiant DL360 Gen10",
|
||||
"Name": "Computer System",
|
||||
"NetworkInterfaces": {
|
||||
"@odata.id": "/redfish/v1/Systems/1/NetworkInterfaces/"
|
||||
},
|
||||
"Oem": {
|
||||
"Hpe": {
|
||||
"@odata.context": "/redfish/v1/$metadata#HpeComputerSystemExt.HpeComputerSystemExt",
|
||||
"@odata.type": "#HpeComputerSystemExt.v2_6_1.HpeComputerSystemExt",
|
||||
"Actions": {
|
||||
"#HpeComputerSystemExt.PowerButton": {
|
||||
"PushType@Redfish.AllowableValues": [
|
||||
"Press",
|
||||
"PressAndHold"
|
||||
],
|
||||
"target": "/redfish/v1/Systems/1/Actions/Oem/Hpe/HpeComputerSystemExt.PowerButton/"
|
||||
},
|
||||
"#HpeComputerSystemExt.SecureSystemErase": {
|
||||
"target": "/redfish/v1/Systems/1/Actions/Oem/Hpe/HpeComputerSystemExt.SecureSystemErase/"
|
||||
},
|
||||
"#HpeComputerSystemExt.SystemReset": {
|
||||
"ResetType@Redfish.AllowableValues": [
|
||||
"ColdBoot",
|
||||
"AuxCycle"
|
||||
],
|
||||
"target": "/redfish/v1/Systems/1/Actions/Oem/Hpe/HpeComputerSystemExt.SystemReset/"
|
||||
}
|
||||
},
|
||||
"AggregateHealthStatus": {
|
||||
"AgentlessManagementService": "Unavailable",
|
||||
"BiosOrHardwareHealth": {
|
||||
"Status": {
|
||||
"Health": "OK"
|
||||
}
|
||||
},
|
||||
"FanRedundancy": "Redundant",
|
||||
"Fans": {
|
||||
"Status": {
|
||||
"Health": "OK"
|
||||
}
|
||||
},
|
||||
"Memory": {
|
||||
"Status": {
|
||||
"Health": "OK"
|
||||
}
|
||||
},
|
||||
"Network": {
|
||||
"Status": {
|
||||
"Health": "OK"
|
||||
}
|
||||
},
|
||||
"PowerSupplies": {
|
||||
"PowerSuppliesMismatch": false,
|
||||
"Status": {
|
||||
"Health": "OK"
|
||||
}
|
||||
},
|
||||
"PowerSupplyRedundancy": "Redundant",
|
||||
"Processors": {
|
||||
"Status": {
|
||||
"Health": "OK"
|
||||
}
|
||||
},
|
||||
"SmartStorageBattery": {
|
||||
"Status": {
|
||||
"Health": "OK"
|
||||
}
|
||||
},
|
||||
"Storage": {
|
||||
"Status": {
|
||||
"Health": "OK"
|
||||
}
|
||||
},
|
||||
"Temperatures": {
|
||||
"Status": {
|
||||
"Health": "OK"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Bios": {
|
||||
"Backup": {
|
||||
"Date": "05/21/2019",
|
||||
"Family": "U32",
|
||||
"VersionString": "U32 v2.10 (05/21/2019)"
|
||||
},
|
||||
"Current": {
|
||||
"Date": "05/21/2019",
|
||||
"Family": "U32",
|
||||
"VersionString": "U32 v2.10 (05/21/2019)"
|
||||
},
|
||||
"UefiClass": 2
|
||||
},
|
||||
"CurrentPowerOnTimeSeconds": 29290,
|
||||
"DeviceDiscoveryComplete": {
|
||||
"AMSDeviceDiscovery": "NoAMS",
|
||||
"DeviceDiscovery": "vMainDeviceDiscoveryComplete",
|
||||
"SmartArrayDiscovery": "Complete"
|
||||
},
|
||||
"ElapsedEraseTimeInMinutes": 0,
|
||||
"EndOfPostDelaySeconds": null,
|
||||
"EstimatedEraseTimeInMinutes": 0,
|
||||
"IntelligentProvisioningAlwaysOn": true,
|
||||
"IntelligentProvisioningIndex": 9,
|
||||
"IntelligentProvisioningLocation": "System Board",
|
||||
"IntelligentProvisioningVersion": "3.30.213",
|
||||
"IsColdBooting": false,
|
||||
"Links": {
|
||||
"PCIDevices": {
|
||||
"@odata.id": "/redfish/v1/Systems/1/PCIDevices/"
|
||||
},
|
||||
"PCISlots": {
|
||||
"@odata.id": "/redfish/v1/Systems/1/PCISlots/"
|
||||
},
|
||||
"NetworkAdapters": {
|
||||
"@odata.id": "/redfish/v1/Systems/1/BaseNetworkAdapters/"
|
||||
},
|
||||
"SmartStorage": {
|
||||
"@odata.id": "/redfish/v1/Systems/1/SmartStorage/"
|
||||
},
|
||||
"USBPorts": {
|
||||
"@odata.id": "/redfish/v1/Systems/1/USBPorts/"
|
||||
},
|
||||
"USBDevices": {
|
||||
"@odata.id": "/redfish/v1/Systems/1/USBDevices/"
|
||||
},
|
||||
"EthernetInterfaces": {
|
||||
"@odata.id": "/redfish/v1/Systems/1/EthernetInterfaces/"
|
||||
},
|
||||
"WorkloadPerformanceAdvisor": {
|
||||
"@odata.id": "/redfish/v1/Systems/1/WorkloadPerformanceAdvisor/"
|
||||
}
|
||||
},
|
||||
"PCAPartNumber": "847479-002",
|
||||
"PCASerialNumber": "PWUFL0ARHCF3KR",
|
||||
"PostDiscoveryCompleteTimeStamp": "2020-02-24T02:43:43Z",
|
||||
"PostDiscoveryMode": null,
|
||||
"PostMode": null,
|
||||
"PostState": "FinishedPost",
|
||||
"PowerAllocationLimit": 1600,
|
||||
"PowerAutoOn": "Restore",
|
||||
"PowerOnDelay": "Minimum",
|
||||
"PowerOnMinutes": 95715,
|
||||
"PowerRegulatorMode": "Max",
|
||||
"PowerRegulatorModesSupported": [
|
||||
"OSControl",
|
||||
"Dynamic",
|
||||
"Max",
|
||||
"Min"
|
||||
],
|
||||
"ProcessorJitterControl": {
|
||||
"ConfiguredFrequencyLimitMHz": 0,
|
||||
"Mode": "Disabled"
|
||||
},
|
||||
"SMBIOS": {
|
||||
"extref": "/smbios"
|
||||
},
|
||||
"ServerFQDN": "TPAVCPAR088S4.vici.verizon.com",
|
||||
"SmartStorageConfig": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/systems/1/smartstorageconfig/"
|
||||
}
|
||||
],
|
||||
"SystemROMAndiLOEraseComponentStatus": {
|
||||
"BIOSSettingsEraseStatus": "Idle",
|
||||
"iLOSettingsEraseStatus": "Idle"
|
||||
},
|
||||
"SystemROMAndiLOEraseStatus": "Idle",
|
||||
"SystemUsage": {
|
||||
"AvgCPU0Freq": 0,
|
||||
"AvgCPU1Freq": 6,
|
||||
"CPU0Power": 50,
|
||||
"CPU1Power": 51,
|
||||
"CPUICUtil": 0,
|
||||
"CPUUtil": 0,
|
||||
"IOBusUtil": 0,
|
||||
"JitterCount": 35,
|
||||
"MemoryBusUtil": 0
|
||||
},
|
||||
"UserDataEraseComponentStatus": {},
|
||||
"UserDataEraseStatus": "Idle",
|
||||
"VirtualProfile": "Inactive"
|
||||
}
|
||||
},
|
||||
"PowerState": "On",
|
||||
"ProcessorSummary": {
|
||||
"Count": 2,
|
||||
"Model": "Intel(R) Xeon(R) Gold 6148 CPU @ 2.40GHz",
|
||||
"Status": {
|
||||
"HealthRollup": "OK"
|
||||
}
|
||||
},
|
||||
"Processors": {
|
||||
"@odata.id": "/redfish/v1/Systems/1/Processors/"
|
||||
},
|
||||
"SKU": "867959-B21",
|
||||
"SecureBoot": {
|
||||
"@odata.id": "/redfish/v1/Systems/1/SecureBoot/"
|
||||
},
|
||||
"SerialNumber": "MXQ93003RB",
|
||||
"Status": {
|
||||
"Health": "OK",
|
||||
"State": "Enabled"
|
||||
},
|
||||
"Storage": {
|
||||
"@odata.id": "/redfish/v1/Systems/1/Storage/"
|
||||
},
|
||||
"SystemType": "Physical",
|
||||
"TrustedModules": [
|
||||
{
|
||||
"FirmwareVersion": "73.0",
|
||||
"InterfaceType": "TPM1_2",
|
||||
"Oem": {
|
||||
"Hpe": {
|
||||
"@odata.context": "/redfish/v1/$metadata#HpeTrustedModuleExt.HpeTrustedModuleExt",
|
||||
"@odata.type": "#HpeTrustedModuleExt.v2_0_0.HpeTrustedModuleExt",
|
||||
"VendorName": "STMicro"
|
||||
}
|
||||
},
|
||||
"Status": {
|
||||
"State": "Disabled"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
320
plugins/inputs/redfish/testdata/hp_systemsinvalid.json
vendored
Normal file
320
plugins/inputs/redfish/testdata/hp_systemsinvalid.json
vendored
Normal file
|
@ -0,0 +1,320 @@
|
|||
{
|
||||
"@odata.context": "/redfish/v1/$metadata#ComputerSystem.ComputerSystem",
|
||||
"@odata.etag": "W/\"43E302D1\"",
|
||||
"@odata.id": "/redfish/v1/Systems/1/",
|
||||
"@odata.type": "#ComputerSystem.v1_4_0.ComputerSystem",
|
||||
"Id": "1",
|
||||
"Actions": {
|
||||
"#ComputerSystem.Reset": {
|
||||
"ResetType@Redfish.AllowableValues": [
|
||||
"On",
|
||||
"ForceOff",
|
||||
"ForceRestart",
|
||||
"Nmi",
|
||||
"PushPowerButton"
|
||||
],
|
||||
"target": "/redfish/v1/Systems/1/Actions/ComputerSystem.Reset/"
|
||||
}
|
||||
},
|
||||
"AssetTag": "",
|
||||
"Bios": {
|
||||
"@odata.id": "/redfish/v1/systems/1/bios/"
|
||||
},
|
||||
"BiosVersion": "U32 v2.10 (05/21/2019)",
|
||||
"Boot": {
|
||||
"BootSourceOverrideEnabled": "Disabled",
|
||||
"BootSourceOverrideMode": "UEFI",
|
||||
"BootSourceOverrideTarget": "None",
|
||||
"BootSourceOverrideTarget@Redfish.AllowableValues": [
|
||||
"None",
|
||||
"Cd",
|
||||
"Hdd",
|
||||
"Usb",
|
||||
"SDCard",
|
||||
"Utilities",
|
||||
"Diags",
|
||||
"BiosSetup",
|
||||
"Pxe",
|
||||
"UefiShell",
|
||||
"UefiHttp",
|
||||
"UefiTarget"
|
||||
],
|
||||
"UefiTargetBootSourceOverride": "None",
|
||||
"UefiTargetBootSourceOverride@Redfish.AllowableValues": [
|
||||
"HD(1,GPT,0E3A0969-7AFC-4B55-8B24-AEFA09F33D2D,0x800,0x12C000)/\\EFI\\redhat\\shimx64.efi",
|
||||
"UsbClass(0xFFFF,0xFFFF,0xFF,0xFF,0xFF)",
|
||||
"PciRoot(0x0)/Pci(0x1C,0x0)/Pci(0x0,0x0)/MAC(8030E0421B1C,0x1)/IPv4(0.0.0.0)/Uri()",
|
||||
"PciRoot(0x0)/Pci(0x1C,0x0)/Pci(0x0,0x0)/MAC(8030E0421B1C,0x1)/IPv4(0.0.0.0)",
|
||||
"PciRoot(0x3)/Pci(0x2,0x0)/Pci(0x0,0x0)/MAC(48DF37959430,0x1)/IPv4(0.0.0.0)/Uri()",
|
||||
"PciRoot(0x3)/Pci(0x2,0x0)/Pci(0x0,0x0)/MAC(48DF37959430,0x1)/IPv4(0.0.0.0)",
|
||||
"PciRoot(0x0)/Pci(0x1C,0x0)/Pci(0x0,0x0)/MAC(8030E0421B1C,0x1)/IPv6(0000:0000:0000:0000:0000:0000:0000:0000)/Uri()",
|
||||
"PciRoot(0x3)/Pci(0x2,0x0)/Pci(0x0,0x0)/MAC(48DF37959430,0x1)/IPv6(0000:0000:0000:0000:0000:0000:0000:0000)/Uri()",
|
||||
"PciRoot(0x3)/Pci(0x2,0x0)/Pci(0x0,0x0)/MAC(48DF37959430,0x1)/IPv6(0000:0000:0000:0000:0000:0000:0000:0000)",
|
||||
"PciRoot(0x0)/Pci(0x1C,0x0)/Pci(0x0,0x0)/MAC(8030E0421B1C,0x1)/IPv6(0000:0000:0000:0000:0000:0000:0000:0000)",
|
||||
"PciRoot(0x9)/Pci(0x0,0x0)/Pci(0x0,0x0)/MAC(B88303866AE8,0x1)/IPv4(0.0.0.0)/Uri()",
|
||||
"PciRoot(0x9)/Pci(0x0,0x0)/Pci(0x0,0x0)/MAC(B88303866AE8,0x1)/IPv4(0.0.0.0)",
|
||||
"PciRoot(0x9)/Pci(0x0,0x0)/Pci(0x0,0x0)/MAC(B88303866AE8,0x1)/IPv6(0000:0000:0000:0000:0000:0000:0000:0000)/Uri()",
|
||||
"PciRoot(0x9)/Pci(0x0,0x0)/Pci(0x0,0x0)/MAC(B88303866AE8,0x1)/IPv6(0000:0000:0000:0000:0000:0000:0000:0000)",
|
||||
"PciRoot(0x0)/Pci(0x14,0x0)/USB(0x13,0x0)",
|
||||
"PciRoot(0x3)/Pci(0x0,0x0)/Pci(0x0,0x0)/Scsi(0x0,0x0)"
|
||||
]
|
||||
},
|
||||
"EthernetInterfaces": {
|
||||
"@odata.id": "/redfish/v1/Systems/1/EthernetInterfaces/"
|
||||
},
|
||||
"HostName": "tpa-hostname",
|
||||
"IndicatorLED": "Off",
|
||||
"Links": {
|
||||
"ManagedBy": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Managers/1/"
|
||||
}
|
||||
],
|
||||
"Chassis": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/1/"
|
||||
}
|
||||
]
|
||||
},
|
||||
"LogServices": {
|
||||
"@odata.id": "/redfish/v1/Systems/1/LogServices/"
|
||||
},
|
||||
"Manufacturer": "HPE",
|
||||
"Memory": {
|
||||
"@odata.id": "/redfish/v1/Systems/1/Memory/"
|
||||
},
|
||||
"MemoryDomains": {
|
||||
"@odata.id": "/redfish/v1/Systems/1/MemoryDomains/"
|
||||
},
|
||||
"MemorySummary": {
|
||||
"Status": {
|
||||
"HealthRollup": "OK"
|
||||
},
|
||||
"TotalSystemMemoryGiB": 384,
|
||||
"TotalSystemPersistentMemoryGiB": 0
|
||||
},
|
||||
"Model": "ProLiant DL360 Gen10",
|
||||
"Name": "Computer System",
|
||||
"NetworkInterfaces": {
|
||||
"@odata.id": "/redfish/v1/Systems/1/NetworkInterfaces/"
|
||||
},
|
||||
"Oem": {
|
||||
"Hpe": {
|
||||
"@odata.context": "/redfish/v1/$metadata#HpeComputerSystemExt.HpeComputerSystemExt",
|
||||
"@odata.type": "#HpeComputerSystemExt.v2_6_1.HpeComputerSystemExt",
|
||||
"Actions": {
|
||||
"#HpeComputerSystemExt.PowerButton": {
|
||||
"PushType@Redfish.AllowableValues": [
|
||||
"Press",
|
||||
"PressAndHold"
|
||||
],
|
||||
"target": "/redfish/v1/Systems/1/Actions/Oem/Hpe/HpeComputerSystemExt.PowerButton/"
|
||||
},
|
||||
"#HpeComputerSystemExt.SecureSystemErase": {
|
||||
"target": "/redfish/v1/Systems/1/Actions/Oem/Hpe/HpeComputerSystemExt.SecureSystemErase/"
|
||||
},
|
||||
"#HpeComputerSystemExt.SystemReset": {
|
||||
"ResetType@Redfish.AllowableValues": [
|
||||
"ColdBoot",
|
||||
"AuxCycle"
|
||||
],
|
||||
"target": "/redfish/v1/Systems/1/Actions/Oem/Hpe/HpeComputerSystemExt.SystemReset/"
|
||||
}
|
||||
},
|
||||
"AggregateHealthStatus": {
|
||||
"AgentlessManagementService": "Unavailable",
|
||||
"BiosOrHardwareHealth": {
|
||||
"Status": {
|
||||
"Health": "OK"
|
||||
}
|
||||
},
|
||||
"FanRedundancy": "Redundant",
|
||||
"Fans": {
|
||||
"Status": {
|
||||
"Health": "OK"
|
||||
}
|
||||
},
|
||||
"Memory": {
|
||||
"Status": {
|
||||
"Health": "OK"
|
||||
}
|
||||
},
|
||||
"Network": {
|
||||
"Status": {
|
||||
"Health": "OK"
|
||||
}
|
||||
},
|
||||
"PowerSupplies": {
|
||||
"PowerSuppliesMismatch": false,
|
||||
"Status": {
|
||||
"Health": "OK"
|
||||
}
|
||||
},
|
||||
"PowerSupplyRedundancy": "Redundant",
|
||||
"Processors": {
|
||||
"Status": {
|
||||
"Health": "OK"
|
||||
}
|
||||
},
|
||||
"SmartStorageBattery": {
|
||||
"Status": {
|
||||
"Health": "OK"
|
||||
}
|
||||
},
|
||||
"Storage": {
|
||||
"Status": {
|
||||
"Health": "OK"
|
||||
}
|
||||
},
|
||||
"Temperatures": {
|
||||
"Status": {
|
||||
"Health": "OK"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Bios": {
|
||||
"Backup": {
|
||||
"Date": "05/21/2019",
|
||||
"Family": "U32",
|
||||
"VersionString": "U32 v2.10 (05/21/2019)"
|
||||
},
|
||||
"Current": {
|
||||
"Date": "05/21/2019",
|
||||
"Family": "U32",
|
||||
"VersionString": "U32 v2.10 (05/21/2019)"
|
||||
},
|
||||
"UefiClass": 2
|
||||
},
|
||||
"CurrentPowerOnTimeSeconds": 29290,
|
||||
"DeviceDiscoveryComplete": {
|
||||
"AMSDeviceDiscovery": "NoAMS",
|
||||
"DeviceDiscovery": "vMainDeviceDiscoveryComplete",
|
||||
"SmartArrayDiscovery": "Complete"
|
||||
},
|
||||
"ElapsedEraseTimeInMinutes": 0,
|
||||
"EndOfPostDelaySeconds": null,
|
||||
"EstimatedEraseTimeInMinutes": 0,
|
||||
"IntelligentProvisioningAlwaysOn": true,
|
||||
"IntelligentProvisioningIndex": 9,
|
||||
"IntelligentProvisioningLocation": "System Board",
|
||||
"IntelligentProvisioningVersion": "3.30.213",
|
||||
"IsColdBooting": false,
|
||||
"Links": {
|
||||
"PCIDevices": {
|
||||
"@odata.id": "/redfish/v1/Systems/1/PCIDevices/"
|
||||
},
|
||||
"PCISlots": {
|
||||
"@odata.id": "/redfish/v1/Systems/1/PCISlots/"
|
||||
},
|
||||
"NetworkAdapters": {
|
||||
"@odata.id": "/redfish/v1/Systems/1/BaseNetworkAdapters/"
|
||||
},
|
||||
"SmartStorage": {
|
||||
"@odata.id": "/redfish/v1/Systems/1/SmartStorage/"
|
||||
},
|
||||
"USBPorts": {
|
||||
"@odata.id": "/redfish/v1/Systems/1/USBPorts/"
|
||||
},
|
||||
"USBDevices": {
|
||||
"@odata.id": "/redfish/v1/Systems/1/USBDevices/"
|
||||
},
|
||||
"EthernetInterfaces": {
|
||||
"@odata.id": "/redfish/v1/Systems/1/EthernetInterfaces/"
|
||||
},
|
||||
"WorkloadPerformanceAdvisor": {
|
||||
"@odata.id": "/redfish/v1/Systems/1/WorkloadPerformanceAdvisor/"
|
||||
}
|
||||
},
|
||||
"PCAPartNumber": "847479-002",
|
||||
"PCASerialNumber": "PWUFL0ARHCF3KR",
|
||||
"PostDiscoveryCompleteTimeStamp": "2020-02-24T02:43:43Z",
|
||||
"PostDiscoveryMode": null,
|
||||
"PostMode": null,
|
||||
"PostState": "FinishedPost",
|
||||
"PowerAllocationLimit": 1600,
|
||||
"PowerAutoOn": "Restore",
|
||||
"PowerOnDelay": "Minimum",
|
||||
"PowerOnMinutes": 95715,
|
||||
"PowerRegulatorMode": "Max",
|
||||
"PowerRegulatorModesSupported": [
|
||||
"OSControl",
|
||||
"Dynamic",
|
||||
"Max",
|
||||
"Min"
|
||||
],
|
||||
"ProcessorJitterControl": {
|
||||
"ConfiguredFrequencyLimitMHz": 0,
|
||||
"Mode": "Disabled"
|
||||
},
|
||||
"SMBIOS": {
|
||||
"extref": "/smbios"
|
||||
},
|
||||
"ServerFQDN": "TPAVCPAR088S4.vici.verizon.com",
|
||||
"SmartStorageConfig": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/systems/1/smartstorageconfig/"
|
||||
}
|
||||
],
|
||||
"SystemROMAndiLOEraseComponentStatus": {
|
||||
"BIOSSettingsEraseStatus": "Idle",
|
||||
"iLOSettingsEraseStatus": "Idle"
|
||||
},
|
||||
"SystemROMAndiLOEraseStatus": "Idle",
|
||||
"SystemUsage": {
|
||||
"AvgCPU0Freq": 0,
|
||||
"AvgCPU1Freq": 6,
|
||||
"CPU0Power": 50,
|
||||
"CPU1Power": 51,
|
||||
"CPUICUtil": 0,
|
||||
"CPUUtil": 0,
|
||||
"IOBusUtil": 0,
|
||||
"JitterCount": 35,
|
||||
"MemoryBusUtil": 0
|
||||
},
|
||||
"UserDataEraseComponentStatus": {},
|
||||
"UserDataEraseStatus": "Idle",
|
||||
"VirtualProfile": "Inactive"
|
||||
}
|
||||
},
|
||||
"PowerState": "On",
|
||||
"ProcessorSummary": {
|
||||
"Count": 2,
|
||||
"Model": "Intel(R) Xeon(R) Gold 6148 CPU @ 2.40GHz",
|
||||
"Status": {
|
||||
"HealthRollup": "OK"
|
||||
}
|
||||
},
|
||||
"Processors": {
|
||||
"@odata.id": "/redfish/v1/Systems/1/Processors/"
|
||||
},
|
||||
"SKU": "867959-B21",
|
||||
"SecureBoot": {
|
||||
"@odata.id": "/redfish/v1/Systems/1/SecureBoot/"
|
||||
},
|
||||
"SerialNumber": "MXQ93003RB",
|
||||
"Status": {
|
||||
"Health": "OK",
|
||||
"State": "Enabled"
|
||||
},
|
||||
"Storage": {
|
||||
"@odata.id": "/redfish/v1/Systems/1/Storage/"
|
||||
},
|
||||
"SystemType": "Physical",
|
||||
"TrustedModules": [
|
||||
{
|
||||
"FirmwareVersion": "73.0",
|
||||
"InterfaceType": "TPM1_2",
|
||||
"Oem": {
|
||||
"Hpe": {
|
||||
"@odata.context": "/redfish/v1/$metadata#HpeTrustedModuleExt.HpeTrustedModuleExt",
|
||||
"@odata.type": "#HpeTrustedModuleExt.v2_0_0.HpeTrustedModuleExt",
|
||||
"VendorName": "STMicro"
|
||||
}
|
||||
},
|
||||
"Status": {
|
||||
"State": "Disabled"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
{
|
116
plugins/inputs/redfish/testdata/hp_thermal.json
vendored
Normal file
116
plugins/inputs/redfish/testdata/hp_thermal.json
vendored
Normal file
|
@ -0,0 +1,116 @@
|
|||
{
|
||||
"@odata.context": "/redfish/v1/$metadata#Thermal.Thermal",
|
||||
"@odata.etag": "W/\"14E8662D\"",
|
||||
"@odata.id": "/redfish/v1/Chassis/1/Thermal",
|
||||
"@odata.type": "#Thermal.v1_1_0.Thermal",
|
||||
"Id": "Thermal",
|
||||
"Fans": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/1/Thermal#Fans/0",
|
||||
"MemberId": "0",
|
||||
"Name": "Fan 1",
|
||||
"Oem": {
|
||||
"Hpe": {
|
||||
"@odata.context": "/redfish/v1/$metadata#HpeServerFan.HpeServerFan",
|
||||
"@odata.type": "#HpeServerFan.v2_0_0.HpeServerFan",
|
||||
"HotPluggable": true,
|
||||
"Location": "System",
|
||||
"Redundant": true
|
||||
}
|
||||
},
|
||||
"Reading": 23,
|
||||
"ReadingUnits": "Percent",
|
||||
"Status": {
|
||||
"Health": "OK",
|
||||
"State": "Enabled"
|
||||
}
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/1/Thermal#Fans/1",
|
||||
"MemberId": "1",
|
||||
"Name": "Fan 2",
|
||||
"Oem": {
|
||||
"Hpe": {
|
||||
"@odata.context": "/redfish/v1/$metadata#HpeServerFan.HpeServerFan",
|
||||
"@odata.type": "#HpeServerFan.v2_0_0.HpeServerFan",
|
||||
"HotPluggable": true,
|
||||
"Location": "System",
|
||||
"Redundant": true
|
||||
}
|
||||
},
|
||||
"Reading": 23,
|
||||
"ReadingUnits": "Percent",
|
||||
"Status": {
|
||||
"Health": "OK",
|
||||
"State": "Enabled"
|
||||
}
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/1/Thermal#Fans/2",
|
||||
"MemberId": "2",
|
||||
"Name": "Fan 3",
|
||||
"Oem": {
|
||||
"Hpe": {
|
||||
"@odata.context": "/redfish/v1/$metadata#HpeServerFan.HpeServerFan",
|
||||
"@odata.type": "#HpeServerFan.v2_0_0.HpeServerFan",
|
||||
"HotPluggable": true,
|
||||
"Location": "System",
|
||||
"Redundant": true
|
||||
}
|
||||
},
|
||||
"Reading": 23,
|
||||
"ReadingUnits": "Percent",
|
||||
"Status": {
|
||||
"Health": "OK",
|
||||
"State": "Enabled"
|
||||
}
|
||||
}
|
||||
],
|
||||
"Name": "Thermal",
|
||||
"Temperatures": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/1/Thermal#Temperatures/0",
|
||||
"MemberId": "0",
|
||||
"Name": "01-Inlet Ambient",
|
||||
"Oem": {
|
||||
"Hpe": {
|
||||
"@odata.context": "/redfish/v1/$metadata#HpeSeaOfSensors.HpeSeaOfSensors",
|
||||
"@odata.type": "#HpeSeaOfSensors.v2_0_0.HpeSeaOfSensors",
|
||||
"LocationXmm": 15,
|
||||
"LocationYmm": 0
|
||||
}
|
||||
},
|
||||
"PhysicalContext": "Intake",
|
||||
"ReadingCelsius": 19,
|
||||
"SensorNumber": 1,
|
||||
"Status": {
|
||||
"Health": "OK",
|
||||
"State": "Enabled"
|
||||
},
|
||||
"UpperThresholdCritical": 42,
|
||||
"UpperThresholdFatal": 47
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/1/Thermal#Temperatures/42",
|
||||
"MemberId": "42",
|
||||
"Name": "44-P/S 2 Zone",
|
||||
"Oem": {
|
||||
"Hpe": {
|
||||
"@odata.context": "/redfish/v1/$metadata#HpeSeaOfSensors.HpeSeaOfSensors",
|
||||
"@odata.type": "#HpeSeaOfSensors.v2_0_0.HpeSeaOfSensors",
|
||||
"LocationXmm": 4,
|
||||
"LocationYmm": 7
|
||||
}
|
||||
},
|
||||
"PhysicalContext": "PowerSupply",
|
||||
"ReadingCelsius": 34,
|
||||
"SensorNumber": 43,
|
||||
"Status": {
|
||||
"Health": "OK",
|
||||
"State": "Enabled"
|
||||
},
|
||||
"UpperThresholdCritical": 75,
|
||||
"UpperThresholdFatal": 80
|
||||
}
|
||||
]
|
||||
}
|
72
plugins/inputs/redfish/testdata/hp_thermal_ilo4.json
vendored
Normal file
72
plugins/inputs/redfish/testdata/hp_thermal_ilo4.json
vendored
Normal file
|
@ -0,0 +1,72 @@
|
|||
{
|
||||
"@odata.context": "/redfish/v1/$metadata#Thermal.Thermal",
|
||||
"@odata.etag": "W/\"14E8662D\"",
|
||||
"@odata.id": "/redfish/v1/Chassis/1/Thermal",
|
||||
"@odata.type": "#Thermal.v1_1_0.Thermal",
|
||||
"Id": "Thermal",
|
||||
"Fans": [
|
||||
{
|
||||
"CurrentReading": 17,
|
||||
"FanName": "Fan 1",
|
||||
"Oem": {
|
||||
"Hp": {
|
||||
"@odata.type": "#HpServerFan.1.0.0.HpServerFan",
|
||||
"Location": "System",
|
||||
"Type": "HpServerFan.1.0.0"
|
||||
}
|
||||
},
|
||||
"Status": {
|
||||
"Health": "OK",
|
||||
"State": "Enabled"
|
||||
},
|
||||
"Units": "Percent"
|
||||
}
|
||||
],
|
||||
"Name": "Thermal",
|
||||
"Temperatures": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/1/Thermal#Temperatures/0",
|
||||
"MemberId": "0",
|
||||
"Name": "01-Inlet Ambient",
|
||||
"Oem": {
|
||||
"Hpe": {
|
||||
"@odata.context": "/redfish/v1/$metadata#HpeSeaOfSensors.HpeSeaOfSensors",
|
||||
"@odata.type": "#HpeSeaOfSensors.v2_0_0.HpeSeaOfSensors",
|
||||
"LocationXmm": 15,
|
||||
"LocationYmm": 0
|
||||
}
|
||||
},
|
||||
"PhysicalContext": "Intake",
|
||||
"ReadingCelsius": 19,
|
||||
"SensorNumber": 1,
|
||||
"Status": {
|
||||
"Health": "OK",
|
||||
"State": "Enabled"
|
||||
},
|
||||
"UpperThresholdCritical": 42,
|
||||
"UpperThresholdFatal": 47
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/1/Thermal#Temperatures/42",
|
||||
"MemberId": "42",
|
||||
"Name": "44-P/S 2 Zone",
|
||||
"Oem": {
|
||||
"Hpe": {
|
||||
"@odata.context": "/redfish/v1/$metadata#HpeSeaOfSensors.HpeSeaOfSensors",
|
||||
"@odata.type": "#HpeSeaOfSensors.v2_0_0.HpeSeaOfSensors",
|
||||
"LocationXmm": 4,
|
||||
"LocationYmm": 7
|
||||
}
|
||||
},
|
||||
"PhysicalContext": "PowerSupply",
|
||||
"ReadingCelsius": 34,
|
||||
"SensorNumber": 43,
|
||||
"Status": {
|
||||
"Health": "OK",
|
||||
"State": "Enabled"
|
||||
},
|
||||
"UpperThresholdCritical": 75,
|
||||
"UpperThresholdFatal": 80
|
||||
}
|
||||
]
|
||||
}
|
117
plugins/inputs/redfish/testdata/hp_thermalinvalid.json
vendored
Normal file
117
plugins/inputs/redfish/testdata/hp_thermalinvalid.json
vendored
Normal file
|
@ -0,0 +1,117 @@
|
|||
{
|
||||
"@odata.context": "/redfish/v1/$metadata#Thermal.Thermal",
|
||||
"@odata.etag": "W/\"14E8662D\"",
|
||||
"@odata.id": "/redfish/v1/Chassis/1/Thermal",
|
||||
"@odata.type": "#Thermal.v1_1_0.Thermal",
|
||||
"Id": "Thermal",
|
||||
"Fans": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/1/Thermal#Fans/0",
|
||||
"MemberId": "0",
|
||||
"Name": "Fan 1",
|
||||
"Oem": {
|
||||
"Hpe": {
|
||||
"@odata.context": "/redfish/v1/$metadata#HpeServerFan.HpeServerFan",
|
||||
"@odata.type": "#HpeServerFan.v2_0_0.HpeServerFan",
|
||||
"HotPluggable": true,
|
||||
"Location": "System",
|
||||
"Redundant": true
|
||||
}
|
||||
},
|
||||
"Reading": 23,
|
||||
"ReadingUnits": "Percent",
|
||||
"Status": {
|
||||
"Health": "OK",
|
||||
"State": "Enabled"
|
||||
}
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/1/Thermal#Fans/1",
|
||||
"MemberId": "1",
|
||||
"Name": "Fan 2",
|
||||
"Oem": {
|
||||
"Hpe": {
|
||||
"@odata.context": "/redfish/v1/$metadata#HpeServerFan.HpeServerFan",
|
||||
"@odata.type": "#HpeServerFan.v2_0_0.HpeServerFan",
|
||||
"HotPluggable": true,
|
||||
"Location": "System",
|
||||
"Redundant": true
|
||||
}
|
||||
},
|
||||
"Reading": 23,
|
||||
"ReadingUnits": "Percent",
|
||||
"Status": {
|
||||
"Health": "OK",
|
||||
"State": "Enabled"
|
||||
}
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/1/Thermal#Fans/2",
|
||||
"MemberId": "2",
|
||||
"Name": "Fan 3",
|
||||
"Oem": {
|
||||
"Hpe": {
|
||||
"@odata.context": "/redfish/v1/$metadata#HpeServerFan.HpeServerFan",
|
||||
"@odata.type": "#HpeServerFan.v2_0_0.HpeServerFan",
|
||||
"HotPluggable": true,
|
||||
"Location": "System",
|
||||
"Redundant": true
|
||||
}
|
||||
},
|
||||
"Reading": 23,
|
||||
"ReadingUnits": "Percent",
|
||||
"Status": {
|
||||
"Health": "OK",
|
||||
"State": "Enabled"
|
||||
}
|
||||
}
|
||||
],
|
||||
"Name": "Thermal",
|
||||
"Temperatures": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/1/Thermal#Temperatures/0",
|
||||
"MemberId": "0",
|
||||
"Name": "01-Inlet Ambient",
|
||||
"Oem": {
|
||||
"Hpe": {
|
||||
"@odata.context": "/redfish/v1/$metadata#HpeSeaOfSensors.HpeSeaOfSensors",
|
||||
"@odata.type": "#HpeSeaOfSensors.v2_0_0.HpeSeaOfSensors",
|
||||
"LocationXmm": 15,
|
||||
"LocationYmm": 0
|
||||
}
|
||||
},
|
||||
"PhysicalContext": "Intake",
|
||||
"ReadingCelsius": 19,
|
||||
"SensorNumber": 1,
|
||||
"Status": {
|
||||
"Health": "OK",
|
||||
"State": "Enabled"
|
||||
},
|
||||
"UpperThresholdCritical": 42,
|
||||
"UpperThresholdFatal": 47
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/1/Thermal#Temperatures/42",
|
||||
"MemberId": "42",
|
||||
"Name": "44-P/S 2 Zone",
|
||||
"Oem": {
|
||||
"Hpe": {
|
||||
"@odata.context": "/redfish/v1/$metadata#HpeSeaOfSensors.HpeSeaOfSensors",
|
||||
"@odata.type": "#HpeSeaOfSensors.v2_0_0.HpeSeaOfSensors",
|
||||
"LocationXmm": 4,
|
||||
"LocationYmm": 7
|
||||
}
|
||||
},
|
||||
"PhysicalContext": "PowerSupply",
|
||||
"ReadingCelsius": 34,
|
||||
"SensorNumber": 43,
|
||||
"Status": {
|
||||
"Health": "OK",
|
||||
"State": "Enabled"
|
||||
},
|
||||
"UpperThresholdCritical": 75,
|
||||
"UpperThresholdFatal": 80
|
||||
}
|
||||
]
|
||||
}
|
||||
{
|
Loading…
Add table
Add a link
Reference in a new issue