Data ONTAP® PowerShell Toolkit

Switch to clustered Data ONTAP documentation.

Cmdlet: New-NaFileSymlink


NAME
New-NaFileSymlink

SYNOPSIS
Create a symlink.

SYNTAX
New-NaFileSymlink [-Symlink] <String> [-Path] <String> [-Controller <NaContr
oller>] [<CommonParameters>]


DESCRIPTION
Create a symlink.


PARAMETERS
-Symlink <String>
Value of the symlink, i.e. what the symlink points to.

Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false

-Path <String>
Path of the symlink, i.e. /vol/<volumename>/<symlinkname>.

Required? true
Position? 2
Default value
Accept pipeline input? false
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.File.FileInfo


NOTES


Category: file
API: file-create-symlink

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

C:\PS>New-NaFileSymlink /vol/vol0/etc/hosts /vol/vol0/etc/symhosts


Create a symbolic link to the /etc/hosts file.


Name : /vol/vol0/etc/symhosts
FileType : symlink
FileSize : 19
CreationTimestampDT : 8/30/2010 9:17:11 PM
ChangedTimestampDT : 8/30/2010 9:17:11 PM
ModifiedTimestampDT : 8/30/2010 9:17:11 PM
AccessedTimestampDT : 8/30/2010 9:17:11 PM
AclType : no_acl
OwnerId : 0
GroupId : 0
Perm : 777
HardLinksCount : 1
InodeNumber : 3600112
IsEmpty :



RELATED LINKS
Get-NaFileSymlink







 Data ONTAP® PowerShell Toolkit