Verifying the configuration, Troubleshooting sflow configuration, Symptom – H3C Technologies H3C S6300 Series Switches User Manual
Page 202: Analysis, Solution
189
Verifying the configuration
# Display the sFlow configuration and operation information.
[Device-Ten-GigabitEthernet1/0/1] display sflow
sFlow datagram version: 5
Global information:
Agent IP: 3.3.3.1(CLI)
Source address:
Collector information:
ID IP Port Aging Size VPN-instance Description
1 3.3.3.2 6343 N/A 1400 netserver
Port information:
Interface CID Interval(s) FID MaxHLen Rate Mode Status
XGE1/0/1 1 120 1 128 4000 Random Active
The output shows that Ten-GigabitEthernet 1/0/1 enabled with sFlow is active, the counter sampling
interval is 120 seconds, and the flow sampling interval is 4000 (one packet is sampled from every 4000
packets).
Troubleshooting sFlow configuration
The remote sFlow collector cannot receive sFlow packets
Symptom
The remote sFlow collector cannot receive sFlow packets.
Analysis
•
The sFlow collector is not specified.
•
sFlow is not configured on the interface.
•
The IP address of the sFlow collector specified on the sFlow agent is different from that of the remote
sFlow collector.
•
No IP address is configured for the Layer 3 interface that sends sFlow packets, or the IP address is
configured, but the UDP datagrams with the IP address being the source cannot reach the sFlow
collector.
•
The physical link between the device and the sFlow collector fails.
•
The length of an sFlow packet is less than the length of the sFlow packet header plus the number of
bytes that flow sampling can copy per packet.
Solution
To resolve the problem:
1.
Verify that sFlow is correctly configured by using the display sflow command.
2.
Verify that a correct IP address is configured for the device to communicate with the sFlow
collector.
3.
Verify that the physical link between the device and the sFlow collector is up.
4.
Verify that the length of an sFlow packet is greater than the length of the sFlow packet header plus
the number of bytes (H3C recommends the default) that flow sampling can copy per packet.