Skip to content

Instantly share code, notes, and snippets.

@sammy8806
Last active January 31, 2018 15:23
Show Gist options
  • Save sammy8806/a708f3876a0695d0be99 to your computer and use it in GitHub Desktop.
Save sammy8806/a708f3876a0695d0be99 to your computer and use it in GitHub Desktop.
Update VMware ESXi Host
#####
# Simple Update Commands for VMware ESXi with Internet Connection
#
# Please replace:
# $ESXiVersion with i.e. "5.5" or "5.1" or others
# $TargetProfile with the chosen Profile got by first command
#####
# Allow http-client
esxcli network firewall ruleset set -e true -r httpClient
# List available Update Profiles
esxcli software sources profile list -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml | grep ESXi-$ESXiVersion | sort
# Updates to the chosen Profile
esxcli software profile update -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml -p $TargetProfile
# Disallow http-client
esxcli network firewall ruleset set -e false -r httpClient
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment