Class ChassisIdentify
java.lang.Object
org.metricshub.ipmi.core.coding.PayloadCoder
org.metricshub.ipmi.core.coding.commands.IpmiCommandCoder<ChassisIdentifyResponseData>
org.metricshub.ipmi.core.coding.commands.chassis.ChassisIdentify
Wrapper for the Chassis Identify command (IPMI 2.0 section 28.5): makes the chassis identify itself, by a blinking
LED or a beep, for a number of seconds, indefinitely, or not any more. The request carries the interval byte, and
the optional force byte only when the identify is to stay on: a BMC that does not support that byte answers an
error completion code to it.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe longest interval the request can carry, in seconds. -
Constructor Summary
ConstructorsConstructorDescriptionChassisIdentify(int interval, boolean force) Initiates ChassisIdentify for encoding and decoding. -
Method Summary
Modifier and TypeMethodDescriptionbyteRetrieves command code specific for command represented by this classRetrieves network function specific for command represented by this class.getResponseData(IpmiMessage message) Retrieves payload-specific response data from IPMI messageMethods inherited from class org.metricshub.ipmi.core.coding.commands.IpmiCommandCoder
answers, getNetworkFunctionCode, getSupportedPayloadType, isCommandResponseMethods inherited from class org.metricshub.ipmi.core.coding.PayloadCoder
encodePayload, getAuthenticationType, getCipherSuite, getIpmiVersion, setAuthenticationType, setCipherSuite, setIpmiVersion, setSessionParameters
-
Field Details
-
MAX_INTERVAL
public static final int MAX_INTERVALThe longest interval the request can carry, in seconds.- See Also:
-
-
Constructor Details
-
ChassisIdentify
public ChassisIdentify(int interval, boolean force) Initiates ChassisIdentify for encoding and decoding.- Parameters:
interval- the identify interval in seconds, 1 to 255 (the BMC may stretch it by 20%); 0 turns the identify offforce- whether the identify stays on indefinitely (the interval is then ignored)- Throws:
IllegalArgumentException- when the interval is not between 0 and 255
-
-
Method Details
-
getCommandCode
public byte getCommandCode()Description copied from class:IpmiCommandCoderRetrieves command code specific for command represented by this class- Specified by:
getCommandCodein classIpmiCommandCoder<ChassisIdentifyResponseData>- Returns:
- command code
-
getNetworkFunction
Description copied from class:IpmiCommandCoderRetrieves network function specific for command represented by this class.- Specified by:
getNetworkFunctionin classIpmiCommandCoder<ChassisIdentifyResponseData>- Returns:
- network function, or null for a command of a network function
NetworkFunctiondoes not list, which overridesIpmiCommandCoder.getNetworkFunctionCode()instead - See Also:
-
getResponseData
public ChassisIdentifyResponseData getResponseData(IpmiMessage message) throws IPMIException, NoSuchAlgorithmException, InvalidKeyException Description copied from class:PayloadCoderRetrieves payload-specific response data from IPMI message- Specified by:
getResponseDatain classIpmiCommandCoder<ChassisIdentifyResponseData>- Parameters:
message- - IPMI message- Returns:
- response data
- Throws:
IPMIException- when response completion code isn't OK.NoSuchAlgorithmException- when authentication, confidentiality or integrity algorithm fails.InvalidKeyException- when creating of the authentication algorithm key fails
-