<?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: Convert .dar file: to be compatible with WFA 4.2 in Software Development Kit (SDK) and API Discussions</title>
    <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Convert-dar-file-to-be-compatible-with-WFA-4-2/m-p/146175#M2849</link>
    <description>&lt;P&gt;Hi Vikramjeet,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the source code from the original source file:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;param
(
  [parameter(Mandatory=$true, HelpMessage="Cluster IP address")]
  [string]$Cluster,
  
  [parameter(Mandatory=$true, HelpMessage="Storage Virtual Machine where User exists")]
  [string]$svmname,
  
  [parameter(Mandatory=$false, HelpMessage="Create a Audit log for updates")]
  [bool]$createauditlog=$false,
  
  [parameter(Mandatory=$false, HelpMessage="File path to text file")]
  [string]$auditfilepath=$("c:\audit\"+ $Cluster +"-"+ $svmname + "-PasswordChange-"+(get-date).ToString("yyyyMMdd-hhmmss")+'.txt')

 )
 
#Start here

Connect-WfaCluster $Cluster
$credentials =  get-wfacredentials -host newpassword


$userinfo = Get-NcUser $credentials.username -Vserver $svmname -AuthMethod password
 
if ($auditfilepath)
      {
      foreach($line in $userinfo)
	{
	(get-date).ToString("yyyyMMdd-hhmmss")+":"+$line |Out-File -Append  -FilePath $auditfilepath 
              }
      }

#Validate user exists
if ( $userinfo.Count -lt 1)
    {
    if ($auditfilepath)
      {
      (get-date).ToString("yyyyMMdd-hhmmss")+":Unable to find a valid user account for $Credentials.UserName on $svmname"|Out-File -Append  -FilePath $auditfilepath 
      }
    throw "Unable to find a valid user account for $UserName on $svmname"
    }
try
{
Set-NcUserPassword  -credential $credentials -VserverContext $svmname -Verbose
}
catch
{
    $ErrorMessage = $_.Exception.Message
    $FailedItem = $_.Exception.ItemName
   if ($auditfilepath)
         {
         (get-date).ToString("yyyyMMdd-hhmmss")+":Password for user $Credentials.Username was not Successfully updated for $svmname on $cluster ”|Out-File -Append  -FilePath $auditfilepath 
         $FailedItem|Out-File -Append  -FilePath $auditfilepath 
         $ErrorMessage|Out-File -Append  -FilePath $auditfilepath 
         }
      throw "$ErrorMessage"
    break
    }
finally
{
    Get-WFALogger -Info -message $("the password change was successful for $svmname on cluster $Cluster")
    if ($auditfilepath)
         {
         (get-date).ToString("yyyyMMdd-hhmmss")+":Password for user $Credentials.Username was Successfully updated for $svmname on $cluster ”|Out-File -Append  -FilePath $auditfilepath 
         }
}
    &lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For future reference I recommend using this PowerShell Module created by &lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/5409"&gt;@mirko&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.wfaguy.com/2017/02/change-version-of-dar-file.html" target="_blank"&gt;http://www.wfaguy.com/2017/02/change-version-of-dar-file.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is a powershell module that will enable you to covert between WFA versions. For example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;PS C:\Scripts\PowerShell\Projects\WFA\ReversionWFA&amp;gt; &lt;STRONG&gt;import-module .\ReversionWfa.psm1&lt;/STRONG&gt;
PS C:\Scripts\PowerShell\Projects\WFA\ReversionWFA&amp;gt; &lt;STRONG&gt;Set-WfaVersion .\close_locked_file.dar -Version 4.2 -RemoveDependencies&lt;/STRONG&gt;
DOWNGRADING DAR-FILES TO VERSION 4.2
MAJOR : 4
MINOR : 2
Processing .\close_locked_file.dar
Already lower [4.1.0.0.2]
7-Zip (A) 9.20  Copyright (c) 1999-2010 Igor Pavlov  2010-11-18
Scanning
Creating archive C:\Scripts\PowerShell\Projects\WFA\ReversionWFA\Wfa Versions 4.2\close_locked_file_(4.1).dar
Compressing  CommandDefinition_044c8f55_07b5_4b01_ba86_996807140fa9.xml
Compressing  META-INF\MANIFEST.MF
Compressing  TabularWorkflow_bfd2c0a6_fd2b_4907_ba18_e7958b82ea98.xml
Everything is Ok
Finished
Find your new dar files in [C:\Scripts\PowerShell\Projects\WFA\ReversionWFA\Wfa Versions 4.2]&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Download the "ReversionWFA" powershell module: &lt;A href="http://www.wfaguy.com/2017/02/change-version-of-dar-file.html" target="_blank"&gt;http://www.wfaguy.com/2017/02/change-version-of-dar-file.html&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;Extract the module&lt;/LI&gt;
&lt;LI&gt;Open a powershell session&lt;/LI&gt;
&lt;LI&gt;Browse to the path where you extracted the module&lt;/LI&gt;
&lt;LI&gt;Run Import-Module .\ReversionWfa.psm1&lt;/LI&gt;
&lt;LI&gt;Run Set-WfaVersion and provide cmdlet parameters (EG file, WFA version, remove dependancies, force etc)&lt;/LI&gt;
&lt;LI&gt;Import the updated .dar file into WFA.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Note: This module only supports conversion from WFA 3.0 and above. As the .dar file you wanted to convert was developed using WFA 2.X I had to import it into an old version of WFA 2.X in my lab, export it then import into WFA 3.X then use the above process to covert it WFA 4.X (painful but possible &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/Matt&lt;/P&gt;</description>
    <pubDate>Thu, 24 Jan 2019 23:29:10 GMT</pubDate>
    <dc:creator>mbeattie</dc:creator>
    <dc:date>2019-01-24T23:29:10Z</dc:date>
    <item>
      <title>Convert .dar file: to be compatible with WFA 4.2</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Convert-dar-file-to-be-compatible-with-WFA-4-2/m-p/146163#M2848</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can anyone help me converting the .dar file so that it is compatible with WFA 4.2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It could same me a lot of time!!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;LINK to the file:&lt;SPAN&gt;&lt;A href="https://community.netapp.com/fukiw75442/attachments/fukiw75442/oncommand-storage-management-software-discussions/12014/1/passwordupdate_Cdot.dar.zip" target="_blank"&gt;https://community.netapp.com/fukiw75442/attachments/fukiw75442/oncommand-storage-management-software-discussions/12014/1/passwordupdate_Cdot.dar.zip&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 12:55:37 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Convert-dar-file-to-be-compatible-with-WFA-4-2/m-p/146163#M2848</guid>
      <dc:creator>Vikramjeet_Singh</dc:creator>
      <dc:date>2025-06-04T12:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: Convert .dar file: to be compatible with WFA 4.2</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Convert-dar-file-to-be-compatible-with-WFA-4-2/m-p/146175#M2849</link>
      <description>&lt;P&gt;Hi Vikramjeet,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the source code from the original source file:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;param
(
  [parameter(Mandatory=$true, HelpMessage="Cluster IP address")]
  [string]$Cluster,
  
  [parameter(Mandatory=$true, HelpMessage="Storage Virtual Machine where User exists")]
  [string]$svmname,
  
  [parameter(Mandatory=$false, HelpMessage="Create a Audit log for updates")]
  [bool]$createauditlog=$false,
  
  [parameter(Mandatory=$false, HelpMessage="File path to text file")]
  [string]$auditfilepath=$("c:\audit\"+ $Cluster +"-"+ $svmname + "-PasswordChange-"+(get-date).ToString("yyyyMMdd-hhmmss")+'.txt')

 )
 
#Start here

Connect-WfaCluster $Cluster
$credentials =  get-wfacredentials -host newpassword


$userinfo = Get-NcUser $credentials.username -Vserver $svmname -AuthMethod password
 
if ($auditfilepath)
      {
      foreach($line in $userinfo)
	{
	(get-date).ToString("yyyyMMdd-hhmmss")+":"+$line |Out-File -Append  -FilePath $auditfilepath 
              }
      }

#Validate user exists
if ( $userinfo.Count -lt 1)
    {
    if ($auditfilepath)
      {
      (get-date).ToString("yyyyMMdd-hhmmss")+":Unable to find a valid user account for $Credentials.UserName on $svmname"|Out-File -Append  -FilePath $auditfilepath 
      }
    throw "Unable to find a valid user account for $UserName on $svmname"
    }
try
{
Set-NcUserPassword  -credential $credentials -VserverContext $svmname -Verbose
}
catch
{
    $ErrorMessage = $_.Exception.Message
    $FailedItem = $_.Exception.ItemName
   if ($auditfilepath)
         {
         (get-date).ToString("yyyyMMdd-hhmmss")+":Password for user $Credentials.Username was not Successfully updated for $svmname on $cluster ”|Out-File -Append  -FilePath $auditfilepath 
         $FailedItem|Out-File -Append  -FilePath $auditfilepath 
         $ErrorMessage|Out-File -Append  -FilePath $auditfilepath 
         }
      throw "$ErrorMessage"
    break
    }
finally
{
    Get-WFALogger -Info -message $("the password change was successful for $svmname on cluster $Cluster")
    if ($auditfilepath)
         {
         (get-date).ToString("yyyyMMdd-hhmmss")+":Password for user $Credentials.Username was Successfully updated for $svmname on $cluster ”|Out-File -Append  -FilePath $auditfilepath 
         }
}
    &lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For future reference I recommend using this PowerShell Module created by &lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/5409"&gt;@mirko&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.wfaguy.com/2017/02/change-version-of-dar-file.html" target="_blank"&gt;http://www.wfaguy.com/2017/02/change-version-of-dar-file.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is a powershell module that will enable you to covert between WFA versions. For example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;PS C:\Scripts\PowerShell\Projects\WFA\ReversionWFA&amp;gt; &lt;STRONG&gt;import-module .\ReversionWfa.psm1&lt;/STRONG&gt;
PS C:\Scripts\PowerShell\Projects\WFA\ReversionWFA&amp;gt; &lt;STRONG&gt;Set-WfaVersion .\close_locked_file.dar -Version 4.2 -RemoveDependencies&lt;/STRONG&gt;
DOWNGRADING DAR-FILES TO VERSION 4.2
MAJOR : 4
MINOR : 2
Processing .\close_locked_file.dar
Already lower [4.1.0.0.2]
7-Zip (A) 9.20  Copyright (c) 1999-2010 Igor Pavlov  2010-11-18
Scanning
Creating archive C:\Scripts\PowerShell\Projects\WFA\ReversionWFA\Wfa Versions 4.2\close_locked_file_(4.1).dar
Compressing  CommandDefinition_044c8f55_07b5_4b01_ba86_996807140fa9.xml
Compressing  META-INF\MANIFEST.MF
Compressing  TabularWorkflow_bfd2c0a6_fd2b_4907_ba18_e7958b82ea98.xml
Everything is Ok
Finished
Find your new dar files in [C:\Scripts\PowerShell\Projects\WFA\ReversionWFA\Wfa Versions 4.2]&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Download the "ReversionWFA" powershell module: &lt;A href="http://www.wfaguy.com/2017/02/change-version-of-dar-file.html" target="_blank"&gt;http://www.wfaguy.com/2017/02/change-version-of-dar-file.html&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;Extract the module&lt;/LI&gt;
&lt;LI&gt;Open a powershell session&lt;/LI&gt;
&lt;LI&gt;Browse to the path where you extracted the module&lt;/LI&gt;
&lt;LI&gt;Run Import-Module .\ReversionWfa.psm1&lt;/LI&gt;
&lt;LI&gt;Run Set-WfaVersion and provide cmdlet parameters (EG file, WFA version, remove dependancies, force etc)&lt;/LI&gt;
&lt;LI&gt;Import the updated .dar file into WFA.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Note: This module only supports conversion from WFA 3.0 and above. As the .dar file you wanted to convert was developed using WFA 2.X I had to import it into an old version of WFA 2.X in my lab, export it then import into WFA 3.X then use the above process to covert it WFA 4.X (painful but possible &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/Matt&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jan 2019 23:29:10 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Convert-dar-file-to-be-compatible-with-WFA-4-2/m-p/146175#M2849</guid>
      <dc:creator>mbeattie</dc:creator>
      <dc:date>2019-01-24T23:29:10Z</dc:date>
    </item>
  </channel>
</rss>

