All
I am trying to work on a simple workflow for creating a symlink. I am attaching the WFA command I created which works fine, but the trouble is when I insert this into creating a new workflow and matching the variables. I am very new to this WFA and it is confusing after this step. Can anyone help me create this workflow so I can learn and progress.
All I am trying to do is a symlink creation using New-NaFileSymlink PS
For my needs my first selection should be a vFiler and then choose the corresponding qtrees/volumes on that particular vFiler.
My command summary
New-NaFileSymlink /vol/vol_cifs/ftp_qtree /vol/ftplinks/ftpid
FTPID - ftpid (input by the user)
FTPVolumeName - ftplinks
Qtree Name - ftp_qtree
VFilerName - vfiler1
Volume Name - vol_cifs
MY COMMAND INFO ( for some reason I cant attach my dar file)
param (
[parameter(Mandatory=$true, HelpMessage="Volume name")]
[string]$VolumeName,
[parameter(Mandatory=$true, HelpMessage="Qtree name")]
[string]$QtreeName,
[parameter(Mandatory=$true, HelpMessage="vFiler name")]
[string]$VFilerName,
[parameter(Mandatory=$true, HelpMessage="Array name or IP address")]
[string]$Array,
[parameter(Mandatory=$true, HelpMessage="FTP Volume Name")]
[string]$FTPVolumeName,
[parameter(Mandatory=$true, HelpMessage="FTP ID")]
[string]$FTPID
)
# connect to controller
Connect-WfaController -Array $Array
# Set QtreePath
$QtreePath = "/vol/" + $VolumeName + "/" + $QtreeName
$FTPpath = "/vol/" + $FTPVolumeName + "/"+ "/" +$FTPID
New-NaFileSymlink $QtreePath $FTPpath