Chapter 7
| Flow Sampling Commands
– 187 –
polling and sampling data source instances are removed from the
configuration. (Range: 30-10000000 seconds)
ipv4-address
- IPv4 address of the sFlow collector. Valid IPv4
addresses consist of four decimal numbers, 0 to 255, separated by
periods.
ipv6-address
- IPv6 address of the sFlow collector. A full IPv6
address including the network prefix and host address bits. An IPv6
address consists of 8 colon-separated 16-bit hexadecimal values.
One double colon may be used to indicate the appropriate number
of zeros required to fill the undefined fields.
destination-udp-port
-
The UDP port on which the collector is
listening for sFlow streams. (Range: 1-65535)
max-datagram-size
- The maximum size of the sFlow datagram
payload. (Range: 200-1500 bytes)
version
{
v4
|
v5
} - Sends either v4 or v5 sFlow datagrams to the
receiver.
Default Setting
No owner is configured
UDP Port: 6343
Version: v4
Maximum Datagram Size: 1400 bytes
Command Mode
Privileged Exec
Command Usage
◆
Use the
sflow owner
command to create an owner instance of an sFlow
collector. If the socket port, maximum datagram size, and datagram
version are not specified, then the default values are used.
◆
Once an owner is created, the
sflow owner
command can again be used
to modify the owner’s port number. All other parameter values for the
owner will be retained if the port is modified.
◆
Use the
no sflow owner
command to remove the collector.
◆
When the
sflow owner
command is issued, it’s associated timeout value
will immediately begin to count down. Once the timeout value has reached
zero seconds, the sFlow owner and it’s associated sampling sources will
be deleted from the configuration.
Example
This example shows an sflow collector being created on the switch.
Console(config)#sflow owner stat_server1 timeout 100 destination
192.168.220.225 port 22500 max-datagram-size 512 version v5
Console(config)#