< Back
Get-vRNIRecommendedRulesNsxBundle
Post
NAME Get-vRNIRecommendedRulesNsxBundle
SYNOPSIS
Retrieve the recommended firewall rules of a specific application bundled in the NSX-v format for
processing with the Rules Importer Tool (more on that at a later date)
SYNTAX
Get-vRNIRecommendedRulesNsxBundle [-StartTime <Int32>] [-EndTime <Int32>] [-ApplicationID <String>] -OutFile
<String> [-Connection <PSObject>] [<CommonParameters>]
DESCRIPTION
vRealize Network Insight collects netflow data and analyses the
required firewall rules to implement micro-segmentation. This means
you have a starting point when it comes to micro-segmentation and
implementing the needed firewall rules. This function retrieves the
recommended firewall rules for an application.
Per default this function uses a 14 day analysis period.
PARAMETERS
-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
-ApplicationID <String>
The application entity ID for which to retrieve the recommended rules
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-OutFile <String>
This cmdlet outputs a zip file specified by the filename here
Required? true
Position? named
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-vRNIRecommendedRulesNsxBundle -ApplicationID (Get-vRNIApplication vRNI).entity_id
This will return the recommended firewall rules for the application called 'vRNI'
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>$sevenDaysAgo = (Get-Date).AddDays(-7)
PS C:\\> $start = [int][double]::Parse((Get-Date -Date $sevenDaysAgo -UFormat %s))
PS C:\\> $end = [int][double]::Parse((Get-Date -UFormat %s))
PS C:\\> Get-vRNIRecommendedRulesNsxBundle -ApplicationID (Get-vRNIApplication vRNI).entity_id -StartTime $start
-EndTime $end
This will return the recommended firewall rules for the application
called 'vRNI' from analysis on the last 7 days.
RELATED LINKS
SYNOPSIS
Retrieve the recommended firewall rules of a specific application bundled in the NSX-v format for
processing with the Rules Importer Tool (more on that at a later date)
SYNTAX
Get-vRNIRecommendedRulesNsxBundle [-StartTime <Int32>] [-EndTime <Int32>] [-ApplicationID <String>] -OutFile
<String> [-Connection <PSObject>] [<CommonParameters>]
DESCRIPTION
vRealize Network Insight collects netflow data and analyses the
required firewall rules to implement micro-segmentation. This means
you have a starting point when it comes to micro-segmentation and
implementing the needed firewall rules. This function retrieves the
recommended firewall rules for an application.
Per default this function uses a 14 day analysis period.
PARAMETERS
-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
-ApplicationID <String>
The application entity ID for which to retrieve the recommended rules
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-OutFile <String>
This cmdlet outputs a zip file specified by the filename here
Required? true
Position? named
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-vRNIRecommendedRulesNsxBundle -ApplicationID (Get-vRNIApplication vRNI).entity_id
This will return the recommended firewall rules for the application called 'vRNI'
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>$sevenDaysAgo = (Get-Date).AddDays(-7)
PS C:\\> $start = [int][double]::Parse((Get-Date -Date $sevenDaysAgo -UFormat %s))
PS C:\\> $end = [int][double]::Parse((Get-Date -UFormat %s))
PS C:\\> Get-vRNIRecommendedRulesNsxBundle -ApplicationID (Get-vRNIApplication vRNI).entity_id -StartTime $start
-EndTime $end
This will return the recommended firewall rules for the application
called 'vRNI' from analysis on the last 7 days.
RELATED LINKS