Using the High Level API > Connecting to an Intel AMT Device
CollapseAll image

Connecting to an Intel AMT Device

The first step when using the HLAPI in an application is to connect to the Intel AMT devices. This is done by creating an object for each Intel AMT device. The instance is created using the AMTInstanceFactory.Create method and the IAMTInstance interface. For example:

Current method

ConnectionInfoEX connection =

                   new  ConnectionInfoEX(host, username, password, secure,

                   certificate, auth, proxy, redirectionProxy,

                   tcpForwarder);

 

IAMTInstance amt = AMTInstanceFactory.CreateEX(connection);

 

Deprecated method

ConnectionInfo connection =

                   new  ConnectionInfo(host, username, password, secure,

                   certificate, auth, proxy, socksProxy);

 

IAMTInstance amt = AMTInstanceFactory.Create(connection);

 

The created object (in this example “amt”), is the “root” class that represents the Intel AMT device and gives access to the Intel AMT functionality. To execute a method on the device, simply provide the instance, the required feature, and the method, as shown in this example:

amt.Power.PowerDown();

 

Certificate Validation Callback

This callback indicates whether to notify the application when certificate errors occur during the WSMan connection. If the application wishes to be notified when a certificate error is detected, the application will be redirected to a function defined in this property which will get the problematic certificate and the specific error as parameters of the function. The application will be able to decide whether to ignore the specific error or not.

ConnectionInfoEX Parameters

This table describes the ConnectionInfoEX parameters:

Parameter

Type

Description

host

string

The IP or FQDN of the host platform of the Intel AMT device

userName

string

The name of a user in the Access Control List (ACL) of the Intel AMT device. This user must have the permissions required to do the task. A user with the “PT_Administration Realm” has permission to do all tasks (for example, the default “admin” user).

password

string

The password of the user defined in the userName parameter

secure

bool

Defines if the connection must use Transport Layer Security (TLS). If this value is true, you must supply the FQDN in the host parameter (not the IP).

certificate

string

If using mutual TLS, you must supply the root certificate

auth

enum

Defines the type of user authentication to use to authenticate the user defined in userName. Valid values:

•     ConnectionInfoEX.AuthMethod.Digest

•     ConnectionInfoEX.AuthMethod.Kerberos

proxy

IWebProxy

Indicates whether to use a SOCKS proxy (used in the Remote Access feature).

Note: In this version of the HLAPI, this feature has not been implemented. Valid value = null.

redirectionProxy

SocksProxy

Indicates whether to use proxy in redirection connection

socksProxy

SocksProxy

Indicates whether to use proxy in the connection (used in the Remote Access feature).

Note: In this version of the HLAPI, this feature has not been implemented. Valid value = null.

tcpForwarder

Forwarder

Indicates whether to override the network host and ports used to perform connections.

 

ConnectionInfo Parameters (Deprecated)

This table describes the ConnectionInfo parameters:

Parameter

Type

Description

host

string

The IP or FQDN of the host platform of the Intel AMT device

userName

string

The name of a user in the Access Control List (ACL) of the Intel AMT device. This user must have the permissions required to do the task. A user with the “PT_Administration Realm” has permission to do all tasks (for example, the default “admin” user).

password

string

The password of the user defined in the userName parameter

secure

bool

Defines if the connection must use Transport Layer Security (TLS). If this value is true, you must supply the FQDN in the host parameter (not the IP).

certificate

string

If using mutual TLS, you must supply the root certificate

auth

enum

Defines the type of user authentication to use to authenticate the user defined in userName. Valid values:

•     ConnectionInfo.AuthMethod.Digest

•     ConnectionInfo.AuthMethod.Kerberos

proxy

IWebProxy

Indicates whether to use a SOCKS proxy (used in the Remote Access feature).

Note: In this version of the HLAPI, this feature has not been implemented. Valid value = null.

socksProxy

SocksProxy

Indicates whether to use proxy in the connection (used in the Remote Access feature).

Note: In this version of the HLAPI, this feature has not been implemented. Valid value = null.

 

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