xStack
®
DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
393
config sflow flow_sampler ports
Purpose
Used to configure the flow sampler settings for the sFlow function.
Syntax
config sflow flow_sampler ports [<portlist> | all] {rate <value 0-65535> |
maxheadersize <value 18-256>} (1)
Description
This command is used to configure the Switch’s settings for taking sample packets from
the network, including the sampling rate and the amount of the packet header to be
extracted.
Parameters
<portlist>
−
Use this parameter to set the ports that will be mined for sFlow information.
all
– Use this parameter to set all ports to be mined for sFlow information.
rate <value 0-65535>
−
Users can set the rate of packet sampling here. The value
entered here is to be multiplied by 256 to get the percentage of packets sampled. For
example, if the user enters a figure of 20 into this field, the switch will sample one out of
every 5120 packets (20 x 256 = 5120) that pass through the individual port. Users may
enter a value between
1
and
65535
. An entry of
0
disables the packet sampling. Since
this is the default setting, users are reminded to configure a rate here or this function will
not function.
maxheadersize <value 18-256>
−
This field will set the number of leading bytes of the
sampled packet header. This sampled header will be encapsulated with the datagram to
be forwarded to the Analyzer Server. The user may set a value between
18
and 256
bytes. The default setting is
128
bytes.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To configure the sflow flow sampler:
D G S - 3 4 2 6 : 5 # c o n f i g s f l o w f l o w _ s a m p l e r p o r t s 1 r a t e 2 0 0 0 0 m a x h e a d e r s i z e 1 2 8
C o m m a n d : c o n f i g s f l o w f l o w _ s a m p l e r p o r t s 1 r a t e 2 0 0 0 0 m a x h e a d e r s i z e 1 2 8
S u c c e s s .
D G S - 3 4 2 6 : 5 #
delete sflow flow_sampler ports
Purpose
Used to delete the flow sampler for the sFlow function of the switch.
Syntax
delete sflow sflow_sampler ports [<portlist> | all]
Description
This command is used to delete the Switch’s flow sampler settings.
Parameters
<portlist>
−
Use this parameter to delete the ports that will be mined for sFlow
information.
all
– Use this parameter to delete all ports to be mined for sFlow information.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To delete the sFlow flow sampler settings:
D G S - 3 4 2 6 : 5 # d e l e t e s f l o w f l o w s a m p l e r p o r t s a l l
C o m m a n d : d e l e t e s f l o w f l o w s a m p l e r p o r t s a l l
S u c c e s s .
D G S - 3 4 2 6 : 5 #