Configuration procedure, Troubleshooting sflow configuration, Symptom – H3C Technologies H3C S7500E Series Switches User Manual
Page 181: Analysis
11-4
Figure 11-1 Network diagram for sFlow configuration
Configuration procedure
# Configure an IP address for the sFlow agent.
[Switch] sflow agent ip 3.3.3.1
# Specify the IP address and port number of the sFlow collector.
[Switch] sflow collector ip 3.3.3.2
# Set the sFlow interval to 30 seconds.
[Switch] sflow interval 30
# Enable sFlow in both the inbound and outbound directions on GigabitEthernet 2/0/1.
[Switch] interface GigabitEthernet 2/0/1
[Switch-GigabitEthernet2/0/1] sflow enable inbound
[Switch-GigabitEthernet2/0/1] sflow enable outbound
# Specify the traffic sampling rate.
[Switch-GigabitEthernet2/0/1] sflow sampling-rate 100000
# Display the sFlow configuration information.
[Switch-GigabitEthernet2/0/1] display sflow
sFlow Version: 5
sFlow Global Information:
Agent IP:3.3.3.1
Collector IP:3.3.3.2 Port: 6343
Interval(s): 30
sFlow Port Information:
Interface Direction Rate Mode Status
GE2/0/1 In/Out 100000 Random Active
Troubleshooting sFlow Configuration
The Remote sFlow Collector Cannot Receive sFlow Packets
Symptom
The remote sFlow collector cannot receive sFlow packets.
Analysis
z
sFlow is not enabled globally because the sFlow agent or/and the sFlow collector is/are not
specified.
z
No port is enabled with sFlow to sample data.