<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Accessing the stored credentials in WFA for Vfiler dr resync in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Accessing-the-stored-credentials-in-WFA-for-Vfiler-dr-resync/m-p/105787#M18688</link>
    <description>&lt;P&gt;Hi Marco,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The PowerShell code for the WFA command would be something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#'------------------------------------------------------------------------------&lt;BR /&gt;Param(&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [parameter(Mandatory=$true, HelpMessage="The NetBIOS Hostname or IP address of the Source Controller")]&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [String]$SourceController,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [parameter(Mandatory=$true, HelpMessage="The NetBIOS HostName or IP address of the Source Vfiler")]&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [String]$SourceVFiler&lt;BR /&gt;)&lt;BR /&gt;#'------------------------------------------------------------------------------&lt;BR /&gt;#'Enumerate Credentials and connect to the Source Controller&lt;BR /&gt;#'------------------------------------------------------------------------------&lt;BR /&gt;[System.Management.Automation.PSCredential]$Credentials = Get-WfaCredentials -Host $SourceController&lt;BR /&gt;Connect-WfaController -Array $SourceController&lt;BR /&gt;#'------------------------------------------------------------------------------&lt;BR /&gt;#'Invoke the vFiler DR Resync&lt;BR /&gt;#'------------------------------------------------------------------------------&lt;BR /&gt;Get-WFALogger -Info -Message $("Resyncing remote vfiler: " + $SourceVFiler + "@" + $SourceController)&lt;BR /&gt;[String]$command = "Invoke-NaVfilerDrResync -RemoteVfiler $SourceVFiler -RemoteFiler $SourceController"&lt;BR /&gt;Try{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Invoke-NaVfilerDrResync -RemoteVfiler $SourceVFiler -RemoteFiler $SourceController -Credential $Credentials -Confirm:$False&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Get-WFALogger -Info -Message "Executed $command"&lt;BR /&gt;}Catch{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [String]$errorMessage = $error[0].Exception.Message&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Get-WFALogger -Error -Message "Failed Executing $command. $errorMessage"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Throw "Failed Executing $command. $errorMessage"&lt;BR /&gt;}&lt;BR /&gt;#'------------------------------------------------------------------------------&lt;/P&gt;</description>
    <pubDate>Wed, 03 Jun 2015 12:14:12 GMT</pubDate>
    <dc:creator>mbeattie</dc:creator>
    <dc:date>2015-06-03T12:14:12Z</dc:date>
    <item>
      <title>Accessing the stored credentials in WFA for Vfiler dr resync</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Accessing-the-stored-credentials-in-WFA-for-Vfiler-dr-resync/m-p/105691#M18680</link>
      <description>&lt;P&gt;How do I access the set of credentials that are stored in WFA from the PowerShell code in a command?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to do a vfiler dr resync on 7-Mode. There are no commands provided for that functionality, so I need to write it myself.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the vfiler dr resync command needs to be executed on the dr filer, but then has to connect to the source filer:&lt;/P&gt;&lt;P&gt;Invoke-NaVfilerDrResync -RemoteVfiler $SourceVfiler -RemoteFiler $SourceFiler&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This fails with the following error:&lt;BR /&gt;Parameter name: Credentials not provided in cmdlet argument or credentials cache.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I need to specify the -Credential parameter. Are the WFA controller credentials accessible via a parameter?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jun 2025 04:12:08 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Accessing-the-stored-credentials-in-WFA-for-Vfiler-dr-resync/m-p/105691#M18680</guid>
      <dc:creator>mteeuwen</dc:creator>
      <dc:date>2025-06-05T04:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing the stored credentials in WFA for Vfiler dr resync</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Accessing-the-stored-credentials-in-WFA-for-Vfiler-dr-resync/m-p/105770#M18686</link>
      <description>&lt;P&gt;&lt;SPAN&gt;$Credentials = Get-WfaCredentials -HostName $myHost&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;where $myHost is the name/ip of the Host whose credentials are saved in WFA-&amp;gt;Execution-&amp;gt;Credentials&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Read more about WFA cmdlets at :&amp;nbsp;http://&amp;lt;wfa_server_name_or_ip&amp;gt;/wfa/wfa_docs/PoSH/docs/index.html . You can locate more documentation from WFA-&amp;gt; Help -&amp;gt; Support Links.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sinhaa&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2015 05:07:56 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Accessing-the-stored-credentials-in-WFA-for-Vfiler-dr-resync/m-p/105770#M18686</guid>
      <dc:creator>sinhaa</dc:creator>
      <dc:date>2015-06-03T05:07:56Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing the stored credentials in WFA for Vfiler dr resync</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Accessing-the-stored-credentials-in-WFA-for-Vfiler-dr-resync/m-p/105787#M18688</link>
      <description>&lt;P&gt;Hi Marco,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The PowerShell code for the WFA command would be something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#'------------------------------------------------------------------------------&lt;BR /&gt;Param(&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [parameter(Mandatory=$true, HelpMessage="The NetBIOS Hostname or IP address of the Source Controller")]&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [String]$SourceController,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [parameter(Mandatory=$true, HelpMessage="The NetBIOS HostName or IP address of the Source Vfiler")]&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [String]$SourceVFiler&lt;BR /&gt;)&lt;BR /&gt;#'------------------------------------------------------------------------------&lt;BR /&gt;#'Enumerate Credentials and connect to the Source Controller&lt;BR /&gt;#'------------------------------------------------------------------------------&lt;BR /&gt;[System.Management.Automation.PSCredential]$Credentials = Get-WfaCredentials -Host $SourceController&lt;BR /&gt;Connect-WfaController -Array $SourceController&lt;BR /&gt;#'------------------------------------------------------------------------------&lt;BR /&gt;#'Invoke the vFiler DR Resync&lt;BR /&gt;#'------------------------------------------------------------------------------&lt;BR /&gt;Get-WFALogger -Info -Message $("Resyncing remote vfiler: " + $SourceVFiler + "@" + $SourceController)&lt;BR /&gt;[String]$command = "Invoke-NaVfilerDrResync -RemoteVfiler $SourceVFiler -RemoteFiler $SourceController"&lt;BR /&gt;Try{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Invoke-NaVfilerDrResync -RemoteVfiler $SourceVFiler -RemoteFiler $SourceController -Credential $Credentials -Confirm:$False&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Get-WFALogger -Info -Message "Executed $command"&lt;BR /&gt;}Catch{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [String]$errorMessage = $error[0].Exception.Message&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Get-WFALogger -Error -Message "Failed Executing $command. $errorMessage"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Throw "Failed Executing $command. $errorMessage"&lt;BR /&gt;}&lt;BR /&gt;#'------------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2015 12:14:12 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Accessing-the-stored-credentials-in-WFA-for-Vfiler-dr-resync/m-p/105787#M18688</guid>
      <dc:creator>mbeattie</dc:creator>
      <dc:date>2015-06-03T12:14:12Z</dc:date>
    </item>
  </channel>
</rss>

