Brocade Network OS Administrator’s Guide v4.1.1 User Manual
Page 529
Enabling and customizing sFlow on specific interfaces
Perform the following steps in privileged EXEC mode to enable and customize sFlow on an interface.
This task assumes that sFlow has already been enabled at the global level; refer to
on page 527.
1. Enter the interface command to specify the DCB interface type, the RBridge ID, and the slot/port
number.
NOTE
The gigabitethernet rbridge-id/slot/port operand is used only for the Brocade VDX 6710, VDX
8770-4, and VDX 8770-8. The prompt for these ports is in the following example format:
switch(config-if-gi-22/0/1)#,
switch(config)# interface tengigabitethernet 0/16
2. Configure the sFlow polling interval.
switch(conf-if-te-0/16)# sflow polling interval 35
3. Use the sflow enable command to enable sFlow on the interface.
switch(conf-if-te-0/16)# sflow enable
4. Set the sFlow sample-rate.
switch(conf-if-te-0/16)# sflow sample-rate 8192
5. Confirm the sFlow configuration status on the specified interface.
switch# show sflow interface tengigabitethernet 22/0/16
sFlow info for interface TenGigabitEthernet 22/0/16
------------------------------------------------
Configured sampling rate: 100 pkts
Actual sampling rate: 100 pkts
Counter polling interval: 100 secs
Samples received from hardware: 32
Port backoff-threshold : 272
Counter samples collected : 147
Configuring an sFlow policy map and binding it to an interface
Perform the following steps to configure an sFlow policy map and bind it to an interface.
1. Enter the configure terminal command to change to global configuration mode.
switch# configure terminal
2. Create a standard MAC access control list (ACL).
switch# mac access-list standard acl1
switch(conf-macl-std)# permit any
3. Create a class map and attach the ACL to the class map.
switch(conf-macl-std)# class-map class1
switch(config-classmap)# match access-group acl1
4. Create a policy map and attach the class map to the policy map.
switch(config-classmap)# policy-map policy1
switch(config-policymap)# class class1
5. Add an sFlow profile name by using the map command.
This example assigns the profile name "policy1."
switch(config-policymap-class)# map sflow policy1
6. Bind the policy map to an interface.
switch(conf-if-te-1/8/1)# service-policy in policy1
Enabling and customizing sFlow on specific interfaces
Network OS Administrator’s Guide
529
53-1003225-04