Skip to content

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.

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

public getNode(): \Ramsey\Uuid\Type\Hexadecimal

Return Value:

The node ID as a hexadecimal string


getNodeFromSystem

Returns the system node, if it can find it

protected getNodeFromSystem(): string

getIfconfig

Returns the network interface configuration for the system

protected getIfconfig(): string

getSysfs

Returns MAC address from the first system interface via the sysfs interface

protected getSysfs(): string


Automatically generated on 2025-03-18