cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

2209
Views
0
Helpful
1
Replies
Beginner

Powertool list vlans attached to vnic template

I can't seem to find how to do this. Any help?

1 ACCEPTED SOLUTION

Accepted Solutions
Beginner

Re: Powertool list vlans attached to vnic template

Mark,

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:\>

1 REPLY 1
Beginner

Re: Powertool list vlans attached to vnic template

Mark,

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:\>

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