Documentation ¶
Overview ¶
Package ethernetport facilitates communication with Intel® AMT devices to configure all Intel® AMT network specific settings (IP, DHCP, VLAN).
Intel® AMT devices support a single wired and a single wireless network adapter. If an Intel® AMT device has multiple wired or wireless network adapters only one of each will be connected to AMT.
Index ¶
- Constants
- type Body
- type ConsoleTcpMaxRetransmissions
- type LinkControl
- type LinkPolicy
- type LinkPreference
- type PhysicalConnectionType
- type PhysicalNicMedium
- type PullResponse
- type Response
- type Selector
- type Settings
- func (s Settings) Enumerate() (response Response, err error)
- func (s Settings) Get(instanceId int) (response Response, err error)
- func (s Settings) Pull(enumerationContext string) (response Response, err error)
- func (s Settings) Put(ethernetPortSettings SettingsRequest, instanceId int) (response Response, err error)
- type SettingsRequest
- type SettingsResponse
- type WLANLinkProtectionLevel
Constants ¶
const (
AMT_EthernetPortSettings string = "AMT_EthernetPortSettings"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Body ¶
type Body struct { XMLName xml.Name `xml:"Body"` GetAndPutResponse SettingsResponse EnumerateResponse common.EnumerateResponse PullResponse PullResponse }
OUTPUTS Response Types
type ConsoleTcpMaxRetransmissions ¶
type ConsoleTcpMaxRetransmissions int
Indicates the number of retransmissions host TCP SW tries ifno ack is accepted
MinValue=5
MaxValue=7
const ( ConsoleTcpMaxRetransmissions5 ConsoleTcpMaxRetransmissions = iota + 5 ConsoleTcpMaxRetransmissions6 ConsoleTcpMaxRetransmissions7 )
type LinkControl ¶
type LinkControl int
Determines whether the link is owned by ME or host. Additional Notes: This property is read-only.
ValueMap={1, 2, 3..}
Values={ME, HOST, Reserved}
const ( LinkControlME LinkControl = iota + 1 LinkControlHOST )
type LinkPolicy ¶
type LinkPolicy int
Enumeration values for link policy restrictions for better power consumption. If Intel® AMT will not be able to determine the exact power state, the more restrictive closest configuration applies.
ValueMap={1, 14, 16, 224}
Values={available on S0 AC, available on Sx AC, available on S0 DC, available on Sx DC}
const ( S0AC LinkPolicy = 1 // available on S0 AC SxAC LinkPolicy = 14 // available on Sx AC S0DC LinkPolicy = 16 // available on S0 DC SxDC LinkPolicy = 224 // available on Sx DC )
type LinkPreference ¶
type LinkPreference int
Determines whether the link is preferred to be owned by ME or host
ValueMap={1, 2, 3..}
Values={ME, HOST, Reserved}
const ( LinkPreferenceME LinkPreference = iota + 1 LinkPreferenceHOST )
type PhysicalConnectionType ¶
type PhysicalConnectionType int
Indicates the physical connection type of this network interface. Note: Applicable in Intel AMT 15.0 and later.
ValueMap={"0", "1", "2", "3", "4.."}
Values={"Integrated LAN NIC", "Discrete LAN NIC", "LAN via a Thunderbolt dock", "Wireless LAN", "Reserved"}
const ( IntegratedLANNIC PhysicalConnectionType = iota DiscreteLANNIC LANviaThunderboldDock WirelessLAN )
type PhysicalNicMedium ¶
type PhysicalNicMedium int
Indicates which medium is currently used by Intel® AMT to communicate with the NIC. Note: Applicable in Intel AMT 15.0 and later.
ValueMap={"0", "1", "2.."}
Values={"SMBUS", "PCIe", "Reserved"}
const ( SMBUS PhysicalNicMedium = iota PCIe )
type PullResponse ¶
type PullResponse struct { XMLName xml.Name `xml:"PullResponse"` EthernetPortItems []SettingsResponse `xml:"Items>AMT_EthernetPortSettings"` }
OUTPUTS Response Types
type Response ¶
type Response struct { *client.Message XMLName xml.Name `xml:"Envelope"` Header message.Header `xml:"Header"` Body Body `xml:"Body"` }
OUTPUTS Response Types
type Settings ¶
type Settings struct {
// contains filtered or unexported fields
}
func NewEthernetPortSettingsWithClient ¶
func NewEthernetPortSettingsWithClient(wsmanMessageCreator *message.WSManMessageCreator, client client.WSMan) Settings
NewEthernetPortSettingsWithClient instantiates a new Ethernet Port Settings service
func (Settings) Enumerate ¶
Enumerate returns an enumeration context which is used in a subsequent Pull call
type SettingsRequest ¶
type SettingsRequest struct { XMLName xml.Name `xml:"h:AMT_EthernetPortSettings"` H string `xml:"xmlns:h,attr"` ElementName string `xml:"h:ElementName,omitempty"` // The user-friendly name for this instance of SettingData. In addition, the user-friendly name can be used as an index property for a search or query. (Note: The name does not have to be unique within a namespace.) InstanceID string `xml:"h:InstanceID,omitempty"` // Within the scope of the instantiating Namespace, InstanceID opaquely and uniquely identifies an instance of this class. VLANTag int `xml:"h:VLANTag,omitempty"` // Indicates whether VLAN is in use and what is the VLAN tag when used. MACAddress string `xml:"h:MACAddress,omitempty"` // The MAC address used by Intel® AMT in a string format. For Example: 01-02-3f-b0-99-99. (This property can only be read and can't be changed.) LinkIsUp bool `xml:"h:LinkIsUp"` // Indicates whether the network link is up LinkPolicy []LinkPolicy `xml:"h:LinkPolicy,omitempty"` // Enumeration values for link policy restrictions for better power consumption. If Intel® AMT will not be able to determine the exact power state, the more restrictive closest configuration applies. LinkPreference LinkPreference `xml:"h:LinkPreference,omitempty"` // Determines whether the link is preferred to be owned by ME or host LinkControl LinkControl `xml:"h:LinkControl,omitempty"` // Determines whether the link is owned by ME or host. Additional Notes: This property is read-only. IpSyncEnabled bool `xml:"h:IpSyncEnabled"` // Indicates whether the IP synchronization between host and ME is enabled. DHCPEnabled bool `xml:"h:DHCPEnabled"` // Indicates whether DHCP is in use. Additional Notes: 'DHCPEnabled' is a required field for the Put command. IPAddress string `xml:"h:IPAddress,omitempty"` // String representation of IP address. Get operation - reports the acquired IP address (whether in static or DHCP mode). Put operation - sets the IP address (in static mode only). SubnetMask string `xml:"h:SubnetMask,omitempty"` // Subnet mask in a string format.For example: 255.255.0.0 DefaultGateway string `xml:"h:DefaultGateway,omitempty"` // Default Gateway in a string format. For example: 10.12.232.1 PrimaryDNS string `xml:"h:PrimaryDNS,omitempty"` // Primary DNS in a string format. For example: 10.12.232.1 SecondaryDNS string `xml:"h:SecondaryDNS,omitempty"` // Secondary DNS in a string format. For example: 10.12.232.1 ConsoleTcpMaxRetransmissions ConsoleTcpMaxRetransmissions `xml:"h:ConsoleTcpMaxRetransmissions,omitempty"` // Indicates the number of retransmissions host TCP SW tries ifno ack is accepted WLANLinkProtectionLevel WLANLinkProtectionLevel `xml:"h:WLANLinkProtectionLevel,omitempty"` // Defines the level of the link protection feature activation. Read only property. PhysicalConnectionType PhysicalConnectionType `xml:"h:PhysicalConnectionType,omitempty"` // Indicates the physical connection type of this network interface. Note: Applicable in Intel AMT 15.0 and later. PhysicalNicMedium PhysicalNicMedium `xml:"h:PhysicalNicMedium,omitempty"` // Indicates which medium is currently used by Intel® AMT to communicate with the NIC. Note: Applicable in Intel AMT 15.0 and later. }
INPUTS Request Types
type SettingsResponse ¶
type SettingsResponse struct { XMLName xml.Name `xml:"AMT_EthernetPortSettings"` ElementName string `xml:"ElementName,omitempty"` // The user-friendly name for this instance of SettingData. In addition, the user-friendly name can be used as an index property for a search or query. (Note: The name does not have to be unique within a namespace.) InstanceID string `xml:"InstanceID,omitempty"` // Within the scope of the instantiating Namespace, InstanceID opaquely and uniquely identifies an instance of this class. VLANTag int `xml:"VLANTag,omitempty"` // Indicates whether VLAN is in use and what is the VLAN tag when used. MACAddress string `xml:"MACAddress,omitempty"` // The MAC address used by Intel® AMT in a string format. For Example: 01-02-3f-b0-99-99. (This property can only be read and can't be changed.) LinkIsUp bool `xml:"LinkIsUp,omitempty"` // Indicates whether the network link is up LinkPolicy []LinkPolicy `xml:"LinkPolicy,omitempty"` // Enumeration values for link policy restrictions for better power consumption. If Intel® AMT will not be able to determine the exact power state, the more restrictive closest configuration applies. LinkPreference LinkPreference `xml:"LinkPreference,omitempty"` // Determines whether the link is preferred to be owned by ME or host LinkControl LinkControl `xml:"LinkControl,omitempty"` // Determines whether the link is owned by ME or host. Additional Notes: This property is read-only. IpSyncEnabled bool `xml:"IpSyncEnabled,omitempty"` // Indicates whether the IP synchronization between host and ME is enabled. DHCPEnabled bool `xml:"DHCPEnabled,omitempty"` // Indicates whether DHCP is in use. Additional Notes: 'DHCPEnabled' is a required field for the Put command. IPAddress string `xml:"IPAddress,omitempty"` // String representation of IP address. Get operation - reports the acquired IP address (whether in static or DHCP mode). Put operation - sets the IP address (in static mode only). SubnetMask string `xml:"SubnetMask,omitempty"` // Subnet mask in a string format.For example: 255.255.0.0 DefaultGateway string `xml:"DefaultGateway,omitempty"` // Default Gateway in a string format. For example: 10.12.232.1 PrimaryDNS string `xml:"PrimaryDNS,omitempty"` // Primary DNS in a string format. For example: 10.12.232.1 SecondaryDNS string `xml:"SecondaryDNS,omitempty"` // Secondary DNS in a string format. For example: 10.12.232.1 ConsoleTcpMaxRetransmissions ConsoleTcpMaxRetransmissions `xml:"ConsoleTcpMaxRetransmissions,omitempty"` // Indicates the number of retransmissions host TCP SW tries ifno ack is accepted WLANLinkProtectionLevel WLANLinkProtectionLevel `xml:"WLANLinkProtectionLevel,omitempty"` // Defines the level of the link protection feature activation. Read only property. PhysicalConnectionType PhysicalConnectionType `xml:"PhysicalConnectionType,omitempty"` // Indicates the physical connection type of this network interface. Note: Applicable in Intel AMT 15.0 and later. PhysicalNicMedium PhysicalNicMedium `xml:"PhysicalNicMedium,omitempty"` // Indicates which medium is currently used by Intel® AMT to communicate with the NIC. Note: Applicable in Intel AMT 15.0 and later. }
OUTPUTS Response Types
type WLANLinkProtectionLevel ¶
type WLANLinkProtectionLevel int
Defines the level of the link protection feature activation. Read only property.
ValueMap={0, 1, 2, 3, 4..}
Values={OVERRIDE, NONE, PASSIVE, HIGH, RESERVED}
const ( OVERRIDE WLANLinkProtectionLevel = iota NONE PASSIVE HIGH )