Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation

Configuring the Sampling Service Set

In addition to next-hop and interface service sets there is also a sampling service set. Interface and next-hop service sets are explained in the Junos OS Services Interfaces Library for Routing Devices.

The sampling service set is configured using the sampling-service statement at the [edit services service-set service-set-name] hierarchy level.

[edit]
services {service-set service-set-name {sampling-service {service-interface interface-name;}}}

The service interface is the interface the sampling is taken from. In the case of a sampling service set, the service interface must be a Multiservices PIC interface with a subunit number of 0 (zero). The subunit number defaults to 0. The reverse-flow statement is not mandatory. All sampled traffic is considered to be forward traffic. If you set the reverse-flow statement, it is ignored.

The next example makes sure that any sampled packet to the ms-6/1/0.0 interface has the service plug-ins plugin1 and plugin2 applied to it.

[edit]
services {service-set sset1 {sampling-service {service-interface ms-6/1/0;}service-order {forward-flow [ plugin1 plugin2 ];}}}

Published: 2013-08-16

Supported Platforms

Published: 2013-08-16