VMware Cloud Community
sommarivag
Contributor
Contributor

Mirrior Session via PowerCLI

Hi,

Any suggestion about who to create a Mirror session with PowerCLI?

I'm Trying this, but I'm getting this error: 

OperationStopped: userValue

Here is my operation Log:

$NSXTMirrorSession = Get-NsxtService -Name com.vmware.nsx.mirror_sessions

 

$NSXTMirrorSessionCreateSpec = $NSXTMirrorSession.help.create.port_mirroring_session.Create()

 

$NSXTMirrorSessionCreateSpec.display_name = "NEWSESSION"

$NSXTMirrorSessionCreateSpec.session_type = "LogicalLocalPortMirrorSession"

$NSXTMirrorSessionCreateSpec.direction = "BIDIRECTIONAL"

$NSXTMirrorSessionCreateSpec.resource_type = "PortMirroringSession"

$NSXTMirrorSessionCreateSpec.mirror_sources = "{@{port_ids=[db8dcc97-b640-4041-b3ef-def8f9029ee7, c2647300-aa0a-44a6-a10b-e7bbdf344ba7]; resource_type=LogicalPortMirrorSource}}"

$NSXTMirrorSessionCreateSpec.mirror_destination = "@{port_ids=[1f811bb0-cafa-4763-97c0-c8ac976e8034, 864ff396-a822-4dac-9b0c-64426aec9ae8]; resource_type=LogicalPortMirrorDestination}"

 

$NEWNSXTMirrorSession = $NSXTMirrorSession.create($NSXTMirrorSessionCreateSpec)

OperationStopped: userValue

Reply
0 Kudos
0 Replies