Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    sample-rate

    Syntax

    sample-rate {egress number;ingress number;}

    Hierarchy Level

    [edit protocols sflow],[edit protocols sflow interfaces interface-name]

    Release Information

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

    Option number (directly following sample-rate) deprecated and options egress number and ingress number added in Junos OS Release 10.4 for EX Series switches.

    Description

    Set the ratios of the number of packets to be sampled in sFlow network traffic monitoring. For example, if you specify a rate of 1000, every thousandth packet (1 packet out of 1000) is sampled.

    Default

    By default, both ingress and egress sample rates are disabled if no global sample rate is configured.

    Note: The sample-rate number (the global sample-rate) statement has been deprecated and might be removed from future product releases. We strongly recommend that you phase out its use.

    Options

    egress number—Egress qualifier for the sample rate.

    Range: 100–1073741823

    Default: 2048

    ingress number—Ingress qualifier for the sample rate.

    Range: 100–1073741823

    Default: 2048

    Required Privilege Level

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

    Published: 2012-12-07