Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Host.php

function Host::getBsdId

File

vendor/open-telemetry/sdk/Resource/Detectors/Host.php, line 64

Class

Host

Namespace

OpenTelemetry\SDK\Resource\Detectors

Code

private function getBsdId() : ?string {
    $file = $this->dir . self::PATH_ETC_HOSTID;
    if (is_file($file) && is_readable($file)) {
        return trim(file_get_contents($file));
    }
    $out = exec('which kenv && kenv -q smbios.system.uuid');
    if ($out) {
        return $out;
    }
    return null;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal