Class Dmidecode

java.lang.Object
oshi.driver.linux.Dmidecode

@ThreadSafe public final class Dmidecode extends Object
Utility to read info from dmidecode
  • Method Details

    • querySerialNumber

      public static String querySerialNumber()
      Query the serial number from dmidecode
      Returns:
      The serial number if available, null otherwise
    • queryUUID

      public static String queryUUID()
      Query the UUID from dmidecode
      Returns:
      The UUID if available, null otherwise
    • queryBiosNameRev

      public static Pair<String,String> queryBiosNameRev()
      Query the name and revision from dmidecode
      Returns:
      The a pair containing the name and revision if available, null values in the pair otherwise