xStack
®
DGS-3120 Series Layer 3 Managed Gigabit Ethernet Switch CLI Reference Guide
942
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 here. This value must be between 18 and
Restrictions
Only Administrator and Operator-level users can issue this command.
Example
Create sFlow flow sampler:
DGS-3120-24TC: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.
98-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, delete the flow_sampler first and create a new one.
Format
config sflow flow_sampler ports [<portlist> | all] {rate <value 0-65535> | maxheadersize
<value 18-256>}
Parameters
ports - Specify the list of ports to be configured.
<portlist> - Enter the list of ports that will be used for this configuration here.
all - Specify all ports on the Switch.
rate - (Optional) The sampling rate for packet Rx sampling. The configured rate value multiplied
by x is the actual rate, where the x is project dependent with the default value 256. 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
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
Restrictions
Only Administrator and Operator-level users can issue this command.