<?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: Unable to create vlan using cmode DataONTAP powershell cmdelts in WFA in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Unable-to-create-vlan-using-cmode-DataONTAP-powershell-cmdelts-in-WFA/m-p/118178#M21030</link>
    <description>&lt;P&gt;Yes this worked. Another issue with this is I want to give user input as Vlan Name which will be in format for ex. a0a-1111.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I try to execute the below command script in wfa it gives me the error as&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;VLAN interface names must adhere to the following format: "&amp;lt;port name&amp;gt;-&amp;lt;vlan id&amp;gt;".&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;param (&lt;BR /&gt;[parameter(Mandatory=$true, HelpMessage="Name of the Storage VLAN ID.")]&lt;BR /&gt;[string]$VlanName,&lt;/P&gt;&lt;P&gt;[parameter(Mandatory=$true, HelpMessage="Name of the Storage Cluster")]&lt;BR /&gt;[string]$Cluster,&lt;/P&gt;&lt;P&gt;[parameter(Mandatory=$true, HelpMessage="Name of the Storage Node Name.")]&lt;BR /&gt;[string]$NodeName&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;Connect-WfaCluster $Cluster&lt;/P&gt;&lt;P&gt;$vlanname=$VlanName -Split "-"&lt;BR /&gt;$vlanname[0]&lt;BR /&gt;$vlanname[1]&lt;BR /&gt;New-NcNetPortVlan -Node $NodeName -ParentInterface $vlanname[0] -VlanId $vlanname[1]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But at the same time when I try to execute the last 4 lines of script in powershell It is working successfully.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What can be the issue&lt;/P&gt;</description>
    <pubDate>Tue, 12 Apr 2016 05:13:31 GMT</pubDate>
    <dc:creator>Rutul</dc:creator>
    <dc:date>2016-04-12T05:13:31Z</dc:date>
    <item>
      <title>Unable to create vlan using cmode DataONTAP powershell cmdelts in WFA</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Unable-to-create-vlan-using-cmode-DataONTAP-powershell-cmdelts-in-WFA/m-p/118133#M21009</link>
      <description>&lt;P&gt;I am trying to create vlan in cmode using WFA, but getting error like Parameter set cannot be resolved using the specified named parameters.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Trying to execute below script:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$PWord = ConvertTo-SecureString –String $password –AsPlainText -Force&lt;BR /&gt;$credential=New-Object –TypeName System.Management.Automation.PSCredential –ArgumentList $username, $PWord&lt;/P&gt;&lt;P&gt;$obj = Connect-NcController $Cluster -Credential $credential&lt;/P&gt;&lt;P&gt;New-NcNetPortVlan -VlanName "e0c-22" -Node "Rcluster-01" -ParentInterface e0c -VlanID 22 -Controller $obj&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What can be the issue ? Any inputs would be helpful&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 21:28:25 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Unable-to-create-vlan-using-cmode-DataONTAP-powershell-cmdelts-in-WFA/m-p/118133#M21009</guid>
      <dc:creator>Rutul</dc:creator>
      <dc:date>2025-06-04T21:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create vlan using cmode DataONTAP powershell cmdelts in WFA</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Unable-to-create-vlan-using-cmode-DataONTAP-powershell-cmdelts-in-WFA/m-p/118145#M21016</link>
      <description>&lt;P&gt;I've been using a different set of a parameters for the 'New-NcNetPortVlan' and it works pretty well. &amp;nbsp;This is the code I've been using in a custom command &amp;nbsp;to create VLANs; maybe give it a try?&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="Node name")]
  [string]$Node,

  [parameter(Mandatory=$true, HelpMessage="Port/IFGRP name")]
  [string]$Port,

  [parameter(Mandatory=$true, HelpMessage="VLAN ID")]
  [Alias("Vlan ID")]
  [int]$VLANID
)

# connect to controller
Connect-WfaCluster $Cluster

# create the VLAN
Get-WFALogger -Info -message $("Creating VLAN: '"+ $VLANID + "' on port/ifgrp '" + $Port + "' on Node '" + $Node + "' on Cluster '" + $Cluster + "'")
New-NcNetPortVlan $Port -Node $Node -VlanId $VLANID  -ErrorAction Stop&lt;/PRE&gt;</description>
      <pubDate>Mon, 11 Apr 2016 13:31:19 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Unable-to-create-vlan-using-cmode-DataONTAP-powershell-cmdelts-in-WFA/m-p/118145#M21016</guid>
      <dc:creator>JoelEdstrom</dc:creator>
      <dc:date>2016-04-11T13:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create vlan using cmode DataONTAP powershell cmdelts in WFA</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Unable-to-create-vlan-using-cmode-DataONTAP-powershell-cmdelts-in-WFA/m-p/118146#M21017</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I believe you're mixing parameters across the two methods of instantiating a VLAN on a port/ifgrp. &amp;nbsp;Using one parameter set&amp;nbsp;or the other should fix the error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The first method uses only the "VlanName" parameter to determine which VLAN and port/ifgrp to host it on:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;New-NcNetPortVlan -Node &lt;SPAN&gt;Rcluster-01&lt;/SPAN&gt; -VlanName e0c-22&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The second method simply specifies each piece of information individually:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;New-NcNetPortVlan -Node Rcluster-01 -ParentInterface e0c -VlanId 22&lt;BR /&gt;&lt;BR /&gt;# note that this method is usefull for specifying multiple VLANs simultaneously, e.g.:&lt;BR /&gt;New-NcNetPortVlan -Node Rcluster-01 -ParentInterface e0c -VlanId 22,56,109,1402&lt;/PRE&gt;&lt;P&gt;Because you're supplying information for both PowerShell is unable to determine which parameter set it should be using (even though they behave the same and each has all of it's data).&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;V/r,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2016 13:34:20 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Unable-to-create-vlan-using-cmode-DataONTAP-powershell-cmdelts-in-WFA/m-p/118146#M21017</guid>
      <dc:creator>asulliva</dc:creator>
      <dc:date>2016-04-11T13:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create vlan using cmode DataONTAP powershell cmdelts in WFA</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Unable-to-create-vlan-using-cmode-DataONTAP-powershell-cmdelts-in-WFA/m-p/118178#M21030</link>
      <description>&lt;P&gt;Yes this worked. Another issue with this is I want to give user input as Vlan Name which will be in format for ex. a0a-1111.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I try to execute the below command script in wfa it gives me the error as&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;VLAN interface names must adhere to the following format: "&amp;lt;port name&amp;gt;-&amp;lt;vlan id&amp;gt;".&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;param (&lt;BR /&gt;[parameter(Mandatory=$true, HelpMessage="Name of the Storage VLAN ID.")]&lt;BR /&gt;[string]$VlanName,&lt;/P&gt;&lt;P&gt;[parameter(Mandatory=$true, HelpMessage="Name of the Storage Cluster")]&lt;BR /&gt;[string]$Cluster,&lt;/P&gt;&lt;P&gt;[parameter(Mandatory=$true, HelpMessage="Name of the Storage Node Name.")]&lt;BR /&gt;[string]$NodeName&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;Connect-WfaCluster $Cluster&lt;/P&gt;&lt;P&gt;$vlanname=$VlanName -Split "-"&lt;BR /&gt;$vlanname[0]&lt;BR /&gt;$vlanname[1]&lt;BR /&gt;New-NcNetPortVlan -Node $NodeName -ParentInterface $vlanname[0] -VlanId $vlanname[1]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But at the same time when I try to execute the last 4 lines of script in powershell It is working successfully.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What can be the issue&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2016 05:13:31 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Unable-to-create-vlan-using-cmode-DataONTAP-powershell-cmdelts-in-WFA/m-p/118178#M21030</guid>
      <dc:creator>Rutul</dc:creator>
      <dc:date>2016-04-12T05:13:31Z</dc:date>
    </item>
  </channel>
</rss>

