DMTF / Redfishtool

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

Query regarding fetching the data for Chassis member #89

Closed khaderbmc closed 4 years ago

khaderbmc commented 4 years ago

Hi Team,

I am a newbie to Redfish. I have created a RedfishMockServer using and RedfishMockupCreator and the server is up.

I wanted to use redfishtool to fetch the data "http://10.XXX.XXX.XXX:8000/redfish/v1/Chassis/1U/Power/" ?

Can someone give me some points to fetch the "/redfish/v1/Chassis/1U/power " data please ?

I am able to fetch the chassis data successfully using the following command:

python3 redfishtool.py -r 10.XXX.XXX.XXX:8000 -u root -p 0penBmc1 Chassis

Also i tried to fetch the "1U" data using the following command but no luck: python3 redfishtool.py -r 10.138.129.156:8000 -u root -p 0penBmc1 Chassis -I "1U"

Can someone give me pointers to fetch the "/redfish/v1/Chassis/1U/Power/" data.

Thanks & Regards, Khader B Shaik

billdodd commented 4 years ago

To see the Power resource, add the Power operation to the command. For example:

python3 redfishtool.py -r 10.XXX.XXX.XXX:8000 -u USER -p PASSWORD Chassis -I 1U Power

The README has an extensive list of example commands like this. See:

https://github.com/DMTF/Redfishtool#chassis-subcommand-examples

khaderbmc commented 4 years ago

Thanks alot for the reference and it works .