Class ChassisStatus

java.lang.Object
org.metricshub.ipmi.client.ChassisStatus

public final class ChassisStatus extends Object
The state of the chassis: power, faults, intrusion, identify LED (Get Chassis Status, IPMI 2.0 table 28-3).
  • Method Details

    • powerOn

      public boolean powerOn()
      Tells whether the system is powered on.
      Returns:
      true when the system power is on
    • powerRestorePolicy

      public PowerRestorePolicy powerRestorePolicy()
      Returns what the system does when AC power returns after it was lost.
      Returns:
      the power restore policy
    • lastPowerEvents

      public Set<PowerEvent> lastPowerEvents()
      Returns what caused the last power-down or power-up: several causes can be flagged at once.
      Returns:
      the causes, empty when the BMC flags none
    • powerFault

      public boolean powerFault()
      Tells whether a power fault is active.
      Returns:
      true when the power fault is active
    • powerOverload

      public boolean powerOverload()
      Tells whether a power overload is active.
      Returns:
      true when the power overload is active
    • interlock

      public boolean interlock()
      Tells whether the chassis interlock is active: the system is powered down because a panel is open.
      Returns:
      true when the interlock is active
    • powerControlFault

      public boolean powerControlFault()
      Tells whether the last power control command failed.
      Returns:
      true when the power control fault is active
    • coolingFault

      public boolean coolingFault()
      Tells whether a cooling or fan fault was detected.
      Returns:
      true when a cooling fault was detected
    • driveFault

      public boolean driveFault()
      Tells whether a drive fault was detected.
      Returns:
      true when a drive fault was detected
    • intrusion

      public boolean intrusion()
      Tells whether a chassis intrusion is active.
      Returns:
      true when the intrusion is active
    • frontPanelLockout

      public boolean frontPanelLockout()
      Tells whether the front panel is locked out.
      Returns:
      true when the front panel lockout is active
    • identifyState

      public Optional<ChassisIdentifyState> identifyState()
      Returns the state of the chassis identify LED.
      Returns:
      the identify state, empty when the BMC does not report it
    • data

      Returns the reply of the BMC, as the protocol core decodes it.
      Returns:
      the reply to Get Chassis Status
    • toString

      public String toString()
      Overrides:
      toString in class Object