Skip to content

Instantly share code, notes, and snippets.

@niag
Created August 17, 2021 02:29
Show Gist options
  • Save niag/bf780f8049722c83666ef801ce53d995 to your computer and use it in GitHub Desktop.
Save niag/bf780f8049722c83666ef801ce53d995 to your computer and use it in GitHub Desktop.
This script starts a local HTTP server for Solaris OS update.
## 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