Hi Werner,

> Does anybody know whether one of the other tools like freeipmi or
> impiutil has some functionality like this?

In FreeIPMI, there is a tool called ipmimonitoring that I believe does
what you're asking for (output condensed for readability below).

18 | Fan1            | Nominal  | 14500.00   | RPM   | 'OK'
19 | Fan2            | Nominal  | 14300.00   | RPM   | 'OK'
20 | Fan3/CPU2       | Nominal  | 14300.00   | RPM   | 'OK'
21 | Fan4/CPU1       | Nominal  | 13900.00   | RPM   | 'OK'
22 | Fan5            | Nominal  | 14000.00   | RPM   | 'OK'
23 | Fan6            | Nominal  | 14000.00   | RPM   | 'OK'
24 | Fan7/CPU3       | Critical | 0.00       | RPM   | 'At or Below (<=) Lower 
Non-Recoverable Threshold'
25 | Fan8/CPU4       | Critical | 0.00       | RPM   | 'At or Below (<=) Lower 
Non-Recoverable Threshold'
26 | Fan9            | Critical | 0.00       | RPM   | 'At or Below (<=) Lower 
Non-Recoverable Threshold'
27 | Power Supply 1  | Nominal  | N/A        | N/A   | 'Presence detected'
28 | Power Supply 2  | N/A      | N/A        | N/A   | N/A

So for this example, fans with normal RPM are "Nominal", out of range is
"Critical", and the power supply that doesn't exist is "N/A".  There is
also a "Warning" output when the situation is appropriate.

I can speak more of it, but it's probably not best on this mailing.
Feel free to ping me on the FreeIPMI mailing list.

Al

On Mon, 2010-06-21 at 06:08 -0700, Werner Fischer wrote:
> Hi ipmitool developers,
> 
> I thought about the problem regarding monitoring discrete IPMI sensors,
> that Brian reported back in April:
> http://*www.*mail-archive.com/ipmitool-devel@lists.sourceforge.net/msg01472.html
> 
> I did some in-depth testing and looked how the current VMware ESXi 4.0
> reports different states of discrete IPMI sensors.
> 
> I tested two example scenarios with an Intel SR2500 server:
> 
> Test case 1:
>   * Power Supply 2 removed
>   * Chassis cover removed
>   * VMware reports: http://*www.*wefi.net/shared/sr2500-example-1.png
> 
> Test case 2:
>   * Power Supply 2 present, but power cable removed
>   * Vmware reports: http://*www.*wefi.net/shared/sr2500-example-2.png
> 
> (Below you find some example ipmitool outputs for these two cases).
> 
> The current IPMI specification lists possible sensor-specific-offsets
> for each sensor type in table 42-3, Sensor Type Codes.
> 
> To me it seems that VMware uses some mapping, which defines which
> offsets (assertions/deassertions) cause a warning or an alarm,
> e.g. an offset for the event "General Chassis Intrusion" for a Physical
> Security sensor (sensor type code 05h) leads to status "Warning".
> 
> So my request:
>       * introduce some new option for ipmitool (something like "ipmitool
>         get-server-status") where ipmitool uses such kind of mapping,
>         too. We could define which offsets/assertions should cause a
>         warning. In this way an end-user would have an easy way to
>         quickly find out whether or not everything is ok with his
>         hardware...
> 
> Currently using e.g. "ipmitool sdr elist all" returns "ok" for sensor
> states like "General Chassis Intrusion" (see below)
> 
> What do you think?
> Any other ideas how we could accomplish that?
> Does anybody know whether one of the other tools like freeipmi or
> impiutil has some functionality like this?
> 
> best regards,
> Werner
> 
> PS: Here are the outputs of ipmitool for this:
> 
> Test case 1:
>         wfisc...@wfischer-t410-ubuntu:~$ ipmitool -I lan -H 192.168.1.211 -U 
> monitor -L user sdr elist all | grep -i "PS"
>         Password: 
>         PS1 AC Current   | 78h | ok  | 10.1 | 0.93 Amps
>         PS2 AC Current   | 79h | ns  | 10.2 | No Reading
>         PS1 +12V Current | 7Ah | ok  | 10.1 | 16 Amps
>         PS2 +12V Current | 7Bh | ns  | 10.2 | No Reading
>         PS1 +12V Power   | 7Ch | ok  | 10.1 | 192 Watts
>         PS2 +12V Power   | 7Dh | ns  | 10.2 | No Reading
>         PS1 Status       | 70h | ok  | 10.1 | Presence detected
>         PS2 Status       | 71h | ok  | 10.2 | 
>         wfisc...@wfischer-t410-ubuntu:~$ ipmitool -I lan -H 192.168.1.211 -U 
> monitor -L user sdr elist all | grep -i "Physical Scrty"
>         Password: 
>         Physical Scrty   | 05h | ok  | 23.1 | General Chassis intrusion
>         wfisc...@wfischer-t410-ubuntu:~$ ipmitool -I lan -H 192.168.1.211 -U 
> admin raw 0x04 0x2d 0x70
>         Password: 
>         Data length = 1
>          00 c0 01 00
>         wfisc...@wfischer-t410-ubuntu:~$ ipmitool -I lan -H 192.168.1.211 -U 
> admin raw 0x04 0x2d 0x71
>         Password: 
>         Data length = 1
>          00 c0 00 00
>         wfisc...@wfischer-t410-ubuntu:~$ ipmitool -I lan -H 192.168.1.211 -U 
> admin -P relation sdr get "Physical Scrty"
>         Sensor ID              : Physical Scrty (0x5)
>          Entity ID             : 23.1 (System Chassis)
>          Sensor Type (Discrete): Physical Security
>          States Asserted       : Physical Security
>                                  [General Chassis intrusion]
>          Assertion Events      : Physical Security
>                                  [General Chassis intrusion]
>          Assertions Enabled    : Physical Security
>                                  [General Chassis intrusion]
>                                  [System unplugged from LAN]
>          Deassertions Enabled  : Physical Security
>                                  [General Chassis intrusion]
>                                  [System unplugged from LAN]
> 
> Test case 2:
>         wfisc...@wfischer-t410-ubuntu:~$ ipmitool -I lan -H 192.168.1.211 -U 
> monitor -L user sdr get "PS2 Status"
>         Password: 
>         Sensor ID              : PS2 Status (0x71)
>          Entity ID             : 10.2 (Power Supply)
>          Sensor Type (Discrete): Power Supply
>          States Asserted       : Power Supply
>                                  [Presence detected]
>                                  [Power Supply AC lost]
>          Assertion Events      : Power Supply
>                                  [Presence detected]
>                                  [Power Supply AC lost]
>          Assertions Enabled    : Power Supply
>                                  [Presence detected]
>                                  [Failure detected]
>                                  [Predictive failure]
>                                  [Power Supply AC lost]
>                                  [Config Error: Vendor Mismatch]
>                                  [Config Error: Revision Mismatch]
>                                  [Config Error: Processor Missing]
>                                  [Config Error]
>          Deassertions Enabled  : Power Supply
>                                  [Presence detected]
>                                  [Failure detected]
>                                  [Predictive failure]
>                                  [Power Supply AC lost]
>                                  [Config Error: Vendor Mismatch]
>                                  [Config Error: Revision Mismatch]
>                                  [Config Error: Processor Missing]
>                                  [Config Error]
>         
>         wfisc...@wfischer-t410-ubuntu:~$ ipmitool -I lan -H 192.168.1.211 -U 
> monitor -L user sdr elist all | grep -i "PS"
>         Password: 
>         PS1 AC Current   | 78h | ok  | 10.1 | 0.93 Amps
>         PS2 AC Current   | 79h | ok  | 10.2 | 0.12 Amps
>         PS1 +12V Current | 7Ah | ok  | 10.1 | 16 Amps
>         PS2 +12V Current | 7Bh | ok  | 10.2 | 0 Amps
>         PS1 +12V Power   | 7Ch | ok  | 10.1 | 192 Watts
>         PS2 +12V Power   | 7Dh | ok  | 10.2 | 0 Watts
>         PS1 Status       | 70h | ok  | 10.1 | Presence detected
>         PS2 Status       | 71h | ok  | 10.2 | Presence detected, Power Supply 
> AC lost
>         wfisc...@wfischer-t410-ubuntu:~$ ipmitool -I lan -H 192.168.1.211 -U 
> admin raw 0x04 0x2d 0x71
>         Password: 
>         Data length = 1
>          00 c0 09 00
>         wfisc...@wfischer-t410-ubuntu:~$
> 
> 
-- 
Albert Chu
ch...@llnl.gov
Computer Scientist
High Performance Systems Division
Lawrence Livermore National Laboratory


------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Ipmitool-devel mailing list
Ipmitool-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ipmitool-devel

Reply via email to