sample-rate

 

Syntax

Hierarchy Level

Release Information

Statement introduced in Junos OS Release 9.3 for EX Series switches.

The option number (which immediately followed sample-rate) is no longer available and options egress number and ingress number added in Junos OS Release 10.4 for EX Series switches.

Statement introduced in Junos OS Release 18.1R1 for MX Series routers.

Statement introduced in Junos OS Release 18.2R1 for PTX Series routers.

Description

Specify the number of egress or ingress packets out of which one packet is sampled. If no interface sampling rates are configured, the global sampling rates take effect. If neither is configured, by default both ingress and egress packet sampling are disabled.

Default

By default, both egress and ingress sampling rates are disabled.

Options

egress number—Value for egress sampling rate.

Range: 1 through 1,073,741,823

ingress number—Value for ingress sampling rate.

Range: 1 through 1,073,741,823

Required Privilege Level

routing—To view this statement in the configuration.

routing-control—To add this statement to the configuration.