< Back

Get-NsxSecurityGroupEffectiveMacAddress

Sat Jan 18, 2020 9:11 pm

NAME Get-NsxSecurityGroupEffectiveMacAddress



SYNOPSIS

Determines the effective Mac Address membership of a security group.





SYNTAX

Get-NsxSecurityGroupEffectiveMacAddress -SecurityGroup <XmlElement> [-Connection <PSObject>] [<CommonParameters>]



Get-NsxSecurityGroupEffectiveMacAddress [-SecurityGroupId] <String> [-Connection <PSObject>] [<CommonParameters>]





DESCRIPTION

An NSX SecurityGroup can contain members (VMs, IP Addresses, MAC Addresses

or interfaces) by virtue of direct, or indirect membership (nested security

groups), and either by static or dynamic inclusion.



In addition, direct or indirect exclusions can also

modify membership.



This cmdlet uses the NSX 'Translation APIs' to determine the

'Effective MAC Address Membership' of a given security group.

The membership output by this cmdlet is determined by NSX itself.





PARAMETERS

-SecurityGroup <XmlElement>



Required? true

Position? named

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-SecurityGroupId <String>



Required? true

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Connection <PSObject>

PowerNSX Connection object



Required? false

Position? named

Default value $defaultNSXConnection

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Get-NsxSecurityGroup testSG | Get-NsxSecurityGroupEffectiveMacAddress



MacAddress

----------

{00:50:56:80:3e:20, 00:50:56:80:5f:d0}



Determine the effective MAC Address membership of testSG.









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Get-NsxSecurityGroupEffectiveMacAddress -SecurityGroupId securitygroup-1234



MacAddress

----------

{00:50:56:80:3e:20, 00:50:56:80:5f:d0}



Determine the effective Mac Address membership of a security group by object

id.











RELATED LINKS