< Back

Get-vRNIFlow

Sat Jan 18, 2020 10:09 pm

NAME Get-vRNIFlow



SYNOPSIS

Get network flows from vRealize Network Insight.





SYNTAX

Get-vRNIFlow [-Limit <Int32>] [-StartTime <Int32>] [-EndTime <Int32>] [-Connection <PSObject>] [<CommonParameters>]





DESCRIPTION

vRNI can consume NetFlow and IPFIX data from the vSphere Distributed

Switch and physical switches which support NetFlow v5, v7, v9 or IPFIX.

This cmdlet will let you export these flows





PARAMETERS

-Limit <Int32>

Limit the amount of records returned



Required? false

Position? named

Default value 100

Accept pipeline input? false

Accept wildcard characters? false



-StartTime <Int32>

The epoch timestamp of when to start looking up records



Required? false

Position? named

Default value 0

Accept pipeline input? false

Accept wildcard characters? false



-EndTime <Int32>

The epoch timestamp of when to stop looking up records



Required? false

Position? named

Default value 0

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-vRNIFlow



Get the last 100 flows (100 = default)









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



PS C:\\>Get-vRNIFlow -Limit 10



Get the last 10 flows









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



PS C:\\>Get-vRNIFlow -StartTime ([DateTimeOffset]::Now.ToUnixTimeSeconds()-600) -EndTime

([DateTimeOffset]::Now.ToUnixTimeSeconds())



Get all flows that occurred in the last 10 minutes.









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



PS C:\\>Get-vRNIFlow -StartTime ([DateTimeOffset]::Now.ToUnixTimeSeconds()-600) -EndTime

([DateTimeOffset]::Now.ToUnixTimeSeconds()) | Where {$_.protocol -eq "TCP"}



Get all flows that occurred in the last 10 minutes and ignore all flows

that are not TCP based.









-------------------------- EXAMPLE 5 --------------------------



PS C:\\>Get-vRNIFlow -StartTime ([DateTimeOffset]::Now.ToUnixTimeSeconds()-600) -EndTime

([DateTimeOffset]::Now.ToUnixTimeSeconds()) | Where {$_.traffic_type -eq "INTERNET_TRAFFIC"}



Get only internet-based (in or out) flows that occurred in the last 10 minutes.











RELATED LINKS