xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
622
create sflow flow_sampler
Syntax
create sflow flow_sampler ports [<portlist> | all] analyzer_server_id < value 1-4> {rate
<value 0-65535> | tx_rate <value 0-65535> | maxheadersize <value 18-256>
Description
Used to create the sFlow flow_sampler. By configuring the sampling function for a port, a
sample packet received by this port will be encapsulated and forwarded to analyzer server at
the specified interval.
Parameters
ports
- Specifies the list of ports to be configured.
analyzer_server_id
- Specifies the ID of a server analyzer where the packet will be
forwarded.
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:
Create sFlow flow sampler:
DGS-3627: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-3627: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-3627: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-3627:admin#