OcNOS-SP : System Management Guide : System Management Configuration Guide : sFlow Configuration : Configuration
Configuration
sFlow Agent
 
#configure terminal
Enter configure mode.
(config)#feature sflow
Enable the sFlow feature.
(config)#sflow collector 2.2.2.2 port 6343 receiver-time-out 0 max-datagram-size 200
Configure the sFlow collector.The IP address must be reachable via the management VRF.
(config)#interface xe1
Enter interface mode
(config-if)#sflow poll-interval 5
Set the counter poll Interval on the interface.
(config-if)#sflow sampling-rate 1024 direction ingress max-header-size 200
Set the sFlow sampling interval on the interface in ingress directions.
(config-if)#sflow sampling-rate 1024 direction egress max-header-size 120
Set the sFlow sampling interval on the interface in egress directions.
(config-if)#sflow enable
Start packet sampling on the interface
(config-if)#commit
Commit the candidate configuration to the running configuration
(config-if)#end
Exit interface and configure mode.
Validation
#show sflow detail
sFlow Feature: Enabled
sFlow Version: 5
sFlow Global Information :
Agent IP: 10.10.26.132
Collector IP: 2.2.2.2 Port: 6343
Maximum Datagram Size(bytes): 200
Receiver timeout(sec) : 0
 
sFlow Port Detailed Information:
Interface Packet-Sampling Packet-Sampling Counter-Polling Maximum Header
Rate Count Interval Count Size(bytes)
Ingress Egress Ingress Egress (sec) Ingress Egress
--------- ----------------------- ----------------------- ----------------------- --------------------
xe1/1 1024 1024 464564 414532 5 131 120 20
Last modified date: 10/19/2023