Hi,

I am printing SystemBlade's rptEntry.ResourceFailed field (shown in italics). 
This is not matching with the value I see in "HP BladeSystem Onboard 
Administrator" for System Blade. I am pasting below the code- updateStatus 
method is calling getRptEntry then I am printing updated ResourceFailed field 
of rptEntry in updateStatus.



Looks like the printed values are junk and does not match to what I see in "HP 
BladeSystem Onboard Administrator". Blade 7 and Blade 9 status when I print 
does not match to what I see in "HP BladeSystem Onboard Administrator".



If I am doing anything wrong, thanks a lot in advance.

SystemBlade Location = 11, rptEntry.ResourceFailed = 1

SystemBlade Location = 13, rptEntry.ResourceFailed = 0

SystemBlade Location = 14, rptEntry.ResourceFailed = 0

SystemBlade Location = 15, rptEntry.ResourceFailed = 0

SystemBlade Location = 16, rptEntry.ResourceFailed = 0

SystemBlade Location = 1,  rptEntry.ResourceFailed = 0

SystemBlade Location = 3,  rptEntry.ResourceFailed = 1

SystemBlade Location = 5,  rptEntry.ResourceFailed = 1

SystemBlade Location = 7,  rptEntry.ResourceFailed = 0

SystemBlade Location = 8,  rptEntry.ResourceFailed = 0

SystemBlade Location = 9,  rptEntry.ResourceFailed = 1



Regards,

Preeti

-----------------------------------------------------

ChErrorT Element::updateStatus()

{

    ChErrorT retErrCode = CH_OK;



    // Element is updating its own status

    SaHpiRptEntryT rptEntry;

    getRptEntry(rptEntry);



    if(m_elementId.Entry[0].EntityType == SAHPI_ENT_SYSTEM_BLADE)

    {

        printf("SystemBlade Location = %u, rptEntry.ResourceFailed = %u\n",

                m_elementId.Entry[0].EntityLocation, rptEntry.ResourceFailed);



    }

}



ChErrorT Element::getRptEntry(SaHpiRptEntryT& out_rRptEntry)

{

    ChErrorT retErrCode = CH_OK;

    SaErrorT rv = SA_OK;



    SaHpiEntryIdT nextRptEntryId = SAHPI_FIRST_ENTRY;



    rv = saHpiRptEntryGet( m_sessionId, m_rptEntryId, &nextRptEntryId, 
&out_rRptEntry );

    if ( rv != SA_OK )

    {

        cout << "saHpiRptEntryGet: " << oh_lookup_error(rv) << endl;

        retErrCode = CH_ERROR;

    }



    return retErrCode;

}
------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
Openhpi-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openhpi-devel

Reply via email to