Intel AMT Features > Alarm Clock > Use Cases > Get the Reason for the Last Boot
CollapseAll image

Get the Reason for the Last Boot

The following procedure describes how to retrieve the reason for the last host boot (applicable to Release 8.0 and later releases).

1.  Retrieve the instance of IPS_HostBootReason where the “InstanceID” key equals “Intel(r) AMT:Host Boot Reason”.

2.  Examine the following fields:




Reason for the last host boot:

   1 (Other): the boot did not originate from Intel AMT (e.g., the user rebooted).

   2 (Remote Control): an Intel AMT remote control command caused the reboot. See the ReasonDetails for the command.

   3 (Alarm): an alarm clock operation caused the reboot. See the ReasonDetails to see which alarm clock it was.


A string describing the reason for reboot.

   If the reboot was due to a remote control command, the string will be “Reset", "Power Up" or "Power Cycle”.

   If the reboot was due to an alarm clock operation, the field will contain the ElementName of the IPS_AlarmClockOccurrence instance that invoked the alarm.


The Host S-state prior to the last boot. The values map to S0 through S5.


Click here for a snippet demonstrating this step

You can execute this snippet by inserting it into the execution template found here.


$hostBootReasonRef =$wsmanConnectionObject.NewReference("SELECT * FROM IPS_HostBootReason WHERE InstanceID='Intel(r) AMT:Host Boot Reason'")

$hostBootReasonInstance =$hostBootReasonRef.Get()

$reason =$hostBootReasonInstance.GetProperty("Reason")

$reasonDetails =$hostBootReasonInstance.GetProperty("ReasonDetails")

$previousSxState =$hostBootReasonInstance.GetProperty("PreviousSxState")



Instance Diagram

Not applicable

Classes Used in This Flow

SDK Sample

Not applicable



Copyright © 2006-2022, Intel Corporation. All rights reserved.