03-21-2019 06:27 AM
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.
03-21-2019 06:32 AM
May be never heard Powertools before ? what is this one ? how it works ?
Do you mean below one :
03-21-2019 06:38 AM - edited 03-21-2019 06:45 AM
I mean Powershell module of Cisco UCS.
03-21-2019 06:45 AM
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/
03-21-2019 07:01 AM
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.
03-21-2019 06:58 AM
Hello @kunal.bhadra1 ,
Please check if this works for you …
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
03-21-2019 07:48 AM - edited 03-21-2019 08:09 AM
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.
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: