cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
655
Views
5
Helpful
1
Replies

How can I get the VLAN Group(s) configured for a vNIC template?

obiewonton
Level 1
Level 1

I am attempting to retrieve the VLAN group(s) that are assigned to a given vNIC template via PowerShell. I have the vNIC template name that I wish to use but cannot figure out which cmdlet to use to get the VLAN group(s) that are configured for the given template. I have tried using UCS Manager and convertto-ucscmdlet but the cmdlet does not create any output for read only operations.

 

The object I am working with is from the Get-UCSVNIC cmdlet

 

Thanks.

1 Reply 1

obiewonton
Level 1
Level 1

I was able to find what I needed by enabling UCS Manager XML logging (Ctrl-Alt-Q twice), navigating to the vNIC template, and then the VLAN Groups to view the VLAN groups assigned to the vNIC template. This logged the information I needed to find a solution.

 

Here is what the xml log reported

<configResolveChildren
cookie="164xxxxxx"
classId="fabricNetGroupRef"
inDn="org-root/ls-ESXserver/ether-CORP-Compute-B"
inHierarchical="false">
    <inFilter>
    </inFilter>
</configResolveChildren>

The classId provided the clue to the cmdlet to use: "fabricNetGroupRef"

If you do a get-command -name *FabricNetGroupRef* -Module Cisco.UCSManager you will see the cmdlet 

Get-UCSFabricNetGroupRef 
 
Starting from a Service Profile Template you can drill down to the VLAN Group(s) assigned to the vNIC templates associated with that template as follows:
Get-UcsServiceProfile|Get-UCSVNIC|Get-UCSFabricNetGroupRef

Review Cisco Networking for a $25 gift card