DWS-3160 Series Gigabit Ethernet Unified Switch CLI Reference Guide
590
Restrictions
Only Administrators and Operators can issue this command.
Example
To create an sFlow flow sampler:
DWS-3160-24PC:admin# create sflow flow_sampler ports 1 analyzer_server_id 1
rate 1 maxheadersize 18
Command: create sflow flow_sampler ports 1 analyzer_server_id 1 rate 1
maxheadersize 18
Success.
DWS-3160-24PC:admin#
64-2
config sflow flow_sampler
Description
This command is used to configure the sFlow flow sampler parameters. In order to change the
analyzer server ID, the user needs to delete the flow sampler first and then create a new one.
Format
config sflow flow_sampler ports [<portlist> | all] {rate <value 0-65535> | maxheadersize
<value 18-256>}
Parameters
ports
- Specifies the list of ports to be configured.
<portlist>
- Enter the list of ports that will be used for this configuration here.
all
- Specifies all ports on the Switch.
rate
- (Optional) The sampling rate for packet Rx sampling. If set to 0, the sampler is disabled. If
the rate is not specified, its default value is 0.
<value 0-65535>
- Enter the sampling rate value here. This value must be between 0 and
65535.
maxheadersize
- (Optional) The maximum number of leading bytes in the packet which has
been sampled that will be encapsulated and forwarded to the server. If not specified, the
default value is 128.
<value 18-256>
- Enter the maximum header size value here. This value must be between 18
and 256.
Restrictions
Only Administrators and Operators can issue this command.
Example
To configure the sFlow sampler the rate of port 1 to be 0: