280
[Device-GigabitEthernet1/0/1] sflow sampling-rate 4000
# Specify sFlow collector 1 for flow sampling.
[Device-GigabitEthernet1/0/1] sflow flow collector 1
Verifying the configurations
# Verify the following items:
•
GigabitEthernet 1/0/1 enabled with sFlow is active.
•
The counter sampling interval is 120 seconds.
•
The flow sampling interval is 4000 (one packet is sampled from every 4000 packets).
[Device-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
GE1/0/1 1 120 1 128 4000 Random Active
Troubleshooting sFlow configuration
The remote sFlow collector cannot receive sFlow packets
Symptom
The remote sFlow collector cannot receive sFlow packets.
Analysis
The possible reasons include:
•
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.
•
An IP address is configured for the Layer 3 interface that sends sFlow packets. However, the
UDP datagrams with this source IP address cannot reach the sFlow collector.
•
The physical link between the device and the sFlow collector fails.
•
The sFlow collector is bound to a non-existent VPN.
•
The length of an sFlow packet is less than the sum of the following two values:
The length of the sFlow packet header.
The number of bytes that flow sampling can copy per packet.
Solution
To resolve the problem:
Summary of Contents for FlexNetwork 10500 SERIES
Page 224: ...213 ...
Page 311: ...300 Now the system can record log information to the specified file ...