예제 #1
0
        /// <summary>
        /// Get command for the Energy Storage Status
        /// </summary>
        /// <returns></returns>
        public virtual EnergyStorage GetEnergyStorage()
        {
            GetEnergyStorageResponse energyStorage = (GetEnergyStorageResponse)this.IpmiSendReceive(
                new GetEnergyStorageRequest(), typeof(GetEnergyStorageResponse));

            EnergyStorage response = new EnergyStorage(energyStorage.CompletionCode);

            if (energyStorage.CompletionCode == 0x00)
            {
                response.SetParamaters(energyStorage.Presence, energyStorage.EnergyState, energyStorage.ScalingFactor,
                                       energyStorage.BladeBackupEnergy, energyStorage.NvdimmBackupEnergy, energyStorage.RollingCounter);
            }

            return(response);
        }