
Syntax:
[no] sflow agent-ipipv4-addr
The
ipv4-addr
specifies the address of the device that sent the data.
To specify an IPv6 address as the sFlow agent IP address, enter a command such as the following.
device(config)#sflow agent-ip FE80::240:D0FF:FE48:4672
Syntax:
[no] sflow agent-ipipv6-addr
The
ipv6-addr
the address of the device that sent the data.
Specifying the version used for exporting sFlow data
By default, when sFlow is enabled globally on the Brocade device, the sFlow agent exports sFlow data
in version 5 format. You can change this setting so that the sFlow agent exports data in version 2
format. You can switch between versions without rebooting the device or disabling sFlow.
NOTE
When the sFlow version number is changed, the system will reset sFlow counters and flow sample
sequence numbers.
To specify the sFlow version used for exporting sFlow data, enter the following command.
device(config)#sflow version 2
Syntax:
[no] sflow version
[
2
|
5
]
The default is 5.
Specifying the maximum flow sample size
With sFlow version 5, you can specify the maximum size of the flow sample sent to the sFlow collector.
If a packet is larger than the specified maximum size, then only the contents of the packet up to the
specified maximum number of bytes is exported. If the size of the packet is smaller than the specified
maximum, then the entire packet is exported.
For example, to specify 1024 bytes as the maximum flow sample size, enter the following command.
device(config)# sflow max-packet-size 1024
Syntax:
[no] sflow max-packet-sizesize
For both sFlow version 2 and version 5, the default maximum flow sample size is 256 bytes.
For sFlow version 5, the maximum flow sample size is 1300 bytes.
Exporting CPU and memory usage information to the sFlow collector
With sFlow version 5, you can optionally configure the sFlow agent on the Brocade device to export
information about CPU and memory usage to the sFlow collector.
To export CPU usage and memory usage information, enter the following command.
device(config)# sflow export system-info
Syntax:
[no] sflow export system-info
By default, CPU usage information and memory usage information are not exported.
Specifying the version used for exporting sFlow data
FastIron Ethernet Switch Administration Guide
257
53-1003625-01