Configure sFlow Basic Functions
Configuration Condition
None
Create agent Role
The agent role is used to configure and manage the sampling. Currently, the network address type supported by the agent role can only be IPv4.
Table 6-2 Create the agent role
Step
|
Command
|
Description
|
Enter the global configuration mode
|
configure terminal
|
-
|
Create the agent role
|
sflow agent ip ip-address
|
Mandatory
By default, do not create the agent role.
|
Create receiver Role
The receiver role is used to save the information of the third-party receiver and send the sFlow packets buffered on the device to the third-party receiver via the UDP mode. The triggering conditions of sending packets include the following two:
- When the specified buffer area is full and cannot be filled with new sFlow sampling information, first encapsulate the buffered part to the sFlow packet, send to the third- party receiver, and then fill the new part to the buffer area. This can reduce the number of the sFlow packets sent by the device to the third-party receiver obviously.
- Encapsulate the buffered sFlow sampling information as the sFlow packet periodically and send to the third-party receiver. This can avoid that the buffered part cannot be encapsulated as the sFlow packet and sent to the third-party receiver because of not receiving new sFlow sampling information within a long time.
Table 6-3 Create the receiver role
Step
|
Command
|
Description
|
Enter the global configuration mode
|
configure terminal
|
-
|
Create the receiver role
|
sflow receiver receiver-index owner owner-name ip ip-address [ packet-size packet- size-value ] [ timeout timeout-value ] [ udp-port udp-port-number ]
|
Mandatory
By default, do not create the receiver role.
|