Data ONTAP® PowerShell Toolkit

Switch to Data ONTAP Cluster-mode documentation.

Cmdlet: Get-NaNetRoute


NAME
Get-NaNetRoute

SYNOPSIS
List kernel routes in the active network configuration.

SYNTAX
Get-NaNetRoute [[-Destination] <String>] [-Controller <NaController>] [<Comm
onParameters>]


DESCRIPTION
List kernel routes in the active network configuration.


PARAMETERS
-Destination <String>
The destination of the route entry to query. If not provided, all route
s will be retrieved. Wildcards are permitted.

Required? false
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false

-Controller <NaController>
The Data ONTAP controller object, embodied by an NaController object. T
his parameter is returned by the Connect-NaController cmdlet. If not sp
ecified, the value in the global variable CurrentNaController is used.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".

INPUTS



OUTPUTS
DataONTAP.Types.Net.RouteInfo


NOTES


Category: net
API: net-config-get-active

-------------- Example 1 --------------

C:\PS>Get-NaNetRoute default


List all of the default routes.


Destination : default
RouteType : net
Prefixlen :
NextHop : 10.61.167.1
Metric : 1
AddrFamily : af-inet
Creator : vfiler:vfiler0
IpspaceName : default-ipspace

Destination : default
RouteType : net
Prefixlen :
NextHop : 3ffe:1900:4545:3:200:f8ff:fe21:67ce
Metric : 1
AddrFamily : af-inet6
Creator : vfiler:vfiler0
IpspaceName : default-ipspace

Destination : default
RouteType : net
Prefixlen :
NextHop : 40.40.40.1
Metric : 1
AddrFamily : af-inet
Creator : vfiler:vfiler4
IpspaceName : testspace



RELATED LINKS
Add-NaNetRoute
Remove-NaNetRoute







 Data ONTAP® PowerShell Toolkit