System Management Commands
sampling
To configure only a specific sample of source packets that must be monitored, use the sampling
command. To remove the sampling, use the no form of this command.
Syntax Description
sampling-range
Defaults
Disabled
Command Modes
Monitor configuration mode (SPAN)
ERSPAN source configuration mode (ERSPAN)
Release
Command History
6.0(2)A4(1)
Usage Guidelines
This command does not require a license.
Examples
The following example shows how to configure sampling on a VLAN for a local session:
switch# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
switch(config)# monitor session 1
switch(config-monitor)# source vlan 100
switch(config-monitor)# sampling 10
switch(config-monitor)# destination interface ethernet 1/48
switch(config-monitor)# no shut
switch(config-monitor)# show monitor session 1
session 1
---------------
type : local
state : up
sampling : 10
source intf :
rx : Eth1/3 Eth1/7
tx :
both :
source VLANs :
rx : 100
destination ports : Eth1/48
Legend: f = forwarding enabled, l = learning enabled
OL-27851-02
sample sampling-range
no sample sampling-range
Specifies a range for spanning packets. If the range is defined as n, every nth
packet will be spanned.
The sampling range is between 2 and 1023.
Modification
This command was introduced.
Cisco Nexus 3548 Switch NX-OS System Management Command Reference
sampling
121