Hello Mike!

It seems that SetState function in IPMI Direct plug-in is just a stub.
It checks if fan control mode is auto and returns.
(plugins/ipmidirect/ipmi_control_fan.cpp)

Also, "hpifan -s" set the same mode, that was
obtained by preceding get. For you case mode is auto.

HPI spec says: If the CtrlMode parameter is set to SAHPI_CTRL_MODE_AUTO,
then the CtrlState parameter is not evaluated, and may be set to any value
by an HPI User...

Have fun :)

  Anton Pak


> When this command is executed without the -s parameter the log file shows
> the daemon getting the fan speed just once for each fan tray.
>
> 2008.11.21 10:05:30.035 addr 0x20: add poll. cIpmiMcThread::PollAddr
> 2008.11.21 10:05:31.078 poll MC at 0x20.
> 2008.11.21 10:05:31.078 >cmd 0x1e  01 00 00 20  GetDeviceId (00)
> 2008.11.21 10:05:31.079 <rsp 0x1e  01 00 00 20  GetDeviceId (16)  00 00 80
> 02 61 02 bf 0a 40 00 00 00 02 61 1c 00
> 2008.11.21 10:05:31.079 addr 0x20: add poll. cIpmiMcThread::PollAddr
> 2008.11.21 10:05:31.792 Simple discovery let's go true
> 2008.11.21 10:05:31.813 >cmd 0x1f  01 00 00 5a  GetFanLevel (02)  00 00
> 2008.11.21 10:05:31.822 <rsp 0x1f  0c 0f 00     GetFanLevel (05)  00 00 03
> 01 00
> 2008.11.21 10:05:31.825 >cmd 0x20  01 00 00 5c  GetFanLevel (02)  00 00
> 2008.11.21 10:05:31.833 <rsp 0x20  0c 0f 00     GetFanLevel (05)  00 00 03
> 01 00
> 2008.11.21 10:05:32.122 poll MC at 0x20.
> 2008.11.21 10:05:32.122 >cmd 0x21  01 00 00 20  GetDeviceId (00)
> 2008.11.21 10:05:32.123 <rsp 0x21  01 00 00 20  GetDeviceId (16)  00 00 80
> 02 61 02 bf 0a 40 00 00 00 02 61 1c 00
> 2008.11.21 10:05:32.123 addr 0x20: add poll. cIpmiMcThread::PollAddr
> 2008.11.21 10:05:33.166 poll MC at 0x20.
> 2008.11.21 10:05:33.166 >cmd 0x22  01 00 00 20  GetDeviceId (00)
> 2008.11.21 10:05:33.170 <rsp 0x22  01 00 00 20  GetDeviceId (16)  00 00 80
> 02 61 02 bf 0a 40 00 00 00 02 61 1c 00
>
> When this command is executed with the -s parameter the log file shows the
> daemon getting the fan speed twice for each fan tray, but it never sets
> the fan speed.
>
> 2008.11.21 10:02:44.383 addr 0x20: add poll. cIpmiMcThread::PollAddr
> 2008.11.21 10:02:45.421 poll MC at 0x20.
> 2008.11.21 10:02:45.421 >cmd 0x1a  01 00 00 20  GetDeviceId (00)
> 2008.11.21 10:02:45.423 <rsp 0x1a  01 00 00 20  GetDeviceId (16)  00 00 80
> 02 61 02 bf 0a 40 00 00 00 02 61 1c 00
> 2008.11.21 10:02:45.423 addr 0x20: add poll. cIpmiMcThread::PollAddr
> 2008.11.21 10:02:45.696 Simple discovery let's go true
> 2008.11.21 10:02:45.712 >cmd 0x1b  01 00 00 5a  GetFanLevel (02)  00 00
> 2008.11.21 10:02:45.721 <rsp 0x1b  0c 0f 00     GetFanLevel (05)  00 00 03
> 01 00
> 2008.11.21 10:02:45.721 >cmd 0x1c  01 00 00 5a  GetFanLevel (02)  00 00
> 2008.11.21 10:02:45.729 <rsp 0x1c  0c 0f 00     GetFanLevel (05)  00 00 03
> 01 00
> 2008.11.21 10:02:45.731 >cmd 0x1d  01 00 00 5c  GetFanLevel (02)  00 00
> 2008.11.21 10:02:45.737 <rsp 0x1d  0c 0f 00     GetFanLevel (05)  00 00 03
> 01 00
> 2008.11.21 10:02:45.738 >cmd 0x1e  01 00 00 5c  GetFanLevel (02)  00 00
> 2008.11.21 10:02:45.747 <rsp 0x1e  0c 0f 00     GetFanLevel (05)  00 00 03
> 01 00
> 2008.11.21 10:02:46.149 reading SEL.
> 2008.11.21 10:02:46.149 >cmd 0x1f  01 00 00 20  GetSelInfo (00)
> 2008.11.21 10:02:46.151 <rsp 0x1f  01 00 00 20  GetSelInfo (15)  00 51 14
> 00 b0 3e 92 cb 26 49 6e cb 26 49 0f
> 2008.11.21 10:02:46.151 addr 0x20: add sel reading. cIpmiMcThread::ReadSel
> 2008.11.21 10:02:46.461 poll MC at 0x20.
> 2008.11.21 10:02:46.461 >cmd 0x20  01 00 00 20  GetDeviceId (00)
> 2008.11.21 10:02:46.463 <rsp 0x20  01 00 00 20  GetDeviceId (16)  00 00 80
> 02 61 02 bf 0a 40 00 00 00 02 61 1c 00
> 2008.11.21 10:02:46.463 addr 0x20: add poll. cIpmiMcThread::PollAddr
> 2008.11.21 10:02:47.501 poll MC at 0x20.
> 2008.11.21 10:02:47.501 >cmd 0x21  01 00 00 20  GetDeviceId (00)
> 2008.11.21 10:02:47.503 <rsp 0x21  01 00 00 20  GetDeviceId (16)  00 00 80
> 02 61 02 bf 0a 40 00 00 00 02 61 1c 00
>
> usage: hpifan [-h] [-s fan_speed_level]
>                  -h        help
>                  -s speed  set fan speed for ALL fans
>
> [EMAIL PROTECTED] bin]# hpifan -s 4
> hpifan (rev 6571) - This program came with OpenHPI 2.13.1
> SAF HPI Version B.02.01
>
> Entity Path: {SYSTEM_CHASSIS,1}{FAN_TRAY_SLOT,1}{COOLING_UNIT,0}
>         fan: num 5120, id Fan Control
>                 min       0
>                 max       15
>                 default   3
>                 current   3
>                 new speed 3
> Entity Path: {SYSTEM_CHASSIS,1}{FAN_TRAY_SLOT,2}{COOLING_UNIT,0}
>         fan: num 5120, id Fan Control
>                 min       0
>                 max       15
>                 default   3
>                 current   3
>                 new speed 3
>
> Michael Thompson
> Principal Engineer
> Pentair Electronic Packaging
> (Schroff & Electronic Solutions)
> 170 Commerce Drive
> Warwick, RI 02886
> Phone: +1 401-535-4869
> FAX: +1 401-535-4951
> Email: [EMAIL PROTECTED]
>
>
>
> Peter D Phan <[EMAIL PROTECTED]>
> 11/19/2008 11:32 AM
> Please respond to
> [email protected]
>
>
> To
> [email protected],
> [EMAIL PROTECTED]
> cc
>
> Subject
> [Openhpi-devel] openhpi-2.13.1 has been released.
>
>
>
>
>
>
> openhpi-2.13.1 has been released.
>
>
> Changelog for 2.13.1
> -------------------
> [New Features]
> Documentation
> 2042355 - Missing man pages for most of the client applications
> HP c-Class Plugin
> 2175525 - Add underpinnings for additional management functions
>
> [Fixed Bugs]
> Build System
> 2191513 - openhpid initscript is not installed
> HPI Shell
> 2182034 - Incorrect displaying of SaHpiTextBufferT in hpi_shell
> 2171901 - HPI session is not closed after quit
> OpenHPI Daemon Client
> 2230986 - DomainId issues with the new multi-domain implementation.
> OpenHPI base library
> 2211619 - Typo in type for session
> 2188639 - saHpiResourceFailedRemove() fails if only FRU cap is set
> 2187132 - Incorrect error returned by saHpiSensorThresholdsSet()
>
> Regards,
> --------------------------------------------------------------------------------------------
> P. D. Phan
> IBM Austin
> --------------------------------------------------------------------------------------------
>
> ______________________________________________________________________
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.messagelabs.com/email
> ______________________________________________________________________
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the
> world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Openhpi-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/openhpi-devel
>
>
> This message and any attachments are confidential and solely for the use
> of the individual or entity to whom they are addressed. If you are not the
> intended recipient, you should not copy, disclose, or disseminate this
> information. If you received this communication in error, please notify
> the sender immediately and delete this e-mail from your system.
>
> ______________________________________________________________________
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.messagelabs.com/email
> ______________________________________________________________________-------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the
> world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/_______________________________________________
> Openhpi-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/openhpi-devel
>



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Openhpi-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openhpi-devel

Reply via email to