Intel AMT Features > Alarm Clock > Use Cases > Set the Alarm Clock to Activate Once
CollapseAll image

Set the Alarm Clock to Activate Once

The following steps describe how to set the alarm clock to activate once. The wake–up mechanism performs the equivalent of a remote control power up command.

1.  Retrieve the instance of AMT_AlarmClockService, where the “Name” key equals “Intel(r) AMT Alarm Clock Service”.

2.  Set AMT_AlarmClockService.NextAMTAlarmTime to the first time when Intel AMT should turn on the host.

 Note:

The value of the NextAMTAlarmTime Datetime format requires a “T” between the date and the time and must end with “Z”. Seconds must be set to zero. For example: "yyyy-mm-ddThh:mm:00Z". The time must be later than the current time or the Set operation will be rejected.

3.  Set AMT_AlarmClockService.AMTAlarmClockInterval to NULL.

 Note:

You must set the AMTAlarmClockInterval to NULL in case there was a previous value. An all-zero setting is invalid.

4.  Set the values by sending AMT_AlarmClockService.Put.

Click here for a snippet demonstrating this step

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

  

# Create the XML format of the NextAMTAlarmClock property. 

$nextAlarmTime =$wsmanConnectionObject.NewInstance("Datetime")

$nextAlarmTime.Text ="2013-11-07T16:28:00Z"

$alarmClockServiceRef =$wsmanConnectionObject.NewReference("SELECT * FROM AMT_AlarmClockService WHERE Name='Intel(r) AMT Alarm Clock Service'")

$alarmClockServiceInstance =$alarmClockServiceRef.Get()

$alarmClockServiceInstance.SetProperty("NextAMTAlarmTime",$nextAlarmTime)

$alarmClockServiceInstance.SetProperty("AMTAlarmClockInterval",$null)

$alarmClockServiceRef.Put($alarmClockServiceInstance)

 

 

Additional Information

The XML representation of the property NextAMTAlarmTime should be in Datetime format, as defined in the WS-CIM Mapping Specification (DSP0230). The following example is an XML representations of this format.

<NextAMTAlarmTime>

  <Datetime xmlns="http://schemas.dmtf.org/wbem/wscim/1/common">…</Datetime>

<NextAMTAlarmTime>

 

Instance Diagram

Classes Used in This Flow

SDK Sample

Located at:<SDK_root>\Windows\Intel_AMT\Samples\WS-Management\AlarmClock\c#

 

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