Supported Intel AMT Features > Agent Presence > Using the Agent Presence API

Using the Agent Presence API

The HLAPI implements the Agent Presence feature in the Agent Presence API.

The available methods are described in these interfaces:

•   IAgentPresence interface

•   IAgentPresenceLocal interface

•   IAgentPresenceRemote interface

The Agent Presence API is based on the Agent object, an instance of the Agent class.

The HLAPI Agent object has several settable properties that define the agent’s behavior:

1.  ApplicationName – the name of the application that will be registered as an agent. This name is used to identify the agent and cannot be duplicated.

2.  StartupInterval – after creating an agent, Intel AMT expects the agent application to register itself within the startup interval. If the time passes without any registration, the agent state changes to expired.

3.  TimeoutInterval  – after the agent application registers itself to Intel AMT, it should send heartbeats that inform Intel AMT that the agent application is still active. TimeoutInterval is the maximum time that Intel AMT allows between heartbeats. If it does not receive the next heartbeat within this interval, Intel AMT will mark the agent as expired.

4.  In the HLAPI the AgentPresence.Local.StartPresence function performs both functions – the registering the agent to Intel AMT, and the sending the heartbeats.

5.  Actions – list of actions that will occur when the agent changes state.

Agents have several states described in the AgentState Enum:

1.  NotStarted - the agent was created by AgentPresence.Remote.CreateOrUpdateAgent but was never used.

2.  Stopped – the agent was registered AgentPresence.Local.StartPresence and was stopped by AgentPresence.Local.ShutdownPresence.

3.  Running – AgentPresence.Local.StartPresence registers the agent and sends heartbeats.

4.  Expired – the agent was registered by AgentPresence.Local.StartPresence, but the application that sends the heartbeats either fails, or it invokes AgentPresence.Local.ExpirePresence  that appears as if the application failed, and causes the agent state to change to Expired.

5.  Suspended – The Local Host is in an Sx state.

6.  Any – defined any state, agent cannot be in this state. Any used on AgentAction definition (for more details see AgentAction).

The Agent object contains actions that Intel AMT takes when the agent changes state.

The AgentAction object contains:

1.  OldState – the initial state associated with the change.

The state can be any one of the states in the AgentState enum; it is possible to combine several states by using an “or” operation to combine them; and it can be any state by using AgentState.Any.

2.  NewState – the state that the agent changes to.

The state can be any one of the states in the AgentState enum; it is possible to combine several states by using an “or” operation to combine them; and it can be any state by using AgentState.Any.

3.  EventOnTransition – boolean property that says whether to send an event when the agent state changes. (For more details see the WS-Event feature.)

4.  ActionSystemDefense – defines whether a system Defense policy should be activated when the agent state changes. (For more details see the SystemDefense feature in the SDK documentation and the HLAPI documentation.)

 Note:

It is possible to define only one System Defense policy that applies to all agents and to all Agent Presence state changes where AgentSystemDefense is defined.

 

5.  ActionEAC - Specifies whether agent status should be included in an EAC posture (see the EAC feature in SDK documentation).

 

See Also:

•   Connecting to an Intel AMT Device

 

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