xStack
®
DGS-3400 Series Layer 2 Gigabit Ethernet Managed Switch CLI Manual
521
create sflow flow_sampler
value is 128
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
Create sFlow flow sampler:
DGS-3450: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.
DGS-3450:admin#
config sflow flow_sampler
Purpose
Used to config the sFlow flow_sampler parameters.
Syntax
config sflow flow_sampler ports [<portlist> | all] {rate <value 0-65535> | tx_rate <value
0-65535> | maxheadersize <value 18-256>}(1)
Description
Configures the sFlow flow sampler parameters. In order to change the analyzer_server_id,
first delete the flow_sampler and create a new one.
Parameters
ports
- Specifies the list of ports to be configured.
rate
- The sampling rate for packet Rx sampling.
tx_rate
- The sampling rate for packet Tx sampling.
maxheadersize
- 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.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
Configure the sFlow sampler the rate of port 1 to be 0:
DGS-3450:admin# config sflow flow_sampler ports 1 rate 0 tx_rate 1
Command: config sflow flow_sampler ports 1 rate 0 tx_rate 1
Success.
DGS-3450:admin#
delete sflow flow_sampler
Purpose
Used to delete the sFlow flow_sampler.
Syntax
delete sflow flow_sampler ports [<portlist> | all]
Description
Used to delete the sFlow flow_sampler.
Parameters
ports
- Specifies the list of ports to be configured.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage: