Supported Intel AMT Features > Remote Platform Erase > Using the Remote Platform Erase API
CollapseAll image

Using the Remote Platform Erase API

The HLAPI implements the Intel Remote Platform Erase feature in the Remote Platform Erase API.

The available methods are described in these interfaces:

•   IRemotePlatformErase – Provide access to Remote Platform Erase operations

To set the next boot to Intel RPE:

Send the RPEEraseOptions object, containing the requested erase options, to the SetNextBootToRPE method.

Optional:

•   To secure erase SSDs, send the SSD password parameter.

•   For pyrite revert, send the PSID parameter.

•   For OEM Custom Options, send OEM Vendor ID, OEM Parameter Type, and OEM Data - as byte array

 

Examples

These C# examples show how to use the Remote Platform Erase API (after connecting to the Intel AMT device).

Example 1

// Sets next boot to RPE

 

// <param name="amt">AMT instance</param>

public static void SetNextBootToRPE(IAMTInstance amt)

 

{

   try

   {

 

        RPEEraseOptions eraseOptions = new RPEEraseOptions();

        eraseOptions.SecureEraseAllSSDs = true;

        eraseOptions.TPMClear = true;

        eraseOptions.BiosReloadOfGoldenConfig = true;

        // Supported from RPE 2.0

        eraseOptions.OEMCustomAction = false;

        eraseOptions.ClearBiosNVMVariables = false;

        //Clearing any boot option before executing the RPE flow

        amt.BootControl.ClearBootOptions();

        amt.RemotePlatformErase.SetNextBootToRPE(eraseOptions);

        //amt.RemotePlatformErase.SetNextBootToRPE(eraseOptions, "ssdPass", "psid");

        Console.WriteLine("Set next boot to Remote Platform Erase - succeeded\n");

   }

   catch (ManageabilityException e)

   {

     Console.WriteLine(e.Message);

     throw e;

   }

}

 

Example 2

//Sets next boot to ME unconfigure

 

// <param name="amt">AMT instance</param>

public static void SetNextBootToMEUnconfigure(IAMTInstance amt)

 

{

   try

   {

        // Clearing any boot option before the ME unconfigure flow

 

        amt.BootControl.ClearBootOptions();

        amt.BootControl.SetNextBoot(BootOptionsFlags.ConfigurationDataReset);

        Console.WriteLine("Set ME Unconfigure - succeeded\n");

   }

   catch (BootControlManageabilityException e)

   {

     Console.WriteLine("Set ME Unconfigure - failed");

     Console.WriteLine(e.Message);

     throw e;

   }

}

 

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