The HLAPI implements the Hardware Assets feature in the Hardware Assets API.
Examples
These C# examples show how to use the Hardware Assets API (after connecting to the Intel AMT device).
Get data about the memory modules of the platform
MemoryModule[] MemoryModules = amt.HardwareAsset.MemoryModules;
Console.WriteLine("\nMemory Modules\n~~~~~~~~~~~~~~");
for (int i = 0; i < MemoryModules.Length; i++)
{
Console.WriteLine("--- Memory Module #{0} ---", i + 1);
Console.WriteLine("\tForm factor = {0}", MemoryModules[i].FormFactor);
Console.WriteLine("\tMemory type = {0}", MemoryModules[i].Type);
Console.WriteLine("\tSpeed = {0} nanoseconds", MemoryModules[i].Speed);
Console.WriteLine("\tManufacturer = {0}", MemoryModules[i].Manufacturer);
Console.WriteLine("\tSerialNumber = {0}", MemoryModules[i].SerialNumber);
Console.WriteLine("\tAssetTag = {0}", MemoryModules[i].AssetTag);
Console.WriteLine("\tPartNumber = {0}", MemoryModules[i].PartNumber);
Console.WriteLine("\tCapacity = {0} bytes", MemoryModules[i].Capacity);
Console.WriteLine("\tBankLabel = {0}", MemoryModules[i].BankLabel);
}
Get data about the Intel AMT device
AmtInformation AmtInfo = amt.HardwareAsset.AmtInfo;
if (!AmtInfo.InformationValid)
{
Console.WriteLine("\tNo AmtInfo information available");
return;
}
if (AmtInfo.AmtSupported)
Console.WriteLine("\tAMT Supported");
else
Console.WriteLine("\tAMT Not Supported");
if (AmtInfo.AmtEnabled)
Console.WriteLine("\tAMT Enabled");
else
Console.WriteLine("\tAMT Disabled");
if (AmtInfo.IDEREnabled)
Console.WriteLine("\tIDER Enabled");
else
Console.WriteLine("\tIDER Disabled");
if (AmtInfo.SOLEnabled)
Console.WriteLine("\tSOL Enabled");
else
Console.WriteLine("\tSOL Disabled");
if (AmtInfo.KVMEnabled)
Console.WriteLine("\tKVM Enabled ");
else
Console.WriteLine("\tKVM Disabled");
if (AmtInfo.NetworkEnabled)
Console.WriteLine("\tNetwork Enabled");
else
Console.WriteLine("\tNetwork Disabled");
if (AmtInfo.TbtDock_enabled)
Console.WriteLine("\tThunderbolt Dock Enabled");
else
Console.WriteLine("\tThunderbolt Dock Disabled");
if (AmtInfo.ForceUEFIHTTPSBoot_supported)
Console.WriteLine("\tForce UEFI HTTPS Boot Supported");
else
Console.WriteLine("\tForce UEFI HTTPS Boot Not Supported");
if (AmtInfo.ForceUEFIPBABoot_supported)
Console.WriteLine("\tForce UEFI PBA Boot Supported");
else
Console.WriteLine("\tForce UEFI PBA Boot Not Supported");
if (AmtInfo.ForceWinREBoot_supported)
Console.WriteLine("\tForce WinRE Boot Supported");
else
Console.WriteLine("\tForce WinRE Boot Not Supported");
if (AmtInfo.AMTSecureBootControl_supported)
Console.WriteLine("\tAMT Secure Boot Control Supported");
else
Console.WriteLine("\tAMT Secure Boot Control Not Supported");
if (AmtInfo.WifiProfileShare_supported)
Console.WriteLine("\tWifi Profile Share Supported);
else
Console.WriteLine("\tWifi Profile Share not supported");
Console.WriteLine("\tExtended Data = {0}", AmtInfo.ExtendedData);
See Also: |
Copyright © 2006-2022, Intel Corporation. All rights reserved. |