Tools for interacting with Intel's AMT
Project description
===============================
Python AMT Tools
===============================
.. image:: https://img.shields.io/travis/sdague/amt.svg
:target: https://travis-ci.org/sdague/amt
.. image:: https://img.shields.io/pypi/v/amt.svg
:target: https://pypi-hypernode.com/pypi/amt
Tools for interacting with Intel's Active Management Technology
Background
----------
AMT is a light weight hardware control interface put into some Intel
based laptops and desktops as a tool for corporate fleets to manage
hardware. It provides the basics of power control, as well as remote
console via VNC. It functions by having a dedicated service processor
sniff traffic off the network card on specific ports before it gets to
the operating system. Some versions of Intel NUC boxes have AMT, which
make them ideal candidates for building a reasonable cluster in your
basement.
There was once a tool called ``amttool`` which let you interact with
these systems from Linux. This used the SOAP interface to AMT. That
was removed in v9 of the firmware, which means it no longer works with
modern AMT in the field.
The interface that remains is CIM, a standard from the DMTF that
builds XML models for all the things. There exist very few examples
for how to make this work on the internet, with one exception: the
OpenStack Baremetal (Ironic) service. It has native support for AMT
hardware control.
This project is derivative work from Ironic. The heavy lifting of
understanding all the CIM magic incantations, and oh the magic they
are, comes from that code. Refactored for a more minimal usage.
Hardware that includes AMT
--------------------------
AMT is branded as vPro in products by Intel. It is found in many Intel
based laptops. There are also specific models of Intel NUC that
include vPro.
* `Intel NUC KIT Core Processor BLKNUC5I5MYHE <http://amzn.to/1OZshhF>`_
This code gets tested with ``5i5MYHE`` NUCs as well as an older NUC
that I have laying around.
Configuring AMT
---------------
AMT must be enabled in the BIOS before it can be used externally. This
is done by pressing ``Ctrl-P`` during initial boot. Initial user /
pass is ``admin`` / ``admin``. You will be required to create a new
admin password that has at least 1: number, capital letter, and non
alphanumeric symbol.
One you do that, reboot and you are on your way.
amtctrl
-------
The ``amt`` library installs a binary ``amtctrl`` for working with AMT
enabled machines.
machine enrollment
~~~~~~~~~~~~~~~~~~
To simplify the control commands ``amtcrtl`` has a machine
registry. New machines are added via:
amtctrl add <name> <address> <amtpassword>
You can see a list of all machines with:
amtctrl list
And remove an existing machine with:
amtctrl rm <name>
controlling machines
~~~~~~~~~~~~~~~~~~~~
Once machines are controlled you have a number of options exposed:
amtctrl <name> <command>
Command is one of:
* on - power on the machine
* off - power off the machine
* reboot - power cycle the machine
* pxeboot - set the machine to pxeboot the next time it reboots, and
reboot the machine. This is extremely useful if you have install
automation on pxeboot.
* status - return power status as an ugly CIM blob (TODO: make this better)
Futures
-------
* More extensive in tree testing (there currently is very little of
this)
* Retry http requests when they fail. AMT processors randomly drop
some connections, built in limited retry should be done.
* Fault handling. The current code is *very* optimistic. Hence, the
0.x nature.
* Remove console control. There are AMT commands to expose a VNC
remote console on the box. Want to support those.
History
-------
0.5.0 (2016-10-20)
------------------
* python 2 fixes for python 3 issues (thanks Chen Rotem Levy)
0.4.0 (2016-10-10)
------------------
* python 3 fixes and testing (thanks Rixillo)
0.3.0 (2015-10-08)
------------------
* python 3 print fix (thanks Mike Nawrocki)
* add set_next_boot and change_boot_order_request (thanks John L. Villalovos)
0.1.0 (2015-08-09)
---------------------
* First release on PyPI.
Python AMT Tools
===============================
.. image:: https://img.shields.io/travis/sdague/amt.svg
:target: https://travis-ci.org/sdague/amt
.. image:: https://img.shields.io/pypi/v/amt.svg
:target: https://pypi-hypernode.com/pypi/amt
Tools for interacting with Intel's Active Management Technology
Background
----------
AMT is a light weight hardware control interface put into some Intel
based laptops and desktops as a tool for corporate fleets to manage
hardware. It provides the basics of power control, as well as remote
console via VNC. It functions by having a dedicated service processor
sniff traffic off the network card on specific ports before it gets to
the operating system. Some versions of Intel NUC boxes have AMT, which
make them ideal candidates for building a reasonable cluster in your
basement.
There was once a tool called ``amttool`` which let you interact with
these systems from Linux. This used the SOAP interface to AMT. That
was removed in v9 of the firmware, which means it no longer works with
modern AMT in the field.
The interface that remains is CIM, a standard from the DMTF that
builds XML models for all the things. There exist very few examples
for how to make this work on the internet, with one exception: the
OpenStack Baremetal (Ironic) service. It has native support for AMT
hardware control.
This project is derivative work from Ironic. The heavy lifting of
understanding all the CIM magic incantations, and oh the magic they
are, comes from that code. Refactored for a more minimal usage.
Hardware that includes AMT
--------------------------
AMT is branded as vPro in products by Intel. It is found in many Intel
based laptops. There are also specific models of Intel NUC that
include vPro.
* `Intel NUC KIT Core Processor BLKNUC5I5MYHE <http://amzn.to/1OZshhF>`_
This code gets tested with ``5i5MYHE`` NUCs as well as an older NUC
that I have laying around.
Configuring AMT
---------------
AMT must be enabled in the BIOS before it can be used externally. This
is done by pressing ``Ctrl-P`` during initial boot. Initial user /
pass is ``admin`` / ``admin``. You will be required to create a new
admin password that has at least 1: number, capital letter, and non
alphanumeric symbol.
One you do that, reboot and you are on your way.
amtctrl
-------
The ``amt`` library installs a binary ``amtctrl`` for working with AMT
enabled machines.
machine enrollment
~~~~~~~~~~~~~~~~~~
To simplify the control commands ``amtcrtl`` has a machine
registry. New machines are added via:
amtctrl add <name> <address> <amtpassword>
You can see a list of all machines with:
amtctrl list
And remove an existing machine with:
amtctrl rm <name>
controlling machines
~~~~~~~~~~~~~~~~~~~~
Once machines are controlled you have a number of options exposed:
amtctrl <name> <command>
Command is one of:
* on - power on the machine
* off - power off the machine
* reboot - power cycle the machine
* pxeboot - set the machine to pxeboot the next time it reboots, and
reboot the machine. This is extremely useful if you have install
automation on pxeboot.
* status - return power status as an ugly CIM blob (TODO: make this better)
Futures
-------
* More extensive in tree testing (there currently is very little of
this)
* Retry http requests when they fail. AMT processors randomly drop
some connections, built in limited retry should be done.
* Fault handling. The current code is *very* optimistic. Hence, the
0.x nature.
* Remove console control. There are AMT commands to expose a VNC
remote console on the box. Want to support those.
History
-------
0.5.0 (2016-10-20)
------------------
* python 2 fixes for python 3 issues (thanks Chen Rotem Levy)
0.4.0 (2016-10-10)
------------------
* python 3 fixes and testing (thanks Rixillo)
0.3.0 (2015-10-08)
------------------
* python 3 print fix (thanks Mike Nawrocki)
* add set_next_boot and change_boot_order_request (thanks John L. Villalovos)
0.1.0 (2015-08-09)
---------------------
* First release on PyPI.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
amt-0.5.0.tar.gz
(24.0 kB
view details)
File details
Details for the file amt-0.5.0.tar.gz
.
File metadata
- Download URL: amt-0.5.0.tar.gz
- Upload date:
- Size: 24.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e948a7d22bc26faf9e6d696ef83b0888e45a71d8245e1ed28d595552c3dd691 |
|
MD5 | 355fe94dd2ea336ecb95a32f081d36fa |
|
BLAKE2b-256 | 4c6ef1111b6ee37c6937347f4e8f372dd5ce3331cffc331b58a9ff67acb0bdb9 |