stmcginnis / gofish

Gofish is a Golang client library for DMTF Redfish and SNIA Swordfish interaction.
BSD 3-Clause "New" or "Revised" License
224 stars 117 forks source link

OEM Specific Sensor data not available #135

Open sanverm2 opened 3 years ago

sanverm2 commented 3 years ago

Hi Sean,

I am curious if you plan to put OEM specific sensor data .

"/redfish/v1/Chassis/1/Oem/Lenovo/Sensors"

Do you plan to implement? Please let us know we can try that out and contribute back.

stmcginnis commented 3 years ago

We really do need to solve this soon. The OEM data is a bit of a pain since it's so free form. Handling that in a strongly typed language is a challenge. I've tried a couple different approaches to handling it and they all seemed a little too hacky to me.

I have some rough ideas of how to treat that. I'll try to spend a little more time on it soon and get something implemented. Ideally vendors just wouldn't use OEM specific data in the API, but that's just wishful thinking. ;)

sanverm2 commented 3 years ago

Yes. I was thinking the same. But we stumbled upon a case wherein Lenovo uses this OEM specific data for reading their chassis LEDs and that's where we need to deviate from using gofish and use their own APIs. But that is not good. We plan to use gofish for all operations.

stmcginnis commented 3 years ago

Hey @sanverm2 - thinking about this a little today. If it's possible for you, it would be great if you could comment here with the output from curl of your Lenovo OEM data. Then I can use that in testing to make sure whatever we end up with works right with their specific OEM data.

If not possible, no worries. Just thought I'd ask so there's real world data to work against.

sanverm2 commented 3 years ago

Sure, sending you complete details shortly. I can also test your code against Lenovo.

sanverm2 commented 3 years ago

@stmcginnis here it it, right from chassis.


o/p: 
{
  "SerialNumber": "J10XXXXX",
  "@odata.id": "/redfish/v1/Chassis/1",
  "IndicatorLED": "Off",
  "PowerState": "On",
  "SKU": "XXXXXXX",
  "EnvironmentalClass": "A4",
  "UUID": "29F9271E-629B-11EA-ACE6-3A68DD26278F",
  "ChassisType": "RackMount",
  "Location": {
    "PostalAddress": {
      "Location": "",
      "Room": "",
      "Building": "",
      "Name": ""
    },
    "Contacts": [{
      "ContactName": ""
    }],
    "PartLocation": {},
    "Placement": {
      "RackOffset": 0,
      "Rack": "",
      "RackOffsetUnits": "EIA_310"
    }
  },
  "PartNumber": "XXXXXXXX",
  "Id": "1",
  "Description": "This resource is used to represent a chassis or other physical enclosure for a Redfish implementation.",
  "Thermal": {
    "@odata.id": "/redfish/v1/Chassis/1/Thermal"
  },
  "Links": {
    "Drives": [],
    "CooledBy": [{
      "@odata.id": "/redfish/v1/Chassis/1/Thermal#/Fans/0"
    }, {
      "@odata.id": "/redfish/v1/Chassis/1/Thermal#/Fans/1"
    }, {
      "@odata.id": "/redfish/v1/Chassis/1/Thermal#/Fans/2"
    }, {
      "@odata.id": "/redfish/v1/Chassis/1/Thermal#/Fans/3"
    }, {
      "@odata.id": "/redfish/v1/Chassis/1/Thermal#/Fans/4"
    }, {
      "@odata.id": "/redfish/v1/Chassis/1/Thermal#/Fans/5"
    }, {
      "@odata.id": "/redfish/v1/Chassis/1/Thermal#/Fans/6"
    }, {
      "@odata.id": "/redfish/v1/Chassis/1/Thermal#/Fans/7"
    }, {
      "@odata.id": "/redfish/v1/Chassis/1/Thermal#/Fans/8"
    }, {
      "@odata.id": "/redfish/v1/Chassis/1/Thermal#/Fans/9"
    }, {
      "@odata.id": "/redfish/v1/Chassis/1/Thermal#/Fans/10"
    }, {
      "@odata.id": "/redfish/v1/Chassis/1/Thermal#/Fans/11"
    }, {
      "@odata.id": "/redfish/v1/Chassis/1/Thermal#/Fans/12"
    }, {
      "@odata.id": "/redfish/v1/Chassis/1/Thermal#/Fans/13"
    }],
    "ComputerSystems": [{
      "@odata.id": "/redfish/v1/Systems/1"
    }],
    "PCIeDevices": [{
      "@odata.id": "/redfish/v1/Chassis/1/PCIeDevices/ob_1"
    }, {
      "@odata.id": "/redfish/v1/Chassis/1/PCIeDevices/ob_3"
    }, {
      "@odata.id": "/redfish/v1/Chassis/1/PCIeDevices/ob_4"
    }, {
      "@odata.id": "/redfish/v1/Chassis/1/PCIeDevices/ob_5"
    }, {
      "@odata.id": "/redfish/v1/Chassis/1/PCIeDevices/slot_1"
    }, {
      "@odata.id": "/redfish/v1/Chassis/1/PCIeDevices/slot_2"
    }, {
      "@odata.id": "/redfish/v1/Chassis/1/PCIeDevices/slot_3"
    }],
    "PoweredBy": [{
      "@odata.id": "/redfish/v1/Chassis/1/Power#/PowerSupplies/0"
    }, {
      "@odata.id": "/redfish/v1/Chassis/1/Power#/PowerSupplies/1"
    }],
    "Storage": [],
    "ManagedBy": [{
      "@odata.id": "/redfish/v1/Managers/1"
    }],
    "Processors": [{
      "@odata.id": "/redfish/v1/Systems/1/Processors/1"
    }, {
      "@odata.id": "/redfish/v1/Systems/1/Processors/2"
    }],
    "ManagersInChassis": [{
      "@odata.id": "/redfish/v1/Managers/1"
    }]
  },
  "LogServices": {
    "@odata.id": "/redfish/v1/Systems/1/LogServices"
  },
  "PCIeDevices": {
    "@odata.id": "/redfish/v1/Chassis/1/PCIeDevices"
  },
  "Status": {
    "State": "Enabled",
    "Health": "OK"
  },
  "PCIeSlots": {
    "@odata.id": "/redfish/v1/Chassis/1/PCIeSlots"
  },
  "Name": "Chassis",
  "HeightMm": 44.45,
  "Power": {
    "@odata.id": "/redfish/v1/Chassis/1/Power"
  },
  "Oem": {
    "Lenovo": {
      "@odata.type": "#LenovoChassis.v1_0_0.LenovoChassisProperties",
      "FruPartNumber": "01PE846",
      "Sensors": {
        "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors"
      },
      "ProductName": "ThinkSystem SR630",
      "LEDs": {
        "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/LEDs"
      },
      "Slots": {
        "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Slots"
      }
    }
  },
  "NetworkAdapters": {
    "@odata.id": "/redfish/v1/Chassis/1/NetworkAdapters"
  },
  "@odata.type": "#Chassis.v1_10_0.Chassis",
  "Manufacturer": "Lenovo",
  "@odata.etag": "\"1463a3d74437531d5d5acf\"",
  "Model": "7X02CTO1WW",
  "AssetTag": ""
}

EntryPoint_ OemLenovoSensors': curl -X GET -k -H 'Authorization: Basic XXX' -i 'https://XXXX/redfish/v1/Chassis/1/Oem/Lenovo/Sensors'

o/p: 
{
  "Members": [{
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/10L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/11L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/122L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/123L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/124L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/128L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/12L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/131L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/132L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/133L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/134L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/135L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/136L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/139L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/13L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/140L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/141L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/142L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/143L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/144L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/146L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/147L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/148L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/149L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/14L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/150L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/151L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/152L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/158L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/159L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/15L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/160L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/161L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/162L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/163L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/164L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/165L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/166L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/167L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/168L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/169L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/16L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/170L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/171L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/172L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/173L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/174L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/175L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/176L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/177L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/178L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/179L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/17L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/180L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/181L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/182L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/183L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/184L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/186L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/187L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/18L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/192L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/193L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/194L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/195L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/196L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/197L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/198L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/199L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/19L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/1L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/200L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/201L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/202L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/203L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/204L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/205L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/208L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/209L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/20L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/210L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/211L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/212L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/213L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/214L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/215L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/216L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/217L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/218L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/219L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/21L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/220L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/221L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/222L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/225L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/226L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/227L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/22L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/230L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/231L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/233L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/237L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/238L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/23L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/240L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/241L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/242L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/243L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/244L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/248L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/249L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/24L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/250L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/252L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/253L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/254L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/25L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/26L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/27L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/28L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/29L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/2L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/30L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/31L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/32L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/33L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/35L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/36L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/38L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/39L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/3L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/40L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/41L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/42L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/43L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/47L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/48L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/49L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/4L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/50L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/51L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/52L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/53L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/54L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/55L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/56L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/57L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/58L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/59L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/5L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/60L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/61L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/62L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/63L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/64L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/65L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/66L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/67L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/68L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/69L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/6L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/70L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/71L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/72L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/73L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/74L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/75L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/7L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/80L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/81L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/83L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/84L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/85L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/86L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/8L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/90L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/91L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/92L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/93L0"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/9L0"
  }],
  "@odata.type": "#LenovoSensorCollection.LenovoSensorCollection",
  "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors",
  "Name": "LenovoSensorCollection",
  "@odata.etag": "\"49a4387a7629531d7f8dd7\"",
  "Members@odata.count": 180,
  "Description": "A Collection of Sensor resource instances."
}

EntryPoint_ OemLenovoSensorsSamples: curl -X GET -k -H 'Authorization: Basic XXXX' -i 'https://XXXX /redfish/v1/Chassis/1/Oem/Lenovo/Sensors/122L0' 

O/P: {
  "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors/122L0",
  "EntityInstance": 26,
  "Assertion": "Unknown",
  "Description": "This resource is used to represent a sensor for a Redfish implementation.",
  "RecordType": 2,
  "Name": "M2 Drive 0",
  "SensorNumber": 122,
  "State": 0,
  "SensorType": "Drive Slot/Bay",
  "SensorTypeNumber": 13,
  "Id": "122L0",
  "OwnerLUN": 0,
  "BaseUnit": "0",
  "@odata.type": "#LenovoSensor.v1_0_0.LenovoSensor",
  "EntityID": 4,
  "Reading": 0,
  "@odata.etag": "\"381c94f67bc72a26d65\"",
  "ReadingType": 111,
  "OwnerID": 32
}

EntryPoint_ OemLenovoLEDs: curl -X GET -k -H 'Authorization: Basic XXXX' -i 'https://XXXX/redfish/v1/Chassis/1/Oem/Lenovo/LEDs'

O/P: {
  "Members": [{
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/LEDs/1"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/LEDs/2"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/LEDs/3"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/LEDs/4"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/LEDs/5"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/LEDs/6"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/LEDs/7"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/LEDs/8"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/LEDs/9"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/LEDs/10"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/LEDs/11"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/LEDs/12"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/LEDs/13"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/LEDs/14"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/LEDs/15"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/LEDs/16"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/LEDs/17"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/LEDs/18"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/LEDs/19"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/LEDs/20"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/LEDs/21"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/LEDs/22"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/LEDs/23"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/LEDs/24"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/LEDs/25"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/LEDs/26"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/LEDs/27"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/LEDs/28"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/LEDs/29"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/LEDs/30"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/LEDs/31"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/LEDs/32"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/LEDs/33"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/LEDs/34"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/LEDs/35"
  }],
  "@odata.type": "#LenovoLEDCollection.LenovoLEDCollection",
  "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/LEDs",
  "Name": "LenovoLEDCollection",
  "@odata.etag": "\"e7074366bb2b31d8c988d\"",
  "Members@odata.count": 35,
  "Description": "A collection of LED resource instances."
}

EntryPoint_ OemLenovoLEDsSample: curl -X GET -k -H 'Authorization: Basic XXXX' -i 'https://XXXX/redfish/v1/Chassis/1/Oem/Lenovo/LEDs/4'

O/P: 
{
  "State": "Off",
  "Id": "4",
  "DutyCycle": 0,
  "PeriodInMillSec": 0,
  "DeviceEntity": "memory device",
  "Name": "DIMM4",
  "Color": "Yellow",
  "EntityInstance": 4,
  "@odata.type": "#LenovoLED.v1_0_0.LenovoLED",
  "EntityID": 32,
  "Location": "Planar",
  "@odata.etag": "\"2e61dce34b1e27e6e1c\"",
  "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/LEDs/4",
  "Description": "This resource is used to represent a LED sensor for a Redfish implementation."
}

EntryPoint_OemLenovoSlots: curl -X GET -k -H 'Authorization: Basic XXX' -i 'https://XXXX/redfish/v1/Chassis/1/Oem/Lenovo/Slots'

O/P : {
  "Members": [{
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Slots/1"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Slots/2"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Slots/3"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Slots/4"
  }, {
    "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Slots/5"
  }],
  "@odata.type": "#LenovoSlotCollection.LenovoSlotCollection",
  "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Slots",
  "Name": "Lenovo Slot Collection",
  "@odata.etag": "\"3bbd57bf2d4a24e8db9\"",
  "Members@odata.count": 5,
  "Description": "A collection of Lenovo Slot resource instances."
}

EntryPoint_OemLenovoSlotsSample: curl -X GET -k -H 'Authorization: Basic XXXX' -i 'https://XXXX/redfish/v1/Chassis/1/Oem/Lenovo/Slots/5'

O/P: 
{
  "SupportsHotPlug": false,
  "@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Slots/5",
  "Name": "LenovoSlot",
  "ConnectorLayout": "M.2 Socket 3 (Mechanical Key M)",
  "Number": "Slot 5 M.2",
  "@odata.type": "#LenovoSlot.v1_0_0.LenovoSlot",
  "Id": "5",
  "@odata.etag": "\"313806a13c082421ec9\"",
  "MaxDataWidth": "2x or x2",
  "Description": "This resource is used to represent slot information for a Redfish implementation."
}