Loading...

Get-CVVirtualMachineLiveMount

The Get-CVVirtualMachineLiveMount cmdlet retrieves a list of active mounts for a specified VM.

Before you can use this cmdlet, you must log on to your CommCell environment using the Connect-CVServer cmdlet. For more information, see Connecting to a CommCell Environment with PowerShell.

Syntax

Get-CVVirtualMachineLiveMount -Name <String> -ClientName <String> [-SubclientName <String>] [<CommonParameters>]

Get-CVVirtualMachineLiveMount -Id <String> [-SubclientName <String>] [<CommonParameters>]

Get-CVVirtualMachineLiveMount -ClientObject <Object> [-SubclientName <String>] [<CommonParameters>]

Required Parameters

Parameter

Description

Data type

Accepts pipeline input?

Accepts wildcard characters?

Type of parameter

–Id

The ID of the VM that represents the VM GUID.

String

No

No

Named

–Name

The name of the source VM.

String

No

No

Named

–ClientName

The name of the client that the source VM is associated with.

String

No

No

Named

–ClientObject

The object that represents the client that the source VM is associated with.

Object

Yes, by:

  • Value
  • Property name

No

Named

Optional Parameters

Commvault Parameters

Parameter

Description

Data type

Accepts pipeline input?

Accepts wildcard characters?

Type of parameter

–SubclientName

The name of the subclient.

This parameter overrides the default behavior.

String

No

No

Named

Microsoft PowerShell Parameters

You can use the following Microsoft PowerShell parameters:

  • Debug
  • ErrorAction
  • ErrorVariable
  • OutBuffer
  • OutVariable
  • PipelineVariable
  • Verbose
  • WarningAction
  • WarningVariable
  • Force
  • Confirm
  • WhatIf

Note: Only a few cmdlets support Force, Confirm, and WhatIf parameters.

For more information, see "About Common Parameters" in the Microsoft PowerShell documentation.

Input

This cmdlet does not support input.

Output

PSCustomObject with a list of active mounts for one or more VMs.

Examples

Retrieve a List of Active Mounts for All VMs in a CommCell Environment

This example gets a list of all active mounts for all VMs in a CommCell environment.

Get-CVVirtualMachineLiveMount | Select-Object -ExpandProperty virtualMachines

Retrieve a List of Active Mounts for a Specific VM

This example gets a list of all active mounts for a VM that is specified by ID.

Get-CVVirtualMachineLiveMount -Id 502d15b2-9f17-1df9-5231-20b22d73b952 | Select-Object -ExpandProperty virtualMachines

Last modified: 3/18/2020 8:27:06 AM