Supported Intel AMT Features > Remote Access > Using the Remote Access API
CollapseAll image

Using the Remote Access API

The HLAPI implements the Remote Access feature in the Remote Access API.

The available methods are described in IRemoteAccess.

Examples

These C# examples show how to use the Remote Access API (after connecting to the Intel AMT device):

Create an alert trigger

MPS primaryMps = newMPS("192.168.14.15", 16992, "admin", "P@ssw0rd", "yyyy");

                MPS secondaryMps = newMPS("aaa.intel.com", 16992, "admin", "P@ssw0rd", string.Empty);

                AlertTrigger alertTrigger = newAlertTrigger(0);

                amt.RemoteAccess.CreateTrigger(alertTrigger, primaryMps, secondaryMps);

 

Create a periodic trigger

PeriodicTrigger periodicTrigger = newPeriodicTrigger(15, new DailyInterval(5, 20));

                amt.RemoteAccess.CreateTrigger(periodicTrigger, "192.168.14.15");

 

note-icon Note:

A periodic daily trigger is not supported in Intel AMT 4.x releases.

 

Create a user initiated trigger

X509Certificate2 certificate = newX509Certificate2(@"..\..\LeafCert.p12", "q", X509KeyStorageFlags.Exportable);

                MPS mps = newMPS("mps.intel.com", 16992, certificate, "P@ssw0rd");

                UserInitiatedTrigger userInitiatedTrigger = newUserInitiatedTrigger(100, UserInitiatedPermission.EnableAll);

                amt.RemoteAccess.CreateTrigger(userInitiatedTrigger, mps);

 

Get details of all triggers

Collection<Trigger> triggersCollection = amt.RemoteAccess.GetAllTriggersDetails();

foreach (Trigger trigger in triggersCollection)

{

       Console.WriteLine("MPS Serveer Address: {0}", trigger.MPServersAddress);

       Console.WriteLine("Trigger Type: {0}", trigger.TriggerType);

       Console.WriteLine("Time Interval: {0}", trigger.TimeInterval.Minutes);

       Console.WriteLine("Tunnel Life Time: {0}", trigger.TunnelLifeTime);

       Console.WriteLine("User Initiated Permission: {0}\n", trigger.UserInitiatedPermission);

   }

 

 

See Also:

•   Connecting to an Intel AMT Device

 

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