This is an example that toggles the power of a remote system using the intel amt remote api.
This uses the Ylianst/MeshCentral amt library to communicate with the remote system.
Provision AMT as described in rgl/intel-amt-notes.
NB To be able to do a Graceful Shutdown/Reboot you must have the Intel LMS (Local Manageability Service) running in the OS.
Install Node.js 20.10.
Install the required dependencies:
npm ci
Edit the intel-amt-toggle-power-example.js
file and modify the
settings
object with your remote system details.
Execute the example, it will toggle the power of the system:
node intel-amt-toggle-power-example.js
You can also execute Ylianst/MeshCommander to easily interact with the remote system:
npx meshcommander
Then access it at http://127.0.0.1:3000.