Hello Kenneth,
Could you add the following lines in ipmidirect plug-in stanza
in openhpi.conf?
handler libipmidirect {
...
logflags = "file" # "" means logging off; also use "file stdout"
logfile = "ipmidirect" # log file name prefix; ${logfile}.log
logfile_max = "10000" # maximum log file size in kilobytes
}
Then you will have log file ipmidirect.log from plug-in code.
Anton Pak
> Hello Kenneth,
>
> Both IPMI plug-ins were written and tested with specific hardware.
> Though we would like them to be as general as possible, they probably
> won't work correctly on every IPMI implementation. In the past, some
> modifications have been required to make these plug-ins work for certain
> hardware.
>
> We have never tested the IPMI plug-ins on a DL380, or investigated the
> changes that would be required because there is an OpenHPI plug-in
> developed specifically for these servers (ilo2_ribcl). I will send you
> some details.
>
> If you (or anyone else reading this) would like to debug and enhance
> either of the IPMI plug-ins for greater hardware support, the OpenHPI
> project would gladly welcome any patches.
>
> Also, there are some environment variables you can set to get more
> information out of the daemon. When I am debugging, I use:
>
> export OPENHPI_ERROR="YES"
> export OPENHPI_DEBUG="YES"
> export OPENHPI_DEBUG_TRACE="YES"
> /usr/local/sbin/openhpid -c openhpi.conf -f openhpid.pid -v -n 2>&1 |
> tee daemon.log
>
>
> Best Regards,
> Ric White
>
> On Wed, 2009-11-11 at 19:39 +0000, Kenneth Johansson wrote:
>> I have a small problem getting openHPI to work as I want on a hp dl380g6
>> server.
>>
>> I'm using the linux kernel ipmi /dev/ipmi0 and ipmitool sdr show that
>> several power/temp/fan sensors exist.
>>
>> but when I'm running openHPI 2.14 and using the pre existing config file
>> with
>>
>> handler libipmi {
>> entity_root = "{SYSTEM_CHASSIS,2}"
>> name = "smi"
>> addr = 0
>> }
>> or
>> handler libipmidirect {
>> entity_root = "{SYSTEM_CHASSIS,6}"
>> name = "smi"
>> addr = 0
>> }
>>
>> I do not get what I was expecting. the first one only show the power
>> sensor. and the other shows nothing.
>>
>> I have tried them using strace and they are talking to the
>> correct /dev/ipmi0 device.
>>
>> First what should show up given what ipmitools sdr shows ?? I was
>> expecting to see basically the same information.
>>
>> having never before used ipmi or openhpi I'm not sure what to expect.
>>
>> I also have some output from openhpid with debug printout but not having
>> a working system to compare against they are of limited use. If I would
>> guess it looks like some ipmi command is not returning and there is some
>> timeout. but is the timeout in the plugin or the main program ?? hard to
>> understand.
>>
>>
>> -----------------------------------------------------------------------------------
>> ipmitool sdr
>> UID Light | 0 unspecified | ok
>> Sys. Health LED | 0 unspecified | ok
>> Power Supply 1 | 35 Watts | nc
>> Power Supply 2 | 45 Watts | nc
>> Power Supplies | 0 unspecified | nc
>> Fan 1 | 13.72 unspecifi | nc
>> Fan 2 | 13.72 unspecifi | nc
>> Fan 3 | 13.72 unspecifi | nc
>> Fan 4 | 16.07 unspecifi | nc
>> Fan 5 | disabled | ns
>> Fan 6 | disabled | ns
>> Fans | 0 unspecified | nc
>> Temp 1 | 20 degrees C | ok
>> Temp 2 | 40 degrees C | ok
>> Temp 3 | disabled | ns
>> Temp 4 | 35 degrees C | ok
>> Temp 5 | 36 degrees C | ok
>> Temp 6 | disabled | ns
>> Temp 7 | disabled | ns
>> Temp 8 | 44 degrees C | ok
>> Temp 9 | 36 degrees C | ok
>> Temp 10 | 45 degrees C | ok
>> Temp 11 | 37 degrees C | ok
>> Temp 12 | 46 degrees C | ok
>> Temp 13 | disabled | ns
>> Temp 14 | disabled | ns
>> Temp 15 | disabled | ns
>> Temp 16 | disabled | ns
>> Temp 17 | disabled | ns
>> Temp 18 | disabled | ns
>> Temp 19 | 26 degrees C | ok
>> Temp 20 | 31 degrees C | ok
>> Temp 21 | 34 degrees C | ok
>> Temp 22 | 31 degrees C | ok
>> Temp 23 | 44 degrees C | ok
>> Temp 24 | 37 degrees C | ok
>> Temp 25 | 32 degrees C | ok
>> Temp 26 | 31 degrees C | ok
>> Temp 27 | disabled | ns
>> Temp 28 | disabled | ns
>> Temp 29 | 26 degrees C | ok
>> Temp 30 | 75 degrees C | ok
>> Memory | 0 error | ok
>> Power Meter | 0 Watts | cr
>> ------------------------------------------------------
>>
>>
>> r...@localhost:/root> hpitop
>> hpitop (rev 6571) - This program came with OpenHPI 2.14.0
>> SAF HPI Version B.03.01
>>
>>
>>
>> {SYSTEM_CHASSIS,2}
>> |
>> +--- {SYSTEM_CHASSIS,2}{POWER_SUPPLY,3}{POWER_SUPPLY,2}
>> |
>> +--- {SYSTEM_CHASSIS,2}{POWER_SUPPLY,3}{POWER_SUPPLY,1}
>> |
>> +--- {SYSTEM_CHASSIS,2}{POWER_SUPPLY,3}
>> | |__ Sensor Num: 5, Type: POWER_SUPPLY, Category: REDUNDANCY,
>> Tag: Power Supplies
>> |
>> +--- {SYSTEM_CHASSIS,2}{SYSTEM_BOARD,10}
>> | |__ Sensor Num: 44, Type: CURRENT, Category: ENABLE, Tag: Power
>> Meter
>> |
>> +--- {SYSTEM_CHASSIS,2}{SYSTEM_BOARD,9}
>> | |__ Sensor Num: 43, Type: MEMORY, Category: GENERIC, Tag:
>> Memory
>> |
>> +--- {SYSTEM_CHASSIS,2}{SYSTEM_CHASSIS,2}
>> | |__ Sensor Num: 2, Type: OEM_SENSOR, Category: (null), Tag:
>> Sys. Health LED
>> |
>> +--- {SYSTEM_CHASSIS,2}{SYSTEM_CHASSIS,1}
>> | |__ Sensor Num: 1, Type: OEM_SENSOR, Category: (null), Tag: UID
>> Light
>> |
>> End of {SYSTEM_CHASSIS,2}
>> -----------------------------------------------------------
>>
>> hpitop
>> hpitop (rev 6571) - This program came with OpenHPI 2.14.0
>> SAF HPI Version B.03.01
>>
>> RptEntryGet returns NOT_PRESENT
>> |
>> +---
>> |
>> End of
>> --------------------------------------------------------------
>> /usr/sbin/openhpid -n -c /etc/openhpi/openhpi.conf
>> threaded.c:153:oh_threaded_init: Attempting to init event
>> threaded.c:158:oh_threaded_init: Already supporting threads
>> event.c:47:oh_event_init: Setting up event processing queue
>> event.c:50:oh_event_init: Set up processing queue
>> config.c:540:oh_load_config: Done processing conf file.
>> Number of parse errors:0
>> init.c:76:oh_init: Initialized UID.
>> init.c:80:oh_init: Initialized handler table
>> init.c:84:oh_init: Initialized domain table
>> init.c:88:oh_init: Initialized session table
>> ipmi.cpp:293:IpmiOpen: IpmiOpen
>> config.c:573:oh_process_config: Loaded handler for plugin libipmidirect
>> threaded.c:169:oh_threaded_start: Starting discovery thread
>> threaded.c:176:oh_threaded_start: Starting event threads
>> init.c:128:oh_init: OpenHPI has been initialized
>> threaded.c:73:oh_discovery_thread_loop: Doing threaded discovery on all
>> handlers
>> threaded.c:103:oh_evtpop_thread_loop:
>> ipmi.cpp:2265:IfDiscoverResources: Thread processing events
>> ipmidirect discover_resources
>> threaded.c:84:oh_discovery_thread_loop: Going to sleep
>> threaded.c:129:oh_evtget_thread_loop: Thread Harvesting events
>> event.c:128:oh_harvest_events: harvesting for 1
>> event.c:113:harvest_events_for_handler: Handler is out of Events
>> threaded.c:137:oh_evtget_thread_loop: Going to sleep
>> openhpid.cpp:287:main: /usr/sbin/openhpid started.
>>
>> openhpid.cpp:288:main: OPENHPI_CONF = /etc/openhpi/openhpi.conf
>>
>> openhpid.cpp:289:main: OPENHPI_DAEMON_PORT = 4743
>>
>>
>> threaded.c:141:oh_evtget_thread_loop: TIMEDOUT: Woke up, am looping
>> again
>> threaded.c:129:oh_evtget_thread_loop: Thread Harvesting events
>> event.c:128:oh_harvest_events: harvesting for 1
>> event.c:113:harvest_events_for_handler: Handler is out of Events
>> threaded.c:137:oh_evtget_thread_loop: Going to sleep
>> threaded.c:141:oh_evtget_thread_loop: TIMEDOUT: Woke up, am looping
>> again
>> threaded.c:129:oh_evtget_thread_loop: Thread Harvesting events
>> event.c:128:oh_harvest_events: harvesting for 1
>> event.c:113:harvest_events_for_handler: Handler is out of Events
>> threaded.c:137:oh_evtget_thread_loop: Going to sleep
>> threaded.c:141:oh_evtget_thread_loop: TIMEDOUT: Woke up, am looping
>> again
>> threaded.c:129:oh_evtget_thread_loop: Thread Harvesting events
>> event.c:128:oh_harvest_events: harvesting for 1
>> event.c:113:harvest_events_for_handler: Handler is out of Events
>> threaded.c:137:oh_evtget_thread_loop: Going to sleep
>> -----------------------------------------------------------
>> /usr/sbin/openhpid -n -c /etc/openhpi/openhpi.conf
>> threaded.c:153:oh_threaded_init: Attempting to init event
>> threaded.c:158:oh_threaded_init: Already supporting threads
>> event.c:47:oh_event_init: Setting up event processing queue
>> event.c:50:oh_event_init: Set up processing queue
>> config.c:540:oh_load_config: Done processing conf file.
>> Number of parse errors:0
>> init.c:76:oh_init: Initialized UID.
>> init.c:80:oh_init: Initialized handler table
>> init.c:84:oh_init: Initialized domain table
>> init.c:88:oh_init: Initialized session table
>> config.c:573:oh_process_config: Loaded handler for plugin libipmi
>> threaded.c:169:oh_threaded_start: Starting discovery thread
>> threaded.c:176:oh_threaded_start: Starting event threads
>> threaded.c:73:oh_discovery_thread_loop: Doing threaded discovery on all
>> handlers
>> ipmi.c:599:ipmi_discover_resources: ipmi discover_resources
>> init.c:128:oh_init: OpenHPI has been initialized
>> threaded.c:103:oh_evtpop_thread_loop: Thread processing events
>> event.c:392:oh_process_events: Event Type = HOTSWAP
>> event.c:326:process_event: Processing event for domain 0
>> event.c:212:process_hpi_event: Added event to EL
>> event.c:222:process_hpi_event: Got session list for domain 0
>> event.c:229:process_hpi_event: No sessions open for event's domain 0.
>> Dropping hpi_event
>> event.c:392:oh_process_events: Event Type = HOTSWAP
>> event.c:326:process_event: Processing event for domain 0
>> event.c:212:process_hpi_event: Added event to EL
>> event.c:222:process_hpi_event: Got session list for domain 0
>> event.c:229:process_hpi_event: No sessions open for event's domain 0.
>> Dropping hpi_event
>> threaded.c:129:oh_evtget_thread_loop: Thread Harvesting events
>> event.c:128:oh_harvest_events: harvesting for 1
>> openhpid.cpp:287:main: /usr/sbin/openhpid started.
>>
>> openhpid.cpp:288:main: OPENHPI_CONF = /etc/openhpi/openhpi.conf
>>
>> openhpid.cpp:289:main: OPENHPI_DAEMON_PORT = 4743
>>
>>
>> safhpi.c:52:saHpiSessionOpen: saHpiSessionOpen DomainId [0]
>> safhpi.c:75:saHpiSessionOpen: Created session 1 for domain 0
>> threaded.c:228:oh_wake_discovery_thread: Waiting for discovery
>> thread...
>> event.c:392:oh_process_events: Event Type = RESOURCE
>> event.c:326:process_event: Processing event for domain 0
>> event.c:212:process_hpi_event: Added event to EL
>> event.c:113:harvest_events_for_handler: event.c:222:process_hpi_event:
>> threaded.c:84:oh_discovery_thread_loop: Handler is out of Events
>> Got session list for domain 0
>> threaded.c:137:oh_evtget_thread_loop: Going to sleep
>> Going to sleep
>> threaded.c:230:oh_wake_discovery_thread: ...Done waiting for discovery
>> thread.
>> event.c:247:process_hpi_event: threaded.c:261:oh_wake_event_thread:
>> Going to wait for event thread to loop once.
>> done multiplexing event into sessions
>> threaded.c:139:oh_evtget_thread_loop: SIGNALED: Got signal from plugin
>> threaded.c:129:oh_evtget_thread_loop: Thread Harvesting events
>> event.c:128:oh_harvest_events: harvesting for 1
>> event.c:392:oh_process_events: Event Type = HOTSWAP
>> event.c:326:process_event: Processing event for domain 0
>> event.c:212:process_hpi_event: Added event to EL
>> event.c:222:process_hpi_event: Got session list for domain 0
>> event.c:247:process_hpi_event: done multiplexing event into sessions
>> event.c:392:oh_process_events: Event Type = HOTSWAP
>> event.c:326:process_event: Processing event for domain 0
>> event.c:212:process_hpi_event: Added event to EL
>> event.c:222:process_hpi_event: Got session list for domain 0
>> event.c:247:process_hpi_event: done multiplexing event into sessions
>> event.c:392:oh_process_events: Event Type = RESOURCE
>> event.c:326:process_event: Processing event for domain 0
>> event.c:212:process_hpi_event: Added event to EL
>> event.c:222:process_hpi_event: Got session list for domain 0
>> event.c:247:process_hpi_event: done multiplexing event into sessions
>> event.c:392:oh_process_events: Event Type = RESOURCE
>> event.c:326:process_event: Processing event for domain 0
>> event.c:212:process_hpi_event: Added event to EL
>> event.c:222:process_hpi_event: Got session list for domain 0
>> event.c:247:process_hpi_event: done multiplexing event into sessions
>> event.c:392:oh_process_events: Event Type = RESOURCE
>> event.c:326:process_event: Processing event for domain 0
>> event.c:212:process_hpi_event: Added event to EL
>> event.c:222:process_hpi_event: Got session list for domain 0
>> event.c:247:process_hpi_event: done multiplexing event into sessions
>> event.c:392:oh_process_events: Event Type = RESOURCE
>> event.c:326:process_event: Processing event for domain 0
>> event.c:212:process_hpi_event: Added event to EL
>> event.c:222:process_hpi_event: Got session list for domain 0
>> event.c:247:process_hpi_event: done multiplexing event into sessions
>> event.c:113:harvest_events_for_handler: Handler is out of Events
>> threaded.c:137:oh_evtget_thread_loop: Going to sleep
>> threaded.c:266:oh_wake_event_thread: Got signal from event thread being
>> done. Giving lock back
>> threaded.c:141:oh_evtget_thread_loop: TIMEDOUT: Woke up, am looping
>> again
>> threaded.c:129:oh_evtget_thread_loop: Thread Harvesting events
>> event.c:128:oh_harvest_events: harvesting for 1
>> event.c:113:harvest_events_for_handler: Handler is out of Events
>> threaded.c:137:oh_evtget_thread_loop: Going to sleep
>> threaded.c:141:oh_evtget_thread_loop: TIMEDOUT: Woke up, am looping
>> again
>> threaded.c:129:oh_evtget_thread_loop: Thread Harvesting events
>> event.c:128:oh_harvest_events: harvesting for 1
>> event.c:113:harvest_events_for_handler: Handler is out of Events
>> threaded.c:137:oh_evtget_thread_loop: Going to sleep
>> threaded.c:141:oh_evtget_thread_loop: TIMEDOUT: Woke up, am looping
>> again
>> threaded.c:129:oh_evtget_thread_loop: Thread Harvesting events
>> event.c:128:oh_harvest_events: harvesting for 1
>> event.c:113:harvest_events_for_handler: Handler is out of Events
>> threaded.c:137:oh_evtget_thread_loop: Going to sleep
>> threaded.c:141:oh_evtget_thread_loop: TIMEDOUT: Woke up, am looping
>> again
>> threaded.c:129:oh_evtget_thread_loop: Thread Harvesting events
>> event.c:128:oh_harvest_events: harvesting for 1
>> event.c:113:harvest_events_for_handler: Handler is out of Events
>> threaded.c:137:oh_evtget_thread_loop: Going to sleep
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008
>> 30-Day
>> trial. Simplify your report design, integration and deployment - and
>> focus on
>> what you do best, core application coding. Discover what's new with
>> Crystal Reports now. http://p.sf.net/sfu/bobj-july
>> _______________________________________________
>> Openhpi-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/openhpi-devel
>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008
> 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now. http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Openhpi-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/openhpi-devel
>
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Openhpi-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openhpi-devel