<?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 WFA - Rename Node - NonInteractive mode in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Rename-Node-NonInteractive-mode/m-p/138031#M25052</link>
    <description>&lt;P&gt;Hey All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Mainly documenting this here in case anyone else runs into this.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was testing out a WFA command to rename a node and was getting errors about NonInteractive mode when testing the command.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Output from the command test:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;20:29:20.316 INFO  [Rename Node] ### Command 'Rename Node' in 'POWER_SHELL' ###
20:29:22.863 INFO  [Rename Node] Get-WfaCredentials -Host primary_cluster
20:29:22.894 INFO  [Rename Node] Credentials successfully provided for 'primary_cluster'
20:29:22.941 INFO  [Rename Node] Connect-Controller -Type CLUSTER -Name primary_cluster -Credential System.Management.Automation.PSCredential -Vserver 
20:29:23.222 INFO  [Rename Node] Connect-NcController (with credentials) -Name primary_cluster -Timeout 60000 -ErrorAction Stop -Port 443 -SSLVersion TLSv1.2
20:29:25.097 INFO  [Rename Node] Connected to cluster node
20:29:25.113 INFO  [Rename Node] Renaming node 'test' with new name of 'test2' on Cluster 'primary_cluster'
20:29:25.191 ERROR  [Rename Node] Windows PowerShell is in NonInteractive mode. Read and Prompt functionality is not available.
20:29:25.300 ERROR  [Rename Node] Failed executing command. Exception: Windows PowerShell is in NonInteractive mode. Read and Prompt functionality is not available.&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I ran the code from the Windows server itself and the error was apparent - it's trying to confirm the action:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;PS C:\Program Files\netapp\wfa\posh&amp;gt; rename-ncnode -name primary_controller-01 -NewName test

Rename node
Are you sure you want to rename node primary_controller-01 to test?
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "Y"): PS C:\Program Files\netapp\wfa\p
osh&amp;gt;
PS C:\Program Files\netapp\wfa\posh&amp;gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So I ended up adding '-Confirm:$false' to the command code and things work properly now.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's the PoSH code for the node rename if anyone needs it.&amp;nbsp; Super simple but might save someone a few minutes of work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&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="Old Node name")]
  [string]$OldNodeName,

  [parameter(Mandatory=$true, HelpMessage="New Node name")]
  [string]$NewNodeName
)

# connect to controller
Connect-WfaCluster $Cluster

# rename the aggregate
Get-WFALogger -Info -message $("Renaming node '" + $OldNodeName + "' with new name of '" + $NewNodeName + "' on Cluster '" + $Cluster + "'")
Rename-NcNode -Name $OldNodeName -NewName $NewNodeName -Confirm:$false -ErrorAction Stop &lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jun 2025 14:02:29 GMT</pubDate>
    <dc:creator>joele</dc:creator>
    <dc:date>2025-06-04T14:02:29Z</dc:date>
    <item>
      <title>WFA - Rename Node - NonInteractive mode</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Rename-Node-NonInteractive-mode/m-p/138031#M25052</link>
      <description>&lt;P&gt;Hey All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Mainly documenting this here in case anyone else runs into this.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was testing out a WFA command to rename a node and was getting errors about NonInteractive mode when testing the command.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Output from the command test:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;20:29:20.316 INFO  [Rename Node] ### Command 'Rename Node' in 'POWER_SHELL' ###
20:29:22.863 INFO  [Rename Node] Get-WfaCredentials -Host primary_cluster
20:29:22.894 INFO  [Rename Node] Credentials successfully provided for 'primary_cluster'
20:29:22.941 INFO  [Rename Node] Connect-Controller -Type CLUSTER -Name primary_cluster -Credential System.Management.Automation.PSCredential -Vserver 
20:29:23.222 INFO  [Rename Node] Connect-NcController (with credentials) -Name primary_cluster -Timeout 60000 -ErrorAction Stop -Port 443 -SSLVersion TLSv1.2
20:29:25.097 INFO  [Rename Node] Connected to cluster node
20:29:25.113 INFO  [Rename Node] Renaming node 'test' with new name of 'test2' on Cluster 'primary_cluster'
20:29:25.191 ERROR  [Rename Node] Windows PowerShell is in NonInteractive mode. Read and Prompt functionality is not available.
20:29:25.300 ERROR  [Rename Node] Failed executing command. Exception: Windows PowerShell is in NonInteractive mode. Read and Prompt functionality is not available.&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I ran the code from the Windows server itself and the error was apparent - it's trying to confirm the action:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;PS C:\Program Files\netapp\wfa\posh&amp;gt; rename-ncnode -name primary_controller-01 -NewName test

Rename node
Are you sure you want to rename node primary_controller-01 to test?
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "Y"): PS C:\Program Files\netapp\wfa\p
osh&amp;gt;
PS C:\Program Files\netapp\wfa\posh&amp;gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So I ended up adding '-Confirm:$false' to the command code and things work properly now.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's the PoSH code for the node rename if anyone needs it.&amp;nbsp; Super simple but might save someone a few minutes of work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&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="Old Node name")]
  [string]$OldNodeName,

  [parameter(Mandatory=$true, HelpMessage="New Node name")]
  [string]$NewNodeName
)

# connect to controller
Connect-WfaCluster $Cluster

# rename the aggregate
Get-WFALogger -Info -message $("Renaming node '" + $OldNodeName + "' with new name of '" + $NewNodeName + "' on Cluster '" + $Cluster + "'")
Rename-NcNode -Name $OldNodeName -NewName $NewNodeName -Confirm:$false -ErrorAction Stop &lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 14:02:29 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Rename-Node-NonInteractive-mode/m-p/138031#M25052</guid>
      <dc:creator>joele</dc:creator>
      <dc:date>2025-06-04T14:02:29Z</dc:date>
    </item>
  </channel>
</rss>

