Class Lscfg

java.lang.Object
oshi.driver.unix.aix.Lscfg

@ThreadSafe public final class Lscfg extends Object
Utility to query lscfg
  • Method Details

    • queryAllDevices

      public static List<String> queryAllDevices()
      Query lscfg -vp to get all hardware devices
      Returns:
      A list of the output
    • queryBackplaneModelSerialVersion

      public static Triplet<String,String,String> queryBackplaneModelSerialVersion(List<String> lscfg)
      Parse the output of lscfg -vp to get backplane info
      Parameters:
      lscfg - The output of a previous call to lscfg -vp
      Returns:
      A triplet with backplane model, serial number, and version
    • queryModelSerial

      public static Pair<String,String> queryModelSerial(String device)
      Query lscfg -vl device to get hardware info
      Parameters:
      device - The disk to get the model and serial from
      Returns:
      A pair containing the model and serial number for the device, or null if not found