cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
276
Views
0
Helpful
6
Replies
Beginner

allowed vlans on port channel

Hi,

 

I would like to find out the list of VLAN's which are allowed on a particular Port channel using powertool.

 

Please help me with the powertool command to find the above mentioned details.

6 REPLIES 6
VIP Advisor

Re: allowed vlans on port channel

May be never heard Powertools before ? what is this one ? how it works ?

 

Do you mean below one :

 

https://dev.bukkit.org/projects/powertool

BB
*** Rate All Helpful Responses ***
Beginner

Re: allowed vlans on port channel

I mean Powershell module of Cisco UCS.

VIP Advisor

Re: allowed vlans on port channel

Then that is Powershell (not Powertools)

 

here is the example of Powershell start with :

 

https://www.sherweb.com/blog/fun-with-powershell-plink-cisco-ios-and-powershell/

https://zeleskitech.com/2014/08/02/sending-automated-commands-to-a-cisco-device-using-ssh-powershell/

 

BB
*** Rate All Helpful Responses ***
Highlighted
Beginner

Re: allowed vlans on port channel

Hi,

 

Thanks for your reply.

 

I am already using UCS Powertool. I just need to know the specific cmdlet to get the list of allowed VLAN's on a port channel.

Rising star

Re: allowed vlans on port channel

Hello @kunal.bhadra1 ,

 

Please check if this works for you …

 

  1. Get the Vnic Template
  2. Get the Vlans attached to vnic template.

 

Get-UcsVnicTemplate | Get-UcsVnicInterface

 

Good way to learn Managed Object Hierarchy is to use following cmdlet.

 

PS C:\> Get-UcsCmdletMeta -ClassId VnicLanConnTempl -Tree

 

OrgOrg (UcsOrg) (Get, Add, Set, Remove)

  |-VnicLanConnTempl (UcsVnicTemplate) (Get, Add, Set, Remove)

    |-FaultInst (UcsFault) (Get)

    |-VnicDynamicConPolicyRef (UcsVnicDynamicConPolicyRef) (Get, Add, Remove)

    |  |-FaultInst (UcsFault) (Get)

    |-VnicEtherIf (UcsVnicInterface) (Get, Add, Set, Remove)

    |  |-FabricNetflowIPv4Addr (UcsFabricNetflowIPv4Addr) (None)

    |  |-FaultInst (UcsFault) (Get)

    |  |-VnicIPv4If (UcsVnicIPv4If) (Get, Add)

    |    |-FabricNetflowIPv4Addr (UcsFabricNetflowIPv4Addr) (None)

    |    |-StorageIpV4PooledAddr (UcsStorageIpV4PooledAddr) (None)

    |    |  |-FaultInst (UcsFault) (Get)

    |    |  |-VnicIpV4History (UcsVnicIpV4History) (None)

    |    |-StorageIpV4StaticAddr (UcsStorageIpV4StaticAddr) (None)

    |    |-VnicIPv4Dhcp (UcsVnicIPv4Dhcp) (Get, Add, Remove)

    |    |-VnicIPv4Dns (UcsVnicIPv4Dns) (Get)

    |    |-VnicIPv4IscsiAddr (UcsVnicIPv4IscsiAddr) (Get, Add, Set, Remove)

    |    |  |-VnicIPv4Dns (UcsVnicIPv4Dns) (Get)

    |    |-VnicIPv4PooledIscsiAddr (UcsVnicIPv4PooledIscsiAddr) (Get, Set)

    |    |  |-FaultInst (UcsFault) (Get)

    |    |  |-VnicIPv4Dns (UcsVnicIPv4Dns) (Get)

    |    |  |-VnicIpV4History (UcsVnicIpV4History) (None)

    |    |-VnicIPv4StaticRoute (UcsVnicIPv4StaticRoute) (Get)

    |    |-VnicIpV4MgmtPooledAddr (UcsVnicIpV4MgmtPooledAddr) (Get, Set, Remove)

    |    |  |-FaultInst (UcsFault) (Get)

    |    |  |-VnicIpV4History (UcsVnicIpV4History) (None)

    |    |-VnicIpV4PooledAddr (UcsVnicIpV4PooledAddr) (Get)

    |    |  |-FaultInst (UcsFault) (Get)

    |    |  |-VnicIpV4History (UcsVnicIpV4History) (None)

    |    |-VnicIpV4ProfDerivedAddr (UcsVnicIpV4ProfDerivedAddr) (Get)

    |    |-VnicIpV4StaticAddr (UcsVnicIpV4StaticAddr) (Get, Add, Set, Remove)

    |-VnicFcOEIf (UcsVnicFcOEIf) (Get)

    |-VnicUsnicConPolicyRef (UcsVnicUsnicConPolicyRef) (Get, Add, Remove)

    |  |-FaultInst (UcsFault) (Get)

    |-VnicVmqConPolicyRef (UcsVnicVmqConPolicyRef) (Get, Add, Remove)

        |-FaultInst (UcsFault) (Get)

PS C:\>

 

Original post: https://community.cisco.com/t5/unified-computing-system/powertool-list-vlans-attached-to-vnic-template/td-p/3589927

Jaderson Pessoa
*** Rate All Helpful Responses ***
Beginner

Re: allowed vlans on port channel

Thanks Jaderson,

 

The above command is get the VLANs' attached to a vnic template. But my requirement is different here.

 

My requirement is to get the list of VLAN's that are allowed on a Port Channel. I generally get this info by selecting the Fabric A or B on VLAN Manager tab of LAN Uplinks Manager in GUI. I would like to get this information using powertool.

CreatePlease to create content
Content for Community-Ad
August's Community Spotlight Awards