ผู้เขียน หัวข้อ: Upgrade to VMware vSphere ESXi 6.7 Update 2 with Command Line  (อ่าน 102 ครั้ง)

0 สมาชิก และ 1 บุคคลทั่วไป กำลังดูหัวข้อนี้

ออฟไลน์ ผู้ดูแลระบบ

  • ยิ้มวันละนิด จิตแจ่มใส
  • Administrator
  • *****
  • กระทู้: 178
  • จิตใจสงบ ชีวิตเป็นสุข
    • ดูรายละเอียด
    • ศูนย์คอมพิวเตอร์และเครือข่ายวารินชำราบ
Upgrade to VMware vSphere ESXi 6.7 Update 2 with Command Line
« เมื่อ: วันที่ 07 กรกฎาคม 2019, เวลา 11:03:58 am »
 :03: :03: :03:
Upgrade to VMware vSphere ESXi 6.7 Update 2 with Command Line

VMware ESXi Command Line Tools for Getting Version and Profile Info The ESXi esxcli command line tool provides really great commands to determine the specific system version of your current ESXi server as well as the current profile if you want that information as well.
To get the specific version of the ESXi server, use the following command:
esxcli system version get
To get the ESXi Image Profile, use the following command:
esxcli software profile get
 Running-the-ESXCLI-commands-to-get-the-ESXi-system-version-and-Image-Profile Upgrade to VMware vSphere ESXi 6.7 Update 2 with Command LineRunning the ESXCLI commands to get the ESXi system version and Image Profile Upgrade to VMware vSphere ESXi 6.7 Update 2 with Command Line The process to upgrade to VMware vsphere ESXi 6.7 Update 2 with Command Line is very straightforward. This is accomplished with a few commands. The first thing that needs to be done is to allow the ESXi host out to the Internet to pull down the required patches. To do that, use the following command:
esxcli network firewall ruleset set -e true -r httpClient
Now you will want to place the host into maintenance mode. You can do this from the command line with the following commands:
vim-cmd /hostsvc/maintenance_mode_enter
vimsh -n -e /hostsvc/maintenance_mode_exit
Once you have the Image Profile for the ESXi version you want to upgrade/update to and the host is in maintenace mode, it is simply a matter of running the command for the upgrade. This is accomplished by running the following esxcli command:
esxcli software profile update -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml -p ESXi-6.7.0-20190402001-standard
 After-running-the-ESXCLI-command-to-update-the-host-shows-success-and-prompts-for-a-reboot Upgrade to VMware vSphere ESXi 6.7 Update 2 with Command Line As a side note, if you want to search for or see the available Image Profiles with the esxcli command, you can use the following:
esxcli software sources profile list -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml | grep ESXi-6.7.0
This will search for and display the image profiles available for 6.7.0 versions which can be a good way to see what is available if you don’t have access to query the latest image profiles by another means.
 Wrapping Up Upgrading a VMware ESXi host from the command line is easily accomplished and provides a really great and easy way to upgrade ESXi hosts to a specific Image Profile. This is especially useful if you have a standalone ESXi host or need to upgrade a host to a specific version. Using the above commands it is a simple matter of deciding on the Image Profile, allowing HTTP connectivity, placing the host in maintenance mode, and then running the update.

CR:https://www.virtualizationhowto.com/2019/04/upgrade-to-vmware-vsphere-esxi-6-7-update-2-with-command-line/