Created
August 17, 2021 02:29
-
-
Save niag/bf780f8049722c83666ef801ce53d995 to your computer and use it in GitHub Desktop.
This script starts a local HTTP server for Solaris OS update.
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
## This script starts a local HTTP server for Solaris OS update. | |
## | |
IP=`ifconfig en0 | grep inet | grep -v inet6 | awk '{ print $2 }'` | |
echo $IP | |
echo available as "http://$IP:8000" | |
echo "correct ILOM fw download string is load -source http://$IP:8000/<file>" | |
## This string is for Python2 | |
python -m SimpleHTTPServer 8000 | |
## This string is for Python3 | |
python -m http.server 8000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment