Loading

All the power of the Dark Overlord!

So I just taught a class for SNIA on Swordfish and how to build your own Swordfish provider in 2 easy lunch and learn sessions. It has kicked off in me an interest in fleshing out my own model of the HPE Nimble Array, and fill in every optional field. I just want to see what it looks like fully populated. My first area of complete is ‘redfish/v1/Chassis/Power’ and I am just amazed at all the things you can model into this.

I was orginally only modeling the detection of each power supply, and their function status, but now I see I can publish so much more information.

I can publish the power inputs that the Power Supplies can support, in this case 100-120v@50-60hz & 200v-240v@50-60hz AC.

It also got me looking into what industry Specs that we support, and what we can advertise in the protocol. I was actually amazed to find that we support the following; NEBs, UL, cUL, CE, FCC Class A, IC Class A, VCCI Class A, RCM, BSMI Class A, KC, CCC, NOM, MoEc, NBTC SDoC, CITC/CoC, EAC, BIS, LOA, RoHS, WEEE, and EIEIO (just kidding on that last one farmer john). You can get the full list on the last page of the quickspecs.
Supprisingly none of these are expressible in the specification, but ASHRAE is. I was able to finally find the ASHRAE specification, and luckily I can derive what Class my equipment is just from the operational temps and voltages. Appears that my hardware is all ASHRAE Classification A2.

What makes me wonder, in the long run, isn’t it better that a protocol allows you to interrogate the hardware and discover everything you want to know, instead of having to dig up spec sheets.

What it should feel like to interrogate a Redfish/Swordfish device

Of course there are those that feel we should only expose what is absolutely needed to the API, since we dont know how it will be used. They have a different view toward this information.

You can find an example from the DMTF (Authors of RedFish) Mockup here;

An example of what this looks like fully populated for a set of power supplies is as follows;

{
    "@Redfish.Copyright":  "Copyright 2014-2016 (DMTF). ",
    "@odata.type":  "#Power.v1_1_0.Power",
    "@odata.id":  "/redfish/v1/Chassis/AC-109032/Power",
    "Id":  "2d2b4bd8361b856bbc00000001000041430001a9e8",
    "Name":  "NimbleShelfPower",
    "PowerControl":  [
                         {
                             "@odata.id":  "/redfish/v1/Chassis/AC-109032/Power#/PowerControl/0",
                             "Status":  {
                                            "State":  "Enabled",
                                            "Health":  "OK"
                                        },
                             "MemberID":  "0"
                         }
                     ],
    "PowerSupplies":  [
                          {
                              "Manufacturer":  "HPE-Nimble",
                              "@Redfish.Copyright":  "Copyright 2014-2016 (DMTF).",
                              "Name":  "power-supply1",
                              "Description":  "power-supply1 Located in left rear of Chassis",
                              "Status":  {
                                             "State":  "Enabled",
                                             "Health":  "OK"
                                         },
                              "MemberID":  "1",
                              "InputRanges":  [
                                                  {
                                                      "OutputWattage":  900,
                                                      "MinimumVoltage":  100,
                                                      "MaximumVoltage":  120,
                                                      "Maximumfrequency":  60,
                                                      "InputType":  "AC",
                                                      "MinimumFrequency":  50
                                                  },
                                                  {
                                                      "OutputWattage":  900,
                                                      "MinimumVoltage":  200,
                                                      "MaximumVoltage":  240,
                                                      "Maximumfrequency":  60,
                                                      "InputType":  "AC",
                                                      "MinimumFrequency":  50
                                                  }
                                              ],
                              "@odata.id":  "/redfish/v1/Chassis/AC-109032/Power#/PowerSupplies/1"
                          },
                          {
                              "Manufacturer":  "HPE-Nimble",
                              "@Redfish.Copyright":  "Copyright 2014-2016 (DMTF).",
                              "Name":  "power-supply2",
                              "Description":  "power-supply2 Located in right rear of Chassis",
                              "Status":  {
                                             "State":  "Enabled",
                                             "Health":  "OK"
                                         },
                              "MemberID":  "2",
                              "InputRanges":  [
                                                  {
                                                      "OutputWattage":  900,
                                                      "MinimumVoltage":  100,
                                                      "MaximumVoltage":  120,
                                                      "Maximumfrequency":  60,
                                                      "InputType":  "AC",
                                                      "MinimumFrequency":  50
                                                  },
                                                  {
                                                      "OutputWattage":  900,
                                                      "MinimumVoltage":  200,
                                                      "MaximumVoltage":  240,
                                                      "Maximumfrequency":  60,
                                                      "InputType":  "AC",
                                                      "MinimumFrequency":  50
                                                  }
                                              ],
                              "@odata.id":  "/redfish/v1/Chassis/AC-109032/Power#/PowerSupplies/2"
                          }
                      ],
    "RelatedItem":  [
                        {
                            "@odata.id":  "/redfish/v1/Chassis/AC-109032"
                        }
                    ]
}