Cuurently, I am evaluating the openIPMi library manage Chassis objects. I
was exploring few sample code and came across sample.c. My understanding is
it will print sensor and FRU information. It printed sensor information but
no FRU information. Here is the fru related output.
WARN: (3.2) entity.c(ipmi_entity_fetch_frus_cb): Unable to allocate the
FRU: 26
WARN: (3.1) entity.c(ipmi_entity_fetch_frus_cb): Unable to allocate the
FRU: 26
WARN: (11.3) entity.c(ipmi_entity_fetch_frus_cb): Unable to allocate the
FRU: 26
EINF: (0.20)(s,0) sdr.c(handle_sdr_data): SDR fetch error getting sdr 0x0:
c1
EINF: .1.20.12.0.1.0 fru.c(fru_data_handler): IPMI error getting FRU data:
c3
WARN: (26.1) entity.c(fru_fetched_ent_cb):Error fetching entity 26.1 FRU:
10000c3
EINF: .1.20.2.0.0.0 normal_fru.c(process_fru_info): FRU fields did not
occur in the correct order
EINF: .1.20.2.0.0.0 fru.c(fetch_complete): Unable to decode FRU information
WARN: (10.2) entity.c(fru_fetched_ent_cb):Error fetching entity 10.2 FRU: 26
EINF: .1.20.1.0.0.0 normal_fru.c(process_fru_info): FRU fields did not
occur in the correct order
EINF: .1.20.1.0.0.0 fru.c(fetch_complete): Unable to decode FRU information
WARN: (10.1) entity.c(fru_fetched_ent_cb):Error fetching entity 10.1 FRU: 26
EINF: .1.20.0.0.0.0 normal_fru.c(process_fru_info): FRU fields did not
occur in the correct order
EINF: .1.20.0.0.0.0 fru.c(fetch_complete): Unable to decode FRU information
WARN: (7.1) entity.c(fru_fetched_ent_cb):Error fetching entity 7.1 FRU: 26
EINF: .1.20.4.0.3.0 normal_fru.c(process_fru_info): FRU fields did not
occur in the correct order
EINF: .1.20.4.0.3.0 fru.c(fetch_complete): Unable to decode FRU information
WARN: (11.1) entity.c(fru_fetched_ent_cb):Error fetching entity 11.1 FRU: 26
*When I run ipmitool, I get the following result. Am I missing anything
here? I dont see any fru related information when I run sample.c. *
FRU Device Description : Builtin FRU Device (ID 0)
Board Mfg Date : Wed Sep 26 01:53:00 2012
Board Mfg : DELL
Board Product : PowerEdge R620
Board Serial : CN7475129P0948
Board Part Number : 0KCKR5A02
FRU Device Description : iDRAC7
Board Mfg Date : Wed Sep 26 01:53:00 2012
Board Mfg : DELL
Board Product : PowerEdge R620
Board Serial : CN7475129P0948
Board Part Number : 0KCKR5A02
FRU Device Description : PS1 (ID 1)
Board Mfg Date : Sat Oct 13 14:10:00 2012
Board Mfg : DELL
Board Product : PWR SPLY,750WP,RDNT,DELTA
Board Serial : CN179722AH89R7
Board Part Number : 05NF18A00
FRU Device Description : PS2 (ID 2)
Board Mfg Date : Sat Oct 13 14:10:00 2012
Board Mfg : DELL
Board Product : PWR SPLY,750WP,RDNT,DELTA
Board Serial : CN179722AH89R6
Board Part Number : 05NF18A00
FRU Device Description : BP1 (ID 12)
Device not present (Timeout)
FRU Device Description : BP2 (ID 13)
Board Mfg Date : Wed Aug 29 07:19:00 2012
Board Mfg : DELL
Board Product : DRIVE BACKPLANE
Board Serial : CN7475128R0467
Board Part Number : 0PMHHGA00
FRU Device Description : NDC (ID 4)
Board Mfg Date : Sat Aug 4 05:00:00 2012
Board Mfg : DELL
Board Product : Intel(R) GbE 4P I350-t rNDC
Board Serial : MY1240228800VW
Board Part Number : 0R1XFCA00
FRU Device Description : PERC1 (ID 10)
Device not present (Timeout)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
On the errors about the FRU data being out of order, FRU data
specification says that FRU data fields have to occur in order. It
seems your system isn't compliant, but maybe we should just go on
instead of failing in that scenario: Can you try the attached patch?
I'm not sure about the first three errors. Is this x86? Is it possible
for you to run in the debugger and set a breakpoint on
ipmi_fru_alloc_notrack() and trace what goes wrong?
Thanks,
-corey
On 09/29/2015 04:22 PM, Abhijeet kodgire wrote:
Cuurently, I am evaluating the openIPMi library manage Chassis objects. I
was exploring few sample code and came across sample.c. My
understanding is
it will print sensor and FRU information. It printed sensor
information but
no FRU information. Here is the fru related output.
WARN: (3.2) entity.c(ipmi_entity_fetch_frus_cb): Unable to allocate the
FRU: 26
WARN: (3.1) entity.c(ipmi_entity_fetch_frus_cb): Unable to allocate the
FRU: 26
WARN: (11.3) entity.c(ipmi_entity_fetch_frus_cb): Unable to allocate the
FRU: 26
EINF: (0.20)(s,0) sdr.c(handle_sdr_data): SDR fetch error getting sdr 0x0:
c1
EINF: .1.20.12.0.1.0 fru.c(fru_data_handler): IPMI error getting FRU data:
c3
WARN: (26.1) entity.c(fru_fetched_ent_cb):Error fetching entity 26.1 FRU:
10000c3
EINF: .1.20.2.0.0.0 normal_fru.c(process_fru_info): FRU fields did not
occur in the correct order
EINF: .1.20.2.0.0.0 fru.c(fetch_complete): Unable to decode FRU
information
WARN: (10.2) entity.c(fru_fetched_ent_cb):Error fetching entity 10.2
FRU: 26
EINF: .1.20.1.0.0.0 normal_fru.c(process_fru_info): FRU fields did not
occur in the correct order
EINF: .1.20.1.0.0.0 fru.c(fetch_complete): Unable to decode FRU
information
WARN: (10.1) entity.c(fru_fetched_ent_cb):Error fetching entity 10.1
FRU: 26
EINF: .1.20.0.0.0.0 normal_fru.c(process_fru_info): FRU fields did not
occur in the correct order
EINF: .1.20.0.0.0.0 fru.c(fetch_complete): Unable to decode FRU
information
WARN: (7.1) entity.c(fru_fetched_ent_cb):Error fetching entity 7.1 FRU: 26
EINF: .1.20.4.0.3.0 normal_fru.c(process_fru_info): FRU fields did not
occur in the correct order
EINF: .1.20.4.0.3.0 fru.c(fetch_complete): Unable to decode FRU
information
WARN: (11.1) entity.c(fru_fetched_ent_cb):Error fetching entity 11.1
FRU: 26
*When I run ipmitool, I get the following result. Am I missing anything
here? I dont see any fru related information when I run sample.c. *
FRU Device Description : Builtin FRU Device (ID 0)
Board Mfg Date : Wed Sep 26 01:53:00 2012
Board Mfg : DELL
Board Product : PowerEdge R620
Board Serial : CN7475129P0948
Board Part Number : 0KCKR5A02
FRU Device Description : iDRAC7
Board Mfg Date : Wed Sep 26 01:53:00 2012
Board Mfg : DELL
Board Product : PowerEdge R620
Board Serial : CN7475129P0948
Board Part Number : 0KCKR5A02
FRU Device Description : PS1 (ID 1)
Board Mfg Date : Sat Oct 13 14:10:00 2012
Board Mfg : DELL
Board Product : PWR SPLY,750WP,RDNT,DELTA
Board Serial : CN179722AH89R7
Board Part Number : 05NF18A00
FRU Device Description : PS2 (ID 2)
Board Mfg Date : Sat Oct 13 14:10:00 2012
Board Mfg : DELL
Board Product : PWR SPLY,750WP,RDNT,DELTA
Board Serial : CN179722AH89R6
Board Part Number : 05NF18A00
FRU Device Description : BP1 (ID 12)
Device not present (Timeout)
FRU Device Description : BP2 (ID 13)
Board Mfg Date : Wed Aug 29 07:19:00 2012
Board Mfg : DELL
Board Product : DRIVE BACKPLANE
Board Serial : CN7475128R0467
Board Part Number : 0PMHHGA00
FRU Device Description : NDC (ID 4)
Board Mfg Date : Sat Aug 4 05:00:00 2012
Board Mfg : DELL
Board Product : Intel(R) GbE 4P I350-t rNDC
Board Serial : MY1240228800VW
Board Part Number : 0R1XFCA00
FRU Device Description : PERC1 (ID 10)
Device not present (Timeout)
a.kodgire@slab73:~/openipmi-code/sample$ uname -a
Linux slab73 3.13.0-44-generic #73-Ubuntu SMP Tue Dec 16 00:22:43 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
After applying patch, I got FRU related information for internal,chassis,board,product and multipart.
Thanks for the patch.
I will try to setup gdb as you mentioned.
Abhijeet
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am trying to setup gdb. Basically understanding Makefile/configure as of now so that create binary with debug information. Any help/pointers here is appreciated, will save my time.
Abhijeet
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
These are timeouts. Apparently the SDRs are saying FRU data exists
someplace, but it's not there.
I am trying to setup gdb. Basically understanding Makefile/configure
as of now so that create binary with debug information. Any
help/pointers here is appreciated, will save my time.
It should compile with debug by default, but it also has optimization
enabled which makes debugging hard.
Cuurently, I am evaluating the openIPMi library manage Chassis objects. I
was exploring few sample code and came across sample.c. My understanding is
it will print sensor and FRU information. It printed sensor information but
no FRU information. Here is the fru related output.
WARN: (3.2) entity.c(ipmi_entity_fetch_frus_cb): Unable to allocate the
FRU: 26
WARN: (3.1) entity.c(ipmi_entity_fetch_frus_cb): Unable to allocate the
FRU: 26
WARN: (11.3) entity.c(ipmi_entity_fetch_frus_cb): Unable to allocate the
FRU: 26
EINF: (0.20)(s,0) sdr.c(handle_sdr_data): SDR fetch error getting sdr 0x0:
c1
EINF: .1.20.12.0.1.0 fru.c(fru_data_handler): IPMI error getting FRU data:
c3
WARN: (26.1) entity.c(fru_fetched_ent_cb):Error fetching entity 26.1 FRU:
10000c3
EINF: .1.20.2.0.0.0 normal_fru.c(process_fru_info): FRU fields did not
occur in the correct order
EINF: .1.20.2.0.0.0 fru.c(fetch_complete): Unable to decode FRU information
WARN: (10.2) entity.c(fru_fetched_ent_cb):Error fetching entity 10.2 FRU: 26
EINF: .1.20.1.0.0.0 normal_fru.c(process_fru_info): FRU fields did not
occur in the correct order
EINF: .1.20.1.0.0.0 fru.c(fetch_complete): Unable to decode FRU information
WARN: (10.1) entity.c(fru_fetched_ent_cb):Error fetching entity 10.1 FRU: 26
EINF: .1.20.0.0.0.0 normal_fru.c(process_fru_info): FRU fields did not
occur in the correct order
EINF: .1.20.0.0.0.0 fru.c(fetch_complete): Unable to decode FRU information
WARN: (7.1) entity.c(fru_fetched_ent_cb):Error fetching entity 7.1 FRU: 26
EINF: .1.20.4.0.3.0 normal_fru.c(process_fru_info): FRU fields did not
occur in the correct order
EINF: .1.20.4.0.3.0 fru.c(fetch_complete): Unable to decode FRU information
WARN: (11.1) entity.c(fru_fetched_ent_cb):Error fetching entity 11.1 FRU: 26
*When I run ipmitool, I get the following result. Am I missing anything
here? I dont see any fru related information when I run sample.c. *
FRU Device Description : Builtin FRU Device (ID 0)
Board Mfg Date : Wed Sep 26 01:53:00 2012
Board Mfg : DELL
Board Product : PowerEdge R620
Board Serial : CN7475129P0948
Board Part Number : 0KCKR5A02
FRU Device Description : iDRAC7
Board Mfg Date : Wed Sep 26 01:53:00 2012
Board Mfg : DELL
Board Product : PowerEdge R620
Board Serial : CN7475129P0948
Board Part Number : 0KCKR5A02
FRU Device Description : PS1 (ID 1)
Board Mfg Date : Sat Oct 13 14:10:00 2012
Board Mfg : DELL
Board Product : PWR SPLY,750WP,RDNT,DELTA
Board Serial : CN179722AH89R7
Board Part Number : 05NF18A00
FRU Device Description : PS2 (ID 2)
Board Mfg Date : Sat Oct 13 14:10:00 2012
Board Mfg : DELL
Board Product : PWR SPLY,750WP,RDNT,DELTA
Board Serial : CN179722AH89R6
Board Part Number : 05NF18A00
FRU Device Description : BP1 (ID 12)
Device not present (Timeout)
FRU Device Description : BP2 (ID 13)
Board Mfg Date : Wed Aug 29 07:19:00 2012
Board Mfg : DELL
Board Product : DRIVE BACKPLANE
Board Serial : CN7475128R0467
Board Part Number : 0PMHHGA00
FRU Device Description : NDC (ID 4)
Board Mfg Date : Sat Aug 4 05:00:00 2012
Board Mfg : DELL
Board Product : Intel(R) GbE 4P I350-t rNDC
Board Serial : MY1240228800VW
Board Part Number : 0R1XFCA00
FRU Device Description : PERC1 (ID 10)
Device not present (Timeout)
On the errors about the FRU data being out of order, FRU data
specification says that FRU data fields have to occur in order. It
seems your system isn't compliant, but maybe we should just go on
instead of failing in that scenario: Can you try the attached patch?
I'm not sure about the first three errors. Is this x86? Is it possible
for you to run in the debugger and set a breakpoint on
ipmi_fru_alloc_notrack() and trace what goes wrong?
Thanks,
-corey
On 09/29/2015 04:22 PM, Abhijeet kodgire wrote:
a.kodgire@slab73:~/openipmi-code/sample$ uname -a
Linux slab73 3.13.0-44-generic #73-Ubuntu SMP Tue Dec 16 00:22:43 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
After applying patch, I got FRU related information for internal,chassis,board,product and multipart.
Thanks for the patch.
I will try to setup gdb as you mentioned.
Abhijeet
After applying patch these are the errors I got. Could you please se what these are?
EINF: (0.20)(s,0) sdr.c(handle_sdr_data): SDR fetch error getting sdr 0x0: c1 <<<
EINF: .1.20.12.0.1.0 fru.c(fru_data_handler): IPMI error getting FRU data: c3 <<<
WARN: (26.1) entity.c(fru_fetched_ent_cb):Error fetching entity 26.1 FRU: 10000c3 <<<
I am trying to setup gdb. Basically understanding Makefile/configure as of now so that create binary with debug information. Any help/pointers here is appreciated, will save my time.
Abhijeet
On 09/29/2015 07:45 PM, Abhijeet kodgire wrote:
I'm guessing that the device is advertising that it has a device SDR
repository, but it doesn't actually have one.
These are timeouts. Apparently the SDRs are saying FRU data exists
someplace, but it's not there.
It should compile with debug by default, but it also has optimization
enabled which makes debugging hard.
You can do:
make clean
make CFLAGS=-g"
and you should be good. Then run
libtool execute gdb sample/ipmisample
to start the debugger.
-corey