Users Guide

Monitoring Switch Traffic 609
console#show interfaces utilization
Port Load Oper. Rx Tx Rx Tx Buffer Drop
Interval Speed Util Util PPS PPS Size Count
------- -------- ------ ----- ----- ------ ------ ------- ---------
Gi1/0/1 300 10M 1 0 296 0 0 0
Gi1/0/2 300 1G 0 99 0 674500 938098 1102
Gi1/0/3 300 1G 0 15 0 112428 7 0
Gi1/0/4 300 0 0 0 0 1 0 0
Gi1/0/5 300 1G 37 0 249565 1 0 1
Gi1/0/6 300 1G 88 1 593560 3 0 0
Gi1/0/7 300 0 0 0 0 0 0 0
Gi1/0/8 300 0 0 0 0 1 0 0
Configuring sFlow
This example shows how to configure the switch so that ports 10-15 and port
23 send sFlow datagrams to an sFlow receiver at the IP address 192.168.20.34.
The receiver owner is receiver1, and the timeout is 100000 seconds. A counter
sample is generated on the ports every 60 seconds (polling interval), and 1 out
of every 8192 packets is sampled. Note that sFlow monitoring is not enabled
until a receiver owner string is configured.
To configure the switch:
1
Configure information about the sFlow receiver.
console#configure
console(config)#sflow 1 destination 192.168.30.34
console(config)#sflow 1 destination owner receiver1 timeout
100000
2
Configure the polling and sampling information for Tengigabit Ethernet
ports 10-20.
console(config)#sflow 1 polling te1/0/10-15 60
console(config)#sflow 1 sampling te1/0/10-15 8192
3
Configure the polling and sampling information for Tengigabit Ethernet
port 23.
console(config)#interface te1/0/23
console(config-if-Te1/0/23)#sflow 1 polling 60
console(config-if-Te1/0/23)#sflow 1 sampling 8192
4
Verify the configured information.
console#show sflow 1 destination