SystemNodeProvider
in package
implements
NodeProviderInterface
SystemNodeProvider provides functionality to get the system node ID (MAC address) using external system calls
Interfaces, Classes and Traits
- NodeProviderInterface
- NodeProviderInterface provides functionality to get the node ID (or host ID in the form of the system's MAC address) from a specific type of node provider
Table of Contents
- getNode() : string|false
- Returns the system node ID
- getIfconfig() : string
- Returns the network interface configuration for the system
- getSysfs() : string|bool
- Returns mac address from the first system interface via the sysfs interface
Methods
getNode()
Returns the system node ID
public
getNode() : string|false
Return values
string|false —System node ID as a hexadecimal string, or false if it is not found
getIfconfig()
Returns the network interface configuration for the system
protected
getIfconfig() : string
Tags
Return values
string —getSysfs()
Returns mac address from the first system interface via the sysfs interface
protected
getSysfs() : string|bool