Update-HCXSentinel Command | Vmware PowerCLI Reference

Update-HCXSentinel

This cmdlet upgrades the HCX sentinel software running on the source virtual machine.

Syntax

Update-HCXSentinel
-VM < HCXVM[] >
[-Server < HcxServer[] > ]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
VM HCXVM[] named
Specifies the list of virtual machine IDs where the sentinel software runs.
optional Server HcxServer[] named
Specifies the HCX Server systems on which you want to run the cmdlet. If no value is provided or $null value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of the Connect-HCXServer cmdlet.

Output

VMware.VimAutomation.Hcx.Types.V1.HCXSentinelUpgrade

Examples

Example 1

$site = Get-HCXSite -Type Sentinel

$vm = Get-HCXVM -Name $vmName -Site $site

$update = Update-HCXSentinel -VM $vm

Wait-HCXJob -Job $update

Retrieves the source site by type.

Example 2

$site=Get-HCXSite -Name "Non vSphere Inventory"

$vm=Get-HCXVM -Name $vmName -Site $site

$update = Update-HCXSentinel -VM $vm

Wait-HCXJob -Job $update

Retrieves the source site by name.

Example 3

$site = Get-HCXSite -Type Sentinel

$vm = Get-HCXVM -Site $site

$update = Update-HCXSentinel -VM $vm

Wait-HCXJob -Job $update

Retrieves the source site by type.

Example 4

$site=Get-HCXSite -Name "Non vSphere Inventory"

$vm=Get-HCXVM -Site $site

$update = Update-HCXSentinel -VM $vm

Wait-HCXJob -Job $update

Retrieves the source site by name.

Related Commands

HCXSentinel

This cmdlet uninstalls the sentinel from a virtual machine.

This cmdlet upgrades the HCX sentinel software running on the source virtual machine.

HCXSentinelBundle

This cmdlet creates and downloads an HCX Sentinel bundle.