Class Sysfs

java.lang.Object
oshi.driver.linux.Sysfs

@ThreadSafe public final class Sysfs extends Object
Utility to read info from sysfs
  • Method Details

    • querySystemVendor

      public static String querySystemVendor()
      Query the vendor from sysfs
      Returns:
      The vendor if available, null otherwise
    • queryProductModel

      public static String queryProductModel()
      Query the model from sysfs
      Returns:
      The model if available, null otherwise
    • queryProductSerial

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

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

      public static String queryBoardVendor()
      Query the board vendor from sysfs
      Returns:
      The board vendor if available, null otherwise
    • queryBoardModel

      public static String queryBoardModel()
      Query the board model from sysfs
      Returns:
      The board model if available, null otherwise
    • queryBoardVersion

      public static String queryBoardVersion()
      Query the board version from sysfs
      Returns:
      The board version if available, null otherwise
    • queryBoardSerial

      public static String queryBoardSerial()
      Query the board serial number from sysfs
      Returns:
      The board serial number if available, null otherwise
    • queryBiosVendor

      public static String queryBiosVendor()
      Query the bios vendor from sysfs
      Returns:
      The bios vendor if available, null otherwise
    • queryBiosDescription

      public static String queryBiosDescription()
      Query the bios description from sysfs
      Returns:
      The bios description if available, null otherwise
    • queryBiosVersion

      public static String queryBiosVersion(String biosRevision)
      Query the bios version from sysfs
      Parameters:
      biosRevision - A revision string to append
      Returns:
      The bios version if available, null otherwise
    • queryBiosReleaseDate

      public static String queryBiosReleaseDate()
      Query the bios release date from sysfs
      Returns:
      The bios release date if available, null otherwise