SystemNodeProvider
SystemNodeProvider retrieves the system node ID, if possible
The system node ID, or host ID, is often the same as the MAC address for a network interface on the host.
- Full name:
\Ramsey\Uuid\Provider\Node\SystemNodeProvider
- This class implements:
\Ramsey\Uuid\Provider\NodeProviderInterface
Constants
Constant | Visibility | Type | Value |
---|---|---|---|
IFCONFIG_PATTERN |
private | '/^:[^:]/i' | |
SYSFS_PATTERN |
private | '/^([0-9a-f]{2}:){5}[0-9a-f]{2}$/i' |
Methods
getNode
Returns a node ID
Return Value:
The node ID as a hexadecimal string
getNodeFromSystem
Returns the system node, if it can find it
getIfconfig
Returns the network interface configuration for the system
getSysfs
Returns MAC address from the first system interface via the sysfs interface
Automatically generated on 2025-03-18