Monday, January 25, 2010

Configuring H3C switches

The following commands configure an H3C switch (, sampling packets at 1-in-512, polling counters every 30 seconds and sending sFlow to an analyzer ( over UDP using the default sFlow port (6343):

<sysname> system-view
[Sysname] sflow agent ip
[Sysname] sflow collector ip port 6343
[Sysname] sflow version 5
[Sysname] sflow interval 30

Then for each interface:

[Sysname] interface ethernet 1/0
[Sysname-Ethernet1/0] sflow enable inbound
[Sysname-Ethernet1/0] sflow sampling-mode random
[Sysname-Etherent1/0] sflow sampling-rate 512

A previous posting discussed the selection of sampling rates. Additional information can be found on the H3C web site.

See Trying out sFlow for suggestions on getting started with sFlow monitoring and reporting.

Notes: Set the sampling-mode to random on all interfaces that support random sampling. Deterministic sampling is less accurate and should be avoided. The sampling direction should be set consistently across all interfaces, in this example enabling inbound sampling on all interfaces monitors all traffic paths through the switch and avoids double counting.

No comments:

Post a Comment