Package org.metricshub.ipmi.client
Class IpmiClient
java.lang.Object
org.metricshub.ipmi.client.IpmiClient
This class is the entry point of the IPMI Client library
-
Method Summary
Modifier and TypeMethodDescriptionstatic GetChassisStatusResponseDatagetChassisStatus(IpmiClientConfiguration ipmiConfiguration) Run the get Chassis status IPMI requeststatic StringgetChassisStatusAsStringResult(IpmiClientConfiguration ipmiConfiguration) Run the get Chassis status IPMI request then convert the result to StringgetFrus(IpmiClientConfiguration ipmiConfiguration) Get FRU informationstatic StringgetFrusAndSensorsAsStringResult(IpmiClientConfiguration ipmiConfiguration) Run the FRUs and Sensors request then convert the result to a String valuegetSensors(IpmiClientConfiguration ipmiConfiguration) Get the sensors
-
Method Details
-
getChassisStatus
public static GetChassisStatusResponseData getChassisStatus(IpmiClientConfiguration ipmiConfiguration) throws InterruptedException, ExecutionException, TimeoutException Run the get Chassis status IPMI request- Parameters:
ipmiConfiguration- Wraps the IPMI device hostname and the credentials- Returns:
GetChassisStatusResponseDatainstance- Throws:
InterruptedExceptionExecutionExceptionTimeoutException
-
getSensors
public static List<Sensor> getSensors(IpmiClientConfiguration ipmiConfiguration) throws InterruptedException, ExecutionException, TimeoutException Get the sensors- Parameters:
ipmiConfiguration- Wraps the IPMI device hostname and the credentials- Returns:
- List of
Sensorinstances - Throws:
InterruptedExceptionExecutionExceptionTimeoutException
-
getFrus
public static List<Fru> getFrus(IpmiClientConfiguration ipmiConfiguration) throws InterruptedException, ExecutionException, TimeoutException Get FRU information- Parameters:
ipmiConfiguration- Wraps the IPMI device hostname and the credentials- Returns:
- List of
Fruinstances - Throws:
InterruptedExceptionExecutionExceptionTimeoutException
-
getChassisStatusAsStringResult
public static String getChassisStatusAsStringResult(IpmiClientConfiguration ipmiConfiguration) throws InterruptedException, ExecutionException, TimeoutException Run the get Chassis status IPMI request then convert the result to String- Parameters:
ipmiConfiguration- Wraps the IPMI device hostname and the credentials- Returns:
- Chassis status as String value
- Throws:
TimeoutExceptionExecutionExceptionInterruptedException
-
getFrusAndSensorsAsStringResult
public static String getFrusAndSensorsAsStringResult(IpmiClientConfiguration ipmiConfiguration) throws InterruptedException, ExecutionException, TimeoutException Run the FRUs and Sensors request then convert the result to a String value- Parameters:
ipmiConfiguration- Wraps the IPMI device hostname and the credentials- Returns:
- All sensors (FRUs, Sensors readings and Sensors states) as String value
- Throws:
TimeoutExceptionExecutionExceptionInterruptedException
-