xStack® DES-3528/DES-3552 Series Layer 2 Managed Stackable Fast Ethernet Switch CLI Reference Guide
303
create sflow flow_sampler ports
Purpose
Used to create the sflow flow_sampler.
Syntax
create sflow flow_sampler ports [<portlist> | all] analyzer_server_id < value 1-4> { rate
<value 0- 65535> | maxheadersize < value 18-256>}
Description
This command is 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 the analyzer server at the specified interval.
Parameters
ports
– Specifies the list of ports to be configured.
analyzer_server_id
– The analyzer_server_id specifies the ID of a server analyzer where the
packet will be forwarded.
rate
– The sampling rate for packet sampling. The configured rate value multiplied by 256 is
the actual rate. For example, if the rate is 20, the actual rate 5120. As a result, one packet
will be sampled from every 5120 packets. If set to 0, the sampler is disabled. If the rate is not
specified, its default value is 0.
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:
To create sflow flow_sampler:
DES-3528:admin# create sflow flow_sampler ports all analyzer_server_id 1 rate 10
maxheadersize 100
Command: create sflow flow_sampler ports all analyzer_server_id 1 rate 10
maxheadersize 100
Success.
DES-3528:admin#
config sflow flow_sampler ports
Purpose
Used to configure the sflow flow_sampler parameters.
Syntax
config sflow flow_sampler ports [<portlist> | all] { rate <value 0- 65535> |
maxheadersize < value 18-256>}(1)
Description
This command configures the sflow flow_sampler parameters. If the user wants to change
the analyzer_server_id, he needs to delete the flow_sampler and creates a new one.
Parameters
ports
– Specifies the list of ports to be configured.
rate
– The sampling rate for packet sampling. The configured rate value multiplied by 256 is
the actual rate. For example, if the rate is 20, the actual rate is 5120. As a result, one packet
will be sampled from every 5120 packets. If set to 0, the sampler is disabled. If the rate is not
specified, its default value is 0.
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:
To configure sflow flow_sampler:
DES-3528:admin# config sflow flow_sampler ports all rate 10 maxheadersize 100
Command: config sflow flow_sampler ports all rate 10 maxheadersize 100
Success.
DES-3528:admin#