111
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. To configure the switch:
1. Configure information about the sFlow receiver.
(QCT) #configure
(QCT) (Config)#sflow receiver 1 ip 192.168.20.34
(QCT) (Config)#sflow receiver 1 owner receiver1 timeout 100000
2. Configure the polling and sampling information for ports 10–15.
(QCT) (Config)#interface range 0/10-0/15
(QCT) (Interface 0/10-0/15)#sflow poller 1
(QCT) (Interface 0/10-0/15)#sflow poller interval 60
(QCT) (Interface 0/10-0/15)#sflow sampler 1
(QCT) (Interface 0/10-0/15)#sflow sampler rate 8192
(QCT) (Interface 0/10-0/15)#exit
3. Configure the polling and sampling information for port 23.
(QCT) (Config)#interface 0/23
(QCT) (Interface 0/23)#sflow poller 1
(QCT) (Interface 0/23)#sflow poller interval 60
(QCT) (Interface 0/23)#sflow sampler 1
(QCT) (Interface 0/23)#sflow sampler rate 8192
(QCT) (Interface 0/23)#exit
4. Verify the configured information.
(QCT) #show sflow receivers 1
Receiver Index................................. 1
Owner
String...................................
receiver1
Time
out.......................................
99400
IP
Address:....................................
192.168.20.34
Address Type................................... 1
Port...........................................
6343
Datagram Version............................... 5
Maximum Datagram Size.......................... 1400 (QCT) #show sflow pollers
Poller Receiver Poller
Data Source Index Interval
----------- ------- -------
0/10 1 60