<?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 Rename LIF using Update-NcNetInterface Fails in Microsoft Virtualization Discussions</title>
    <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Rename-LIF-using-Update-NcNetInterface-Fails/m-p/116257#M4765</link>
    <description>&lt;P&gt;Trying to rename the node management LIFs using Update-NcNetInterface but it does not rename the lif even though it reports a success count of 1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS C:\&amp;gt; $q = get-NcNetInterface -Template&lt;BR /&gt;PS C:\&amp;gt; $q.InterfaceName = "CLUSTER-01_mgmt1"&lt;BR /&gt;PS C:\&amp;gt; $a = Get-NcNetInterface -Template&lt;BR /&gt;PS C:\&amp;gt; $a.InterfaceName = "CLUSTER-A_mgmt"&lt;BR /&gt;PS C:\&amp;gt; Update-NcNetInterface -Query $q -Attributes $a&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NcController : xx.xx.xx.xx&lt;BR /&gt;SuccessCount : 1&lt;BR /&gt;FailureCount : 0&lt;BR /&gt;SuccessList : {CLUSTER-01_mgmt1}&lt;BR /&gt;FailureList : {}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have also attempted this on data lifs with the same result so it's not specific to management lifs. &amp;nbsp;Also tried setting the AdministrativeStatus to "down" prior to rename - same result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Renaming the LIF from the CLI works perfectly!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could make a new LIF and then delete the old one but this should work. &amp;nbsp;It sets any other property EXCEPT the InterfaceName and it works from the CLI.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jun 2025 21:58:09 GMT</pubDate>
    <dc:creator>JohnChampion</dc:creator>
    <dc:date>2025-06-04T21:58:09Z</dc:date>
    <item>
      <title>Rename LIF using Update-NcNetInterface Fails</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Rename-LIF-using-Update-NcNetInterface-Fails/m-p/116257#M4765</link>
      <description>&lt;P&gt;Trying to rename the node management LIFs using Update-NcNetInterface but it does not rename the lif even though it reports a success count of 1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS C:\&amp;gt; $q = get-NcNetInterface -Template&lt;BR /&gt;PS C:\&amp;gt; $q.InterfaceName = "CLUSTER-01_mgmt1"&lt;BR /&gt;PS C:\&amp;gt; $a = Get-NcNetInterface -Template&lt;BR /&gt;PS C:\&amp;gt; $a.InterfaceName = "CLUSTER-A_mgmt"&lt;BR /&gt;PS C:\&amp;gt; Update-NcNetInterface -Query $q -Attributes $a&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NcController : xx.xx.xx.xx&lt;BR /&gt;SuccessCount : 1&lt;BR /&gt;FailureCount : 0&lt;BR /&gt;SuccessList : {CLUSTER-01_mgmt1}&lt;BR /&gt;FailureList : {}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have also attempted this on data lifs with the same result so it's not specific to management lifs. &amp;nbsp;Also tried setting the AdministrativeStatus to "down" prior to rename - same result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Renaming the LIF from the CLI works perfectly!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could make a new LIF and then delete the old one but this should work. &amp;nbsp;It sets any other property EXCEPT the InterfaceName and it works from the CLI.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 21:58:09 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Rename-LIF-using-Update-NcNetInterface-Fails/m-p/116257#M4765</guid>
      <dc:creator>JohnChampion</dc:creator>
      <dc:date>2025-06-04T21:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: Rename LIF using Update-NcNetInterface Fails</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Rename-LIF-using-Update-NcNetInterface-Fails/m-p/116259#M4766</link>
      <description>&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I suspect it's because it may require shell access to rename the node management LIF and the PowerShell CmdLets invoke ZAPI's instead of shell commands.&lt;/P&gt;&lt;P&gt;You can use the Invoke-NcSsh CmdLet. Here is an example of a WFA command i wrote to rename a logical interface name:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Param(
   [Parameter(Mandatory=$True, HelpMessage="The hostname or IP Address of the cluster")]
   [String]$ClusterName,
   [Parameter(Mandatory=$True, HelpMessage="The name of the vserver")]
   [String]$VserverName,
   [Parameter(Mandatory=$True, HelpMessage="The name of the logical interface to rename")]
   [String]$LogicalInterfaceName,
   [Parameter(Mandatory=$True, HelpMessage="The new name of the logical interface")]
   [String]$NewLogicalInterfaceName     
)
#'------------------------------------------------------------------------------
#'Connect to the cluster
#'------------------------------------------------------------------------------
Get-WFALogger -Info -Message "Renaming logical interface ""$LogicalInterfaceName"" to ""$NewLogicalInterfaceName"" on vserver ""$VserverName"" on cluster ""$ClusterName"""
Connect-WFACluster $ClusterName
#'------------------------------------------------------------------------------
#'Ensure the logical interface exists.
#'------------------------------------------------------------------------------
$attributes = Get-NcNetInterface -Template
$attributes.InterfaceName = ""
Try{
   $interface = Get-NcNetInterface -Name $LogicalInterfaceName -Vserver $VserverName -Attributes $attributes -ErrorAction Stop
   [String]$lifName = $interface.InterfaceName
   Get-WFALogger -Info -Message "Enumerated logical interface ""$LogicalInterfaceName"" on vserver ""$VserverName"""
}Catch{
   Get-WFALogger -Error -Message $("Failed enumerating logical interface ""$LogicalInterfaceName"" on vserver ""$VserverName"". Error " + $_.Exception.Message)
   Throw "Failed enumerating logical interface ""$LogicalInterfaceName"" on vserver ""$VserverName"""
}
If($lifName -eq "" -Or $lifName -eq $Null){
   Throw "The logical interface ""$LogicalInterfaceName"" on vserver ""$vserverName"" does not exist"
}
#'------------------------------------------------------------------------------
#'Rename the logical interface using SSH.
#'------------------------------------------------------------------------------
[String]$command = "network interface rename -vserver $VserverName -lif $LogicalInterfaceName -newname $NewLogicalInterfaceName"
Try{
   Invoke-NcSsh -Command $command -ErrorAction Stop
   Get-WFALogger -Info -Message "Executed command`: $command"
}Catch{
   Get-WFALogger -Error -Message $("Failed executing command`: $command. Error " + $_.Exception.Message)
   Throw "Failed renaming network interface ""$LogicalInterfaceName"" to ""$NewLogicalInterfaceName"""
}
#'------------------------------------------------------------------------------
#'Enumerate the logical interface after it has been renamed.
#'------------------------------------------------------------------------------
$attributes = Get-NcNetInterface -Template
$attributes.InterfaceName = ""
Try{
   $interface = Get-NcNetInterface -Name $NewLogicalInterfaceName -Vserver $VserverName -Attributes $attributes -ErrorAction Stop
   [String]$lifName = $interface.InterfaceName
   Get-WFALogger -Info -Message "Enumerated logical interface ""$NewLogicalInterfaceName"" on vserver ""$VserverName"""
}Catch{
   Get-WFALogger -Error -Message $("Failed enumerating logical interface ""$NewLogicalInterfaceName"" on vserver ""$VserverName"". Error " + $_.Exception.Message)
   Throw "Failed enumerating logical interface ""$NewLogicalInterfaceName"" on vserver ""$VserverName"""
}
#'------------------------------------------------------------------------------
#'Ensure the logical interface has been renamed.
#'------------------------------------------------------------------------------
If($NewLogicalInterfaceName -ne $lifName){
   Throw "Failed renaming logical interface ""$LogicalInterfaceName"" to ""$NewLogicalInterfaceName"" on vserver ""$VserverName"""
}Else{
   Get-WFALogger -Info -Message "The logical interface ""$LogicalInterfaceName"" has been renamed to ""$NewLogicalInterfaceName"" on vserver ""$VserverName"""
}
#'------------------------------------------------------------------------------&lt;/PRE&gt;&lt;P&gt;Here is an example of the logs:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;10:03:04.498 INFO&amp;nbsp; [rename_logical_interface] ### Command 'rename_logical_interface' in 'POWER_SHELL' ###&lt;BR /&gt;10:03:08.217 INFO&amp;nbsp; [rename_logical_interface] Renaming logical interface "vserver1_cifs_lif2" to "vserver1_cifs_lif3" on vserver "vserver1" on cluster "cluster1.testlab.local"&lt;BR /&gt;10:03:08.280 INFO&amp;nbsp; [rename_logical_interface] Get-WfaCredentials -Host cluster1.testlab.local&lt;BR /&gt;10:03:08.327 INFO&amp;nbsp; [rename_logical_interface] Credentials successfully provided for 'cluster1.testlab.local'&lt;BR /&gt;10:03:08.342 INFO&amp;nbsp; [rename_logical_interface] Connect-Controller -Type CLUSTER -Name cluster1.testlab.local -Credential System.Management.Automation.PSCredential -Vserver&amp;nbsp; -Timeout 60000&lt;BR /&gt;10:03:08.389 INFO&amp;nbsp; [rename_logical_interface] Connect-NcController (with credentials) -Name cluster1.testlab.local -Timeout 60000 -ErrorAction Stop&lt;BR /&gt;10:03:22.670 INFO&amp;nbsp; [rename_logical_interface] Connected to cluster node&lt;BR /&gt;10:03:23.280 INFO&amp;nbsp; [rename_logical_interface] Enumerated logical interface "vserver1_cifs_lif2" on vserver "vserver1"&lt;BR /&gt;10:03:24.999 INFO&amp;nbsp; [rename_logical_interface] Executed command: network interface rename -vserver vserver1 -lif vserver1_cifs_lif2 -newname vserver1_cifs_lif3&lt;BR /&gt;10:03:25.045 INFO&amp;nbsp; [rename_logical_interface] Enumerated logical interface "vserver1_cifs_lif3" on vserver "vserver1"&lt;BR /&gt;10:03:25.061 INFO&amp;nbsp; [rename_logical_interface] The logical interface "vserver1_cifs_lif2" has been renamed to "vserver1_cifs_lif3" on vserver "vserver1"&lt;BR /&gt;10:03:25.202 INFO&amp;nbsp; [rename_logical_interface] Command completed, took 20704 milliseconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that helps&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;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Feb 2016 23:11:35 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Rename-LIF-using-Update-NcNetInterface-Fails/m-p/116259#M4766</guid>
      <dc:creator>mbeattie</dc:creator>
      <dc:date>2016-02-24T23:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: Rename LIF using Update-NcNetInterface Fails</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Rename-LIF-using-Update-NcNetInterface-Fails/m-p/116284#M4767</link>
      <description>&lt;P&gt;^^&lt;/P&gt;&lt;P&gt;Ok, I will admit I hate the implementation of powershell for cDOT. &amp;nbsp; I'm a huge fan of powershell on 7-mode, beening using it heavily since 7-mode v1.0. &amp;nbsp;(Check my post archives)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my mind, invoke-ncssh is a "patch" on how to run an SSH command. &amp;nbsp;These should all be done via API with powershell.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is no reason on my mind we shouldn't be able to do this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;get-ncnetinterface | ? {$_.interfacename -eq "blah"} | set-ncnetinterfacen -interfacename "newblah"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I might be ranting a little, but this is my opinion and i'm pretty strong on this.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2016 13:53:02 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Rename-LIF-using-Update-NcNetInterface-Fails/m-p/116284#M4767</guid>
      <dc:creator>JGPSHNTAP</dc:creator>
      <dc:date>2016-02-25T13:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: Rename LIF using Update-NcNetInterface Fails</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Rename-LIF-using-Update-NcNetInterface-Fails/m-p/116290#M4768</link>
      <description>&lt;P&gt;This appears to be a limitation of ZAPI, not the PSTK. &amp;nbsp;ZAPI uses the vserver + name as the unique identifier for the LIF,&amp;nbsp;and there is no option to change the name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2016 16:29:22 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Rename-LIF-using-Update-NcNetInterface-Fails/m-p/116290#M4768</guid>
      <dc:creator>asulliva</dc:creator>
      <dc:date>2016-02-25T16:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: Rename LIF using Update-NcNetInterface Fails</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Rename-LIF-using-Update-NcNetInterface-Fails/m-p/116303#M4769</link>
      <description>&lt;P&gt;I figured as much - even tried using just the IP Address in the query template to get around this - but if ZAPI insists .... well.&amp;nbsp; Long term this should be worked out without resorting to NcSsh I think.&amp;nbsp; Especially considering there is a CLI command. Maybe Ontapi 1.40 &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks Andrew&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2016 22:06:10 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Rename-LIF-using-Update-NcNetInterface-Fails/m-p/116303#M4769</guid>
      <dc:creator>JohnChampion</dc:creator>
      <dc:date>2016-02-25T22:06:10Z</dc:date>
    </item>
  </channel>
</rss>

