Subject: kern/36660: envsys sensor names are not unique
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <yamt@mwd.biglobe.ne.jp>
List: netbsd-bugs
Date: 07/17/2007 14:35:01
>Number: 36660
>Category: kern
>Synopsis: envsys sensor names are not unique
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Jul 17 14:35:00 +0000 2007
>Originator: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
>Release: NetBSD 4.99.23
>Organization:
>Environment:
Architecture: i386
Machine: i386
>Description:
on one of my machines, envstat shows something like the following.
(it's with ipmi(4).)
as you see, there are some sensors with the same name.
i consider it as a bug because the names are used as identifiers.
eg. envstat -s
the introduction of "envstat -m desc=..." made the situation worse.
% envstat
Temp: 40.000 degC
Temp: 40.000 degC
Riser Temp: 40.000 degC
Planar Temp: 40.000 degC
Ambient Temp: 23.000 degC
Temp: 50.000 degC
Temp: 50.000 degC
Temp: 40.000 degC
Temp: 40.000 degC
Riser Temp: 29.000 degC
Planar Temp: 32.000 degC
Ambient Temp: 21.000 degC
Temp: 50.000 degC
Temp: 34.000 degC
FAN 8 RPM: 1800 RPM
FAN 7 RPM: 1800 RPM
FAN 6 RPM: 1800 RPM
FAN 5 RPM: 1800 RPM
FAN 4 RPM: 1800 RPM
FAN 3 RPM: 1800 RPM
FAN 2 RPM: 1800 RPM
FAN 1 RPM: 1800 RPM
FAN 6 RPM: 4950 RPM
FAN 5 RPM: 4950 RPM
FAN 4 RPM: 4875 RPM
FAN 3 RPM: 4950 RPM
FAN 2 RPM: 5025 RPM
FAN 1 RPM: 1800 RPM
CMOS Battery: 3.096 V
CMOS Battery: 3.122 V
Intrusion
>How-To-Repeat:
>Fix:
- make the framework ensure that names are unique.
- remove the "envstat -m desc=..." functionality.
IMO, it's a misfeature.
>Unformatted: