H3C Technologies H3C MSR 50 User Manual

Page 166

Advertising
background image

# Configure the IP address for the sFlow agent.

[Device] sflow agent ip 3.3.3.1

# Configure parameters for an sFlow collector: specify sFlow collector ID 2, IP address 3.3.3.2,
the default port number, and description of netserver for the sFlow collector.

[Device] sflow collector 2 ip 3.3.3.2 description netserver

2.

Configure counter sampling:
# Set the counter sampling interval to 120 seconds.

[Device] interface ethernet 1/1

[Device-Ethernet1/1] sflow counter interval 120

# Specify sFlow collector 2 for counter sampling.

[Device-Ethernet1/1] sflow counter collector 2

3.

Configure flow sampling:
# Set the flow sampling mode and the sampling interval.

[Device-Ethernet1/1] sflow sampling-mode determine

[Device-Ethernet1/1] sflow sampling-rate 4000

# Specify sFlow collector 2 for flow sampling.

[Device-Ethernet1/1] sflow flow collector 2

# Display the sFlow configuration and operation information.

[Device-Ethernet1/1] display sflow

sFlow Version: 5

sFlow Global Information:

Agent IP:3.3.3.1(CLI)

Collector Information:

ID IP Port Aging Size Description

1 6343 0 1400

2 3.3.3.2 6543 N/A 1400 netserver

3 6343 0 1400

4 6343 0 1400

5 6343 0 1400

6 6343 0 1400

7 6343 0 1400

8 6343 0 1400

9 6343 0 1400

10 6343 0 1400

sFlow Port Information:

Interface CID Interval(s) FID MaxHLen Rate Mode Status

Eth1/1 2 120 2 128 4000 Determine Active

The output shows that Ethernet 1/1 enabled with sFlow is active, the counter sampling interval is
120 seconds, and the packet sampling interval is 4000.

153

Advertising