< Back

Get-vRNIHost

Sat Jan 18, 2020 10:09 pm

NAME Get-vRNIHost



SYNOPSIS

Get available hypervisor hosts from vRealize Network Insight.





SYNTAX

Get-vRNIHost [-Limit <Int32>] [[-Name] <String>] [-Connection <PSObject>] [<CommonParameters>]





DESCRIPTION

vRealize Network Insight has a database of all hosts in your environment

and this cmdlet will help you discover these hosts.





PARAMETERS

-Limit <Int32>

Limit the amount of records returned



Required? false

Position? named

Default value 0

Accept pipeline input? false

Accept wildcard characters? false



-Name <String>

Limit the amount of records returned



Required? false

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Connection <PSObject>

vRNI Connection object



Required? false

Position? named

Default value $defaultvRNIConnection

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



OUTPUTS



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



PS C:\\>Get-vRNIHost



Get all hypervisor hosts in the vRNI environment.









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



PS C:\\>Get-vRNIHost esxi01.lab



Retrieve the ESXi host object for the one called "esxi01.lab"









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



PS C:\\>Get-vRNIHost | Select name, service_tag



Get a list of all hosts with their hardware service tag.









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



PS C:\\>Get-vRNIHost | Where {$_.nsx_manager -ne ""}



Get all hosts that are managed by a NSX Manager.











RELATED LINKS