This section provides the sFlow configuration command descriptions.
To enable sFlow collection, an operator must enable sFlow on physical Ethernet ports in addition to the following configuration. Refer to the Ethernet Port Commands section in the 7450 ESS, 7750 SR, 7950 XRS, and VSR Interface Configuration Guide Interface Configuration Guide for the CLI required to enable sFlow on physical ports.
The following commands apply to the 7950 XRS, 7750 SR-12e, and 7750 SR-7/12 platforms.
This command enables context to configured sflow agent parameters.
This command configures the egress counter map for sFlow. The map must be configured so sFlow agent understands how to interpret data collected against SAP queues and policers. Multiple queues and policers can be mapped to the same traffic-type using separate line entries.
The no form of this command deletes a SAP policy queue/policer from the map.
This command configures the ingress counter map for sFlow. The map must be configured so sFlow agent understands how to interpret data collected against SAP queues and policers. Multiple queues/policers can be mapped to the same traffic-type using separate line entries.
The no form of this command deletes a SAP policy queue/policer from the map.
This command creates an sFlow receiver context or enters existing sFlow receiver context for the sFlow agent.
The no form of this command deletes an existing sFlow receiver context.
This command configures primary IPv4 or IPv6 destination address for the sFlow agent to send sFlow datagrams to. Optionally a destination port can also be configured (by default port 6343 is used).
The no form of this command deletes primary sFlow receiver destination.
a.b.c.d | (IPv4) |
x:x:x:x:x:x:x:x | (IPv6) |
[x:x:x:x:x:x:x:x] | (IPv6) |
x - [0..FFFF]H | |
This command configures back-up IPv4 or IPv6 destination address for the sFlow agent to send sFlow datagrams to. Optionally a destination port can also be configured (by default port 6343 is used).
The no form of this command deletes backup sFlow receiver destination.
a.b.c.d | (IPv4) |
x:x:x:x:x:x:x:x | (IPv6) |
[x:x:x:x:x:x:x:x] | (IPv6) |
x - [0 to FFFF]H | |
This configures the maximum data size for sFlow UDP datagrams sent to the collector.
To restore default configuration, execute max-data-size 1400.
max-data-size 1400