mac

Commands for sFlow
551
Usage Guide: If the analyzer address is configured at Port Mode, this IP address and
port configured at Port Mode will be applied when sending the sample packet. Or else
the address and port configured at global mode will be applied. The analyzer address
should be configured to let the sFlow sample proxy work properly.
Example: Configure the analyzer address and port at global mode.
switch (config)#sflow destination 192.168.1.200 1025
55.6 sflow header-len
Command: sflow header-len <length-value>
no sflow header-len
Function: Configure the length of the head data packet copied in the sFlow data
sampling. The “no” form of this command restores the default value.
Parameter: <length-value> is the value of the length with a valid range of 32-256.
Command Mode: Port Mode.
Default: 128 by default.
Usage Guide: If the packet sample can not be identified whether it is IPv4 or IPv6 when
sent to the CPU, certain length of the head of the group has to be copied to the sFlow
packet and sent out. The length of the copied content is configured by this command.
Example: Configure the length of the packet data head copied in the sFlow data
sampling to 50.
Switch(Config-If-Ethernet1/2)#sflow header-len 50
55.7 sflow priority
Command: sflow priority <priority-value>
no sflow priority
Function: Configure the priority when sFlow receives packet from the hardware. The "no”
form of the command restores the default.
Parameter: <priority-value> is the priority value with a valid range of 0-3.
Command Mode: Global Mode.
Default: The default value is 0.
Usage Guide: When sample packet is sent to the CPU, it is recommended not to assign
high priority for the packet so that regular receiving and sending of other protocol packet
will not be interfered. The higher the priority value is set, the higher its priority will be.
Example: Configure the priority when sFlow receives packet from the hardware at global
mode.
switch (config)#sflow priority 1