The sflow flow-sampling collector command enables flow sampling on an interface.
The undo sflow flow-sampling collector command disables flow sampling on an interface.
By default, flow sampling on an interface is disabled.
Parameter | Description | Value |
---|---|---|
collector-id |
Specifies the ID of an sFlow collector. |
The value is an integer ranging from 1 to 2. |
secondary secondary-collector-id |
Specifies the secondary ID of an sFlow collector. |
The value is an integer ranging from 1 to 2. |
inbound |
Specifies to get inbound direction sampling packet. |
- |
outbound |
Specifies to get inbound direction sampling packet. |
- |
Usage Scenario
When flow sampling is enabled on an interface, you can specify the inbound or outbound direction. Additionally, you can configure two sFlow collectors to back up each other.
Precautions
sFlow cannot be configured on a channelized sub-interface with network slicing configured.