home

Supported platforms

Vyatta documentation

Learn how to install, configure, and operate the Vyatta Network Operating System (Vyatta NOS) and Orchestrator, which help drive our virtual networking and physical platforms portfolio.

service flow-monitoring selector <selector-name> randomly out-of <num-of-packets>

Creates a random-packet selector and specifies the size of the packet sample window from which to select a packet.

set service flow-monitoring selector selector-name randomly out-of num-of-packets
delete service flow-monitoring selector selector-name randomly out-of num-of-packets
show service flow-monitoring selector

The default size of the packet sample is 1000.

selector-name
The name of the packet selector.
num-of-packets
The size of the packet sample window from which to select a packet. The size ranges from 10 through 10000.

Configuration mode


service {
    flow-monitoring {
        selector selector-name {
            randomly {
                out-of num-of-packets    
            }
        }
    }
}

This command randomly samples packets. For example, for a 1:100 sampling, the Vyatta router randomly calculates a number from 1 through 100, say 63. When the sixty-third packet arrives at the data plane interface that is being monitored, the router extracts the NetFlow packet details and sends them to the NetFlow collector. The router ignores the remaining 37 packets of the sampling window (packets 64 through 100), then the router repeats the process of sampling packets.

Use the set form of this command to create a random-packet selector and specify the sample size.

Use the delete form of this command to delete the random-packet selector.

Use the show form of this command to display the details of the configured random-packet selector.