//---------------------------------------------------------------------------- // // Copyright (c) Intel Corporation, 2009-2011 All Rights Reserved. // // File: LogEventFunctionality.cs // // Contents: Example that shows how to use event log High Level API // // Notes: // //---------------------------------------------------------------------------- using System; using Intel.Manageability; using Intel.Manageability.Exceptions; using HLAPI.GeneralInfo; namespace DiscoverySample { public class DiscoveryFunctionality { public static void Discovery(IAMTInstance amt) { try { // Get SKU version. SKU skuVersion = amt.GeneralInfo.GetSkuVersion(); // Get host + domain name. string hostName = amt.GeneralInfo.GetFQDN(FQDN.Host); // Print the FQDN and the SKU version for the AMT. Console.WriteLine("The supported features in AMT platform for host {1} with {0} SKU:", skuVersion, hostName); // Print AMT's supported features list. foreach (AMTFeatures supportedFeature in amt.SupportedFeatures) { Console.WriteLine(" * {0}", supportedFeature); } } catch (GeneralInfoException ex) { Console.WriteLine(ex.Message); } } public static void CheckForSupportedFeature(IAMTInstance amt) { try { // If KVM feature is supported in this AMT, get KVM interface state. if (true == amt.SupportedFeatures.Contains(AMTFeatures.KVM)) { bool intefaceState = amt.KVMSetup.GetInterfaceState(); } } catch (ManageabilityException ex) { Console.WriteLine(ex.Message); } } } }