Created
January 12, 2021 06:43
-
-
Save Ichbinjoe/4e38a175c1e65a2fdbe16351ccc9c020 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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