From owner-freebsd-questions@FreeBSD.ORG Tue Mar 30 17:31:54 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B3584106566B for ; Tue, 30 Mar 2010 17:31:54 +0000 (UTC) (envelope-from psteele@maxiscale.com) Received: from server505.appriver.com (server505b.appriver.com [98.129.35.5]) by mx1.freebsd.org (Postfix) with ESMTP id 7AF128FC16 for ; Tue, 30 Mar 2010 17:31:54 +0000 (UTC) X-Policy: GLOBAL - maxiscale.com X-Primary: psteele@maxiscale.com X-Note: This Email was scanned by AppRiver SecureTide X-ALLOW: psteele@maxiscale.com ALLOWED X-Virus-Scan: V- X-Note: Spam Tests Failed: X-Country-Path: UNITED STATES->UNITED STATES->UNITED STATES X-Note-Sending-IP: 98.129.23.15 X-Note-Reverse-DNS: ht02.exg5.exghost.com X-Note-WHTLIST: psteele@maxiscale.com X-Note: User Rule Hits: X-Note: Global Rule Hits: G179 G180 G181 G182 G186 G187 G198 G285 X-Note: Encrypt Rule Hits: X-Note: Mail Class: ALLOWEDSENDER X-Note: Headers Injected Received: from [98.129.23.15] (HELO ht02.exg5.exghost.com) by server505.appriver.com (CommuniGate Pro SMTP 5.3.2) with ESMTPS id 30534000 for freebsd-questions@freebsd.org; Tue, 30 Mar 2010 12:31:54 -0500 Received: from mbx03.exg5.exghost.com ([169.254.1.132]) by ht02.exg5.exghost.com ([98.129.23.15]) with mapi; Tue, 30 Mar 2010 12:31:53 -0500 From: Peter Steele To: Peter Steele , "freebsd-questions@freebsd.org" Date: Tue, 30 Mar 2010 12:31:52 -0500 Thread-Topic: Making sense out of impitool power supply readings Thread-Index: AcrQH4qq+DoEeFuKS5O6chix5XypfgADhfEA Message-ID: <7B9397B189EB6E46A5EE7B4C8A4BB7CB3B65F388@MBX03.exg5.exghost.com> References: <7B9397B189EB6E46A5EE7B4C8A4BB7CB3B65F2D8@MBX03.exg5.exghost.com> In-Reply-To: <7B9397B189EB6E46A5EE7B4C8A4BB7CB3B65F2D8@MBX03.exg5.exghost.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Cc: Subject: RE: Making sense out of impitool power supply readings X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Mar 2010 17:31:54 -0000 I think I might be able to solve my issues if I could filter out which of t= hese entries returned by=20 ipmitool sdr type "Power Supply" actually represent the physical power supplies. One of the cases I have bel= ow for example produces a list of six sensors. Only two of those actually r= epresent the true physical status, but when I'm writing generic code, how d= o I filter these? In some cases the ones I want are called "PS 1 STATUS" an= d "PS 2 STATUS" and in others "PS1 STATUS" and "PS2 STATUS" are used (note = the missing space). Yet another one just uses "Status" for both PS sensors.= This is all very non-deterministic. Is there a call I can make in the ipmi= tool library to list only the sensors representing the real power status an= d not these other sensors like "PDB PRESENT"? -----Original Message----- From: owner-freebsd-questions@freebsd.org [mailto:owner-freebsd-questions@f= reebsd.org] On Behalf Of Peter Steele Sent: Tuesday, March 30, 2010 8:42 AM To: freebsd-questions@freebsd.org Subject: Making sense out of impitool power supply readings Is there some trick to know when the power supply sensor readings returned = by ipmitool actually reflects that there is a power supply issue? Our diffi= culty is that no one seems to use the same sensor values when it comes to p= ower supply reporting, and even if there are two power supplies the impitoo= l command may only report a single status. For example, here's one box that= I have: # ipmitool sdr type "Power Supply" PS 1 STATUS | 61h | lcr | 10.0 | 0 unspecified PS 2 STATUS | 62h | lnc | 10.1 | 0 unspecified PS REDUNDANCY | 6Fh | lcr | 19.0 | 0 unspecified Here's another: # ipmitool sdr type "Power Supply" Power Supply | 17h | ok | 10.0 | 0 unspecified And another: # ipmitool sdr type "Power Supply" PS1 PRESENT | 53h | ok | 10.0 | Device Present PS2 PRESENT | 54h | ok | 10.1 | Device Present PDB PRESENT | 55h | ok | 21.0 | Device Present PS1 STATUS | 4Ah | ok | 10.0 | PS2 STATUS | 4Bh | ok | 10.1 | PS REDUNDANCY | 4Dh | ok | 21.0 | Fully Redundant And here's yet another: # ipmitool sdr type "Power Supply" Status | 64h | ok | 10.1 | Presence detected Status | 65h | ok | 10.2 | Presence detected PS Redundancy | 74h | ok | 7.1 | Fully Redundant All of these are systems with dual power supplies. When we query these sens= ors are queried, on some systems "0" means the power supply is online and "= 200" means it's offline, whereas others might user 80 and 180 or 180 and 38= 0. Is there some trick in figuring out what status values means "online", o= r would we have to maintain a table of motherboard/vendor versions and map = these to how to interpret the PS readings? _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman= /listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org= "