Skip to content

Instantly share code, notes, and snippets.

@Ichbinjoe
Created January 12, 2021 06:43
Show Gist options
  • Save Ichbinjoe/4e38a175c1e65a2fdbe16351ccc9c020 to your computer and use it in GitHub Desktop.
Save Ichbinjoe/4e38a175c1e65a2fdbe16351ccc9c020 to your computer and use it in GitHub Desktop.
#!/bin/sh
echo "YOU ARE ABOUT TO PXE BOOT & REBOOT $1!!!!!!!!! You were warned"
ssh root@$1-idrac.infra.ibj.io <<EOF
racadm config -g cfgServerInfo -o cfgServerBootOnce 1
racadm config -g cfgServerInfo -o cfgServerFirstBootDevice PXE
racadm serveraction hardreset
exit
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment