Preeti,
saHpiEventGet() is not a function for getting events from event log.
It fetches an event from HPI session event queue.
There can be no missed event (unless session event queue overflow)
Use saHpiEventLogEntryGet() if you want work with Domain/Resource Event
Log.
However it is not a convenient way.
Anton Pak
On Thu, 24 Feb 2011 02:09:18 +0300, Preeti Sharma
<[email protected]> wrote:
> Hi,
>
> In my client thread I am doing following (pseudo code for this is given
> below) :
>
>
>
> Startup()
>
> {
>
> Bool instantiateObj=TRUE;
>
>
>
> While (1)
>
> {
>
> openSession(domainId, &sessionid)
>
> discoverSession(sessionId)
>
> subscribeForEvents()
>
> myObjPtr=findMyObjects(id, instantiateObj) -----> instantiates
> myObject if not existing.
>
> Constructor maps
> id to entity path, entity path
>
> is used to get RPT
> resource Id and value is
>
> saved in object.
>
>
>
> myObjPtr->getEventLog() -------> uses RPT resource Id, sets RDR type
> to sensor and calls
>
> saHpiEventGet
>
>
>
>
>
> processMainThreadMsgs()
>
>
>
> sleep n
>
>
>
> }
>
> }
>
>
>
> My concern is here that I am going to lose Events logs. What should I do
> so that I can save all the event logs in myObject for a resource e.g.
> {SYSTEM_CHASSIS 9, FAN 1}. I want to do this for more than one resource.
>
>
>
> Regards,
>
> Preeti
------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev
_______________________________________________
Openhpi-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openhpi-devel