DMTF / Redfishtool

A Python34 program that implements a command line tool for accessing the Redfish API.
Other
224 stars 68 forks source link

Enhance get power/thermal data function. #68

Closed hustlzp1981 closed 5 years ago

hustlzp1981 commented 5 years ago

For different type of servers, we may get more than 1 chassis items. Eg. In wolfpass server, there are many subitems in Chassis item. If we use Chassis Power command, it will report error and request client to specify one subitem by -I, and retry one by one to find the item which includes power data.

In this patch, it utilize existed prop paramete and can report the subitem which includes power during it go through all chassis subitems, so that client can get Power data by one Chassis Power command directly.

Signed-off-by: zhipengl zhipengs.liu@intel.com

hustlzp1981 commented 5 years ago

I have done below test and pass. Chassis Power Chassis -I Baseboard Power Chassis Thermal Chassis -I Baseboard Thermal

mraineri commented 5 years ago

Approved 8/8