Link to home
Start Free TrialLog in
Avatar of Dave Smith
Dave Smith

asked on

ESXI Patch assistance.

Hello attempting to patch a ESXI v 7 host using SSH.
I've uploaded the patch to the shared datastore but when I run it with the cmd in the attached it fails, what is the correct cmd to update the host? -

[root@ESX01:~] esxcli software vib update -d /vmfs/volumes/Shared DataStore/VMware-ESXi-7.0U1c-17325551-depot.zip
Error: Invalid option DataStore/VMware-ESXi-7.0U1c-17325551-depot.zip

ogin as: root
Keyboard-interactive authentication prompts from server:
| Password:
End of keyboard-interactive prompts from server
Access denied
Keyboard-interactive authentication prompts from server:
| Password:
End of keyboard-interactive prompts from server
The time and date of this login have been sent to the system logs.

WARNING:
   All commands run on the ESXi shell are logged and may be included in
   support bundles. Do not provide passwords directly on the command line.
   Most tools can prompt for secrets or accept them from standard input.

VMware offers supported, powerful system administration tools.  Please
see www.vmware.com/go/sysadmintools for details.

The ESXi Shell can be disabled by an administrative user. See the
vSphere Security documentation for more information.

[root@ESX01:~]
[root@ESX01:~]
[root@ESX01:~] esxcli software vib list
Name                           Version                              Vendor  Acce                                                                         ptance Level  Install Date
-----------------------------  -----------------------------------  ------  ----                                                                         ------------  ------------
bnxtnet                        216.0.50.0-16vmw.701.0.0.16850804    VMW     VMwa                                                                         reCertified   2020-10-21
bnxtroce                       216.0.58.0-7vmw.701.0.0.16850804     VMW     VMwa                                                                         reCertified   2020-10-21
brcmfcoe                       12.0.1500.0-1vmw.701.0.0.16850804    VMW     VMwa                                                                         reCertified   2020-10-21
brcmnvmefc                     12.6.278.10-3vmw.701.0.0.16850804    VMW     VMwa                                                                         reCertified   2020-10-21
elxiscsi                       12.0.1200.0-2vmw.701.0.0.16850804    VMW     VMwa                                                                         reCertified   2020-10-21
elxnet                         12.0.1250.0-5vmw.701.0.0.16850804    VMW     VMwa                                                                         reCertified   2020-10-21
i40en                          1.8.1.123-1vmw.701.0.0.16850804      VMW     VMwa                                                                         reCertified   2020-10-21
i40iwn                         1.1.2.6-1vmw.701.0.0.16850804        VMW     VMwa                                                                         reCertified   2020-10-21
iavmd                          2.0.0.1055-5vmw.701.0.0.16850804     VMW     VMwa                                                                         reCertified   2020-10-21
icen                           1.0.0.9-1vmw.701.0.0.16850804        VMW     VMwa                                                                         reCertified   2020-10-21
igbn                           0.1.1.0-7vmw.701.0.0.16850804        VMW     VMwa                                                                         reCertified   2020-10-21
iser                           1.1.0.1-1vmw.701.0.0.16850804        VMW     VMwa                                                                         reCertified   2020-10-21
ixgben                         1.7.1.28-1vmw.701.0.0.16850804       VMW     VMwa                                                                         reCertified   2020-10-21
lpfc                           12.6.278.10-8vmw.701.0.0.16850804    VMW     VMwa                                                                         reCertified   2020-10-21
lpnic                          11.4.62.0-1vmw.701.0.0.16850804      VMW     VMwa                                                                         reCertified   2020-10-21
lsi-mr3                        7.712.51.00-1vmw.701.0.0.16850804    VMW     VMwa                                                                         reCertified   2020-10-21
lsi-msgpt2                     20.00.06.00-3vmw.701.0.0.16850804    VMW     VMwa                                                                         reCertified   2020-10-21
lsi-msgpt35                    13.00.13.00-2vmw.701.0.0.16850804    VMW     VMwa                                                                         reCertified   2020-10-21
lsi-msgpt3                     17.00.10.00-2vmw.701.0.0.16850804    VMW     VMwa                                                                         reCertified   2020-10-21
mtip32xx-native                3.9.8-1vmw.701.0.0.16850804          VMW     VMwa                                                                         reCertified   2020-10-21
ne1000                         0.8.4-11vmw.701.0.0.16850804         VMW     VMwa                                                                         reCertified   2020-10-21
nenic                          1.0.29.0-2vmw.701.0.0.16850804       VMW     VMwa                                                                         reCertified   2020-10-21
nfnic                          4.0.0.44-2vmw.701.0.0.16850804       VMW     VMwa                                                                         reCertified   2020-10-21
nhpsa                          70.0050.0.100-1vmw.701.0.0.16850804  VMW     VMwa                                                                         reCertified   2020-10-21
nmlx4-core                     3.19.16.8-2vmw.701.0.0.16850804      VMW     VMwa                                                                         reCertified   2020-10-21
nmlx4-en                       3.19.16.8-2vmw.701.0.0.16850804      VMW     VMwa                                                                         reCertified   2020-10-21
nmlx4-rdma                     3.19.16.8-2vmw.701.0.0.16850804      VMW     VMwa                                                                         reCertified   2020-10-21
nmlx5-core                     4.19.16.8-2vmw.701.0.0.16850804      VMW     VMwa                                                                         reCertified   2020-10-21
nmlx5-rdma                     4.19.16.8-2vmw.701.0.0.16850804      VMW     VMwa                                                                         reCertified   2020-10-21
ntg3                           4.1.5.0-0vmw.701.0.0.16850804        VMW     VMwa                                                                         reCertified   2020-10-21
nvme-pcie                      1.2.3.9-2vmw.701.0.0.16850804        VMW     VMwa                                                                         reCertified   2020-10-21
nvmerdma                       1.0.1.2-1vmw.701.0.0.16850804        VMW     VMwa                                                                         reCertified   2020-10-21
nvmxnet3-ens                   2.0.0.22-1vmw.701.0.0.16850804       VMW     VMwa                                                                         reCertified   2020-10-21
nvmxnet3                       2.0.0.30-1vmw.701.0.0.16850804       VMW     VMwa                                                                         reCertified   2020-10-21
pvscsi                         0.1-2vmw.701.0.0.16850804            VMW     VMwa                                                                         reCertified   2020-10-21
qcnic                          1.0.15.0-10vmw.701.0.0.16850804      VMW     VMwa                                                                         reCertified   2020-10-21
qedentv                        3.40.3.0-12vmw.701.0.0.16850804      VMW     VMwa                                                                         reCertified   2020-10-21
qedrntv                        3.40.4.0-12vmw.701.0.0.16850804      VMW     VMwa                                                                         reCertified   2020-10-21
qfle3                          1.0.67.0-9vmw.701.0.0.16850804       VMW     VMwa                                                                         reCertified   2020-10-21
qfle3f                         1.0.51.0-14vmw.701.0.0.16850804      VMW     VMwa                                                                         reCertified   2020-10-21
qfle3i                         1.0.15.0-9vmw.701.0.0.16850804       VMW     VMwa                                                                         reCertified   2020-10-21
qflge                          1.1.0.11-1vmw.701.0.0.16850804       VMW     VMwa                                                                         reCertified   2020-10-21
rste                           2.0.2.0088-7vmw.701.0.0.16850804     VMW     VMwa                                                                         reCertified   2020-10-21
sfvmk                          2.4.0.0010-15vmw.701.0.0.16850804    VMW     VMwa                                                                         reCertified   2020-10-21
smartpqi                       70.4000.0.100-3vmw.701.0.0.16850804  VMW     VMwa                                                                         reCertified   2020-10-21
vmkata                         0.1-1vmw.701.0.0.16850804            VMW     VMwa                                                                         reCertified   2020-10-21
vmkfcoe                        1.0.0.2-1vmw.701.0.0.16850804        VMW     VMwa                                                                         reCertified   2020-10-21
vmkusb                         0.1-1vmw.701.0.0.16850804            VMW     VMwa                                                                         reCertified   2020-10-21
vmw-ahci                       2.0.5-2vmw.701.0.0.16850804          VMW     VMwa                                                                         reCertified   2020-10-21
cpu-microcode                  7.0.1-0.0.16850804                   VMware  VMwa                                                                         reCertified   2020-10-21
crx                            7.0.1-0.0.16850804                   VMware  VMwa                                                                         reCertified   2020-10-21
elx-esx-libelxima.so           12.0.1200.0-3vmw.701.0.0.16850804    VMware  VMwa                                                                         reCertified   2020-10-21
esx-base                       7.0.1-0.0.16850804                   VMware  VMwa                                                                         reCertified   2020-10-21
esx-dvfilter-generic-fastpath  7.0.1-0.0.16850804                   VMware  VMwa                                                                         reCertified   2020-10-21
esx-ui                         1.34.4-16668064                      VMware  VMwa                                                                         reCertified   2020-10-21
esx-update                     7.0.1-0.0.16850804                   VMware  VMwa                                                                         reCertified   2020-10-21
esx-xserver                    7.0.1-0.0.16850804                   VMware  VMwa                                                                         reCertified   2020-10-21
gc                             7.0.1-0.0.16850804                   VMware  VMwa                                                                         reCertified   2020-10-21
loadesx                        7.0.1-0.0.16850804                   VMware  VMwa                                                                         reCertified   2020-10-21
lsuv2-hpv2-hpsa-plugin         1.0.0-3vmw.701.0.0.16850804          VMware  VMwa                                                                         reCertified   2020-10-21
lsuv2-intelv2-nvme-vmd-plugin  1.0.0-2vmw.701.0.0.16850804          VMware  VMwa                                                                         reCertified   2020-10-21
lsuv2-lsiv2-drivers-plugin     1.0.0-4vmw.701.0.0.16850804          VMware  VMwa                                                                         reCertified   2020-10-21
lsuv2-nvme-pcie-plugin         1.0.0-1vmw.701.0.0.16850804          VMware  VMwa                                                                         reCertified   2020-10-21
lsuv2-oem-dell-plugin          1.0.0-1vmw.701.0.0.16850804          VMware  VMwa                                                                         reCertified   2020-10-21
lsuv2-oem-hp-plugin            1.0.0-1vmw.701.0.0.16850804          VMware  VMwa                                                                         reCertified   2020-10-21
lsuv2-oem-lenovo-plugin        1.0.0-1vmw.701.0.0.16850804          VMware  VMwa                                                                         reCertified   2020-10-21
lsuv2-smartpqiv2-plugin        1.0.0-4vmw.701.0.0.16850804          VMware  VMwa                                                                         reCertified   2020-10-21
native-misc-drivers            7.0.1-0.0.16850804                   VMware  VMwa                                                                         reCertified   2020-10-21
qlnativefc                     4.0.3.0-17vmw.701.0.0.16850804       VMware  VMwa                                                                         reCertified   2020-10-21
vdfs                           7.0.1-0.0.16850804                   VMware  VMwa                                                                         reCertified   2020-10-21
vmware-esx-esxcli-nvme-plugin  1.2.0.38-1vmw.701.0.0.16850804       VMware  VMwa                                                                         reCertified   2020-10-21
vmware-fdm                     7.0.1-17327517                       VMware  VMwa                                                                         reCertified   2021-01-02
vsan                           7.0.1-0.0.16850804                   VMware  VMwa                                                                         reCertified   2020-10-21
vsanhealth                     7.0.1-0.0.16850804                   VMware  VMwa                                                                         reCertified   2020-10-21
tools-light                    11.1.1.16303738-16850804             VMware  VMwa                                                                         reCertified   2020-10-21
[root@ESX01:~] esxcli software vib update -d /vmfs/volumes/Shared DataStore/VMware-ESXi-7.0U1c-17325551-depot.zip
Error: Invalid option DataStore/VMware-ESXi-7.0U1c-17325551-depot.zip

Usage: esxcli software vib update [cmd options]

Description:
  update                Update installed VIBs to newer VIB packages. No new VIBs will be installed, only updates. WARNING: If your installation requires
                        a reboot, you need to disable HA first.

Cmd options:
  -d|--depot=[ <str> ... ]
                        Specifies full remote URLs of the depot index.xml or server file path pointing to an offline bundle .zip file.
  --dry-run             Performs a dry-run only. Report the VIB-level operations that would be performed, but do not change anything in the system.
  -f|--force            Bypasses checks for package dependencies, conflicts, obsolescence, and acceptance levels. Really not recommended unless you know
                        what you are doing.  Use of this option will result in a warning being displayed in vSphere Web Client.  Use this option only
                        when instructed to do so by VMware Technical Support.
  --maintenance-mode    Pretends that maintenance mode is in effect. Otherwise, installation will stop for live installs that require maintenance mode.
                        This flag has no effect for reboot required remediations.
  --no-live-install     Forces an install to /altbootbank even if the VIBs are eligible for live installation or removal. Will cause installation to be
                        skipped on PXE-booted hosts.
  --no-sig-check        Bypasses acceptance level verification, including signing. Use of this option poses a large security risk and will result in a
                        SECURITY ALERT warning being displayed in vSphere Web Client.
  --proxy=<str>         Specifies a proxy server to use for HTTP, FTP, and HTTPS connections. The format is proxy-url:port.
  -n|--vibname=[ <str> ... ]
                        Specifies VIBs from a depot, using one of the following forms: name, name:version, vendor:name, or vendor:name:version. VIB
                        packages which are not updates will be skipped.
  -v|--viburl=[ <str> ... ]
                        Specifies one or more URLs to VIB packages to update to. http:, https:, ftp:, and file: are all supported. VIB packages which are
                        not updates will be skipped.
[root@ESX01:~]



Further, apart from SSH can i update the host using vcentre?

User generated image


Thanks
SOLUTION
Avatar of Hello There
Hello There

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Murali Sripada
Murali Sripada

datastore name has space so space should be there the quotes are required as above.

TIP: Do not use spaces in datastore or object names in the inventory, use a DASH (-) or UNDERSCORE (_)
Avatar of Dave Smith

ASKER

Cheers both, will give it a try without the space and report back.

Cheers for the list of articles Andrew!
No problems.

You may want to experiment with Update Manager!
Is update manager, the one used with Windows for previous versions of vSphere, still usable with v7?
no, it's now included in vCenter Server 7!
Cool! You mean the Lifecycle Management tool within vCentre?
Great - put in the quotation marks and it worked! Thanks