Skip to content

Instantly share code, notes, and snippets.

@anish
Created June 17, 2016 16:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anish/00148d86ad866f378944c826345fcf9d to your computer and use it in GitHub Desktop.
Save anish/00148d86ad866f378944c826345fcf9d to your computer and use it in GitHub Desktop.
STATE=`sudo racadm get BIOS.SerialCommSettings.SerialComm | head -n 2 | tail -n1 | cut -d'=' -f2`
sudo racadm set BIOS.SerialCommSettings.SerialComm Off
sudo racadm jobqueue create bios.setup.1-1
echo $STATE > old_sol_state
sudo reboot
## update idrac first
## update raid
## update bios
sudo reboot
old_state=`cat old_sol_state`
sudo racadm set BIOS.SerialCommSettings.SerialComm $old_state
sudo racadm jobqueue create bios.setup.1-1
sudo reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment