# Cross-Network Integration (Open AMT)

The Open Active Management Technology Cloud Toolkit (**Open AMT Cloud Toolkit**) is an open-source initiative that provides modular microservices and libraries for the incorporation of Intel® Active Management Technology (Intel® AMT) into existing systems. This toolkit simplifies the adoption, integration, and customization of Out-of-Band Management (OOB Management) solutions for Intel vPro® Platforms, making it more accessible for IT departments and independent software vendors (ISVs) to enhance their OOB Management capabilities.

The DeviceOn was closely integrated with Intel AMT, which a limitation by not supporting cross network environments, especially when servers were deployed in public clouds. This challenge is addressed through the integration with Open AMT. After configuring an AMT device, it initiates an outbound connection to the Open AMT server. DeviceOn then facilitates the communication with Open AMT, enabling comprehensive out-of-band (OOB) device management across different networks.

## Environment Checking <a href="#enviroment-checking" id="enviroment-checking"></a>

Before working the SOP, you must meet the following prerequisites:

* Completed the setup of [Open AMT portal](https://open-amt-cloud-toolkit.github.io/docs/2.6/GetStarted/setup/) and check it is available.

### Hardware <a href="#hardware" id="hardware"></a>

* A development system
* At least one Intel vPro® Platform

### Development System Software <a href="#development-system-software" id="development-system-software"></a>

* [git\*](https://git-scm.com/downloads)
* [Go\* Programming Language](https://go.dev/)

## Configuring AMT Devices with Open AMT and DeviceOn Server

This guide provides step-by-step instructions on how to configure your Active Management Technology (AMT) devices by integrating them with Open AMT and subsequently, with the DeviceOn server. We'll be covering the following key areas:

<mark style="color:blue;">**`Retrieving the GUID of Your AMT Devices`**</mark>

Understanding how to obtain the Global Unique Identifier (GUID) for each of your AMT-enabled devices is crucial. This identifier is essential for the configuration and management process in the Open AMT and DeviceOn platforms.

<mark style="color:blue;">**`Configuring Your Devices on the DeviceOn Server`**</mark>

Once you have the GUID, the next step involves setting up your devices within the DeviceOn server’s portal. This involves registering your devices, applying necessary configurations, and ensuring they are ready for remote management and operations.

By following this guide, you'll be equipped to efficiently manage your AMT devices using both Open AMT and DeviceOn server capabilities.

### Retrieving the GUID of Your AMT Devices

In the session, you will learn how to connect your AMT devices to you own Open AMT server.

1. Login to Web UI of **Open AMT**

* Open any modern web browser and navigate to the following link.\
  `https://<Development-IP-Address>`
* Log in to the web portal with the login credentials set for the environment variables `MPS_WEB_ADMIN_USER` and `MPS_WEB_ADMIN_PASSWORD` in the `.env` file.
* If anything goes well, the home page is shown below picture.

  <figure><img src="https://i.imgur.com/IP3pqxt.png" alt=""><figcaption></figcaption></figure>
* Select the **CIRA Configs** tab from the left-hand menu.
* In the top-right corner, click **Add New**.

  <figure><img src="https://i.imgur.com/XOnYwsx.png" alt=""><figcaption></figcaption></figure>
* Specify a **Config Name** of your choice.
* Select **IPv4**.
* For **MPS Address**, provide your development system’s IP Address.
* **Cert Common Name (CN=)** should auto-populate. If not, provide your development system’s IP Address.
* Leave **Port** as the default, 4433.
* Leave the **Username** as admin or choose your own.
* Click **Save**.<br>

  <figure><img src="/files/jlcKhmQvIm1ZKLk7kr6Y" alt=""><figcaption></figcaption></figure>

2. Create a Profile with CCM

* Select the **Profiles** tab from the menu on the left.
* Under the **Profiles** tab, click **New** in the top-right corner to create a profile.

  <figure><img src="https://i.imgur.com/uFVjTta.png" alt=""><figcaption></figcaption></figure>
* Specify a **Profile Name** of your choice.
* Under **Activation Mode**, select **Client Control Mode** from the dropdown menu.
* Enable desired redirection features for the profile under **AMT Features - Enable/Disable features**.
* Provide or generate a strong **AMT Password**. AMT will verify this password when receiving a command from a MPS server. This password is also required for device deactivation.
* The **MEBX Password** field is disabled. The password for Intel® Manageability Engine BIOS Extensions (Intel® MEBX) cannot be set when activating in CCM due to the lower level of trust when compared to ACM.
* Leave DHCP as the default for **Network Configuration**.
* Optionally, add **Tags** to help in organizing and querying devices as your list of managed devices grow.
* Select **CIRA(Cloud)** for Connection Configuration.
* Select the name of the **CIRA Configuration** you created previously from the drop-down menu.
* Click **Save**.

  <figure><img src="/files/R34M53213sGQnQlkVr9y" alt=""><figcaption></figcaption></figure>

3. Build the RPC

* Only clone the `rpc-go` repository:\
  `git clone https://github.com/open-amt-cloud-toolkit/rpc-go --branch v2.5.0`
* Change to the `rpc-go` directory of the `rpc-go` repository.
* Open a Powershell/Command Prompt as Administrator (Windows):\
  `go build -o rpc.exe ./cmd/main.go`
* Confirm a successful build:\
  `.\rpc version`

  <figure><img src="https://i.imgur.com/P50qVkv.png" alt=""><figcaption></figcaption></figure>

4. Unconfigure ME and reset the password of ME

* Unconfigure ME and reset the password of ME
* Restart your AMT device and enter BIOS.
* Find **AMT Configuration** and click **Enter**.<br>

  <figure><img src="https://i.imgur.com/KREfYcZ.png" alt=""><figcaption></figcaption></figure>
* Enable the item named **Unconfigure ME**.

  <figure><img src="https://i.imgur.com/YzqOp0e.png" alt=""><figcaption></figcaption></figure>
* Save the changes and reset the password of ME.<br>

  <figure><img src="https://i.imgur.com/JC9WTLW.png" alt=""><figcaption></figcaption></figure>

  <figure><img src="https://i.imgur.com/s5JC8Xa.png" alt=""><figcaption></figcaption></figure>

5. Run RPC to Activate and Connect the AMT Device

* Check the **Control Mode** if it is **pre-provisioning state**:\
  `.\rpc amtinfo`<br>

  <figure><img src="https://i.imgur.com/g6jTNeb.png" alt=""><figcaption></figcaption></figure>
* Select the **Devices** tab from the menu on the left.
* Under the **Devices** tab, click **New** in the top-right corner to create a Device.

  <figure><img src="https://i.imgur.com/ph6rJ8h.png" alt=""><figcaption></figcaption></figure>
* Under **Choose Profile**, choose the profile you created from the dropdown menu.

  <figure><img src="https://i.imgur.com/6ts01UJ.png" alt=""><figcaption></figcaption></figure>
* Copy and run the following cmd:

```
.\rpc.exe activate -profile CCM -u wss://myopenamt.southeastasia.cloudapp.azure.com/activate -n
```

<figure><img src="https://i.imgur.com/WfBggI4.png" alt=""><figcaption></figcaption></figure>

* If anything goes well, your AMT device should appear under the **Devices** tab. You can get the **GUID** from the page.

  <figure><img src="https://i.imgur.com/T5Ud61y.png" alt=""><figcaption></figcaption></figure>

### Configuring Your Devices on the DeviceOn Server

* Login to Web UI of **DeviceOn Server**
* Select the **Settings -> System** tab from the menu on the left.
* Under the **Settings → System** tab, select **System Settings** and choose **Open AMT** from the dropdown menu in the bottom-right panel.

<figure><img src="/files/uoyacIRhAfmcQHBO0QHC" alt=""><figcaption></figcaption></figure>

* Enable the feature of **Open AMT** and specify the **URL**, **username** and **password** of **Open AMT** server.
* Click **Save**.<br>

  <figure><img src="/files/r5dqqehvgKQPMBZZCec9" alt=""><figcaption></figcaption></figure>
* Select the **Device→List** tab from the menu on the left.
* Select the **Device→List** tab, click **Edit Device** from icon named **MORE** in the device which you want to map AMT device.

  <figure><img src="https://i.imgur.com/9EmSKsE.png" alt=""><figcaption></figcaption></figure>
* Specify the **GUID** of your AMT device.

<figure><img src="/files/OjQgC3Mji6NXdl4J0GL2" alt=""><figcaption></figcaption></figure>

* Click **Confirm**.
* If anything goes well, the icon of iAMT should enable. Click it, you can get the status and control the AMT device.

<figure><img src="/files/se0ATU7X8te0hsV95fXR" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/rIBaAIquxr69Szh3rUqy" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://deviceon.gitbook.io/docs/out-of-band/intel-amt/cross-network-integration-open-amt.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
