Ipmitool - set alternate boot device on next reboot

Common interfaces to a computer system that system administrators can use to monitor system health and manage the system

Ipmitool - set alternate boot device on next reboot

Postby lik » Tue Nov 08, 2011 4:22 am

It can be true that due to BIOS settings (namely enabled "Quite Boot" and "Quick Boot" features) one can not log into BIOS screen, because BMC initialization takes longer.
In such case request the system to boot from an alternate boot device on next reboot can be used.

Code: Select all
# ipmitool chassis bootdev none options=help
Legal options are:
        help:   print this message
        valid:  Boot flags valid
        persistent:     Changes are persistent for all future boots
        efiboot:        Extensible Firmware Interface Boot (EFI)
        clear-cmos:     CMOS clear
        lockkbd:        Lock Keyboard
        screenblank:    Screen Blank
        lockoutreset:   Lock out Resetbuttons
        lockout_power:  Lock out (power off/sleep request) via Power Button
        verbose=default:        Request quiet BIOS display
        verbose=no:     Request quiet BIOS display
        verbose=yes:    Request verbose BIOS display
        force_pet:      Force progress event traps
        upw_bypass:     User password bypass
        lockout_sleep:  Log Out Sleep Button
        cons_redirect=default:  Console redirection occurs per BIOS configuration setting
        cons_redirect=skip:     Suppress (skip) console redirection if enabled
        cons_redirect=enable:   Suppress (skip) console redirection if enabled

Code: Select all
# ipmitool chassis bootparam set
bootparam get <param #>
...
Get or set various system boot option parameters.
get <param #>
Get boot parameter. Currently supported values for <param #> are:
0 - Set In Progress
1 - Service Partition Selector
2 - Service Partition Scan
3 - BMC Boot Flag Valid Bit Clearing
4 - Boot Info Acknowledge
5 - Boot Flags
6 - Boot Initiator Info
7 - Boot Initiator Mailbox
...
bootparam set bootflag <flag>
  force_pxe   : Force PXE boot
  force_disk  : Force boot from default Hard-drive
  force_safe  : Force boot from default Hard-drive, request Safe Mode
  force_diag  : Force boot from Diagnostic Partition
  force_cdrom : Force boot from CD/DVD
  force_bios  : Force boot into BIOS Setup

Let`s set force_bios bootflag:
Code: Select all
# ipmitool chassis bootparam set bootflag force_bios
Set Boot Device to force_bios

Having done this you may check boot parameter:
Code: Select all
# ipmitool chassis bootparam get 5
Boot parameter version: 1
Boot parameter 5 is valid/unlocked
Boot parameter data: 8018000000
 Boot Flags :
   - Boot Flag Valid
   - Options apply to only next boot
   - BIOS PC Compatible (legacy) boot
   - Boot Device Selector : Force Boot into BIOS Setup
   - Console Redirection control : System Default
   - BIOS verbosity : Console redirection occurs per BIOS configuration setting (default)
   - BIOS Mux Control Override : BIOS uses recommended setting of the mux at the end of POST

Revert back our settings to boot from primary HDD:
Code: Select all
# ipmitool chassis bootparam set bootflag force_disk
Set Boot Device to force_disk

And check it once again:
Code: Select all
# ipmitool chassis bootparam get 5
Boot parameter version: 1
Boot parameter 5 is valid/unlocked
Boot parameter data: 8008000000
 Boot Flags :
   - Boot Flag Valid
   - Options apply to only next boot
   - BIOS PC Compatible (legacy) boot
   - Boot Device Selector : Force Boot from default Hard-Drive
   - Console Redirection control : System Default
   - BIOS verbosity : Console redirection occurs per BIOS configuration setting (default)
   - BIOS Mux Control Override : BIOS uses recommended setting of the mux at the end of POST

Aslo you can issue these commands from remote host using IPMI lanplus interface, for example:
Code: Select all
ipmitool -I lanplus -H 10.10.10.10 -U ADMIN -P ADMIN chassis bootparam set bootflag force_bios
lik
Founder
Founder
 
Posts: 497
Joined: Wed Dec 15, 2010 3:21 am

Return to Intelligent Platform Management Interface (IPMI)

 


  • Related topics
    Replies
    Views
    Last post
cron