Package oshi.driver.unix.aix
Class Lscfg
java.lang.Object
oshi.driver.unix.aix.Lscfg
@ThreadSafe public final class Lscfg extends java.lang.Object
Utility to query lscfg
-
Method Summary
Modifier and Type Method Description static java.util.List<java.lang.String>queryAllDevices()Querylscfg -vpto get all hardware devicesstatic Triplet<java.lang.String,java.lang.String,java.lang.String>queryBackplaneModelSerialVersion(java.util.List<java.lang.String> lscfg)Parse the output oflscfg -vpto get backplane infostatic Pair<java.lang.String,java.lang.String>queryModelSerial(java.lang.String device)Querylscfg -vl deviceto get hardware info
-
Method Details
-
queryAllDevices
public static java.util.List<java.lang.String> queryAllDevices()Querylscfg -vpto get all hardware devices- Returns:
- A list of the output
-
queryBackplaneModelSerialVersion
public static Triplet<java.lang.String,java.lang.String,java.lang.String> queryBackplaneModelSerialVersion(java.util.List<java.lang.String> lscfg)Parse the output oflscfg -vpto get backplane info- Parameters:
lscfg- The output of a previous call tolscfg -vp- Returns:
- A triplet with backplane model, serial number, and version
-
queryModelSerial
Querylscfg -vl deviceto 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
-