Package org.metricshub.ipmi.client
Class RawRequest
java.lang.Object
org.metricshub.ipmi.client.RawRequest
Sends any request, like
ipmitool raw: bmc.raw(0x2C, 0x01).data(0xDC, 0x01).execute() is Get DCMI
Capabilities Info. The reply is returned whatever its completion code.-
Method Details
-
data
Sets the request data.- Parameters:
bytes- the data bytes, each 0 to 255- Returns:
- this request
- Throws:
IllegalArgumentException- when a byte is out of range
-
timeout
Overrides the deadline of the client for this request.- Parameters:
deadline- the time the request may take, session setup included- Returns:
- this request
-
execute
Sends the request and waits for its reply. An error completion code is not an exception: it is in the reply.- Returns:
- the reply
- Throws:
IpmiTimeoutException- when the BMC does not answer: whether it carried the request out is unknownIpmiClientException- when the session cannot be opened
-