<?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: Add-NcCIFSServer in Microsoft Virtualization Discussions</title>
    <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Add-NcCIFSServer/m-p/129880#M5342</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/8646"&gt;@drwoodberry&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't think there's a way to do an async call for the API. &amp;nbsp;Even using Invoke-NcSsh you might run into the same problem if it's waiting for the cli command to return before the cmdlet exits and returns the response back to the PowerShell session.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The number of tries parameter is referring to how many times the PSTK will attempt the ZAPI call before failing...if the call is successful, but times out, that's a different issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;</description>
    <pubDate>Thu, 06 Apr 2017 17:28:57 GMT</pubDate>
    <dc:creator>asulliva</dc:creator>
    <dc:date>2017-04-06T17:28:57Z</dc:date>
    <item>
      <title>Add-NcCIFSServer</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Add-NcCIFSServer/m-p/129872#M5341</link>
      <description>&lt;P&gt;Given our environment, I am forced to join CIFS servers to the domain from across a VPN tunnel. I am attempting to use the "Add-NcCIFSServer" cmdlet in a try/catch statement in the event that the user fat fingers a usernamd or password and they can attempt to join the server three times. I have found out that this cmdlet seems to timeout though before the CIFS server is joined to the domain and falls into the catch. When I review the SVM, i see it is actually joined to the domain though. Does anyone have a clever way to pause or wait the the result of the Add-NcCIFSServer cmdlet? I see there is an option for numer of tries, but is that a number of pure attempts before moving on and does it initialize the request all over again?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I thought about using InVoke-NcSsh to attempt a command line creation of the CIFS server, but was wondering if I am missing somethign obvious.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bottom line, cmdlet times out, but the operation completes successfully.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 15:14:07 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Add-NcCIFSServer/m-p/129872#M5341</guid>
      <dc:creator>drwoodberry</dc:creator>
      <dc:date>2025-06-04T15:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: Add-NcCIFSServer</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Add-NcCIFSServer/m-p/129880#M5342</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/8646"&gt;@drwoodberry&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't think there's a way to do an async call for the API. &amp;nbsp;Even using Invoke-NcSsh you might run into the same problem if it's waiting for the cli command to return before the cmdlet exits and returns the response back to the PowerShell session.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The number of tries parameter is referring to how many times the PSTK will attempt the ZAPI call before failing...if the call is successful, but times out, that's a different issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2017 17:28:57 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Add-NcCIFSServer/m-p/129880#M5342</guid>
      <dc:creator>asulliva</dc:creator>
      <dc:date>2017-04-06T17:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: Add-NcCIFSServer</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Add-NcCIFSServer/m-p/129881#M5343</link>
      <description>&lt;P&gt;I am waiting to test the SSH command to see what happens.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am guess there cannot be a timeout switch added to the cmdlet for instances like this is there? Otherwise I was thinking about just executing the command, surpressing the error, waiting for a period of time and checking if the server joined...if not, attempt again.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2017 17:39:32 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Add-NcCIFSServer/m-p/129881#M5343</guid>
      <dc:creator>drwoodberry</dc:creator>
      <dc:date>2017-04-06T17:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: Add-NcCIFSServer</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Add-NcCIFSServer/m-p/129886#M5344</link>
      <description>&lt;P&gt;So using the Invoke command, it just suspends the script. I am sure it is waiting for the username and password but I am not sure how to pipe that into the Invoke. I will go back to square 1.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2017 18:19:21 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Add-NcCIFSServer/m-p/129886#M5344</guid>
      <dc:creator>drwoodberry</dc:creator>
      <dc:date>2017-04-06T18:19:21Z</dc:date>
    </item>
  </channel>
</rss>

