sFlow Operational Commands
sFlow Collector Information
The show traffic-sampling sflow collector command output provide details about the sFlow collectors configured on the device. It shows the information related to each collector, including its sampling rates, associated agent, destination IP address, and other configuration specifics.
Syntax:
| Option | Description |
|---|---|
|
Name of the profile. |
|
Identifier for the collector. |
Example: Summary Output for sFlow collectors
supervisor@rtbrick: op> show traffic-sampling sflow collector
Collector ID: 1
Agent-ID: 198.51.100.21
Address: 192.0.2.2
Instance: default
Sampling-rate: 100
UDP-Destination-Port: 6343
Example: Summary Output for a specified sFlow collector
supervisor@rtbrick: op> show traffic-sampling sflow collector 1
Collector ID: 1
Agent-ID: 198.51.100.21
Address: 192.0.2.2
Instance: default
Sampling-rate: 100
UDP-Destination-Port: 6343
Sampling Profiles
Displays the packet sampling profile related information.
Syntax:
| Option | Description |
|---|---|
|
Name of the profile. |
Example: Summary Output for traffic sampling profiles
supervisor@rtbrick: op> show traffic-sampling sflow profile
Profile name: test
Collector Id: 1
Direction: ingress
Example: Summary Output for traffic sampling for a specified profile
supervisor@rtbrick: op> show traffic-sampling sflow profile test
Profile name: test
Collector Id: 1
Direction: ingress
Display Traffic Sampling Interface
The show traffic-sampling interface command displays detailed traffic sampling configuration information for a given interface. It provides visibility into the sampling profile, collector ID, traffic direction, and export protocol.
Syntax:
The following table provide the command options and descriptions.
| Attribute | Description |
|---|---|
|
Name of the interface. |
The following example displays traffic sampling configuration details for all interfaces with traffic sampling enabled.
supervisor@rtbrick.net: cfg> show traffic-sampling interface Interface name: ifp-0/0/0 Profile name: test_1 Collector Id: 1 Direction: ingress Export protocol: sflow Interface name: ifp-0/0/1 Profile name: test_1 Collector Id: 1 Direction: ingress Export protocol: sflow
The following example displays traffic sampling configuration details for the specified interface.
supervisor@rtbrick.net: cfg> show traffic-sampling interface ifp-0/0/1 Interface name: ifp-0/0/1 Profile name: test_1 Collector Id: 1 Direction: ingress Export protocol: sflow