< Back

Get-SVTvm

Tue Jan 14, 2020 2:09 am

NAME Get-SVTvm



SYNOPSIS

Display information about VMs running on HPE SimpliVity hosts/storage





SYNTAX

Get-SVTvm [[-DataStoreName] <String>] [[-ClusterName] <String>] [-HostName <String>] [-State <String>] [-Limit

<Int32>] [<CommonParameters>]



Get-SVTvm [[-VMname] <String>] [[-DataStoreName] <String>] [[-ClusterName] <String>] [-HostName <String>] [-State

<String>] [-Limit <Int32>] [<CommonParameters>]



Get-SVTvm [[-Id] <String>] [[-DataStoreName] <String>] [[-ClusterName] <String>] [-HostName <String>] [-State

<String>] [-Limit <Int32>] [<CommonParameters>]





DESCRIPTION

Display information about virtual machines running in the HPE SimpliVity Federation. Accepts

parameters to limit the objects returned. Also accepts output from Get-SVThost as input.



Verbose is automatically turned on to show more information about what this command is doing.





PARAMETERS

-VMname <String>

Display information for the specified virtual machine



Required? false

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Id <String>



Required? false

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-DataStoreName <String>

Display information for virtual machines on the specified datastore



Required? false

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ClusterName <String>

Display information for virtual machines on the specified cluster



Required? false

Position? 3

Default value

Accept pipeline input? false

Accept wildcard characters? false



-HostName <String>

Display information for virtual machines on the specified host



Required? false

Position? named

Default value

Accept pipeline input? true (ByValue, ByPropertyName)

Accept wildcard characters? false



-State <String>

Display information for virtual machines with the specified state



Required? false

Position? named

Default value ALIVE

Accept pipeline input? false

Accept wildcard characters? false



-Limit <Int32>

The maximum number of virtual machines to display



Required? false

Position? named

Default value 500

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

System.String

HPE.SimpliVity.Host





OUTPUTS

HPE.SimpliVity.VirtualMachine





NOTES





Known issues:

OMNI-69918 - GET calls for virtual machine objects may result in OutOfMemortError when exceeding 8000 objects



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Get-SVTvm



Shows all virtual machines in the Federation with state "ALIVE"









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Get-SVTvm -State ALL



Shows all virtual machines in the Federation with any state. This shows virtual machines with removed

and deleted states as well as alive.









-------------------------- EXAMPLE 3 --------------------------



PS C:\\>Get-SVTvm -VMname MyVM | Out-GridView -Passthru | Export-CSV FilteredVMList.CSV



Exports the specified VM information to Out-GridView to allow filtering and then exports

this to a CSV









-------------------------- EXAMPLE 4 --------------------------



PS C:\\>Get-SVThost | ? HostName -notmatch "DR" | Get-SVTvm | Select-Object Name, SizeGB, Policy, HAstatus



Show the VMs from the host or hosts that do not have "DR" in their name. Show the selected properties only.











RELATED LINKS