Last active
January 31, 2018 15:23
-
-
Save sammy8806/a708f3876a0695d0be99 to your computer and use it in GitHub Desktop.
Update VMware ESXi Host
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
##### | |
# 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