To Mirror ports on a Juniper EX3300 for ingress (output of the server(outbound)) and egress(input to the server(inbound))
set port or ports to mirror, and direction:
set ethernet-switching-options analyzer span1 input ingress interface ge-0/0/38.0
set ethernet-switching-options analyzer span1 input egress interface ge-0/0/38.0
Specify span port to receive data:
set ethernet-switching-options analyzer span1 output interface ge-0/0/10.0