Exemplo n.º 1
0
        /// <summary>
        /// Queries BMC for the currently set boot device.
        /// </summary>
        /// <returns>Flags indicating the boot device.</returns>
        public virtual NextBoot GetNextBoot()
        {
            GetSystemBootOptionsRequest req = new GetSystemBootOptionsRequest(
                (byte)SystemBootOptionsParameter.BootFlags, 0);

            GetSystemBootOptionsResponse response =
                (GetSystemBootOptionsResponse)this.IpmiSendReceive(req, typeof(GetSystemBootOptionsResponse));

            NextBoot nextboot = new NextBoot(response.CompletionCode);

            if (response.CompletionCode == 0x00)
                nextboot.SetParamaters(response.ParameterData);

            return nextboot;
        }
        /// <summary>
        /// Queries BMC for the currently set boot device.
        /// </summary>
        /// <returns>Flags indicating the boot device.</returns>
        public virtual NextBoot GetNextBoot()
        {
            GetSystemBootOptionsRequest req = new GetSystemBootOptionsRequest(
                (byte)SystemBootOptionsParameter.BootFlags, 0);

            GetSystemBootOptionsResponse response =
                (GetSystemBootOptionsResponse)this.IpmiSendReceive(req, typeof(GetSystemBootOptionsResponse));

            NextBoot nextboot = new NextBoot(response.CompletionCode);

            if (response.CompletionCode == 0x00)
            {
                nextboot.SetParamaters(response.ParameterData);
            }

            return(nextboot);
        }