<?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: Error running the command &amp;quot;Add Volume to Dataset&amp;quot; in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Error-running-the-command-quot-Add-Volume-to-Dataset-quot/m-p/110876#M19584</link>
    <description>&lt;P&gt;Do you have any SSH server running on your DFM?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using Putty or any other SSH client, try to connect via SSH using the credentials you providing in WFA.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sinhaa&lt;/P&gt;</description>
    <pubDate>Fri, 09 Oct 2015 10:04:48 GMT</pubDate>
    <dc:creator>sinhaa</dc:creator>
    <dc:date>2015-10-09T10:04:48Z</dc:date>
    <item>
      <title>Error running the command "Add Volume to Dataset"</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Error-running-the-command-quot-Add-Volume-to-Dataset-quot/m-p/110871#M19581</link>
      <description>&lt;P&gt;&lt;FONT face="times new roman,times" size="3"&gt;I am trying to the use the command "Add Volume to Dataset" in my workflow,when i test the command i am getting the below mentioned error&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="times new roman,times" size="3" color="#FF0000"&gt;"No connection could be made because the target machine actively refused it"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="times new roman,times" size="3"&gt;is there anything which needs to be configured on the dfm server before running this command.As this command tries to establish a SSH session with the dfm server.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="times new roman,times" size="3"&gt;the powershel cmdlet used in this command is Invoke-NaSSH,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="times new roman,times" size="3"&gt;Any guidance on this would help.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="wfa_err.png" style="width: 784px;"&gt;&lt;img src="https://community.netapp.com/t5/image/serverpage/image-id/3905i84495C0357A1219D/image-size/large?v=v2&amp;amp;px=999" role="button" title="wfa_err.png" alt="wfa_err.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 23:05:31 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Error-running-the-command-quot-Add-Volume-to-Dataset-quot/m-p/110871#M19581</guid>
      <dc:creator>Aravind</dc:creator>
      <dc:date>2025-06-04T23:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: Error running the command "Add Volume to Dataset"</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Error-running-the-command-quot-Add-Volume-to-Dataset-quot/m-p/110876#M19584</link>
      <description>&lt;P&gt;Do you have any SSH server running on your DFM?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using Putty or any other SSH client, try to connect via SSH using the credentials you providing in WFA.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sinhaa&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2015 10:04:48 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Error-running-the-command-quot-Add-Volume-to-Dataset-quot/m-p/110876#M19584</guid>
      <dc:creator>sinhaa</dc:creator>
      <dc:date>2015-10-09T10:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: Error running the command "Add Volume to Dataset"</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Error-running-the-command-quot-Add-Volume-to-Dataset-quot/m-p/110885#M19587</link>
      <description>&lt;P&gt;As of now there is no SSH server configured on the dfm server.&amp;nbsp;Is SSH Server instaltion required to run this particular command.Or is there any other alternative way.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2015 11:23:48 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Error-running-the-command-quot-Add-Volume-to-Dataset-quot/m-p/110885#M19587</guid>
      <dc:creator>Aravind</dc:creator>
      <dc:date>2015-10-09T11:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: Error running the command "Add Volume to Dataset"</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Error-running-the-command-quot-Add-Volume-to-Dataset-quot/m-p/110903#M19591</link>
      <description>&lt;P&gt;If you have no money in your bank account, can you find an alternative way to draw&amp;nbsp;some money using your ATM card?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Think again..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2015 16:52:58 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Error-running-the-command-quot-Add-Volume-to-Dataset-quot/m-p/110903#M19591</guid>
      <dc:creator>sinhaa</dc:creator>
      <dc:date>2015-10-09T16:52:58Z</dc:date>
    </item>
    <item>
      <title>Re: Error running the command "Add Volume to Dataset"</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Error-running-the-command-quot-Add-Volume-to-Dataset-quot/m-p/111445#M19724</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's possible to use the DFM API rather than rely on the WFA certified command which uses the "Invoke-NaSsh" CmdLet.&lt;/P&gt;&lt;P&gt;If you use the DFM API method below you don't need to install SSH on your DFM server.&lt;/P&gt;&lt;P&gt;Here is the PowerShell Code. Hope this helps?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/matt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;param(
   [Parameter(Mandatory=$true, HelpMessage="The name of the storage controller or vfiler hosting the volume")]
   [String]$Array,
   [Parameter(Mandatory=$true, HelpMessage="Name or IP address of the DataFabric Manager Server")]
   [String]$DFMServerName,
   [Parameter(Mandatory=$true, HelpMessage="DFM Dataset name")]
   [String]$DatasetName,
   [parameter(Mandatory=$true, HelpMessage="The Volume name to add to the DFM Dataset")]
   [String]$VolumeName
)
#'------------------------------------------------------------------------------
#'Enumerate the DFM Server Credentials.
#'------------------------------------------------------------------------------
$credentials = Get-WfaCredentials -Host $DFMServerName
If(!$credentials){
   Throw "Failed to connect to DFM: " + $DFMServerName + ".`nNo credentials were found.";
}
#'------------------------------------------------------------------------------
#'Create a ZAPI connection to the DFM server.
#'------------------------------------------------------------------------------
[NetApp.Manage.NaServer]$naServer = New-WfaZapiServer -Host $DFMServerName -Type DFM -Credentials $credentials
Get-WfaLogger -Info -Message $("Connected to DFM Server " + $DFMServerName)
#'------------------------------------------------------------------------------
#'Invoke the API to edit the DFM Dataset
#'------------------------------------------------------------------------------
$naElement = New-Object NetApp.Manage.naElement("dataset-edit-begin")
$naElement.AddNewChild("dataset-name-or-id", $DatasetName)
$results = $naServer.InvokeElem($naElement)
#'------------------------------------------------------------------------------
#'Check the API Status and enumerate the Dataset lock ID
#'------------------------------------------------------------------------------
If($results.GetAttr("status") -eq "passed"){
   $lockID = $results.GetChildContent("edit-lock-id")
   Get-WFALogger -Info -Message $("Editing DFM Dataset ""$DatasetName"" Lock ID ""$lockID""")
}Else{
   Throw ("Failed to execute ZAPI call ""dataset-edit-begin"". Error: " + $results.GetAttr("status"))
}
#'------------------------------------------------------------------------------
#'Set the volume name to the required format to add it to the dataset.
#'------------------------------------------------------------------------------
If($VolumeName.Contains("/vol/")){
   $VolumeName = $VolumeName -Replace("/vol/", "")
}
[String]$volumeFullName = "$Array`:/$volumeName"
#'------------------------------------------------------------------------------
#'Invoke the API to add the volume to the DFM dataset.
#'------------------------------------------------------------------------------
$naElement = New-Object NetApp.Manage.naElement("dataset-add-member")
$naElement.AddNewChild("edit-lock-id", $lockID)
$naElement1 = New-Object NetApp.Manage.naElement("dataset-member-parameters")
$naElement2 = New-Object NetApp.Manage.naElement("dataset-member-parameter")
$naElement2.AddNewChild("object-name-or-id", $volumeFullName)
$naElement1.AddChildElement($naElement2)
$naElement.AddChildElement($naElement1)
$results = $naServer.InvokeElem($naElement)
#'------------------------------------------------------------------------------
#'Invoke the API to rollback if the API failed to add the volume to the DFM dataset.
#'------------------------------------------------------------------------------
If($results.GetAttr("status") -eq "failed"){
   $naElement = New-Object NetApp.Manage.naElement("dataset-edit-rollback")
   $naElement.AddNewChild("edit-lock-id", $lockID)
   $results = $naServer.InvokeElem($naElement)
   If($results.GetAttr("status") -eq "failed"){
      Throw ("Failed to execute ZAPI call ""dataset-edit-rollback"". Error: " + $results.GetAttr("status"))
   }Else{
      Get-WFALogger -Info -Message $("Invoked Rollback for Lock ID ""$LockID"" on Dataset ""$DatasetName""")
   }
}
#'------------------------------------------------------------------------------
#'Invoke the API to Commit the changes if the API to add the volume to the DFM dataset passed.
#'------------------------------------------------------------------------------
If($results.GetAttr("status") -eq "passed"){
   $naElement = New-Object NetApp.Manage.naElement("dataset-edit-commit")
   $naElement.AddNewChild("edit-lock-id", $lockID)
   $results = $naServer.InvokeElem($naElement)
   If($results.GetAttr("status") -eq "failed"){
      Throw ("Failed to execute ZAPI call ""dataset-edit-commit"". Error: " + $results.GetAttr("status"))
   }
}
#'------------------------------------------------------------------------------
#'Log the results if the API successfully committed the changes
#'------------------------------------------------------------------------------
If($results.GetAttr("status") -eq "passed"){
   Get-WFALogger -Info -Message $("Added Volume ""$volumeFullName"" to DFM Dataset ""$DatasetName""")
}
#'------------------------------------------------------------------------------&lt;/PRE&gt;</description>
      <pubDate>Wed, 21 Oct 2015 08:12:37 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Error-running-the-command-quot-Add-Volume-to-Dataset-quot/m-p/111445#M19724</guid>
      <dc:creator>mbeattie</dc:creator>
      <dc:date>2015-10-21T08:12:37Z</dc:date>
    </item>
    <item>
      <title>Re: Error running the command "Add Volume to Dataset"</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Error-running-the-command-quot-Add-Volume-to-Dataset-quot/m-p/111533#M19742</link>
      <description>&lt;P&gt;Thanks a lot matt, that worked for me.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2015 07:04:49 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Error-running-the-command-quot-Add-Volume-to-Dataset-quot/m-p/111533#M19742</guid>
      <dc:creator>Aravind</dc:creator>
      <dc:date>2015-10-22T07:04:49Z</dc:date>
    </item>
  </channel>
</rss>

