|
|
Data ONTAP® PowerShell Toolkit
|
Cmdlet: New-NaFileSymlink
NAME
New-NaFileSymlink
SYNOPSIS
Create a symlink.
SYNTAX
New-NaFileSymlink [-Symlink] <String> [-Path] <String> [-Controller <NaContr
oller>] [-WarningAction <ActionPreference>] [-WarningVariable <String>] [<Co
mmonParameters>]
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 DataONTAP controller object, embodied by an NaController object. Th
is parameter is returned by the Connect-NaController cmdlet. If not spe
cified, the value in the global variable CurrentNaController is used.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-WarningAction <ActionPreference>
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-WarningVariable <String>
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
NetApp.Ontapi.Filer.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.
AccessedTimestamp : 1273088505
AclType : no_acl
ChangedTimestamp : 1273088505
CreationTimestamp : 1273088505
FileSize : 19
FileType : symlink
GroupId : 0
HardLinksCount : 1
InodeNumber : 3784341
IsEmpty :
ModifiedTimestamp : 1273088505
Name : /vol/vol0/etc/symhosts
OwnerId : 0
Perm : 777
IsEmptySpecified : False
RELATED LINKS
Get-NaFileSymlink
| Copyright © 2010 NetApp. All rights reserved. Use is subject to license terms. |
|
Data ONTAP® PowerShell Toolkit
|