public class ReadFruData extends IpmiCommandCoder<ReadFruDataResponseData>
A wrapper class for Read FRU Data Command request.
The command returns the specified data from the FRU Inventory Info area.
  • Constructor Details

    • ReadFruData

      public ReadFruData(int fruId, BaseUnit unit, int offset, int countToRead)
      Initiates ReadFruData for both encoding and decoding, addressed to LUN 0.
      Parameters:
      fruId - - ID of the FRU to get info from. Must be less than 256. To get FRU ID use GetSdr to retrieve FruDeviceLocatorRecord.
      unit - - BaseUnit indicating if the FRU device is accessed in BaseUnit.Bytes or BaseUnit.Words
      offset - - offset to read, in bytes (sent in words when the device is word-addressed, so it must be even then)
      countToRead - - number of bytes to read. Cannot exceed 255;
    • ReadFruData

      public ReadFruData(int fruId, BaseUnit unit, int offset, int countToRead, int lun)
      Initiates ReadFruData for both encoding and decoding.
      Parameters:
      fruId - - ID of the FRU to get info from. Must be less than 256.
      unit - - BaseUnit indicating if the FRU device is accessed in BaseUnit.Bytes or BaseUnit.Words
      offset - - offset to read, in bytes (sent in words when the device is word-addressed, so it must be even then)
      countToRead - - number of bytes to read. Cannot exceed 255;
      lun - the LUN of the FRU device, the access LUN of its FRU Device Locator record (IPMI 2.0 table 43-7), 0 to 3
      Throws:
      IllegalArgumentException - when the count or the FRU ID exceeds 255, or the LUN is not 0 to 3
  • Method Details