----- Original Message ----
From: Al Chu <address@hidden>
To: Won De Erick <address@hidden>
Cc: address@hidden
Sent: Tuesday, September 23, 2008 12:04:37 AM
Subject: Re: Obtain an error when changing a
threshold value... but "echo $" returns "0" value
Hey Won,
Ahhh, good catch. I see the corner case on this one. I'll fix it up.
Thanks,
Al
On Sun, 2008-09-21 at 23:26 -0700, Won De Erick wrote:
> Hi Al,
>
> Box/Platform: IBM x3650, freebsd 6.2, freeipmiv0.6.6
>
> I was trying to change the threshold value for a fan (see below), but
> got an error.
> This is OK. However, what I was expecting to receive is a non-zero
> return value to distinguish it from the one without an error message.
>
> ~# ipmi-sensors-config -o -S 16_Fan_9_Tach
> Section 16_Fan_9_Tach
> ## Give valid input for sensor type = Fan; units = RPM
> ## Lower_Critical_Threshold 750.000000
> EndSection
>
> ~# echo $?
> 0
>
> ~# ipmi-sensors-config -c -e
>
16_Fan_9_Tach:Lower_Critical_Threshold=760.00000
> ERROR: `16_Fan_9_Tach:Lower_Critical_Threshold' is not writeable
>
> ~# echo $?
> 0
>
> Thanks again,
>
> Won
>
>
--
Albert Chu
address@hidden925-422-5311
Computer Scientist
High Performance Systems Division
Lawrence Livermore National Laboratory