Data Infrastructure Management Software Discussions

vfiler set options


I would like set some options during WFA vfiler creation and the only way I found is

Invoke-NaSsh -ControllerName -Command "vfiler run options vftest cifs.restrict_anonymous 1"

The problem is that invoke-NAssh don't use connect-wfacontroller credentials and I need to cache them before with add-NACrendentials.

Does exist a way to use  invoke-NAssh with WFA integrated cretentials or set options in vfilers in others ways.

Thanks in advance.



Re: vfiler set options

HI Francois,

In a custom command to set options in a vfiler, i have used the below in the command code:

param (

  [parameter(Mandatory=$true, HelpMessage="Array name or IP address")]


  [parameter(Mandatory=$true, HelpMessage="Name of the vfiler")]


  [parameter(Mandatory=$true, HelpMessage="options name")]


  [parameter(Mandatory=$true, HelpMessage="option value")]




# connect to controller

Connect-WFAController -Array $Array -Vfiler $VfilerName

  # in vfiler context

Set-NaOption -OptionName $OptionName -OptionValue $Value

This code will help you connect to the vfiler directly and Connect-WFAController will take the credentials from what the user sets in WFA credentials

Hope this helps


View solution in original post

Re: vfiler set options

Hi sharu,

That is exactely what i wished, thanx a lot


Review Banner
All Community Forums