< Back
Get-NfNfsShare
Post
NAME Get-NfNfsShare
SYNOPSIS
Get information about one or more NFS Shares
SYNTAX
Get-NfNfsShare [<CommonParameters>]
Get-NfNfsShare -Path <String> [<CommonParameters>]
DESCRIPTION
Get information about one or more NFS Shares
PARAMETERS
-Path <String>
Required? true
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
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
If nothing is specified, all NFS shares are returned.
If a Name is specified, the NFS share with that name is retrieved.
If a path is specified, the NFS share with that filesystem is retrieved.
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Get-NfsShare | ft
filesystem shareState mountPoint securityContexts
anon nohide
---------- ---------- ---------- ----------------
---- ------
p1/top1 online /p1/top1 {@{readWriteList=System.Object[]; securityModes=System.Object[]}}
-1 False
p1/top2 online /p1/top2 {@{readOnlyList=System.Object[]; readWriteList=System.Object[];
root=System.Object[]; none=System.Object[]; securityModes=System.Object[]}} -1 False
p1/top2/sub1 online /p1/top2/sub1 {@{readWriteList=System.Object[]; securityModes=System.Object[]}}
-1 False
p1/top3 online /export/top3 {@{readWriteList=System.Object[]; securityModes=System.Object[]}}
-1 False
p1/top5 online /p1/top5 {@{root=System.Object[]; securityModes=System.Object[]}}
False
p2/top1/sub1 online /p2/top1/sub1 {@{readWriteList=System.Object[]; securityModes=System.Object[]}}
nobody False
Get all nfs shares
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Get-NfsShare p1/top1
anon : -1
filesystem : p1/top1
mountPoint : /p1/top1
nohide : False
securityContexts : {@{readWriteList=System.Object[]; securityModes=System.Object[]}}
shareState : online
Get NFS share for path
RELATED LINKS
SYNOPSIS
Get information about one or more NFS Shares
SYNTAX
Get-NfNfsShare [<CommonParameters>]
Get-NfNfsShare -Path <String> [<CommonParameters>]
DESCRIPTION
Get information about one or more NFS Shares
PARAMETERS
-Path <String>
Required? true
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
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
If nothing is specified, all NFS shares are returned.
If a Name is specified, the NFS share with that name is retrieved.
If a path is specified, the NFS share with that filesystem is retrieved.
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Get-NfsShare | ft
filesystem shareState mountPoint securityContexts
anon nohide
---------- ---------- ---------- ----------------
---- ------
p1/top1 online /p1/top1 {@{readWriteList=System.Object[]; securityModes=System.Object[]}}
-1 False
p1/top2 online /p1/top2 {@{readOnlyList=System.Object[]; readWriteList=System.Object[];
root=System.Object[]; none=System.Object[]; securityModes=System.Object[]}} -1 False
p1/top2/sub1 online /p1/top2/sub1 {@{readWriteList=System.Object[]; securityModes=System.Object[]}}
-1 False
p1/top3 online /export/top3 {@{readWriteList=System.Object[]; securityModes=System.Object[]}}
-1 False
p1/top5 online /p1/top5 {@{root=System.Object[]; securityModes=System.Object[]}}
False
p2/top1/sub1 online /p2/top1/sub1 {@{readWriteList=System.Object[]; securityModes=System.Object[]}}
nobody False
Get all nfs shares
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Get-NfsShare p1/top1
anon : -1
filesystem : p1/top1
mountPoint : /p1/top1
nohide : False
securityContexts : {@{readWriteList=System.Object[]; securityModes=System.Object[]}}
shareState : online
Get NFS share for path
RELATED LINKS