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:~$


-- 
: Werner Fischer
: Technology Specialist
: Thomas-Krenn.AG | Speed is (y)our success
: http://www.thomas-krenn.com | http://www.thomas-krenn.com/wiki


------------------------------------------------------------------------------
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