sfFlow Commands
Use these M4500 CLI commands to configure sFlow receivers, samplers, pollers, and source interface, and display sFlow agent and sampling information.
show sflow agent
The user can go to the CLI Privilege Exec to get the sFlow agent information, use the show sflow agent Privilege command.
| Default | None |
| Format | show sflow agent |
| Mode | Privilege Exec |
Display Message
| Parameter | Definition |
|---|---|
| sFlow Version |
Uniquely identifies the version and implementation of this MIB. The version string must have the following structure: MIB Version; Organization; Software Revision where: MIB Version: 1.3, the version of this MIB. Organization: Netgear. Revision: The version of FW |
| IP Address | The IP address associated with this agent. |
show sflow pollers
The user can go to the CLI Privilege Exec to get the sFlow polling instances created on the switch, use the show sflow pollers Privilege command.
| Default | None |
| Format | show sflow pollers |
| Mode | Privilege Exec |
Display Message
| Parameter | Definition |
|---|---|
| Poller Data Source | The sFlowDataSource (slot/port) for this sFlow sampler. This agent will support Physical ports only. |
| Receiver Index | The sFlowReceiver associated with this sFlow counter poller. |
| Poller Interval | The number of seconds between successive samples of the counters associated with this data source. |
show sflow receivers
The user can go to the CLI Privilege Exec to get the configuration information related to the sFlow receivers, use the show sflow receivers Privilege command.
| Default | None |
| Format | show sflow receivers [< rcvr- index >] |
| Mode | Privilege Exec |
Display Message
| Parameter | Definition |
|---|---|
| Receiver Index | The sFlow Receiver associated with the sampler/poller. |
| Owner String | The identity string for receiver, the entity making use of this sFlowRcvrTable entry. |
| Time Out | The time (in seconds) remaining before the receiver is released and stops sending samples to sFlow receiver. The no timeout value of this parameter means that the sFlow receiver is configured as a non-timeout entry. |
| Max Datagram Size | The maximum number of bytes that can be sent in a single sFlow datagram. |
| Port | The destination Layer4 UDP port for sFlow datagrams. |
| IP Address | The sFlow receiver IP address. |
| Address Type | The sFlow receiver IP address type. For an IPv4 address, the value is 1. |
| Datagram Version | The sFlow protocol version to be used while sending samples to sFlow receiver. |
show sflow samplers
The user can go to the CLI Privilege Exec to get the sFlow sampling instances created on the switch, use the show sflow samplers Privilege command.
| Default | None |
| Format | show sflow samplers |
| Mode | Privilege Exec |
Display Message
| Parameter | Definition |
|---|---|
| Sampler Data Source | The sFlowDataSrouce for this sFlow sampler. This agent supports physical ports only. |
| Receiver Index | The sFlowReceiver configured for this sFlow sampler. |
| Remote Agent | The remote agent instance index number. |
| Ingress Sampling Rate | The sampling rate for the ingress. |
| Flow Sampling Rate | The statistical sampling rate for packet sampling from this source. |
| Egress Sampling Rate | The sampling rate for the egress. |
| Max Header Size | The maximum number of bytes that should be copied from a sampled packet to form a flow sample. |
show sflow source-interface
The user can go to the CLI Privilege Exec to get the configured source interface for sFlow, use the show sflow source-interface Privilege command.
| Default | None |
| Format | show sflow source-interface |
| Mode | Privilege Exec |
Display Message
| Parameter | Definition |
|---|---|
| sFlow Client Source interface | The interface ID of the physical or logical interface configured as the sFlow client source interface. |
| sFlow Client Source IPv4 Address | The IP address of the interface configured as the sFlow client source interface. |
sflow receiver maximum datagram
Use this command to configure the sFlow collector maximum datagram size. This specifies the maximum number of data bytes that can be sent in a single sample datagram. The management entity should set this value to avoid fragmentation of the sFlow datagrams. The allowed range is 200-9312.
| Default | 1400 |
| Format | sflow receiver <index> maxdatagram <200-9312> |
| Mode | Global Config |
no sflow receiver maxdatagram <index>
Use the no sflow receiver <index> maxdatagram return to default value 1400.
| Format | no sflow receiver <index> maxdatagram |
| Mode | Global Config |
sflow receiver owner
Use this command to configure the sFlow collector owner string.
| Default | None |
| Format | sflow receiver < index> owner <owner> {notimeout | timeout <0 - 2147483647>} |
| Mode | Global Config |
| Parameter | Definition |
|---|---|
| <owner> | The identity string for the receiver, the entity making use of this sFlowRcvrTable entry. The range is 127 characters. The default is a null string. The empty string indicates that the entry is currently unclaimed and the receiver configuration is reset to the default values. An entity wishing to claim an sFlowRcvrTable entry must ensure that the entry is unclaimed before trying to claim it. The entry is claimed by setting the owner string to a non-null value. The entry must be claimed before assigning a receiver to a sampler or poller. |
| notimeout | Entries configured with a notimeout entry will be in the running config until the user explicitly removes the entry. |
| <0 - 2147483647> | The time, in seconds, remaining before the sampler or poller is released and stops sending samples to receiver. A management entity wanting to maintain control of the sampler is responsible for setting a new value before the old one expires. |
no sflow receiver <index>
Use the no sflow receiver <index> to remove the session.
| Format | no sflow receiver <index> [owner] |
| Mode | Global Config |
sflow receiver ip
Use this command to assign an IPv4 address to the sFlow collector. When sFlow hardware sampling is enabled, the switch/hardware sends sampled packets encapsulated in sFlow custom packet to this IP address. If set to 0.0.0.0, no sFlow datagrams will be sent. The default is 0.0.0.0.
| Default | 0.0.0.0 |
| Format | sflow receiver < index> ip <ip> |
| Mode | Global Config |
no sflow receiver <index> ip
Use the no sflow receiver <index> ip to clear collector ip address.
| Format | no sflow receiver <index> ip |
| Mode | Global Config |
sflow receiver port
Use this command to configure the destination UDP port for the sFlow collector.
| Default | 6343 |
| Format | sflow receiver <index> port <1-65535> |
| Mode | Global Config |
no sflow receiver <index> port
Use the no sflow receiver <index> port return to default UDP port 6343.
| Format | no sflow receiver <index> port |
| Mode | Global Config |
sflow poller interval
Use this command to configure the sFlow instance polling interval. A poll interval of zero (0) disables counter sampling. A poll interval of zero (0) disables counter sampling. When set to zero (0), all the poller parameters are set to their corresponding default value. A value of N means once in N seconds a counter sample is generated.
| Default | 0 |
| Format | sflow poller interval <0-86400> |
| Mode | Interface Config |
The sFlow task is heavily loaded when the sFlow polling interval is configured at the minimum value (i.e., one second for all the sFlow supported interfaces). In this case, the sFlow task is always busy collecting the counters on all the configured interfaces. This can cause the device to hang for some time when the user tries to configure or issue show sFlow commands. To overcome this situation, sFlow polling interval configuration on an interface or range of interfaces is controlled as mentioned below:
1. The maximum number of allowed interfaces for the polling intervals max (1, (interval – 10)) to min ((interval + 10), 86400) is: interval * 5
2. For every one second increment in the polling interval that is configured, the number of allowed interfaces that can be configured increases by 5.
no sflow poller interval
Use the no sflow poller interval return to default value zero.
| Format | no sflow poller interval |
| Mode | Interface Config |
sflow sampler index
Use this command to configure a new sFlow sampler instance on an interface or a range of interfaces for this data source if the specified receiver is valid. A data source configured to collect flow samples is called a sampler. Flow samples for the sFlow sampler are sent to the sFlow receiver. Only active receivers can be set. If a receiver expires, then all samplers associated with the receiver will also expire. The range of <index> is 1-8.
| Default | None |
| Format | sflow sampler <index> |
| Mode | Interface Config |
no sflow sampler
Use the no sflow sampler return to default setting.
| Format | no sflow sampler |
| Mode | Interface Config |
sflow poller index
A data source configured to collect counter samples is called a poller. Use this command to enable a new sFlow poller instance on an interface or a range of interfaces for this data source if the specified receiver is valid. The range of <index> is 1-8, which indicates the sFlow receiver associated with the poller.
| Default | None |
| Format | sflow poller <index> |
| Mode | Interface Config |
no sflow poller
Use the no sflow poller return to default setting.
| Format | no sflow poller |
| Mode | Interface Config |
sflow source-interface
Use this command to specify the physical or logical routing interface to use as the sFlow client source interface. If configured, the address of source interface is used for all sFlow communications between the sFlow receiver and the sFlow client. Otherwise there is no change in behavior. If service port is configured as the source interface, sFlow packets will be transmitted via source port only. If the configured interface is down, the sFlow client falls back to normal behavior. User can go to the CLI Interface Configuration Mode to configure a new sFlow source interface, use the sflow source-interface global configuration command.
| Default | None |
| Format | sflow source-interface {<slot/port> | loopback <loopback-id> | serviceport | tunnel <tunnel-id> | vlan <vlan-id>} |
| Mode | Global Config |
| Parameter | Definition |
|---|---|
| <slot/port> | Specifies the interface to use as the source interface. |
| <loopback-id> | Specifies the loopback interface to use as the source interface. The range of the loopback ID is 0 to 7. |
| <tunnel-id> | Specifies the tunnel interface to use as the source interface. The range of the tunnel ID is 0 to 7. |
| <vlan-id> | Specifies the VLAN interface to use as the source interface. The range of the VLAN ID is 1 to 4093. |
| serviceport | Specifies the service port as the outgoing interface. |
no sflow source-interface
Use the no sflow source-interface remove the source interface setting
| Format | no sflow source-interface |
| Mode | Global Config |
sflow sampler rate
Use this command to configure the statistical sampling rate for packet sampling from this source. A value of zero (0) disables sampling. A value of N means that out of N incoming packets, 1 packet will be sampled. The range of
<rate> is 1024-65536 and 0.
| Default | 0 |
| Format | sflow sampler rate <rate> |
| Mode | Interface Config |
no sflow sampler rate
Use the no sflow sampler rate return to default setting.
| Format | no sflow sampler rate |
| Mode | Interface Config |
sflow sampler maxheadersize
Use this command to configure the maximum number of bytes that should be copied from the sampler packet. The range is 20-256. When set to zero (0), all the sampler parameters are set to their corresponding default value.
| Default | 128 |
| Format | sflow sampler maxheadersize <size> |
| Mode | Interface Config |
no sflow sampler maxheadersize
Use the no sflow sampler maxheadersize return to default setting.
| Format | no sflow sampler maxheadersize |
| Mode | Interface Config |